질문??-메뉴 관련 정보
질문??-메뉴 관련- kennethkim 홈페이지 자기소개 아이디로 검색 회원게시물
- 1,545
관련링크
http://kimgeun.mireene.com
265회 연결
본문
1,616 번호에 답변 주신것 감사합니다.
하지만 회사소개 페이지 말고도 다른 일반페이지에서 이 방법이 동일하게 적용되나요?
혹시 하나의 대메뉴 뿐만 아니라, 다른 것도(메뉴:일반페이지) 가능한가요???
혹, 다른 방법이 있는 지요??
근데, 일반페이지에서도 자기가 원하는 왼편메뉴만을 불러올 수 있는 방법이 있습니까?
--- 게시판 그룹아이디를 이용했는 메뉴 처리법 ---(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>
하지만 회사소개 페이지 말고도 다른 일반페이지에서 이 방법이 동일하게 적용되나요?
혹시 하나의 대메뉴 뿐만 아니라, 다른 것도(메뉴:일반페이지) 가능한가요???
혹, 다른 방법이 있는 지요??
근데, 일반페이지에서도 자기가 원하는 왼편메뉴만을 불러올 수 있는 방법이 있습니까?
--- 게시판 그룹아이디를 이용했는 메뉴 처리법 ---(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>
댓글 전체
<?
include_once("./_common.php");
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_head.php");
?>
내용
<?
include_once("./_tail.php");
?>
일반 페이지는 위와같은식으로 하시면 됩니다.
head위에 그룹변수를 직접 입력시켜 주는것이죠.
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_common.php");
$gr_id = "etc"; // 이 파일의 그룹은?
include_once("./_head.php");
?>
내용
<?
include_once("./_tail.php");
?>
일반 페이지는 위와같은식으로 하시면 됩니다.
head위에 그룹변수를 직접 입력시켜 주는것이죠.
$gr_id = "etc"; // 이 파일의 그룹은?