게으름의 소치 정보
그누보드 게으름의 소치본문
메인 첫 화면이빈다.
게으름의 소치로 작업을 간단하게 하기 위해서 만들다가 만 것입니다.
역시 지저분하다는 표현이 맞을 것 같습니다.
내용이 엉망입니다.
강좌 봐가면서, 참고만 하시고 다른 고수분들의 도움을 받으세오.
파일 세 개
index.php
myconf.php
lib.php
--------------------------------------------------
index.php
--------------------------------------------------
<?
//생각해야 할 점 ... 게시판의 카테고리 별로 왼쪽 메뉴를 불러오게 하는
//index.php testpage
include "myconf.php";
//상단 링크 불러오기
echo toplink($toplink = "home"); //toplink
//상단 이미지 불러오기
echo topimage(); //top image
echo head($toplink = "home");
?>
<table width=620 cellpadding=0 cellspacing=0 border=0>
<tr>
<td><? echo latest($toplink = "home"); ?></td>
<td><? echo right($toplink = "home"); ?></td>
</tr>
</table>
<?
echo tail();
?>
----------------------------------------------
myconf.php
----------------------------------------------
<?
/*
본 내용은 홈페이지의 간소화를 위해서 만들었다. 게으름의 소치다...^^ 될지 안 될지는 모른다. 일단은 해 본다...^^
파일명 : myconf.php
*/
// 메인 페이지가 들어가 있는 page 경로
$pagedir = "../page";
// 상단 이미지
function topimage() {
echo '
<!-- ImageReady Slices (top.psd) -->
<TABLE WIDTH=770 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="../image/top_images/top_01.gif" WIDTH=385 HEIGHT=66></TD>
<TD>
<IMG SRC="../image/top_images/top_02.gif" WIDTH=385 HEIGHT=66></TD>
</TR>
<TR>
<TD>
<IMG SRC="../image/top_images/top_03.gif" WIDTH=385 HEIGHT=84></TD>
<TD>
<IMG SRC="../image/top_images/top_04.gif" WIDTH=385 HEIGHT=84></TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
';
}
// 상단 홈페이지 이동을 위한 배열
$toplink = array( home, club, webzine, lab );
// 상단 페이지
function toplink() {
global $toplink;
if ($toplink=="home"){
echo "메뉴 하나";
}
elseif ($toplink=="club"){
echo "메뉴 둘";
}
elseif ($toplink=="webzine"){
echo "메뉴 셋";
}
else{
echo "메뉴 넷";
}
}
function head() {
global $toplink;
if ($toplink=="home"){
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 하나</td>
<td>
';
}
elseif ($toplink="club"){
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 둘</td>
<td>
';
}
elseif ($toplink="webzine") {
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 셋</td>
<td>
';
}
else {
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 넷</td>
<td>
';
}
}
function latest() {
global $toplink;
if ($toplink=="home"){
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
elseif ($toplink=="club"){
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
elseif ($toplink=="webzine"){
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
else{
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
}
function right() {
global $toplink;
if ($toplink=="home"){
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
elseif ($toplink=="club"){
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
elseif ($toplink=="webzine"){
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
else{
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
}
function tail() {
echo '
</td>
</tr>
</table>
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td>하단 내용 들어가는 곳
</td>
</tr>
</table>
';
}
?>
--------------------------------------------------
lib.php
--------------------------------------------------
//있는 것 그대로 사용
<?
$reldir = "../";
include "{$reldir}lib.php";
?>
게으름의 소치로 작업을 간단하게 하기 위해서 만들다가 만 것입니다.
역시 지저분하다는 표현이 맞을 것 같습니다.
내용이 엉망입니다.
강좌 봐가면서, 참고만 하시고 다른 고수분들의 도움을 받으세오.
파일 세 개
index.php
myconf.php
lib.php
--------------------------------------------------
index.php
--------------------------------------------------
<?
//생각해야 할 점 ... 게시판의 카테고리 별로 왼쪽 메뉴를 불러오게 하는
//index.php testpage
include "myconf.php";
//상단 링크 불러오기
echo toplink($toplink = "home"); //toplink
//상단 이미지 불러오기
echo topimage(); //top image
echo head($toplink = "home");
?>
<table width=620 cellpadding=0 cellspacing=0 border=0>
<tr>
<td><? echo latest($toplink = "home"); ?></td>
<td><? echo right($toplink = "home"); ?></td>
</tr>
</table>
<?
echo tail();
?>
----------------------------------------------
myconf.php
----------------------------------------------
<?
/*
본 내용은 홈페이지의 간소화를 위해서 만들었다. 게으름의 소치다...^^ 될지 안 될지는 모른다. 일단은 해 본다...^^
파일명 : myconf.php
*/
// 메인 페이지가 들어가 있는 page 경로
$pagedir = "../page";
// 상단 이미지
function topimage() {
echo '
<!-- ImageReady Slices (top.psd) -->
<TABLE WIDTH=770 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="../image/top_images/top_01.gif" WIDTH=385 HEIGHT=66></TD>
<TD>
<IMG SRC="../image/top_images/top_02.gif" WIDTH=385 HEIGHT=66></TD>
</TR>
<TR>
<TD>
<IMG SRC="../image/top_images/top_03.gif" WIDTH=385 HEIGHT=84></TD>
<TD>
<IMG SRC="../image/top_images/top_04.gif" WIDTH=385 HEIGHT=84></TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
';
}
// 상단 홈페이지 이동을 위한 배열
$toplink = array( home, club, webzine, lab );
// 상단 페이지
function toplink() {
global $toplink;
if ($toplink=="home"){
echo "메뉴 하나";
}
elseif ($toplink=="club"){
echo "메뉴 둘";
}
elseif ($toplink=="webzine"){
echo "메뉴 셋";
}
else{
echo "메뉴 넷";
}
}
function head() {
global $toplink;
if ($toplink=="home"){
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 하나</td>
<td>
';
}
elseif ($toplink="club"){
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 둘</td>
<td>
';
}
elseif ($toplink="webzine") {
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 셋</td>
<td>
';
}
else {
echo '
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>메뉴 넷</td>
<td>
';
}
}
function latest() {
global $toplink;
if ($toplink=="home"){
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
elseif ($toplink=="club"){
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
elseif ($toplink=="webzine"){
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
else{
echo '
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>최근 내용 들어가는 곳</td>
</tr>
</table>
';
}
}
function right() {
global $toplink;
if ($toplink=="home"){
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
elseif ($toplink=="club"){
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
elseif ($toplink=="webzine"){
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
else{
echo '
<table width=100 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150>오른쪽</td>
</tr>
</table>
';
}
}
function tail() {
echo '
</td>
</tr>
</table>
<table width=770 cellpadding=0 cellspacing=0 border=0>
<tr>
<td>하단 내용 들어가는 곳
</td>
</tr>
</table>
';
}
?>
--------------------------------------------------
lib.php
--------------------------------------------------
//있는 것 그대로 사용
<?
$reldir = "../";
include "{$reldir}lib.php";
?>
댓글 전체