% commentList Sub commentList Response.Buffer=True Response.ContentType="text/html;charset=Utf-8" Dim rsObj,ContentID,page,pCount,pSize,i,pagerStr,pPage,nPage,numPage pSize=5 '评论显示数 numPage=5 '显示页码数 ContentID=filterPara(getForm("id","get")) page=filterPara(getForm("page","get")) dim sql if SwitchCommentsStatus=0 then sql="select * from {prefix}Comments where ContentID="&ContentID else sql="select * from {prefix}Comments where CommentStatus=1 and ContentID="&ContentID end if set rsObj=conn.Exec(sql,"r1") if not rsObj.eof then rsObj.pageSize=pSize pCount=rsObj.pageCount if isNul(page) or not isnum(page) or page<1 then page=1 else page=clng(page) if page>pCount then page=pCount rsObj.absolutepage = page for i = 1 to pSize echo"