<%
new CommDAO().delete(request,"pinglun");
String id=request.getParameter("id");
String url = "pinglun_list.jsp?id="+id;
String sql = "select * from pinglun where xinwenID="+id;
if(request.getParameter("pinglunneirong")=="" ||request.getParameter("pinglunneirong")==null ){}else{sql=sql+" and pinglunneirong like '%"+request.getParameter("pinglunneirong")+"%'";}
if(request.getParameter("pinglunren")=="" ||request.getParameter("pinglunren")==null ){}else{sql=sql+" and pinglunren like '%"+request.getParameter("pinglunren")+"%'";}
sql+=" order by id desc";
//out.print(sql);
ArrayList list = PageManager.getPages(url,20,sql, request );
int i=0;
for(HashMap map:list){
i++;
%>