<%@page language="java" contentType="text/html;charset=GBK"%>
<%@ include file="top.jsp"%>
<%
String type=request.getParameter("type");
String pagenoS=request.getParameter("pageno");
type=type==null ? "-1" : type;
int pageno=1;
int sum=1;
List listM=null;
if(type.equals("-1"))
{
Message message=new Message();
listM=message.show(1);
sum=message.sum;
}
else if(type.equals("pagination")){
pageno=Integer.parseInt(pagenoS);
Message message=new Message();
listM=message.show(pageno);
sum=message.sum;
}
%>
<%=msg%>
<%
for(BMessage w:listM)
{
%>
<%=w.getId() %> |
<%=w.getContent() %> |
<%=w.getSend_time() %> |
<% }%>
<%@ include file="pagination.jsp"%>