페이지의 메뉴 질문??? 정보
페이지의 메뉴 질문???- kennethkim 홈페이지 자기소개 아이디로 검색 회원게시물
- 1,516
관련링크
http://kimgeun.mireene.com
145회 연결
본문
제 홈페이지를 보시며는 상단메뉴로는 English 소개, 영어교육, English Service, 등록신청, 커뮤니티 있습니다.
그리고, 왼편메뉴로 구성하는데 있어서, English 소개 페이지에서는 What is English?, English 소개 라는
메뉴가 있고, 영어교육 이라는 페이지에서는 3가지의 메뉴가 있으며, English service 페이지에서는
3가지 메뉴가 있고, 커뮤니티 페이지에서 보드로 이루어진 왼편메뉴 4가지가 있습니다.
결론적으로 말하자면, 위의 설명대로 페이지 구성을 하고 싶은데, 여러분들의 도움으로 시도해 보았지만, 잘 되지 않았습니다.
결론적으로,
아웃로그인 밑에 다가 페이지마다 왼편메뉴를 넣고 싶습니다.
그래서, 게시판으로 이루어진 페이지에 대해서는
head.php 파일을 이렇게 수정해 보았습니다.
-- head.php 소스 부분 --
<?
if (!defined("_GNUBOARD_")) exit; // °³º° ÆäÀÌÁö Á¢±Ù ºÒ°¡
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// »ç¿ëÀÚ È¸é »ó´Ü°ú ÁÂÃøÀ» ´ã´çÇÏ´Â ÆäÀÌÁöÀÔ´Ï´Ù.
// »ó´Ü, ÁÂÃø ȸéÀ» ²Ù¹Ì·Á¸é ÀÌ ÆÄÀÏÀ» ¼öÁ¤ÇÕ´Ï´Ù.
$table_width = 1000;
?>
<!-- »ó´Ü ·Î°í ¹× ¹öư ¹× Ç÷¡½¬ À̹ÌÁö ½ÃÀÛ -->
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="36">
<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0" background="http://kimgeun.mireene.com/html/images/main_img.jpg">
<? if (!$member[mb_id]) { ?>
<!-- ·Î±×ÀÎ ÀÌÀü -->
<tr>
<td align="center" style="padding-left:631px;padding-top:10px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><img src="http://kimgeun.mireene.com/html/images/login_img.gif" width="43" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
</tr>
<? } else { ?>
<!-- ·Î±×ÀÎ ÀÌÈÄ -->
<tr>
<td align="center" style="padding-left:631px;padding-top:6px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <a href="<?=$g4[bbs_path]?>/logout.php"><img src="http://kimgeun.mireene.com/html/images/logout_img.gif" width="53" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
</tr>
<? } ?>
</table>
</td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1000" height="378" hspace="0" vspace="0">
<param name="movie" value="http://kimgeun.mireene.com/html/images/main_image.swf">
<param name="quality" value="high">
<embed src="http://kimgeun.mireene.com/html/images/main_image.swf" width="1000" height="378" hspace="0" vspace="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
</tr>
</table>
<!-- »ó´Ü ·Î°í ¹× ¹öư ¹öư ¹× Ç÷¡½¬ À̹ÌÁö ³¡ -->
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
body { background-color : #FEF0FF }
</style>
<table width='100%' cellpadding=0 cellspacing=0>
<tr>
<td width=43></td>
<td width=279 valign=top>
<div style='height:12px;'></div>
<table width="227" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:5px;"> <?=outlogin("basic"); // ¿ÜºÎ ·Î±×ÀÎ ?></td>
</tr>
</table>
<div style='height:10px;'></div>
<?
switch ($gr_id) {
case(community):
include_once("../../include/community.php");
break;
case(edu):
include_once("../../include/m_level.php");
break;
}
?>
</td>
<td width=683 valign=top>
---------------------------------------------------------------------------------------------------------------------------------
일반 페이지에서는 아웃로그인 밑에다 왼편 메뉴를 넣는 방법을 질문과 답변의 도움으로 해 보았지만,
너무 잘 되지 않았습니다.
이렇게요.....
우선 English 소개 페이지(http://kimgeun.mireene.com/engcon/intro.php)-------
----------------------------- intro.php ------------------------------------------
<?
include_once("./_common.php");
$g4[title] = " English Conversation '' ";
include_once("./_head.php");
$table_width = 770;
?>
<!-- 메인화면 최신글 시작 -->
<table width="<?=$table_width?>" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td colspan="2" valign="top"><div style="padding-left:12px;padding-top:14px;"><? include "../include/eintro.php" ?></div><br>
<br>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="line-height:22px;font-size:12px;">
내 용
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
----------------------------------------------- intro.php 끝 -----------------------------------------------------------
그런데, 밑의 소스는 위의 소스 내에서 어느 부분에다 삽입을 해야 하나요....???
<?
include_once("./_common.php");
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_head.php");
?>
내용
<?
include_once("./_tail.php");
?>
정말로 제가 작업하기 어렵워요... 쉬운 것 같지만, 어렵워요...
도움을 주시면 감사하겠습니다.
그리고 첫 페이지(즉, index 페이지)에서는 아웃로그인 부분 밑에 전혀 메뉴가 없게 하고 싶습니다.
그리고, 왼편메뉴로 구성하는데 있어서, English 소개 페이지에서는 What is English?, English 소개 라는
메뉴가 있고, 영어교육 이라는 페이지에서는 3가지의 메뉴가 있으며, English service 페이지에서는
3가지 메뉴가 있고, 커뮤니티 페이지에서 보드로 이루어진 왼편메뉴 4가지가 있습니다.
결론적으로 말하자면, 위의 설명대로 페이지 구성을 하고 싶은데, 여러분들의 도움으로 시도해 보았지만, 잘 되지 않았습니다.
결론적으로,
아웃로그인 밑에 다가 페이지마다 왼편메뉴를 넣고 싶습니다.
그래서, 게시판으로 이루어진 페이지에 대해서는
head.php 파일을 이렇게 수정해 보았습니다.
-- head.php 소스 부분 --
<?
if (!defined("_GNUBOARD_")) exit; // °³º° ÆäÀÌÁö Á¢±Ù ºÒ°¡
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// »ç¿ëÀÚ È¸é »ó´Ü°ú ÁÂÃøÀ» ´ã´çÇÏ´Â ÆäÀÌÁöÀÔ´Ï´Ù.
// »ó´Ü, ÁÂÃø ȸéÀ» ²Ù¹Ì·Á¸é ÀÌ ÆÄÀÏÀ» ¼öÁ¤ÇÕ´Ï´Ù.
$table_width = 1000;
?>
<!-- »ó´Ü ·Î°í ¹× ¹öư ¹× Ç÷¡½¬ À̹ÌÁö ½ÃÀÛ -->
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="36">
<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0" background="http://kimgeun.mireene.com/html/images/main_img.jpg">
<? if (!$member[mb_id]) { ?>
<!-- ·Î±×ÀÎ ÀÌÀü -->
<tr>
<td align="center" style="padding-left:631px;padding-top:10px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><img src="http://kimgeun.mireene.com/html/images/login_img.gif" width="43" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
</tr>
<? } else { ?>
<!-- ·Î±×ÀÎ ÀÌÈÄ -->
<tr>
<td align="center" style="padding-left:631px;padding-top:6px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <a href="<?=$g4[bbs_path]?>/logout.php"><img src="http://kimgeun.mireene.com/html/images/logout_img.gif" width="53" height="16" border="0"></a> <img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12"> <img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
</tr>
<? } ?>
</table>
</td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1000" height="378" hspace="0" vspace="0">
<param name="movie" value="http://kimgeun.mireene.com/html/images/main_image.swf">
<param name="quality" value="high">
<embed src="http://kimgeun.mireene.com/html/images/main_image.swf" width="1000" height="378" hspace="0" vspace="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
</tr>
</table>
<!-- »ó´Ü ·Î°í ¹× ¹öư ¹öư ¹× Ç÷¡½¬ À̹ÌÁö ³¡ -->
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
body { background-color : #FEF0FF }
</style>
<table width='100%' cellpadding=0 cellspacing=0>
<tr>
<td width=43></td>
<td width=279 valign=top>
<div style='height:12px;'></div>
<table width="227" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:5px;"> <?=outlogin("basic"); // ¿ÜºÎ ·Î±×ÀÎ ?></td>
</tr>
</table>
<div style='height:10px;'></div>
<?
switch ($gr_id) {
case(community):
include_once("../../include/community.php");
break;
case(edu):
include_once("../../include/m_level.php");
break;
}
?>
</td>
<td width=683 valign=top>
---------------------------------------------------------------------------------------------------------------------------------
일반 페이지에서는 아웃로그인 밑에다 왼편 메뉴를 넣는 방법을 질문과 답변의 도움으로 해 보았지만,
너무 잘 되지 않았습니다.
이렇게요.....
우선 English 소개 페이지(http://kimgeun.mireene.com/engcon/intro.php)-------
----------------------------- intro.php ------------------------------------------
<?
include_once("./_common.php");
$g4[title] = " English Conversation '' ";
include_once("./_head.php");
$table_width = 770;
?>
<!-- 메인화면 최신글 시작 -->
<table width="<?=$table_width?>" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td colspan="2" valign="top"><div style="padding-left:12px;padding-top:14px;"><? include "../include/eintro.php" ?></div><br>
<br>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="line-height:22px;font-size:12px;">
내 용
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
----------------------------------------------- intro.php 끝 -----------------------------------------------------------
그런데, 밑의 소스는 위의 소스 내에서 어느 부분에다 삽입을 해야 하나요....???
<?
include_once("./_common.php");
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_head.php");
?>
내용
<?
include_once("./_tail.php");
?>
정말로 제가 작업하기 어렵워요... 쉬운 것 같지만, 어렵워요...
도움을 주시면 감사하겠습니다.
그리고 첫 페이지(즉, index 페이지)에서는 아웃로그인 부분 밑에 전혀 메뉴가 없게 하고 싶습니다.
댓글 전체
----------------------------- intro.php ------------------------------------------
<?
include_once("./_common.php");
$g4[title] = " English Conversation '' ";
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_head.php");
$table_width = 770;
?>
<!-- 메인화면 최신글 시작 -->
<table width="<?=$table_width?>" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td colspan="2" valign="top"><div style="padding-left:12px;padding-top:14px;"><? include "../include/eintro.php" ?></div><br>
<br>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="line-height:22px;font-size:12px;">
내 용
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
----------------------------------------------- intro.php 끝 -----------------------------------------------------------
위와 같이 바꿔주시면 된다는 뜻 입니다.
($gr_id 를 빼먹으셨네요)
<?
include_once("./_common.php");
$g4[title] = " English Conversation '' ";
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_head.php");
$table_width = 770;
?>
<!-- 메인화면 최신글 시작 -->
<table width="<?=$table_width?>" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td colspan="2" valign="top"><div style="padding-left:12px;padding-top:14px;"><? include "../include/eintro.php" ?></div><br>
<br>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="line-height:22px;font-size:12px;">
내 용
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
----------------------------------------------- intro.php 끝 -----------------------------------------------------------
위와 같이 바꿔주시면 된다는 뜻 입니다.
($gr_id 를 빼먹으셨네요)