왼쪽메뉴 링크를 다르게 적용하고 싶은데 도와 주세요! 정보
왼쪽메뉴 링크를 다르게 적용하고 싶은데 도와 주세요!본문
안녕하세요! 회원님들께 도움 요청합니다.
외면하지 마세요! 상처가 오래 갑니다.
다름이 아니라 왼쪽메뉴 적용은 잘 되는데 그룹으로 적용되어 있어서 그러는지...
한가지 적용하기가 쉽지가 않네요.
이럴때는 어떻게 적용해야 하나요.
그룹이름을 회사소개라고 했습니다. 그리고 sub페이지 이름을 비전라고 했습니다.
이때 sub페이지 비전만을 다른 곳으로 링크를 걸고 싶은데 이럴때는 어떻게 적용해야 하나요.
예를들어) 비전을 이런식으로 링크를 걸고 싶은데 http://www.daum.net
회원님들께 다시 한번 부탁드립니다. 꼭좀 도와 주세요!
그럼 모두모두 행복하세요!!!
왼쪽메뉴 적용은 이렇게 했습니다.
<? if($gr_id){ ?>
<!-- Nav_V -->
<table width="100" cellpadding=0 cellspacing=0><tr><td height=4 align="center" valign=top></td></tr></table>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_left.gif">
</td>
<td width="180" align="center">
<!-- Nav_V -->
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0>
<?
$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>";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
// morning님 전체그룹에서 제외그룹설정
/*
$sql = " select * from $g4[group_table] where gr_id not in ('test', 'test2') order by gr_id ";
$sql = " select * from $g4[group_table]
where gr_id <> 'photo'
and gr_id <> 'common'
and gr_id <> '제외그룹3'
order by gr_id ";
*/
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
echo "<tr><td background='$g4[path]/include/leftmenu/img/lbg.gif' height='60' align='center'>";
echo "<img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'> <b><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]' onfocus='this.blur()'>$row[gr_subject]</a></b> <img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'></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=#9fbb08><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="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_right.gif">
</td>
</tr>
<tr>
<td width="190" height="5" colspan="3">
<img src="<?=$g4['path']?>/include/leftmenu/img/outline_bottom.gif" width="190" height="5" border="0">
</td>
</tr>
</table>
<? } ?>
외면하지 마세요! 상처가 오래 갑니다.
다름이 아니라 왼쪽메뉴 적용은 잘 되는데 그룹으로 적용되어 있어서 그러는지...
한가지 적용하기가 쉽지가 않네요.
이럴때는 어떻게 적용해야 하나요.
그룹이름을 회사소개라고 했습니다. 그리고 sub페이지 이름을 비전라고 했습니다.
이때 sub페이지 비전만을 다른 곳으로 링크를 걸고 싶은데 이럴때는 어떻게 적용해야 하나요.
예를들어) 비전을 이런식으로 링크를 걸고 싶은데 http://www.daum.net
회원님들께 다시 한번 부탁드립니다. 꼭좀 도와 주세요!
그럼 모두모두 행복하세요!!!
왼쪽메뉴 적용은 이렇게 했습니다.
<? if($gr_id){ ?>
<!-- Nav_V -->
<table width="100" cellpadding=0 cellspacing=0><tr><td height=4 align="center" valign=top></td></tr></table>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_left.gif">
</td>
<td width="180" align="center">
<!-- Nav_V -->
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0>
<?
$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>";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
// morning님 전체그룹에서 제외그룹설정
/*
$sql = " select * from $g4[group_table] where gr_id not in ('test', 'test2') order by gr_id ";
$sql = " select * from $g4[group_table]
where gr_id <> 'photo'
and gr_id <> 'common'
and gr_id <> '제외그룹3'
order by gr_id ";
*/
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
echo "<tr><td background='$g4[path]/include/leftmenu/img/lbg.gif' height='60' align='center'>";
echo "<img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'> <b><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]' onfocus='this.blur()'>$row[gr_subject]</a></b> <img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'></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=#9fbb08><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="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_right.gif">
</td>
</tr>
<tr>
<td width="190" height="5" colspan="3">
<img src="<?=$g4['path']?>/include/leftmenu/img/outline_bottom.gif" width="190" height="5" border="0">
</td>
</tr>
</table>
<? } ?>
댓글 전체
<? if($gr_id){ ?>
<!-- Nav_V -->
<table width="100" cellpadding=0 cellspacing=0><tr><td height=4 align="center" valign=top></td></tr></table>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_left.gif">
</td>
<td width="180" align="center">
<!-- Nav_V -->
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0>
<?
$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>";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
// morning님 전체그룹에서 제외그룹설정
/*
$sql = " select * from $g4[group_table] where gr_id not in ('test', 'test2') order by gr_id ";
$sql = " select * from $g4[group_table]
where gr_id <> 'photo'
and gr_id <> 'common'
and gr_id <> '제외그룹3'
order by gr_id ";
*/
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
echo "<tr><td background='$g4[path]/include/leftmenu/img/lbg.gif' height='60' align='center'>";
echo "<img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'> <b><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]' onfocus='this.blur()'>$row[gr_subject]</a></b> <img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'></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,bo_10 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)) {
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
else{
$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=#9fbb08><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>
<!--네비게이션 메뉴 끝-->
<!-- Nav_V -->
<table width="100" cellpadding=0 cellspacing=0><tr><td height=4 align="center" valign=top></td></tr></table>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_left.gif">
</td>
<td width="180" align="center">
<!-- Nav_V -->
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0>
<?
$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>";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
// morning님 전체그룹에서 제외그룹설정
/*
$sql = " select * from $g4[group_table] where gr_id not in ('test', 'test2') order by gr_id ";
$sql = " select * from $g4[group_table]
where gr_id <> 'photo'
and gr_id <> 'common'
and gr_id <> '제외그룹3'
order by gr_id ";
*/
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
echo "<tr><td background='$g4[path]/include/leftmenu/img/lbg.gif' height='60' align='center'>";
echo "<img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'> <b><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]' onfocus='this.blur()'>$row[gr_subject]</a></b> <img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'></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,bo_10 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)) {
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
else{
$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=#9fbb08><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>
<!--네비게이션 메뉴 끝-->
이부분을 참고하시면 될듯 합니다.
---------------------------------------------------------
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
** 여분필드 bo_10 에 해당 주소를 넣어보세요.
---------------------------------------------------------
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
** 여분필드 bo_10 에 해당 주소를 넣어보세요.
먼저 이렇게 뮤죤님께서 답변해 주셔서 정말 정말 깊은 감사드립니다.
이것 저것 다 찾아보고 적용해 보았는데 적용이 안되었습니다.
아직도 적용이 안되었지만 이렇게 뮤존님께서 답변주신 이상 문제를 해결할 수 있을 것이라는 기대가 됩니다.
정말 어제는 아무도 답변이 없어서 문제를 해결하지 못하는것 아닌가 걱정이 많았는데 아침에 일어나서 다시 한번 확인하고 얼마나 기쁘고 감사가 되든지 감사했습니다.
뮤죤님께서 설명해 주신대로 적용했습니다.
먼저 관리자모드에서 해당 게시판 여분필드 10 설정값에 http://www.daum.net 라고 입력했습니다. 그리고 leftmenu.php 파일 안에 말씀해 주신 부분을 삽입했습니다.
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
제가 이해하기로는 이렇게 적용하면 될것 같은데 http://www.daum.net 으로 링크가 걸리지 않네요.
어디를 잘못했는지 다시한번 설명좀 부탁드릴께요.
예를들어) 그룹 - 노인상담사 게시판 - 교육안내, 전문가 과정, 자격증응시자격, 보수교육, 등록신청 이렇게 구성되어 있을때 등록신청 부분에 링크를 http://www.daum.net으로 연결하고 싶은데 적용이 안됩니다.
궁금한점 - 게시판(sub페이지) 나오는 메뉴 순서는 상관없이 게시판 여분필드 10제목과 여분필드 10값을 적어 주시만 하면 되나요.
그리고 leftmenu.php 파일에 while ($row2=mysql_fetch_array($result2)) {
다음에 말씀해 주신 부분만 적용하면 되나요.
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
다시한번 답변 주셔서 감사드립니다.
죄송하지만 문제를 해결할 수 있도록 꼭좀 도와 주세요!!!
감사합니다.
이것 저것 다 찾아보고 적용해 보았는데 적용이 안되었습니다.
아직도 적용이 안되었지만 이렇게 뮤존님께서 답변주신 이상 문제를 해결할 수 있을 것이라는 기대가 됩니다.
정말 어제는 아무도 답변이 없어서 문제를 해결하지 못하는것 아닌가 걱정이 많았는데 아침에 일어나서 다시 한번 확인하고 얼마나 기쁘고 감사가 되든지 감사했습니다.
뮤죤님께서 설명해 주신대로 적용했습니다.
먼저 관리자모드에서 해당 게시판 여분필드 10 설정값에 http://www.daum.net 라고 입력했습니다. 그리고 leftmenu.php 파일 안에 말씀해 주신 부분을 삽입했습니다.
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
제가 이해하기로는 이렇게 적용하면 될것 같은데 http://www.daum.net 으로 링크가 걸리지 않네요.
어디를 잘못했는지 다시한번 설명좀 부탁드릴께요.
예를들어) 그룹 - 노인상담사 게시판 - 교육안내, 전문가 과정, 자격증응시자격, 보수교육, 등록신청 이렇게 구성되어 있을때 등록신청 부분에 링크를 http://www.daum.net으로 연결하고 싶은데 적용이 안됩니다.
궁금한점 - 게시판(sub페이지) 나오는 메뉴 순서는 상관없이 게시판 여분필드 10제목과 여분필드 10값을 적어 주시만 하면 되나요.
그리고 leftmenu.php 파일에 while ($row2=mysql_fetch_array($result2)) {
다음에 말씀해 주신 부분만 적용하면 되나요.
/////////////////////게시판 여분필드 bo_10 에 http://www.daum.net 이라고 입력 했다면
if($row2[bo_table] == 'sub_1010'){
echo "<tr><td>";
echo "<a href='$row2[bo_10]' target='_self'>";
echo $row2[bo_subject];
echo "</a></td></tr>";
}/////////////////////////////////////////////////////////////////////////////////
다시한번 답변 주셔서 감사드립니다.
죄송하지만 문제를 해결할 수 있도록 꼭좀 도와 주세요!!!
감사합니다.
다른방식으로 했습니다. 게시판 여분필드 bo_1 에 링크 주소를 넣으세요.
-------------------------------전문입니다. -----------------------------
<? if($gr_id){ ?>
<!-- Nav_V -->
<table width="100" cellpadding=0 cellspacing=0><tr><td height=4 align="center" valign=top></td></tr></table>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_left.gif">
</td>
<td width="180" align="center">
<!-- Nav_V -->
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0>
<?
$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>";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
// morning님 전체그룹에서 제외그룹설정
/*
$sql = " select * from $g4[group_table] where gr_id not in ('test', 'test2') order by gr_id ";
$sql = " select * from $g4[group_table]
where gr_id <> 'photo'
and gr_id <> 'common'
and gr_id <> '제외그룹3'
order by gr_id ";
*/
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
echo "<tr><td background='$g4[path]/include/leftmenu/img/lbg.gif' height='60' align='center'>";
echo "<img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'> <b><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]' onfocus='this.blur()'>$row[gr_subject]</a></b> <img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'></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)) {
///////////////////////게시판 여분필드 bo_1 에 http://www.daum.net 이라고 입력 했다면
$t_bd = sql_fetch(" select bo_1 from $g4[board_table] where bo_table = '$row2[bo_table]'");
if($t_bd[bo_1]){
echo "<tr><td width=\"100%\" height='25' align='left' class='left_menu_btn'>";
echo "<a href='$t_bd[bo_1]' target='_self'>";
echo $row2[bo_subject];
echo "</a>";
echo "</td></tr>"; //칸 닫기
echo $line_shadow;//경계선
}/////////////////////////////////////////////////////////////////////////////////
else{
$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=#9fbb08><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>
<!--네비게이션 메뉴 끝-->
<? } ?>
-------------------------------전문입니다. -----------------------------
<? if($gr_id){ ?>
<!-- Nav_V -->
<table width="100" cellpadding=0 cellspacing=0><tr><td height=4 align="center" valign=top></td></tr></table>
<table style="border-collapse:collapse;" align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="5" colspan="3">
<p><img src="<?=$g4['path']?>/include/leftmenu/img/outline_top.gif" width="190" height="5" border="0"></p>
</td>
</tr>
<tr>
<td width="5" background="<?=$g4['path']?>/include/leftmenu/img/outline_left.gif">
</td>
<td width="180" align="center">
<!-- Nav_V -->
<table width='180' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align="center">
<table width='100%' align="center" cellpadding=0 cellspacing=0 border=0>
<?
$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>";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
// morning님 전체그룹에서 제외그룹설정
/*
$sql = " select * from $g4[group_table] where gr_id not in ('test', 'test2') order by gr_id ";
$sql = " select * from $g4[group_table]
where gr_id <> 'photo'
and gr_id <> 'common'
and gr_id <> '제외그룹3'
order by gr_id ";
*/
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
//그룹을 보여준다면
echo "<tr><td background='$g4[path]/include/leftmenu/img/lbg.gif' height='60' align='center'>";
echo "<img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'> <b><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]' onfocus='this.blur()'>$row[gr_subject]</a></b> <img src='$g4[path]/include/leftmenu/img/ticon_menu.gif' border='0'></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)) {
///////////////////////게시판 여분필드 bo_1 에 http://www.daum.net 이라고 입력 했다면
$t_bd = sql_fetch(" select bo_1 from $g4[board_table] where bo_table = '$row2[bo_table]'");
if($t_bd[bo_1]){
echo "<tr><td width=\"100%\" height='25' align='left' class='left_menu_btn'>";
echo "<a href='$t_bd[bo_1]' target='_self'>";
echo $row2[bo_subject];
echo "</a>";
echo "</td></tr>"; //칸 닫기
echo $line_shadow;//경계선
}/////////////////////////////////////////////////////////////////////////////////
else{
$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=#9fbb08><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>
<!--네비게이션 메뉴 끝-->
<? } ?>
위 소스를 변형하지말고 그대로 올리셔야 합니다.
^^ 그래도 안되면 메신저로 말씀해주세요. *** 개인정보보호를 위한 이메일주소 노출방지 ***
^^ 그래도 안되면 메신저로 말씀해주세요. *** 개인정보보호를 위한 이메일주소 노출방지 ***
뮤죤님! 너무 감사드립니다.
위쪽에 말씀해 주신 방법으로 문제는 해결되었는데...
이번에는 색상과 아이콘쪽 적용이 안되네요. 이것 저것 여러가지로 해보았는데 안되네요. 죄송하지만 한번 더 도움 부탁드릴께요.
질문 새롭게 다시 정리해서 질문답변에 올릴께요.
포인트라도 더 많이 드리고 싶어서...
저의 작은 마음입니다.
정말 정말 말할 수 없는 감사의 마음을 표현합니다.
감사합니다.
위쪽에 말씀해 주신 방법으로 문제는 해결되었는데...
이번에는 색상과 아이콘쪽 적용이 안되네요. 이것 저것 여러가지로 해보았는데 안되네요. 죄송하지만 한번 더 도움 부탁드릴께요.
질문 새롭게 다시 정리해서 질문답변에 올릴께요.
포인트라도 더 많이 드리고 싶어서...
저의 작은 마음입니다.
정말 정말 말할 수 없는 감사의 마음을 표현합니다.
감사합니다.