급하게 질문하나 드립니다. 오늘 안으로 마무리 해야하는데... 정보
급하게 질문하나 드립니다. 오늘 안으로 마무리 해야하는데...관련링크
http://의광.com/
61회 연결
http://pecomkorea.com/
64회 연결
본문
왼쪽 자동메뉴인데 메뉴상의 주요업무와 처리공정그룹은 각각 클릭시 왼쪽의 서브메뉴 위치가 서로 바뀌어서 출력이 됩니다. 위가 1번게시판 아래가 2번게시판이 되어야하는데 바뀌어서 출력이됩니다.
링크보시면 이해가 빠르실겁니다. 왼쪽메뉴 소스는 아래와 같습니다.
<? if($gr_id){ ?>
<!-- Nav_V -->
<? $sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능 ?>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="220">
<?
$red_bullet="<img src='$g4[path]/gnusr/images/bullets/circle03_orange.gif' width='6' height='10' align='middle'>";
$blue_bullet="<img src='$g4[path]/include/leftmenu/img/icl.gif' border='0'>";
$blue_bullet1="<img src='$g4[path]/include/leftmenu/img/icl1.gif' border='0'>";
$line_shadow = "<td height=1 background='$g4[path]/include/leftmenu/img/dot_line.gif'></td></tr>";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
?>
<tr><td colspan="3" width="220" height="87" align='center' background='<?=$g4[path]?>/include/leftmenu/img/leftmenu_01.gif'><b><font size=3 color=ffffff><?=$row[gr_subject]?></font></b></td></tr>
<tr>
<td width="16" background="<?=$g4['path']?>/include/leftmenu/img/leftmenu_02.gif">
</td>
<td width="187" align="center">
<!-- Nav_V -->
<table width='187' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0 background="<?=$g4[path]?>/include/leftmenu/img/leftmenu_03.gif">
<?
//$result = sql_query($sql);
//while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
//echo "<tr><td background='$g4[path]/include/leftmenu/img/leftmenu_01.gif' height='87' align='center' >";
//echo "<br><b><font size=3 color=ffffff>$row[gr_subject]</font></b></td></tr>";
//echo $line_shadow;
// 게시판 목록보기 권한설정순 정렬
//$sql2 = " SELECT bo_subject, bo_table from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') order by bo_subject ";//참고하세요.
$sql2 = " select bo_subject, bo_table from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') and bo_use_search = '1' order by bo_order_search";
//제외보드설정
//$sql2 = " select * from $g4[board_table]
//where gr_id = '$row[gr_id]'
//and bo_table <> '제외보드1'
//and bo_table <> '제외보드2'
//order by bo_order_search ";
$result2 = sql_query($sql2);
$bar = "";
while ($row2=mysql_fetch_array($result2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row3[cnt] > 0)
$new = " <img src='$g4[path]/include/leftmenu/img/icon_new.gif' border='0'>"; //new 아이콘
else
$new = ""; //new 아이콘 없음
echo "<tr><td width=\"100%\" height='25' align='left' class='left_menu_btn'>";
//g6man님 해당게시판 볼드체로
if ($row2[bo_table] == $bo_table)
echo " $blue_bullet1 <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='list_menu menu_on' onfocus='this.blur()'><font color=2d0102><b>$row2[bo_subject]<b></font></a> $new";
//echo "<a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='list_menu menu_on' onfocus='this.blur()'>$row2[bo_subject]</a> $blue_bullet1 ";
else
echo " $blue_bullet <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='list_menu' onfocus='this.blur()'>$row2[bo_subject]</a> "; //네모 뷸릿 + 테이블명 + new 아이콘
echo "</td></tr>"; //칸 닫기
echo $line_shadow;//경계선
}
}//}
echo "</td></tr>";
?>
</table>
</td>
</tr>
</table>
<!--네비게이션 메뉴 끝-->
</td>
<td width="17" background="<?=$g4['path']?>/include/leftmenu/img/leftmenu_04.gif">
</td>
</tr>
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/leftmenu_05.gif" width="220" height="17" border="0"></p>
</td>
</tr>
</table>
<? } ?>
링크보시면 이해가 빠르실겁니다. 왼쪽메뉴 소스는 아래와 같습니다.
<? if($gr_id){ ?>
<!-- Nav_V -->
<? $sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능 ?>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="220">
<?
$red_bullet="<img src='$g4[path]/gnusr/images/bullets/circle03_orange.gif' width='6' height='10' align='middle'>";
$blue_bullet="<img src='$g4[path]/include/leftmenu/img/icl.gif' border='0'>";
$blue_bullet1="<img src='$g4[path]/include/leftmenu/img/icl1.gif' border='0'>";
$line_shadow = "<td height=1 background='$g4[path]/include/leftmenu/img/dot_line.gif'></td></tr>";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
?>
<tr><td colspan="3" width="220" height="87" align='center' background='<?=$g4[path]?>/include/leftmenu/img/leftmenu_01.gif'><b><font size=3 color=ffffff><?=$row[gr_subject]?></font></b></td></tr>
<tr>
<td width="16" background="<?=$g4['path']?>/include/leftmenu/img/leftmenu_02.gif">
</td>
<td width="187" align="center">
<!-- Nav_V -->
<table width='187' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0 background="<?=$g4[path]?>/include/leftmenu/img/leftmenu_03.gif">
<?
//$result = sql_query($sql);
//while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
//echo "<tr><td background='$g4[path]/include/leftmenu/img/leftmenu_01.gif' height='87' align='center' >";
//echo "<br><b><font size=3 color=ffffff>$row[gr_subject]</font></b></td></tr>";
//echo $line_shadow;
// 게시판 목록보기 권한설정순 정렬
//$sql2 = " SELECT bo_subject, bo_table from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') order by bo_subject ";//참고하세요.
$sql2 = " select bo_subject, bo_table from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') and bo_use_search = '1' order by bo_order_search";
//제외보드설정
//$sql2 = " select * from $g4[board_table]
//where gr_id = '$row[gr_id]'
//and bo_table <> '제외보드1'
//and bo_table <> '제외보드2'
//order by bo_order_search ";
$result2 = sql_query($sql2);
$bar = "";
while ($row2=mysql_fetch_array($result2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row3[cnt] > 0)
$new = " <img src='$g4[path]/include/leftmenu/img/icon_new.gif' border='0'>"; //new 아이콘
else
$new = ""; //new 아이콘 없음
echo "<tr><td width=\"100%\" height='25' align='left' class='left_menu_btn'>";
//g6man님 해당게시판 볼드체로
if ($row2[bo_table] == $bo_table)
echo " $blue_bullet1 <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='list_menu menu_on' onfocus='this.blur()'><font color=2d0102><b>$row2[bo_subject]<b></font></a> $new";
//echo "<a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='list_menu menu_on' onfocus='this.blur()'>$row2[bo_subject]</a> $blue_bullet1 ";
else
echo " $blue_bullet <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='list_menu' onfocus='this.blur()'>$row2[bo_subject]</a> "; //네모 뷸릿 + 테이블명 + new 아이콘
echo "</td></tr>"; //칸 닫기
echo $line_shadow;//경계선
}
}//}
echo "</td></tr>";
?>
</table>
</td>
</tr>
</table>
<!--네비게이션 메뉴 끝-->
</td>
<td width="17" background="<?=$g4['path']?>/include/leftmenu/img/leftmenu_04.gif">
</td>
</tr>
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/leftmenu_05.gif" width="220" height="17" border="0"></p>
</td>
</tr>
</table>
<? } ?>
댓글 전체