Total :    (Page $page/$totalpage)")?>
"> $subject"; $signdate = explode(" ", $info[wdate]); #--------- 아이콘 결정 ---------------------# if($info[sort]){ // 답글 있을 때 // 들여쓰기 공백 $subnbsp=""; $sublen=strlen($info[sort]); for ($k=0;$k<$sublen;$k++) { $subnbsp=$subnbsp."   "; } if($signdate[0] == date("Y-m-d")) {$icon = $subnbsp." $subject";} // 오늘 날짜일때 else {$icon = $subnbsp." $subject";} // 오늘이 아닐때 if($info[no] == $no) {$icon = $subnbsp."$subject";} if ($read[$readindex]) {$icon = $subnbsp."$subject";} } else { // 답글 없을 때 if($signdate[0] == date("Y-m-d")) {$icon = " $subject";} else {$icon = " $subject";} if($info[no] == $no) {$icon = "$subject";} if ($read[$readindex]) {$icon = "$subject";} } $datedisplay = split("-",$signdate[0]); $datedisplay = "$datedisplay[1]/$datedisplay[2]"; $name = stripslashes($info[name]); $name = cut_str($name, $name_length); $name = html_use_not($name); $num = $total - $i; if(!$info[file_name]) { $file = "text document"; // 첨부 파일 없을경우 } else { $file = "$info[file_name]"; } if(!$info[email]) { $writer = "$name"; // 전자우편이 없는경우 } else { $name = html_use_not($info[name]); $writer = "$name"; } #-------------------------------------------# echo " "; $cline++; $readindex++; } //////////////////////////////////////////////////////////////// endwhile; ?>
번호 제목 작성자 등록일 파일 조회 선택
$num $icon $writer $signdate[0] $file $info[hit]
"); } ?>
$pagenumber) { $curpage = intval($startpage - 1); echo ("[Prev $page_skip ]"); } $curpage = $startpage; while ($curpage <= $endpage): if ($curpage == $cpage) { echo (" $cpage "); } else { echo (" $curpage "); } $curpage++; endwhile; if($totalpage > $endpage) { $curpage = intval($endpage + 1); echo("[Next $page_skip ]
   
Write"; echo "  "; echo ""; ?>