经过一番研究,发现可以这样改: 在plus/guestbook目录新建文件 js.php
getUserRank(); } else{ $userrank = -1; } function GetIsCheck($ischeck,$id) { if($ischeck==0) return "
[审核]"; else return ""; } if($userrank>0) $sql = "select * from dede_guestbook order by ID desc"; else $sql = "select * from dede_guestbook where ischeck=1 order by ID desc"; $dlist = new DataList(); $dlist->Init(); $dlist->pageSize =7; $dlist->SetParameter("gotopagerank",$gotopagerank); $dlist->SetSource($sql); $mylist = $dlist->GetDataList(); while($row = $mylist->GetArray('dm')) { $xingming=$row['uname']; $neirong=strip_tags($row['msg']); $neirong=str_replace(" ","",$neirong); $neirong=cn_substr($neirong,45); $neirong=str_replace(" ","",$neirong); $neirong=rawurldecode($neirong); $link=$row['ID']; echo "document.write("· $xingming - $neirong
");"; } $dlist->Close(); ?>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)