F"; } else{ $cols=5; $f_cell=""; } } function today_record(){ global $today_count,$board,$dbcon; $year=date(Y); $month=date(n); $day=date(j); $today_time=mktime(0,0,0,$month,$day,$year); $tomorrow_time=$today_time + 60*60*24; $today_result=mysql_query("select count(*) from $board where wdate >= $today_time and wdate < $tomorrow_time", $dbcon); $today_count=mysql_result($today_result,0,0); } function data_filter2(&$name,&$subject){ $name=htmlspecialchars($name); $name=substr($name,0,10); $subject=htmlspecialchars($subject); } function new_sign(){ global $new,$skin_dir,$new_sign,$list; if($new_sign==1){ $during_new=60*60*24; $current=time(); $date_diff=$current-$list[wdate]; if($date_diff<=$during_new){ $new=""; } else{ $new=""; } } } ########################### Á¶°Ç¿¡ µû¸¥ Äõ¸®ÀϺΠ¼±Åà ################### if(ereg("([^[:space:]]+)",$search_field)){ $serque="where $search_item like '%$search_field%'"; $search_field=urlencode($search_field); $temp="&search_item=${search_item}&search_field=${search_field}"; } else{ $serque=""; } ############################## ¸®½ºÆ® Ãâ·Â Áغñ ############################### if(!strcmp($rtype,out)){ $que="select rid,name,subject,wdate,vc,thr,filename,you from $board $serque order by you asc,gid desc,thr asc"; } else{ $que="select rid,name,subject,wdate,vc,filename,you from $board $serque order by you asc,rid desc"; } $result1=mysql_query($que,$dbcon); $total=mysql_num_rows($result1); if(!$first){ $first=0; } $totalpage=ceil($total/$view_limit); $page=$first/$view_limit+1; $last=$first+$view_limit-1; ############################ ·Î±×ÀΠ󸮺κР############################## $url="ebboard.html?board=$board"; $url=urlencode($url); if(!$master){ $log=" ·Î±×ÀÎ"; } else{ $log=" ·Î±×¾Æ¿ô"; } ############################### ¸®½ºÆ® Ãâ·Â ºÎºÐ ############################ today_record(); echo("
"); if($search_field && $total){ echo("ÃÑ ${total}°³ÀÇ ±ÛÀÌ °Ë»öµÇ¾ú½À´Ï´Ù."); } elseif($search_field && !$total){ echo("°Ë»ö¾î¿¡ ¸Â´Â ±ÛÀÌ ¾ø½À´Ï´Ù."); } else{echo(" Today->$today_count/$total TotalPage :: $totalpage ::"); } echo(" $log °ü¸®ÀÚ¿µ¿ª
"); fileform(); echo("
$f_cell "); if($total){ mysql_data_seek($result1,$first); for($i=$first;$i<=$last;$i++){ $count_no=$total-$i; if($i<$total){ $list=mysql_fetch_array($result1); new_sign(); $list[wdate]=date("Y-m-d",$list[wdate]); data_filter2($list[name],$list[subject]); if($search_field and !strcmp($search_item,"subject")){ $trn=urldecode($search_field); $list[subject]=eregi_replace("$trn","${trn}",$list[subject]); } $thrlen=strlen($list[thr]); $space=""; for($s=2;$s<$thrlen;$s++){ if($thrlen<8){ $space.="  "; } else{ $space="        "; } } if($thrlen>1){ $re="${space}¢¹[Re]"; } else{ $re=""; } if(!strcmp($list[you],admin)){ $seq_space="°øÁö"; $notice_cell="bgcolor=$notice_cell_color"; } else{ $seq_space=$count_no; $notice_cell=""; } if($file_on){ if($list[filename]){ $file_img=""; } else{ $file_img=""; } $f_cell2=""; } //////////////////////////// Ãâ·ÂÇÑ´Ù /////////////////////// echo(" $f_cell2 "); } } } echo("
SeqSubject Name Date C
$file_img
$seq_space"); if($view[rid]==$list[rid]){ echo (" ${re}$list[subject] $new"); } else{echo(" ${re} $list[subject] $new"); } echo(" $list[name] $list[wdate] $list[vc]
"); echo("
¾²±â "); if($call==view or $search_field){ echo("¸ñ·ÏÀ¸·Î "); } echo("
"); ############################### ÆäÀÌÁö ³×ºñ°ÔÀÌÅÍ Ãâ·ÂºÎºÐ ############################### $group=ceil($totalpage/$num_limit); $current_group=ceil($page/$num_limit); $start_num=($current_group-1)*$num_limit+1; $last_num=$current_group*$num_limit; $nextview=$first+$view_limit; $preview=$first-$view_limit; $prejump=($last_num*$view_limit)-($view_limit*$num_limit)*2; $nextjump=$last_num*$view_limit; if($current_group>1){ echo("¢¸"); } if($page>1){ echo("[prev]"); } for($j=$start_num;$j<=$last_num;$j++){ $linkfirst=$view_limit*$j-$view_limit; if($j<=$totalpage){ if($page==$j){ echo("[$j]"); } else{ echo("[$j]"); } } } if($page<$totalpage){ echo("[next]"); } if($current_group<$group){ echo("¢º"); } ############################### °Ë»ö Æû Ãâ·Â #################################### echo("
"); include "bottom.inc"; ?>