📄 main_jsp.java
字号:
package org.apache.jsp.manage;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.bookshop.bean.Indent;
import com.bookshop.bean.ShopUser;
public final class main_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, 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");
if (session.getAttribute("admin")==null || session.getAttribute("admin")==""){
response.sendRedirect("error.htm");
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
com.bookshop.dao.Purchase shop = null;
synchronized (_jspx_page_context) {
shop = (com.bookshop.dao.Purchase) _jspx_page_context.getAttribute("shop", PageContext.PAGE_SCOPE);
if (shop == null){
shop = new com.bookshop.dao.Purchase();
_jspx_page_context.setAttribute("shop", shop, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
com.bookshop.dao.Usermn user = null;
synchronized (_jspx_page_context) {
user = (com.bookshop.dao.Usermn) _jspx_page_context.getAttribute("user", PageContext.PAGE_SCOPE);
if (user == null){
user = new com.bookshop.dao.Usermn();
_jspx_page_context.setAttribute("user", user, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>51网上书店管理系统</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<style>a{TEXT-DECORATION:none}a:hover{TEXT-DECORATION:underline}</style>\r\n");
out.write("<script language=\"JavaScript\">\r\n");
out.write("\t\tsetInterval(\"a.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());\",1000);\r\n");
out.write("\t\t</script>\r\n");
out.write("<script language=\"javascript\">\r\n");
out.write("\r\n");
out.write(" function openScript(url,name, width, height){\r\n");
out.write("\tvar Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write(".style14 {color: #3366FF}\r\n");
out.write(".style16 {font-size: 18px; color: #3366FF;}\r\n");
out.write(".style17 {font-size: 14px}\r\n");
out.write(".style18 {color: #3366FF; font-size: 14px; }\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("\t\t<link rel=\"stylesheet\" href=\"books.css\" type=\"text/css\">\r\n");
out.write("\t <style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write(".style19 {font-size: 18px}\r\n");
out.write(".style21 {font-size: 14; }\r\n");
out.write("-->\r\n");
out.write(" </style>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("\t<body text=\"#000000\">\r\n");
out.write("\t\t<div align=\"center\">\r\n");
out.write("\t\t\t<table width=\"750\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write("\t\t\t\t<tr>\t\t\t\t\t\r\n");
out.write("\t\t\t\t\t<td align=\"center\"><img src=\"../images/title.jpg\" width=\"744\" height=\"100\"></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t</table>\r\n");
out.write("\r\n");
out.write("\t\t\t\r\n");
out.write("\t\t\t<table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t <td width=\"100\" height=\"30\" align=\"center\" background=\"../images/qntj.jpg\" class=\"style14\"><a href=\"../index.jsp\" class=\"style18\">首页</a></td>\r\n");
out.write("\t\t\t\t <td width=\"100\" align=\"center\" background=\"../images/qntj.jpg\" class=\"style14\"><a href=\"../booklist.jsp\" class=\"style18\">在线购物</a></td>\r\n");
out.write("\t\t\t\t <td width=\"100\" align=\"center\" background=\"../images/qntj.jpg\" class=\"style14\"><a href=\"../shoperlist.jsp\" class=\"style18\">我的购物车</a></td>\r\n");
out.write("\t\t\t\t <td width=\"100\" align=\"center\" background=\"../images/qntj.jpg\" class=\"style14\"><a href=\"../login.jsp\" class=\"style18\">用户登录</a></td>\r\n");
out.write("\t\t\t\t <td width=\"100\" align=\"center\" background=\"../images/qntj.jpg\" class=\"style14\"><a href=\"../manage/login.jsp\" class=\"style14 style17\">网站管理</a></td>\r\n");
out.write("\t\t\t\t <td width=\"250\" align=\"center\" background=\"../images/qntj.jpg\"><div id=\"a\"><span class=\"style7\"></span></div></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t </table>\r\n");
out.write(" <p> </p>\r\n");
out.write(" <table width=\"750\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" width=\"23%\" valign=\"top\"> \r\n");
out.write(" <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"30\" align=\"center\" class=\"style14\"><a href=\"main.jsp\" class=\"style21\">回管理首页</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" align=\"center\" class=\"style14\"><a href=\"booklist.jsp\" class=\"style21\">商店图书查询</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" align=\"center\" class=\"style14\"><a href=\"addbook.jsp\" class=\"style21\">添加图书资料</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" align=\"center\" class=\"style14\"><a href=\"orderlist.jsp\" class=\"style21\">订单信息查询</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" align=\"center\" class=\"style14\"><a href=\"userlist.jsp\" class=\"style21\">用户信息查询</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" align=\"center\" class=\"style14\"><a href=\"logout.jsp\" class=\"style21\">退出</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" <td align=\"center\" width=\"77%\">\r\n");
out.write(" <p class=\"style16\"><span class=\"style19\"><b>欢迎你,51图书管理员同志</b></span>!</p>\r\n");
out.write(" <p>51书店最新订单情况:</p>\r\n");
out.write("\r\n");
out.write(" <table width=\"90%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#336633\">\r\n");
out.write(" <tr align=\"center\"> \r\n");
out.write(" <td width=\"18%\" height=\"37\">订单编号</td>\r\n");
out.write(" <td width=\"14%\">用户名</td>\r\n");
out.write(" <td width=\"18%\">下单时间</td>\r\n");
out.write(" <td width=\"14%\">总金额</td>\r\n");
out.write("\t\t\t<td width=\"8%\">付款</td>\r\n");
out.write(" <td width=\"10%\">发货</td>\r\n");
out.write(" <td width=\"18%\">查看</td>\r\n");
out.write(" </tr>\r\n");
shop.setPage(1);
if (shop.getIndent()) {
for(int i=0 ; i<shop.getMy_indent().size(); i++){
Indent Ident = (Indent) shop.getMy_indent().elementAt(i);
out.write("\r\n");
out.write("\t\t <tr>\r\n");
out.write(" <td height=\"36\">");
out.print( Ident.getIndentNo() );
out.write("</td>\r\n");
out.write(" <td align=\"center\">");
if (user.getUserinfo(Ident.getUserId()) ) {
ShopUser userinfo = (ShopUser)user.getUserlist().elementAt(0);
out.println(userinfo.getUserName());
} else {
out.println("该用户已被删除");
}
out.write("</td>\r\n");
out.write(" <td align=\"center\">");
out.print( Ident.getSubmitTime() );
out.write("</td>\r\n");
out.write(" <td align=\"center\">");
out.print( Ident.getTotalPrice() );
out.write("</td>\r\n");
out.write("\t\t\t<td align=\"center\">\r\n");
out.write("\t\t\t");
if (Ident.getIsPayoff() )
out.print("已付清");
else
out.print("未付");
out.write("</td>\r\n");
out.write(" <td align=\"center\">\r\n");
out.write("\t\t\t");
if (Ident.getIsSales())
out.print("已发货");
else
out.print("未发货");
out.write("</td>\r\n");
out.write(" <td align=\"center\"><a href=\"#\" onclick=\"openScript('indentlist.jsp?indentid=");
out.print( Ident.getId() );
out.write("','indent',500,500)\" >详细情况</a></td>\r\n");
out.write(" </tr>\r\n");
}
} else {
out.write("\r\n");
out.write("\t<tr align=center ><td height=\"28\"> 出现错误</td></tr>\r\n");
}
out.write("\r\n");
out.write(" </table>\r\n");
out.write(" <p> </p>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" \r\n");
out.write(" <p> </p>\r\n");
out.write(" <hr width=\"750\" color=\"#00CCFe\"/>\r\n");
out.write("\t\t\t<table width=\"750\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td align=\"center\" >\r\n");
out.write("\t\t\t\t\t\t<div align=\"center\" class=\"style11\">51网络有限公司开发\r\n");
out.write("\t\t\t\t\t\t <br>\r\n");
out.write("\t\t\t\t\t\tCopyRight@2008\r\n");
out.write("\t\t\t\t\t\t<br>\r\n");
out.write("\t\t\t\t\t\tE-mail:\r\n");
out.write("\t\t\t\t\t\t<a href=\"mailto:dengxianghai2005@163.com\">dengxianghai2005@163.com</a>\r\n");
out.write("\t\t\t\t\t </div></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t</table>\r\n");
out.write("\r\n");
out.write("</div>\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)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -