Skip to content

수정 파일 : list.php 96 라인 (원본 그누보드의 소스 변경으로 인해 다를수 있습니다.)



if (!$sca && 
!$stx)

{

 

    $arr_notice = split("\n", 
trim($board[bo_notice]));

 

    for ($k=0; 
$k<count($arr_notice); $k++)

    {

        $notice_su=$i; 
//공지사항리스트에서 빼기위해 추가함 2007-06-15(공지사항갯수)

        if 
(trim($arr_notice[$k])=='') continue;

        $row = sql_fetch(" select * 
from $write_table where wr_id = '$arr_notice[$k]' ");

        //if (!$sca 
&& !$stx){ if(in_array($row[wr_id],$arr_notice)) continue; }//공지 
게시판리스트에서 빼기 위해 추가함 2007-06-15 (여기에 위치할 경우 상단의 공지만제거됨)

        if 
(!$row[wr_id]) continue;

        $list[$i] = get_list($row, $board, 
$board_skin_path, $board[bo_subject_len]);

        $list[$i][is_notice] = 
true;

 

        $i++;

    
}

 

}

 

$k = 0;

 

while ($row = 
sql_fetch_array($result))

{

    if (!$sca && !$stx){ 
if(in_array($row[wr_id],$arr_notice)) continue;}//공지사항리스트에서 빼기위해 추가함 
2007-06-15

    // 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다

    if ($sca || 
$stx)

        $row = sql_fetch(" select * from $write_table where wr_id = 
'$row[wr_parent]' ");

 

    $list[$i] = get_list($row, $board, 
$board_skin_path, $board[bo_subject_len]);

    if (strstr($sfl, 
"subject"))

        $list[$i][subject] = search_font($stx, 
$list[$i][subject]);

    $list[$i][is_notice] = false;

    
//$list[$i][num] = number_format($total_count - ($page - 1) * 
$board[bo_page_rows] - $k);

    $list[$i][num] = $total_count - ($page - 
1) * $board[bo_page_rows] - $k - $notice_su - 1; //공지사항리스트에서 빼기위해 추가함(맨끝- 
$notice_su;만추가함) 2007-06-15

 

    $i++;

    
$k++;

}

 

$write_pages = 
get_paging($config[cf_write_pages], $page, $total_page, 
"./board.php?bo_table=$bo_table".$qstr."&page=");




profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/74411/d84/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234