=0;$a--){ $line[]=$lines[$a]; } ?>
=($num-$page)&&$i<$num){ # 先用list將sub.dat中的檔案分配好,在將檔案用explode()函數來分割 list($kind,$date,$title,$url,$name,$mail,$updname,$hidden,$note)=explode("∥",$line[$i]); $id=$count-$i; # 去除php中的斜線衝碼 $url=stripslashes($url); $name=stripslashes($name); $mail=stripslashes($mail); $title=stripslashes($title); $kind=stripslashes($kind); $note=stripslashes($note); # 判斷$mail的值 if($mail!=""){ $person="$name"; }else{ $person="$name"; } # 判斷$style_pic的值 if($style_pic=="open"){ $kind_pic=""; }else{ $kind_pic=""; } # 顯示列串 if($note): ?> "; echo ""; ?>
 
編號 公告標題 日期 發布人

Warning: Undefined variable $id in /home/unit/ichem/public_html/sub/sub.php on line 100

Warning: Undefined variable $kind_pic in /home/unit/ichem/public_html/sub/sub.php on line 101

Warning: Undefined variable $title in /home/unit/ichem/public_html/sub/sub.php on line 101

Warning: Undefined variable $date in /home/unit/ichem/public_html/sub/sub.php on line 102

Warning: Undefined variable $person in /home/unit/ichem/public_html/sub/sub.php on line 103
"; echo ""; $all = $count; $c_page = $all/$sub_num; echo "共有 ".$all." 篇公告||每頁 ".$sub_num." 筆|| "; if($_GET['page'] == "") { $now = 1; }else{ $now = $_GET['page']; } if(($_GET['page']-$now) > 5) { $head = $_GET['page'] - 5; $last = $c_page - 5; } for($i=(1+$head); $i<=(($c_page-$last)+1); $i++) { if(!(($i - $now)>5 || ($now - $i)>5)) { if($i == $now) { echo " [".$i."]"; }else{ echo " [".$i."] "; } } } echo "
公告管理
C.P.Sub 公告系統 v4.5 Powered By Cooltey