⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_005fleft_jsp.java

📁 实现基本的书店管理
💻 JAVA
字号:
package org.apache.jsp.admin;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;

public final class admin_005fleft_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(2);
    _jspx_dependants.add("/admin/../ch.jsp");
    _jspx_dependants.add("/admin/checkadmin.jsp");
  }

  public Object 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');
      out.write('\n');

request.setCharacterEncoding("gb2312");
response.setContentType("text/html;charset=gb2312");//½â¾öÖÐÎÄÂÒÂë

      out.write('\r');
      out.write('\n');

	if(session.getAttribute("name")==null){
	session.setAttribute("error","Äã·Ç·¨µÇ¼Ŷ!Çë´ÓÕýÈ·µÄµØÖ·µÇ¼£¡");
	out.println("<script>document.location='../errorpage.jsp';</script>");
	}

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
      out.write("\"http://www.w3.org/TR/html4/loose.dtd\">\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(".style1 {color: #FF0000}\r\n");
      out.write(".style2 {color: #000000}\r\n");
      out.write("a:link {\r\n");
      out.write("\tcolor: #0000FF;\r\n");
      out.write("}\r\n");
      out.write("a:visited {\r\n");
      out.write("\tcolor: #0099FF;\r\n");
      out.write("}\r\n");
      out.write("a:active {\r\n");
      out.write("\tcolor: #00FFFF;\r\n");
      out.write("}\r\n");
      out.write("body,td,th {\r\n");
      out.write("\tfont-size: 14px;\r\n");
      out.write("}\r\n");
      out.write(".fsdfsdsd {color: #000000; font-weight: bold; }\r\n");
      out.write("body {\r\n");
      out.write("\tmargin-left: 0px;\r\n");
      out.write("\tmargin-top: 0px;\r\n");
      out.write("\tmargin-right: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("\tbackground-image: url();\r\n");
      out.write("\tbackground-color: #009999;\r\n");
      out.write("}\r\n");
      out.write(".sdfdsfsdf {\r\n");
      out.write("\tfont-size: 11px;\r\n");
      out.write("\tcolor: #FFFFFF;\r\n");
      out.write("}\r\n");
      out.write(".style8 {color: #FF3300}\r\n");
      out.write(".style9 {color: #CC0033}\r\n");
      out.write(".style12 {color: #FFFFFF}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<script language=\"JavaScript\" type=\"text/JavaScript\">\r\n");
      out.write("<!--\r\n");
      out.write("function MM_callJS(jsStr) { //v2.0\r\n");
      out.write("  return eval(jsStr)\r\n");
      out.write("}\r\n");
      out.write("//-->\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"170\" border=\"0\" cellpadding=\"2\" cellspacing=\"5\" bordercolor=\"#CCCCCC\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"160\"><div align=\"right\">\r\n");
      out.write("      <table width=\"100%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#CCCCCC\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td><a href=\"admin_main.jsp\" target=\"mainFrame\">管理首页</a></td>\r\n");
      out.write("          <td><span class=\"style1\"><span class=\"style2\"><a href=\"loginout.jsp\" target=\"_parent\" onClick=\"MM_callJS('alert(\\'欢迎使用!谢谢!\\');')\">注销系统</a></span></span></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td colspan=\"2\"><img src=\"../images/icon_admin.gif\" width=\"16\" height=\"15\">当前管理员:<span class=\"style1\">");
      out.print(session.getAttribute("name"));
      out.write("</span></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("    </div></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"style1\"></span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"left\" valign=\"middle\"><table width=\"100%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#009933\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_borrowbook.jsp\" target=\"mainFrame\">借&nbsp;书</a></td>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_returnbook.jsp\" target=\"mainFrame\">还&nbsp;书</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"searchbook.jsp\" target=\"mainFrame\">查询图书</a></td>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_viewallborrows.jsp\" target=\"mainFrame\">借阅信息</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_addnewbook.jsp\" target=\"mainFrame\">录入新书</a></td>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_viewallbooks.jsp\" target=\"mainFrame\">所有图书</a></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 align=\"right\"><table width=\"100%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#009933\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_viewallusers.jsp\" target=\"mainFrame\">所有用户</a></td>\r\n");
      out.write("        <td align=\"center\"><a href=\"searchuser.jsp\" target=\"mainFrame\">查询用户</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td colspan=\"2\" align=\"center\"><a href=\"admin_addnewuser.jsp\" target=\"mainFrame\">新开借书证用户</a></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 align=\"right\"><table width=\"100%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#009933\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_viewalladmins.jsp\" target=\"mainFrame\">管理员列表</a></td>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_addadmin.jsp\" target=\"mainFrame\">添加管理员</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_changepwd.jsp\" target=\"mainFrame\">修改密码</a></td>\r\n");
      out.write("        <td align=\"center\"><a href=\"../guestbook/guestbook_index.jsp\" target=\"mainFrame\">添加留言</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><a href=\"admin_systeminfo.jsp\" target=\"mainFrame\">统计信息</a></td>\r\n");
      out.write("        <td align=\"center\"></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr align=\"center\">\r\n");
      out.write("        <td colspan=\"2\"><a href=\"admin_addnotice.jsp\" target=\"mainFrame\">发布首页公告</a></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 align=\"right\"><table width=\"100%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#009933\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"center\"><span class=\"style1\"><strong><a>系统信息</a></strong></span></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"left\"> <em>版权所有</em>:<span class=\"style8\"><span class=\"style9\">高</span><span class=\"style12\">向</span><span class=\"style9\">阳</span></span></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"left\"><em>灵感来源</em>:<a href=\"http://www.cuit.edu.cn\" target=\"_blank\" title=\"毕业设计\">毕业设计</a></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td align=\"left\"><em>作者QQ</em>:757233413 </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 align=\"right\"><div align=\"center\" class=\"style12\">西安文理学院</div></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"left\" valign=\"top\"><img src=\"../images/R6B.GIF\" width=\"164\" height=\"157\"></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 + -