g4용 메뉴을 g5로 수정하였는데. 에러. 고수님들 한수 지도부탁 채택완료
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : 제가 만든것은 아님. 어떤분이 만들어 놓은 스킨임을 밝혀둠..
<?
$home_ex_main = "'help','company'"; // 제외그룹 gr_id 'gr_01','gr_02','gr_03','gr_04' 식으로 추가하시면됩니다
$home_ex_board = "'0305'"; // 제외게시판 bo_table
$m_width="100%";
$t_width="99%";
?>
<script type="text/javascript" src="<?=$g5[path]?>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$("ul.topnav_m li a").mouseover(function() {
$(this).parent().find("ul.subnav").show();
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").hide();
});
});
$(".mallMenuView").click(function(){
$(".mallMenu").show();
return false;
});
$(".mallMenuClose").click(function(){
$(".mallMenu").css("display","none");
return false;
});
});
</script>
<style type="text/css">
.m_main{width:<?=$m_width?>; z-index: 9999;}
.topmenuheader {margin-bottom:10px; padding:0;}
.topmenuheader * {margin:0; padding:0;}
.topmenuheader h1 {padding:5px 0; text-align:center;}
.topmenuheader h1 * {border:0;}
.uMenu {padding:4px 0; text-align:right; font-size:11px; background:#f9f9f9; border-bottom:1px solid #eee;}
.uMenu * {text-decoration:none; color:#999;}
.uMenu li {display:inline; background:url('<?=$g5[path]?>/zang/includede/xtx_menu/xtx_topmenu2_img/bu_uMenu.gif') no-repeat left center;; padding-left:5px; padding-right:6px; padding-top:0; padding-bottom:0}
.menunb {position:relative; z-index:9999;}
/* 전체메뉴 설정 */
.menunb .mallMenuView {position:absolute; top:13px; right:15px; clear:both; font-family:tahoma; font-size:12px; font-style:normal;font-size:15px; font-weight:bold; color:#fff; text-decoration:none; padding-left:10px; background:url('<?=$g5[path]?>/zang/includede/xtx_menu/xtx_topmenu2_img/plus.gif') no-repeat left center;}
/* 전체메뉴의 sub 메뉴설정 */
.menunb .mallMenu {display:none; position:absolute; text-align:left; top:45px; left:0; width:615px; *width:613px; padding:15px; font-size:12px; background:#f9f9f9; z-index:99999;}
.menunb .mallMenu * {text-decoration:none; border:0;}
.menunb .mallMenu dl {float:left; width:140px; margin:0 5px;}
.menunb .mallMenu dl dt {margin-bottom:5px; padding:0 0 5px 0; border-bottom:1px solid #ddd; font-weight:bold;}
.menunb .mallMenu dl dt * {color:#000;}
.menunb .mallMenu dl dd {padding:5px 0; font-size:12px;}
.menunb .mallMenu dl dd * {color:#777;}
.menunb .mallMenu a.mallMenuClose {position:absolute; right:10px; top:10px; padding:3px; border:1px solid #888;}
.menunb .clear {clear:both;}
/* 메인메뉴 설정 */
ul.topnav_m {position:relative; height:20px; padding:0px 0px 30px 10px; list-style:none; margin-top:10px;}
ul.topnav_m li { position:relative; float:left; margin:0; padding:5px 40px 0 0; font:bold 14px Verdana;}
ul.topnav_m li * {color:#fff !important;}
ul.topnav_m li a {padding:10px 5px; color:#fff; display:block; text-decoration:none; float:left;}
ul.topnav_m li.active a {background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/bg_blackHover.png') no-repeat center top;}
/* 메뉴 아래 화살표 설정 */
ul.topnav_m li span {width:17px; height:33px; float:left;}
/* 메인메뉴의 sub설정 */
ul.topnav_m li ul.subnav {list-style:none; position:absolute; left:0; top:40px; margin:0; padding:4px; display:none; float:left; width:170px; z-index:9999; -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px; -webkit-border-bottom-left-radius:5px; -webkit-border-bottom-right-radius:5px;}
ul.topnav_m li ul.subnav li {margin:0; padding:0; clear:both; width:170px; font-size:11px;font-weight:normal;}
ul.topnav_m li ul.subnav li a {float:left; width:165px; *width:165px; padding-left:0px;}
/* 색상 설정 */
.menunb.black ul.topnav_m {background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/') repeat-x;}
.menunb.black ul.topnav_m li a:hover{background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/bg_blackHover.png') no-repeat center top;}
.menunb.black ul.topnav_m li span {background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/arrowBlack.gif') no-repeat center;}
.menunb.black ul.topnav_m li ul.subnav {background:#c4c4c4; border:1px solid #c111;}
.menunb.black ul.topnav_m li ul.subnav li {border-top:1px solid #252525; border-bottom:1px solid #444;}
.menunb.black ul.topnav_m li ul.subnav li a {background:#333 url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/arrowSub.gif') no-repeat 10px center;}
.menunb.black ul.topnav_m li ul.subnav li a:hover {background:#222 url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/arrowSub.gif') no-repeat 10px center;}
.menunb.black .mallMenu {border:5px solid #000;}
</style>
<div class="m_main">
<div class="topmenuheader">
<div class="menunb black">
<ul class="topnav_m">
<?
$sql = "select gr_id, gr_subject, gr_1 from $g5[group_table] where gr_id not in ($home_ex_main) order by gr_1";
$rst1 = sql_query($sql);
for ($i=0; $row=sql_fetch_array($rst1); $i++){
$sqlp2 = "select * from $g5[board_table] where gr_id = '$row[gr_id]' and bo_table not in ($home_ex_board) order by bo_order_search asc";
$qryp2 = sql_query($sqlp2);
for ($j=0; $rowp2=sql_fetch_array($qryp2); $j++) {
$tmp_write_table = $g5['write_prefix'] . $rowp2[bo_table];
$new_datetime = date("Y-m-d H:i:s", $g5[server_time] - (60*60)); // 한시간
$new_datetime = date("Y-m-d H:i:s", $g5[server_time] - (60*60*24)); // 24시간
$tmp_row2 = " select count(wr_id) as cnt from $tmp_write_table where wr_is_comment > -1 and wr_datetime > '$new_datetime'";
$tmp_row = sql_fetch($tmp_row2);
$trdwos = array ("0" => "");
$dwos=strtr($tmp_row[cnt], $trdwos);
$n_img='<img style="position: absolute; top:-10px; display:block; left:110px; z-index:99999;" src="'.$g5[path].'/xtx_menu/xtx_topmenu2_img/hot2.gif"/>';
if($dwos > 0){echo $n_img;}
}
?>
<li class="<? if($row[gr_id]==$gr_id){echo 'active';}?>"><a href="<?=$g5[bbs_path]?>/group.php?gr_id=<?=$row[gr_id]?>" class="headLink"><?=$row[gr_subject]?></a><span></span>
<ul class="subnav">
<?
$sql2 = "select bo_table, bo_subject, bo_category_list from $g5[board_table] where gr_id = '$row[gr_id]' and bo_table not in ($home_ex_board) order by bo_order_search ";
$rst2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($rst2); $j++){
?>
<? if($row2['bo_table']==com){ ?>
<li><a href="<?=$g5[bbs_path]?>/group_sub.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></li>
<?}else if($row2['bo_table']==incin){?>
<li><a href="<?=$g5[bbs_path]?>/group_sub.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></li>
<?}else{?>
<li><a href="<?=$g5[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></li>
<?}?>
<?}?>
</ul>
</li>
<?}?>
</ul>
<a href="#" class="mallMenuView"> 전체메뉴</a>
<div class="mallMenu">
<div class="clear"></div>
<?
$sql7 = "select a.gr_id, a.gr_subject, a.gr_use_access, b.mb_id from $g5[group_table] as a left join $g5[group_member_table] as b on a.gr_id = b.gr_id where (b.mb_id = '$member[mb_id]' and a.gr_use_access = '1' ) or a.gr_use_access = '0' order by a.gr_1";
$sql7 = "select gr_id, gr_subject, gr_1 from $g5[group_table] where gr_id not in ($home_ex_main) order by gr_1";
$rst7 = sql_query($sql7);
for ($i=0; $row=sql_fetch_array($rst7); $i++){
?>
<dl>
<dt>⊙ <a href="<?=$g5[bbs_path]?>/group.php?gr_id=<?=$row[gr_id]?>"><?=$row[gr_subject]?></a></dt>
<?
$sql8 = "select bo_table, bo_subject, bo_category_list from $g5[board_table] where gr_id = '$row[gr_id]' and bo_table not in ($home_ex_board) order by bo_order_search ";
$rst8 = sql_query($sql8);
for ($j=0; $row2=sql_fetch_array($rst8); $j++){
?>
<dd><img src="<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/icon_0<? $ran_s=mt_rand(1,6);echo "$ran_s";?>.gif" width="11" height="11" alt=""> <a href="<?=$g5[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></dd>
<?}?>
</dl>
<?}?>
<dl></dl>
<a href="#" class="mallMenuClose">
<img src="<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/btn_close.gif" alt="닫기"></a> </div>
</div>
</div>
</div>
오류 주소 : 제가 만든것은 아님. 어떤분이 만들어 놓은 스킨임을 밝혀둠..
<?
$home_ex_main = "'help','company'"; // 제외그룹 gr_id 'gr_01','gr_02','gr_03','gr_04' 식으로 추가하시면됩니다
$home_ex_board = "'0305'"; // 제외게시판 bo_table
$m_width="100%";
$t_width="99%";
?>
<script type="text/javascript" src="<?=$g5[path]?>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$("ul.topnav_m li a").mouseover(function() {
$(this).parent().find("ul.subnav").show();
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").hide();
});
});
$(".mallMenuView").click(function(){
$(".mallMenu").show();
return false;
});
$(".mallMenuClose").click(function(){
$(".mallMenu").css("display","none");
return false;
});
});
</script>
<style type="text/css">
.m_main{width:<?=$m_width?>; z-index: 9999;}
.topmenuheader {margin-bottom:10px; padding:0;}
.topmenuheader * {margin:0; padding:0;}
.topmenuheader h1 {padding:5px 0; text-align:center;}
.topmenuheader h1 * {border:0;}
.uMenu {padding:4px 0; text-align:right; font-size:11px; background:#f9f9f9; border-bottom:1px solid #eee;}
.uMenu * {text-decoration:none; color:#999;}
.uMenu li {display:inline; background:url('<?=$g5[path]?>/zang/includede/xtx_menu/xtx_topmenu2_img/bu_uMenu.gif') no-repeat left center;; padding-left:5px; padding-right:6px; padding-top:0; padding-bottom:0}
.menunb {position:relative; z-index:9999;}
/* 전체메뉴 설정 */
.menunb .mallMenuView {position:absolute; top:13px; right:15px; clear:both; font-family:tahoma; font-size:12px; font-style:normal;font-size:15px; font-weight:bold; color:#fff; text-decoration:none; padding-left:10px; background:url('<?=$g5[path]?>/zang/includede/xtx_menu/xtx_topmenu2_img/plus.gif') no-repeat left center;}
/* 전체메뉴의 sub 메뉴설정 */
.menunb .mallMenu {display:none; position:absolute; text-align:left; top:45px; left:0; width:615px; *width:613px; padding:15px; font-size:12px; background:#f9f9f9; z-index:99999;}
.menunb .mallMenu * {text-decoration:none; border:0;}
.menunb .mallMenu dl {float:left; width:140px; margin:0 5px;}
.menunb .mallMenu dl dt {margin-bottom:5px; padding:0 0 5px 0; border-bottom:1px solid #ddd; font-weight:bold;}
.menunb .mallMenu dl dt * {color:#000;}
.menunb .mallMenu dl dd {padding:5px 0; font-size:12px;}
.menunb .mallMenu dl dd * {color:#777;}
.menunb .mallMenu a.mallMenuClose {position:absolute; right:10px; top:10px; padding:3px; border:1px solid #888;}
.menunb .clear {clear:both;}
/* 메인메뉴 설정 */
ul.topnav_m {position:relative; height:20px; padding:0px 0px 30px 10px; list-style:none; margin-top:10px;}
ul.topnav_m li { position:relative; float:left; margin:0; padding:5px 40px 0 0; font:bold 14px Verdana;}
ul.topnav_m li * {color:#fff !important;}
ul.topnav_m li a {padding:10px 5px; color:#fff; display:block; text-decoration:none; float:left;}
ul.topnav_m li.active a {background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/bg_blackHover.png') no-repeat center top;}
/* 메뉴 아래 화살표 설정 */
ul.topnav_m li span {width:17px; height:33px; float:left;}
/* 메인메뉴의 sub설정 */
ul.topnav_m li ul.subnav {list-style:none; position:absolute; left:0; top:40px; margin:0; padding:4px; display:none; float:left; width:170px; z-index:9999; -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px; -webkit-border-bottom-left-radius:5px; -webkit-border-bottom-right-radius:5px;}
ul.topnav_m li ul.subnav li {margin:0; padding:0; clear:both; width:170px; font-size:11px;font-weight:normal;}
ul.topnav_m li ul.subnav li a {float:left; width:165px; *width:165px; padding-left:0px;}
/* 색상 설정 */
.menunb.black ul.topnav_m {background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/') repeat-x;}
.menunb.black ul.topnav_m li a:hover{background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/bg_blackHover.png') no-repeat center top;}
.menunb.black ul.topnav_m li span {background:url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/arrowBlack.gif') no-repeat center;}
.menunb.black ul.topnav_m li ul.subnav {background:#c4c4c4; border:1px solid #c111;}
.menunb.black ul.topnav_m li ul.subnav li {border-top:1px solid #252525; border-bottom:1px solid #444;}
.menunb.black ul.topnav_m li ul.subnav li a {background:#333 url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/arrowSub.gif') no-repeat 10px center;}
.menunb.black ul.topnav_m li ul.subnav li a:hover {background:#222 url('<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/arrowSub.gif') no-repeat 10px center;}
.menunb.black .mallMenu {border:5px solid #000;}
</style>
<div class="m_main">
<div class="topmenuheader">
<div class="menunb black">
<ul class="topnav_m">
<?
$sql = "select gr_id, gr_subject, gr_1 from $g5[group_table] where gr_id not in ($home_ex_main) order by gr_1";
$rst1 = sql_query($sql);
for ($i=0; $row=sql_fetch_array($rst1); $i++){
$sqlp2 = "select * from $g5[board_table] where gr_id = '$row[gr_id]' and bo_table not in ($home_ex_board) order by bo_order_search asc";
$qryp2 = sql_query($sqlp2);
for ($j=0; $rowp2=sql_fetch_array($qryp2); $j++) {
$tmp_write_table = $g5['write_prefix'] . $rowp2[bo_table];
$new_datetime = date("Y-m-d H:i:s", $g5[server_time] - (60*60)); // 한시간
$new_datetime = date("Y-m-d H:i:s", $g5[server_time] - (60*60*24)); // 24시간
$tmp_row2 = " select count(wr_id) as cnt from $tmp_write_table where wr_is_comment > -1 and wr_datetime > '$new_datetime'";
$tmp_row = sql_fetch($tmp_row2);
$trdwos = array ("0" => "");
$dwos=strtr($tmp_row[cnt], $trdwos);
$n_img='<img style="position: absolute; top:-10px; display:block; left:110px; z-index:99999;" src="'.$g5[path].'/xtx_menu/xtx_topmenu2_img/hot2.gif"/>';
if($dwos > 0){echo $n_img;}
}
?>
<li class="<? if($row[gr_id]==$gr_id){echo 'active';}?>"><a href="<?=$g5[bbs_path]?>/group.php?gr_id=<?=$row[gr_id]?>" class="headLink"><?=$row[gr_subject]?></a><span></span>
<ul class="subnav">
<?
$sql2 = "select bo_table, bo_subject, bo_category_list from $g5[board_table] where gr_id = '$row[gr_id]' and bo_table not in ($home_ex_board) order by bo_order_search ";
$rst2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($rst2); $j++){
?>
<? if($row2['bo_table']==com){ ?>
<li><a href="<?=$g5[bbs_path]?>/group_sub.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></li>
<?}else if($row2['bo_table']==incin){?>
<li><a href="<?=$g5[bbs_path]?>/group_sub.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></li>
<?}else{?>
<li><a href="<?=$g5[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></li>
<?}?>
<?}?>
</ul>
</li>
<?}?>
</ul>
<a href="#" class="mallMenuView"> 전체메뉴</a>
<div class="mallMenu">
<div class="clear"></div>
<?
$sql7 = "select a.gr_id, a.gr_subject, a.gr_use_access, b.mb_id from $g5[group_table] as a left join $g5[group_member_table] as b on a.gr_id = b.gr_id where (b.mb_id = '$member[mb_id]' and a.gr_use_access = '1' ) or a.gr_use_access = '0' order by a.gr_1";
$sql7 = "select gr_id, gr_subject, gr_1 from $g5[group_table] where gr_id not in ($home_ex_main) order by gr_1";
$rst7 = sql_query($sql7);
for ($i=0; $row=sql_fetch_array($rst7); $i++){
?>
<dl>
<dt>⊙ <a href="<?=$g5[bbs_path]?>/group.php?gr_id=<?=$row[gr_id]?>"><?=$row[gr_subject]?></a></dt>
<?
$sql8 = "select bo_table, bo_subject, bo_category_list from $g5[board_table] where gr_id = '$row[gr_id]' and bo_table not in ($home_ex_board) order by bo_order_search ";
$rst8 = sql_query($sql8);
for ($j=0; $row2=sql_fetch_array($rst8); $j++){
?>
<dd><img src="<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/icon_0<? $ran_s=mt_rand(1,6);echo "$ran_s";?>.gif" width="11" height="11" alt=""> <a href="<?=$g5[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></dd>
<?}?>
</dl>
<?}?>
<dl></dl>
<a href="#" class="mallMenuClose">
<img src="<?=$g5[path]?>/xtx_menu/xtx_topmenu2_img/btn_close.gif" alt="닫기"></a> </div>
</div>
</div>
</div>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
12년 전
$g5[server_time] 이부분을 G5_SERVER_TIME 이것으로 바꿔보세요.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
채택
답변대기
답변대기
답변대기
답변대기
채택
채택
답변대기
답변대기
답변대기
채택