📄 index1_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class index1_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
String trans(String chi)
{
String result =null;
byte temp[];
try{
temp=chi.getBytes("iso-8859-1");
result=new String(temp);
}catch(Exception e){}
return result;
}
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,
"login_error.jsp", 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");
out.write("\r\n");
bookmanager.Index1Bean index1bean = null;
synchronized (_jspx_page_context) {
index1bean = (bookmanager.Index1Bean) _jspx_page_context.getAttribute("index1bean", PageContext.PAGE_SCOPE);
if (index1bean == null){
index1bean = new bookmanager.Index1Bean();
_jspx_page_context.setAttribute("index1bean", index1bean, PageContext.PAGE_SCOPE);
out.write('\r');
out.write('\n');
}
}
out.write('\r');
out.write('\n');
request.setCharacterEncoding("gb2312");
out.write('\r');
out.write('\n');
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>图书管理系统/title>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("@import url(\"images/s.css\");\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("a {\r\n");
out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
out.write("\tfont-size: 11px;\r\n");
out.write("}\r\n");
out.write("a:link {\r\n");
out.write("\ttext-decoration: none;\r\n");
out.write("\tcolor: #0066FF;\r\n");
out.write("}\r\n");
out.write("a:visited {\r\n");
out.write("\ttext-decoration: none;\r\n");
out.write("\tcolor: #999966;\r\n");
out.write("}\r\n");
out.write("a:hover {\r\n");
out.write("\ttext-decoration: none;\r\n");
out.write("\tcolor: #33FF00;\r\n");
out.write("}\r\n");
out.write("a:active {\r\n");
out.write("\ttext-decoration: none;\r\n");
out.write("\tcolor: #00CC33;\r\n");
out.write("}\r\n");
out.write(".style1 {\tcolor: #FFFF00;\r\n");
out.write("\tfont-weight: bold;\r\n");
out.write("}\r\n");
out.write(".style2 {\tcolor: #00FF00;\r\n");
out.write("\tfont-weight: bold;\r\n");
out.write("}\r\n");
out.write("body,td,th {\r\n");
out.write("\tcolor: #FF0000;\r\n");
out.write("\tfont-size: 13px;\r\n");
out.write("}\r\n");
out.write(".style3 {\r\n");
out.write("\tfont-size: 13px;\r\n");
out.write("\tcolor: #996633;\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style></head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<table width=\"700\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"100\" colspan=\"5\"><p><img src=\"images/head.gif\" width=\"707\" height=\"100\"></p>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr align=\"center\" valign=\"middle\">\r\n");
out.write(" <td width=\"700\" height=\"22\"><img src=\"images/009.gif\" width=\"28\" height=\"22\"><a href=\"index.jsp\"><strong>首页</strong></a></td>\r\n");
out.write(" <td width=\"700\" height=\"22\"><img src=\"images/009.gif\" width=\"28\" height=\"22\"><span class=\"style1\"><a href=\"introduction.jsp\">系统简介</a></span></td>\r\n");
out.write(" <td width=\"700\" height=\"22\"><img src=\"images/009.gif\" width=\"28\" height=\"22\"><span class=\"style2\"><a href=\"admin.jsp\">管理员入口</a></span></td>\r\n");
out.write(" <td width=\"700\" height=\"22\"><img src=\"images/009.gif\" width=\"28\" height=\"22\"><strong class=\"style2\"><a href=\"#\">退出系统</a></strong></td>\r\n");
out.write(" <td width=\"700\" height=\"22\"><img src=\"images/009.gif\" width=\"28\" height=\"22\"><strong><a href=\"logout\">注销</a></strong></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"5\"><table width=\"740\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/0008.gif\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"2\" colspan=\"2\"><hr width=\"702\" size=\"2\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr background=\"images/0008.gif\">\r\n");
out.write(" <td width=\"180\" valign=\"top\"><form name=\"form1\" method=\"post\" action=\"login.jsp\">\r\n");
out.write(" <table width=\"170\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\" background=\"images/0008.gif\" bgcolor=\"#CCFFFF\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\"><table width=\"177\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"28\" align=\"center\" valign=\"middle\"><img src=\"images/starbullet.gif\" width=\"11\" height=\"11\"></td>\r\n");
out.write(" <td width=\"142\"><img src=\"images/login1.gif\" width=\"130\" height=\"30\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\"><hr></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"45\" height=\"20\"><img src=\"images/t1.gif\" width=\"40\" height=\"20\"></td>\r\n");
out.write(" <td width=\"80\"><input name=\"username\" type=\"text\" size=\"16\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><img src=\"images/t2.gif\" width=\"40\" height=\"20\"></td>\r\n");
out.write(" <td><input name=\"password\" type=\"password\" size=\"16\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\"><table width=\"180\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" valign=\"middle\"><input type=\"submit\" name=\"Submit\" value=\"提交\">\r\n");
out.write(" <input type=\"reset\" name=\"Submit\" value=\"重置\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </form></td>\r\n");
out.write(" <td width=\"560\" rowspan=\"3\" valign=\"top\">\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr valign=\"top\">\r\n");
out.write(" <td width=\"280\" height=\"32\"><img src=\"images/01.gif\" width=\"280\" height=\"32\"></td>\r\n");
out.write(" <td width=\"280\"><img src=\"images/02.gif\" width=\"280\" height=\"30\"></td>\r\n");
out.write(" </tr>\r\n");
out.write("\r\n");
out.print(index1bean.printHtml("all","SELECT bkname FROM book WHERE (bkid IN (SELECT TOP 5 bkid FROM borrow GROUP BY bkid ORDER BY COUNT(*) DESC))"));
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td><img src=\"images/04.gif\" width=\"280\" height=\"32\"></td>\r\n");
out.write(" <td><img src=\"images/03.gif\" width=\"280\" height=\"32\"></td>\r\n");
out.write(" </tr>\r\n");
out.print(index1bean.printHtml("SELECT TOP 5 bkname FROM book WHERE (bkcid <> 315003) ORDER BY regdate DESC","SELECT TOP 5 bkname FROM book WHERE (bkcid = 315003) ORDER BY regdate DESC"));
out.write("\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr background=\"images/0008.gif\">\r\n");
out.write(" <td> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr background=\"images/0008.gif\">\r\n");
out.write(" <td> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -