fetch1("select bid,bname,groupid from {$dbtbpre}enewsgbookclass where bid='$bid'"); if(empty($gbr['bid'])) { printerror("EmptyGbook","",1); } //权限 if($gbr['groupid']) { include("../../class/user.php"); $user=islogin(); include("../../data/dbcache/MemberLevel.php"); if($level_r[$gbr[groupid]][level]>$level_r[$user[groupid]][level]) { echo""; exit(); } } esetcookie("gbookbid",$bid,0); $bname=$gbr['bname']; $search="&bid=$bid"; $page=(int)$_GET['page']; $start=0; $line=$public_r['gb_num'];//每页显示条数 $page_line=12;//每页显示链接数 $offset=$start+$page*$line;//总偏移量 $totalnum=(int)$_GET['totalnum']; if($totalnum>0) { $num=$totalnum; } else { $totalquery="select count(*) as total from {$dbtbpre}enewsgbook where bid='$bid' and checked=0"; $num=$empire->gettotal($totalquery);//取得总条数 } $search.="&totalnum=$num"; $query="select lyid,name,email,`call`,lytime,lytext,retext from {$dbtbpre}enewsgbook where bid='$bid' and checked=0"; $query=$query." order by lyid desc limit $offset,$line"; $sql=$empire->query($query); $listpage=page1($num,$line,$page_line,$start,$page,$search); $url="".$fun_r['index']." > ".$fun_r['saygbook']; ?> 乐和彩|留言板 - Powered by EmpireCMS
加入收藏 | 设为首页 | 会员中心 | 我要投稿 | RSS
现在的位置:首页 > 
fetch($sql)) { $r['retext']=nl2br($r[retext]); $r['lytext']=nl2br($r[lytext]); ?>
发布者: 发布时间:
回复:

分页:
请您留言:
姓名: *
联系邮箱: *
联系电话:
留言内容(*):