소스좀 봐주세요 ㅠ.ㅠ;;;; 자꾸 오류가..

· 18년 전 · 1116 · 1
그룹&게시판카테고리 자동 메뉴 인데요..
나모에서 수정할땐 되는데..
계정에 올리고.
인클루트 해서 보면.. 먹통이에요.. ㅠ.ㅠ;;;
머가 잘못된건지좀 .. 도와주세요.~~
==============
 
<table width="215" cellpadding="1" cellspacing="0" border="0">
 <tr>
  <td>
   <table width="215" align="left" cellpadding="2" cellspacing="0" border="0">
    
    <tr>
     <td height='50' align="right">
     </td>
    </tr>
   <?
   $intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
   $sql = " select bo_table, bo_subject, bo_category_list from $g4[board_table] where (bo_list_level <= $member[mb_level]) and gr_id = '$gr_id' order by bo_order_search"; // 검색순서대로 정렬
   //$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
   //$sql = " select bo_table, bo_subject from $g4[board_table] where (bo_list_level <= $member[mb_level]) and gr_id = '$gr_id' order by bo_1"; //bo_1 여분필드 입력값 순서로 정렬
   $result = sql_query($sql);
   for ($i=0; $row=sql_fetch_array($result); $i++) {
   $tmp_write_table = $g4[write_prefix] . $row[bo_table];
   $sql2 = " select wr_datetime from $tmp_write_table where wr_datetime >= '$intime'";
   $result2 = sql_query($sql2);
   $total_count = mysql_num_rows($result2);
    
   if ($row[bo_table] == $bo_table) {
   $row[bo_menu]= "<img src='$g4[path]/menu/menu_go.gif' width='12' height='14' align='absmiddle'><b>$row[bo_subject]</b>";
   }
   else {
   $row[bo_menu]= "<img src='$g4[path]/menu/spacer.gif' width='12' height='14' align='absmiddle'><a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]' class=menu_on>$row[bo_subject]</a> ";
   }
   echo "<tr><TD onmouseover="this.style.backgroundColor='#e4e4e4'"
                                onmouseout="this.style.backgroundColor=''"
                                align=right class=new>$row[bo_menu]</td></tr>"; // 그룹메뉴
   
    //카테고리 메뉴 시작
    if ($row[bo_table] == $bo_table) {
     $ca_menu = explode("|",$board[bo_category_list]);
   
     for ($i=0; $i<count($ca_menu); $i++)
     {
       //if ($i > 0)
       //  {
       //    echo "<tr><td height=\"1\" bgcolor=\"#e1e1e1\" ></td></tr>";
       //  }
     if ($sca==$ca_menu[$i]) {
     $ca_menu[$i] = "<tr><TD onmouseover="this.style.backgroundColor='#e4e4e4'"
                                onmouseout="this.style.backgroundColor=''"
                                align=right class=new>$ca_menu[$i]</td></tr>";
     }
     else {
     $ca_menu[$i] = "<tr><TD onmouseover="this.style.backgroundColor='#e4e4e4'"
                                onmouseout="this.style.backgroundColor=''"
                                align=right class=new><a href=\"{$g4[bbs_path]}/board.php?bo_table=$bo_table&sca=".urlencode($ca_menu[$i])."\">$ca_menu[$i]</a></td></tr>";
     } 
     
     echo $ca_menu[$i];
     }
     
    // 카테고리 메뉴 끝
    }
   }
   ?>  
   </table>
  </td>
 </tr>
</table>
|

댓글 1개

<table width="215" cellpadding="1" cellspacing="0" border="0">
<tr>
<td>
<table width="215" align="left" cellpadding="2" cellspacing="0" border="0">

<tr>
<td height='50' align="right">
</td>
</tr>
<?
$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
$sql = " select bo_table, bo_subject, bo_category_list from $g4[board_table] where (bo_list_level <= $member[mb_level]) and gr_id = '$gr_id' order by bo_order_search"; // 검색순서대로 정렬
//$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
//$sql = " select bo_table, bo_subject from $g4[board_table] where (bo_list_level <= $member[mb_level]) and gr_id = '$gr_id' order by bo_1"; //bo_1 여분필드 입력값 순서로 정렬
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
$sql2 = " select wr_datetime from $tmp_write_table where wr_datetime >= '$intime'";
$result2 = sql_query($sql2);
$total_count = mysql_num_rows($result2);

if ($row[bo_table] == $bo_table) {
$row[bo_menu]= "<img src='$g4[path]/menu/menu_go.gif' width='12' height='14' align='absmiddle'><b>$row[bo_subject]</b>";
}
else {
$row[bo_menu]= "<img src='$g4[path]/menu/spacer.gif' width='12' height='14' align='absmiddle'><a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]' class=menu_on>$row[bo_subject]</a> ";
}
echo "<tr><TD onmouseover=this.style.backgroundColor='#e4e4e4' onmouseout=this.style.backgroundColor='' align=right class=new>$row[bo_menu]</td></tr>"; // 그룹메뉴

//카테고리 메뉴 시작
if ($row[bo_table] == $bo_table) {
$ca_menu = explode("|",$board[bo_category_list]);

for ($i=0; $i<count($ca_menu); $i++)
{
//if ($i > 0)
// {
// echo "<tr><td height=\"1\" bgcolor=\"#e1e1e1\" ></td></tr>";
// }
if ($sca==$ca_menu[$i]) {
$ca_menu[$i] = "<tr><TD onmouseover=this.style.backgroundColor='#e4e4e4' onmouseout=this.style.backgroundColor='' align=right class=new>$ca_menu[$i]</td></tr>";
}
else {
$ca_menu[$i] = "<tr><TD onmouseover=this.style.backgroundColor='#e4e4e4' onmouseout=this.style.backgroundColor='' align=right class=new><a href=\"{$g4[bbs_path]}/board.php?bo_table=$bo_table&sca=".urlencode($ca_menu[$i])."\">$ca_menu[$i]</a></td></tr>";
}

echo $ca_menu[$i];
}

// 카테고리 메뉴 끝
}
}
?>
</table>
</td>
</tr>
</table>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 1,931
18년 전 조회 1,406
18년 전 조회 1,516
18년 전 조회 1,544
18년 전 조회 1,021
18년 전 조회 1,627
18년 전 조회 1,525
18년 전 조회 1,519
18년 전 조회 1,425
18년 전 조회 1,117
18년 전 조회 1,521
18년 전 조회 1,085
18년 전 조회 4,513
18년 전 조회 1,525
18년 전 조회 1,113
18년 전 조회 1,542
18년 전 조회 1,593
18년 전 조회 1,437
18년 전 조회 3,422
18년 전 조회 1,394
🐛 버그신고