/* position 代表是执行哪个部分的查询,包括主查询和弹出窗口查询,对应两个js文件,Data.js和PopUpWindow.js */
public static StringBuffer getPage(HttpServletRequest request,
String postion, boolean editable) {
StringBuffer buffer = new StringBuffer();
buffer.append("<table><tr><td>\n");
Page aPage = (Page) request.getAttribute(Globals.PAGE);
Long totalPage = null;
Long totalNum = null;
if (aPage != null) {
totalPage = aPage.getTotalPage();
totalNum = aPage.getTotalNum();
}
buffer.append("总条数:" + totalNum + " 共" + totalPage + "页 </td>");
buffer.append("<td align=\"right\">");
String actionName = request.getParameter("actionName");