showmanagerlist_jsp.java
来自「图书管理系统。JSP+Struts(MVC框架)sql2000数据库」· Java 代码 · 共 136 行
JAVA
136 行
package org.apache.jsp.manager;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.List;
import com.actionForm.ManagerForm;
public final class showManagerList_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>科院图书管理系统――系统管理</title>\r\n</head>\r\n\r\n");
List list=(List)request.getAttribute("list");
int pageNumber=1;
if(request.getParameter("pageNumber")!=null){
pageNumber=Integer.parseInt(request.getParameter("pageNumber"));
}
int pageMax;
if(request.getParameter("pageMax")==null){
List allList=(List)request.getAttribute("allList");
pageMax=allList.size()/13;
if(allList.size()/13!=0){
pageMax=allList.size()/13+1;
}
}else{
pageMax=Integer.parseInt(request.getParameter("pageMax"));
}
out.write("\r\n<body>\r\n<div align=\"center\">\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../topOne.jsp", out, true);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../topTwo.jsp", out, true);
out.write("\r\n\r\n<table width=\"799\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"Images/upPlace.jpg\">\r\n <tr>\r\n <td height=\"21\" class=\"word_black\"> 您当前的位置――系统管理――管理员设置</td>\r\n </tr>\r\n</table>\r\n<table width=\"799\" height=\"28\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"Images/operationOne.jpg\">\r\n <tr align=\"center\">\r\n <td><span class=\"STYLE4\">管理员查询</span></td>\r\n </tr>\r\n</table>\r\n<table width=\"799\" height=\"457\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolorlight=\"#FFFFFF\" bordercolordark=\"#819BBC\" background=\"Images/operationTwo.jpg\">\r\n <tr>\r\n <td valign=\"top\" align=\"center\">\r\n <br>\r\n <table width=\"400\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolordark=\"#819BBC\" bordercolorlight=\"#FFFFFF\">\r\n <tr bgcolor=\"#83B9FF\" align=\"center\" class=\"word_white\">\r\n <td height=\"25\">序号</td>\r\n <td>管理员</td>\r\n\t\t <td>级别</td>\r\n <td bgcolor=\"#83B9FF\">操作</td>\r\n </tr>\r\n");
out.write(" ");
for(int i=0;i<list.size();i++){
ManagerForm form=(ManagerForm)list.get(i);
out.write("\r\n <tr align=\"center\">\r\n <td height=\"25\">");
out.print(form.getId());
out.write("</td>\r\n <td>");
out.print(form.getAccount());
out.write("</td>\r\n\t\t <td>");
out.print(form.getManagerLevel());
out.write("</td>\r\n <td>");
if(form.getAccount().equals("ky")){
out.write('―');
out.write('―');
out.write('―');
}else{
out.write("<a href=\"managerAction.do?method=updatePasswordAction&account=");
out.print(form.getAccount());
out.write("\">修改密码</a> <a href=\"managerAction.do?method=updateLevefManagerAction&account=");
out.print(form.getAccount());
out.write("\">修改级别</a> <a href=\"managerAction.do?method=deleteManagerAction&account=");
out.print(form.getAccount());
out.write("\">删除信息</a>");
}
out.write("</td>\r\n </tr>\r\n ");
}
out.write("\r\n </table>\r\n <table width=\"400\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"240\" height=\"32\"> ");
out.print(pageNumber);
out.write('/');
out.print(pageMax);
out.write("页</td>\r\n <td width=\"160\" align=\"right\">\r\n\r\n ");
if(pageNumber==1){
out.write("\r\n ");
}else if(pageNumber==2){
out.write("\r\n <a href=\"managerAction.do?method=selectManagerAction\">上一页</a>\r\n ");
}else{
out.write("\r\n <a href=\"managerAction.do?method=selectPreviousManagerAction&pageNumber=");
out.print(pageNumber-1);
out.write("&pageMax=");
out.print(pageMax);
out.write("\">上一页</a>\r\n ");
}
out.write("\r\n\r\n ");
if(pageNumber<=pageMax-1){
out.write(" \r\n\r\n <a href=\"managerAction.do?method=selectNextManagerAction&pageNumber=");
out.print(pageNumber+1);
out.write("&pageMax=");
out.print(pageMax);
out.write("\">下一页</a>\r\n ");
}
out.write("\r\n \r\n<input type=\"button\" name=\"back\" value=\"返回操作\" onClick=\"javascript:history.go(-1);\">\r\n\r\n </td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n</table>");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../bottom.jsp", out, true);
out.write("\r\n</div>\r\n</body>\r\n</html>\r\n\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?