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

📄 admin_005ftop_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_005ftop_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/checkadmin.jsp");
    _jspx_dependants.add("/admin/../ch.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');

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

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

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

      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>JSP版图书管理系统后台</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {\r\n");
      out.write("\tfont-size: 50px;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("\tcolor: #FF00FF;\r\n");
      out.write("}\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("}\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("<div align=\"left\">\r\n");
      out.write("  <table border=\"0\" cellpadding=\"0\" cellspacing=\"1\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=\"480\"><img src=\"../images/admin_top.jpg\" width=\"480\" height=\"60\"></td>\r\n");
      out.write("      <td width=\"20\"><img src=\"../images/toptip.jpg\" width=\"20\" height=\"60\"></td>\r\n");
      out.write("      <td width=\"18\">&nbsp;</td>\r\n");
      out.write("      <td width=\"41\"><a href=\"admin_returnbook.jsp\" target=\"mainFrame\"><img src=\"../images/bookreturn.gif\" alt=\"还书\" width=\"35\" height=\"31\" border=\"0\"></a></td>\r\n");
      out.write("      <td width=\"41\"><a href=\"admin_borrowbook.jsp\" target=\"mainFrame\"><img src=\"../images/borrowbook.gif\" alt=\"借阅图书\" width=\"35\" height=\"31\" border=\"0\"></a></td>\r\n");
      out.write("      <td width=\"40\"><a href=\"searchbook.jsp\" target=\"mainFrame\"><img src=\"../images/booksearch.gif\" alt=\"查询图书\" width=\"35\" height=\"31\" border=\"0\"></a></td>\r\n");
      out.write("      <td width=\"44\"><a href=\"admin_addnewbook.jsp\" target=\"mainFrame\"><img src=\"../images/addbook.gif\" alt=\"录入新书到库\" width=\"35\" height=\"31\" border=\"0\"></a></td>\r\n");
      out.write("      <td width=\"42\"><a href=\"admin_addnewuser.jsp\" target=\"mainFrame\"><img src=\"../images/adduser.gif\" alt=\"添加借书证用户\" width=\"35\" height=\"31\" border=\"0\"></a></td>\r\n");
      out.write("      <td width=\"40\"><a href=\"admin_addadmin.jsp\" target=\"mainFrame\"><img src=\"../images/addadmin.gif\" alt=\"添加系统管理员\" width=\"35\" height=\"33\" border=\"0\"></a></td>\r\n");
      out.write("      <td width=\"40\"><img src=\"../images/syslock.gif\" width=\"35\" height=\"31\"></td>\r\n");
      out.write("      <td width=\"76\"><a href=\"../index.jsp\" target=\"_blank\"><img src=\"../images/i_home.gif\" alt=\"前台首页\" width=\"16\" height=\"18\" border=\"0\"></a></td>\r\n");
      out.write("\t  <td width=\"95\"><a href=\"loginout.jsp\" target=\"_top\" onClick=\"MM_callJS('alert(\\'欢迎使用!谢谢!\\');')\"><img src=\"../images/exit.gif\" alt=\"退出后台\" width=\"35\" height=\"31\" border=\"0\"></a></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  <table border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td><img src=\"../images/admin_title.gif\" width=\"158\" height=\"38\"></td>\r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\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)
          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 + -