소스좀 봐주세요 ㅠ.ㅠ;;;; 자꾸 오류가.. > 그누4 질문답변

그누4 질문답변

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

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

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

본문

그룹&게시판카테고리 자동 메뉴 인데요..
나모에서 수정할땐 되는데..
계정에 올리고.
인클루트 해서 보면.. 먹통이에요.. ㅠ.ㅠ;;;
머가 잘못된건지좀 .. 도와주세요.~~
==============
 
<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>

댓글 전체

<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>
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT