include("../config/conn.php"); include("../config/function.php"); while0("*","yjcode_gg where id=".$_GET[id]);if(!$row=mysql_fetch_array($res)){php_toheader("gglist.html");} checkdjl("c2",$row[id],"yjcode_gg"); while1("*","yjcode_gg where sj>='".$row[sj]."' and id<>".$row[id]." and zt<>99 order by sj asc"); if($row1=mysql_fetch_array($res1)){$pre="".$row1[tit]."";}else{$pre="已是第一篇公告";} while1("*","yjcode_gg where sj<='".$row[sj]."' and id<>".$row[id]." and zt<>99 order by sj desc"); if($row1=mysql_fetch_array($res1)){$nex="".$row1[tit]."";}else{$nex="已是最后一篇公告";} ?>