Ejemplo n.º 1
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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("\n");
      out.write("\n");
      out.write(" \n");
      out.write("<html>\n");
      out.write("    <head>\n");
      out.write(
          "        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n");
      out.write("        <title>Login page | Hello World Struts application in Eclipse</title>\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("    <h1>Login</h1>\n");
      out.write("    ");
      if (_jspx_meth_html_005fform_005f0(_jspx_page_context)) return;
      out.write("\n");
      out.write("    </body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 2
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=ISO-8859-1");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"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=ISO-8859-1\">\r\n");
      out.write("<title>Insert title here</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<form action=\"ClientServlet\">\r\n");
      out.write("Enter the bill amount <input type=\"text\" name=\"bill\"> \r\n");
      out.write("<input type=\"submit\" value=\"submit\">\r\n");
      out.write("</form>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 3
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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');
      out.write('\n');
      response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + "/html"));
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, false, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write('\n');
      out.write('\n');
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) return;
      out.write('\n');
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 5
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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("<html>\n");
      out.write("\t<head>\n");
      out.write("\t\t\n");
      out.write("\t\t\n");
      out.write("\t\t<link rel=\"stylesheet\" href=\"bootstrap/dist/css/bootstrap.css\">\n");
      out.write("\t</head>\n");
      out.write("\t<body>\n");
      out.write("\t\t<div id=\"wrapper\">\n");
      out.write("\t\t\t<nav class=\"navbar navbar-default\">\n");
      out.write("\t\t\t  <div class=\"container-fluid\">\n");
      out.write("\t\t\t    <!-- Brand and toggle get grouped for better mobile display -->\n");
      out.write("\t\t\t    <div class=\"navbar-header\">\n");
      out.write(
          "\t\t\t    \t<a href=\"servlet/Deco\" type=\"submit\" value=\"Deconnexion\"> Se déconnecter </a>\n");
      out.write("    \t\t\t</div>\n");
      out.write("    \t\t</div>\n");
      out.write("\n");
      out.write("\t\t\t<h1> Bonjour ");
      out.print(session.getAttribute("login"));
      out.write(" ! </h1></div>\n");
      out.write("\t\t\t\n");
      out.write("\t\t\t\t<ul>\n");
      out.write("\t\t\t\t");

      String shortPath = request.getContextPath() + "/users/" + session.getAttribute("login");
      String longPath =
          request.getServletContext().getRealPath("/") + "/users/" + session.getAttribute("login");
      String[] files = new File(longPath).list();

      for (String s : files) {
        out.write("\n");
        out.write("\t\t\t\t\t\t<li> <a download=\"");
        out.print(s);
        out.write("\" href=\"");
        out.print(shortPath);
        out.write('/');
        out.print(s);
        out.write('"');
        out.write('>');
        out.write(' ');
        out.print(s);
        out.write(" </a> </li>\n");
        out.write("\t\t\t\t");
      }
      out.write("\n");
      out.write("\t\t\t\t</ul>\n");
      out.write("\n");
      out.write("\t\t\t<div class=\"col-md-4 col-md-offset-4\">\n");
      out.write(
          "\t\t\t\t<form method=\"POST\" action=\"servlet/Upload\" enctype=\"multipart/form-data\"  >\n");
      out.write(
          "\t\t            <div class=\"form-group\"><label>File Input <input type=\"file\" name=\"file\" id=\"file\" /></div>\n");
      out.write(
          "\t\t            <input type=\"submit\" value=\"Upload\" name=\"upload\" class=\"btn btn-primary btn-lg btn-block\">\n");
      out.write("\t\t        </form>\n");
      out.write("\t   \t\t</div>\n");
      out.write("\t\t</div>\n");
      out.write("\t</body>\n");
      out.write("</head>\n");
      out.write("\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 6
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=utf-8");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta charset=\"UTF-8\">\r\n");
      out.write("<title>登录界面</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("\t.main{\r\n");
      out.write("\t\tbackground-image: url(images/Yosemite2.jpg);\r\n");
      out.write("\t\tbackground-repeat:no-repeat;\r\n");
      out.write("\t\tbackground-position:left;\r\n");
      out.write("\t\tbackground-attachment:fixed;\r\n");
      out.write("\t\toverflow: hidden;\r\n");
      out.write("\t}\r\n");
      out.write("\t.div1{\r\n");
      out.write("\t\tposition:relative;\r\n");
      out.write("\t\tleft:500px;\r\n");
      out.write("\t\ttop:200px;\r\n");
      out.write("\t}\r\n");
      out.write("\t.tb1{\r\n");
      out.write("\t\twidth:400px;\r\n");
      out.write("\t\theight:250px;\r\n");
      out.write("\t\tborder-color: blue;\r\n");
      out.write("\t\tborder-width: 1px;\r\n");
      out.write("\t\tborder-style: solid;\r\n");
      out.write("\t}\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body class=\"main\">\r\n");
      out.write("\t<form method=\"post\" action=\"UserLogin.do\">\r\n");
      out.write("\t<div class=\"div1\">\r\n");
      out.write("\t\t<table class=\"tb1\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t<td colspan=\"2\"><center><h2>房间管理系统登录</h2></center></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t<td style=\"width:80px\">用户名:</td>\r\n");
      out.write("\t\t\t<td><input type=\"text\" name=\"name\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope.username}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"/><font color=\"red\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope.userError }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</font></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t<td>密  码:</td>\r\n");
      out.write("\t\t\t<td><input type=\"password\" name=\"password\"/><font color=\"red\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope.pwdError }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</font></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write(
          "\t\t\t\t<td colspan=\"2\"><center><input type=\"submit\" value=\"登录\"/><font color=\"red\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope.messageError }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</font></center></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\r\n");
      out.write("\t</form>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 7
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<title>SOOIN SMC :: 수인에스엠씨</title>\r\n");
      out.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">\r\n");
      out.write("<link\r\n");
      out.write(
          "\thref=\"http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css\"\r\n");
      out.write("\trel=\"stylesheet\">\r\n");
      out.write("<script\r\n");
      out.write(
          "\tsrc=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\r\n");
      out.write("<script\r\n");
      out.write(
          "\tsrc=\"http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js\"></script>\r\n");
      out.write("<script\r\n");
      out.write(
          "\tsrc=\"http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap-dropdown.js\"></script>");
      out.write("\r\n");
      out.write("<style>\r\n");
      out.write("/* sub-left style */\r\n");
      out.write("div#sub-left {\r\n");
      out.write("\tpadding-top: 70px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("div#sub-right {\r\n");
      out.write("\tpadding-top: 70px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-left h2 {\r\n");
      out.write("\theight: 43px;\r\n");
      out.write("\tborder-bottom: 1px solid #f4f4f4;\r\n");
      out.write("\ttext-indent: 11px;\r\n");
      out.write("\tcolor: #4083c2;\r\n");
      out.write("\tfont-weight: 100;\r\n");
      out.write("\tfont-size: 25px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("ul, ol {\r\n");
      out.write("\tlist-style: outside none none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-left .smenu:hover, #sub-left .smenu.active {\r\n");
      out.write("\t/* color: #4458a6; */\r\n");
      out.write("\tcolor: #fff;\r\n");
      out.write("\tbackground-color: #4083c2;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a:link {\r\n");
      out.write("\tcolor: #666;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a {\r\n");
      out.write("\toutline: medium none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a {\r\n");
      out.write("\tcolor: #666;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-left .smenu {\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\theight: 40px;\r\n");
      out.write("\tline-height: 40px;\r\n");
      out.write("\ttext-indent: 12px;\r\n");
      out.write("\tfont-size: 15px;\r\n");
      out.write("\tborder-bottom: 1px solid #f4f4f4;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-left {\r\n");
      out.write("\twidth: 200px;\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tpadding-top: 63px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub {\r\n");
      out.write("\twidth: 980px;\r\n");
      out.write("\tmargin: 0px auto;\r\n");
      out.write("\tbackground: transparent url(\"/images/sub-bg.gif\") repeat-y scroll 200px\r\n");
      out.write("\t\t0px;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("\tz-index: 1;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("/* sub-right style */\r\n");
      out.write("#sub-right {\r\n");
      out.write("\twidth: 750px;\r\n");
      out.write("\tfloat: right;\r\n");
      out.write("\tpadding: 60px 0px;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-right .svisual {\r\n");
      out.write("\tposition: absolute;\r\n");
      out.write("\tz-index: 10;\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\theight: 190px;\r\n");
      out.write("\tright: 0px;\r\n");
      out.write("\ttop: 99px;\r\n");
      out.write("\twidth: 50px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("img {\r\n");
      out.write("\tborder: 0px none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("fieldset, img {\r\n");
      out.write("\tborder: 0px none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-right #navi {\r\n");
      out.write("\tcolor: #A6A6A6;\r\n");
      out.write("\tfont-size: 11px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("body, p, ul, ol, li, dl, dt, dd, form, table, th, td, fieldset, input,\r\n");
      out.write("\ttextarea, select, button, h1, h2, h3, h4, h5, h6, pre {\r\n");
      out.write("\tmargin: 0px;\r\n");
      out.write("\tpadding: 0px;\r\n");
      out.write("\tfont-family: 나눔고딕, NanumGothic, nanum, \"맑은 고딕\", \"Malgun Gothic\", 돋움,\r\n");
      out.write("\t\tDotum, 굴림, Gulim, Helvetica, applegothic, sans-serif;\r\n");
      out.write("\tfont-size: 12px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-right #navi span {\r\n");
      out.write("\tcolor: #4C4C4C;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-right #sub-title {\r\n");
      out.write("    color: #4C4C4C;\r\n");
      out.write("    font-size: 40px;\r\n");
      out.write("    font-weight: 600;\r\n");
      out.write("    padding-top: 15px;\r\n");
      out.write("    border-bottom: 1px solid #EDEDED;\r\n");
      out.write("    height: 60px;\r\n");
      out.write("    position: relative;\r\n");
      out.write("    z-index: 5;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-right #sub-title span {\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\twidth: 158px;\r\n");
      out.write("\theight: 12px;\r\n");
      out.write("\tbackground: transparent url(\"/images/sub-title-txt.gif\") no-repeat\r\n");
      out.write("\t\tscroll 0% 0%;\r\n");
      out.write("\ttext-indent: -9999px;\r\n");
      out.write("\tposition: absolute;\r\n");
      out.write("\tleft: 0px;\r\n");
      out.write("\tbottom: -3px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#sub-right #content {\r\n");
      out.write("\tmargin-top: 30px;\r\n");
      out.write("\tmin-height: 400px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".business-top {\r\n");
      out.write("\theight: 290px;\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".business-top-left {\r\n");
      out.write("\twidth: 206px;\r\n");
      out.write("\theight: 270px;\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tcolor: #fff;\r\n");
      out.write("\tpadding: 10px 10px 10px 30px;\r\n");
      out.write("\tfont-size: 14px;\r\n");
      out.write("\tfont-weight: 700;\r\n");
      out.write("\t/* background-color: #ba7adf; */\r\n");
      out.write("\tbackground-color: #3AB0D7;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".vspace20 {\r\n");
      out.write("\theight: 20px;\r\n");
      out.write("\twidth: 0px;\r\n");
      out.write("\toverflow: hidden;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".vspace5 {\r\n");
      out.write("\theight: 5px;\r\n");
      out.write("\twidth: 0px;\r\n");
      out.write("\toverflow: hidden;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".business-top-right {\r\n");
      out.write("\tfloat: right;\r\n");
      out.write("\twidth: 544px;\r\n");
      out.write("\theight: 50px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".clearfix::after {\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\tvisibility: hidden;\r\n");
      out.write("\tclear: both;\r\n");
      out.write("\tcontent: \"\";\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".business-mid {\r\n");
      out.write("\tclear: both;\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".table > tr td{\r\n");
      out.write("\tpadding: 10px 8px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("form>div {\r\n");
      out.write("\ttext-align: center;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#aInfo {\r\n");
      out.write("\tcolor: #4C4C4C;\r\n");
      out.write("\tfont-size: 20px;\r\n");
      out.write("\tfont-weight: 600;\r\n");
      out.write("\tpadding-top: 15px;\r\n");
      out.write("\theight: 60px;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("\tz-index: 5;\r\n");
      out.write("\ttext-align: center;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("input[type=\"submit\"] {\r\n");
      out.write("\tcursor: pointer;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".button {\r\n");
      out.write("\tbackground-color: #4083C2;\r\n");
      out.write("\tcolor: #FFF;\r\n");
      out.write("\theight: 23px;\r\n");
      out.write("\twidth: 125px;\r\n");
      out.write("\tpadding: 0px;\r\n");
      out.write("\tfont-size: 12px;\r\n");
      out.write("\tmargin-top: 10px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".button {\r\n");
      out.write("\tbackground-color: #4083c2;\r\n");
      out.write("\tcolor: white;\r\n");
      out.write("\theight: 23px;\r\n");
      out.write("\twidth: 80px;\r\n");
      out.write("\tdisplay: inline-block;\r\n");
      out.write("\tpadding: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("\tfont-size: 12px;\r\n");
      out.write("\tfont-weight: 400;\r\n");
      out.write("\tline-height: 1.42857;\r\n");
      out.write("\ttext-align: center;\r\n");
      out.write("\twhite-space: nowrap;\r\n");
      out.write("\tvertical-align: middle;\r\n");
      out.write("\tcursor: pointer;\r\n");
      out.write("\t-moz-user-select: none;\r\n");
      out.write("\tbackground-image: none;\r\n");
      out.write("\tborder: 1px solid transparent;\r\n");
      out.write("\tborder-radius: 4px;\r\n");
      out.write("\tmargin-top: 10px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".btn:hover {\r\n");
      out.write("\tcolor: white;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".text {\r\n");
      out.write("\tmargin-left: 5px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".login{\r\n");
      out.write("\twidth: 150px;\r\n");
      out.write("\theight: 30px;\r\n");
      out.write("\tmargin-bottom: 5px;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");

      String errMsg = null;
      util.RequestParameter param = new RequestParameter(request);
      String loginId = param.getString("loginId", "");

      if (request.getMethod().equals("POST")) {
        Manager manager = ManagerDAO.selectByLoginId(loginId);
        if (manager != null) {
          String passwd = param.getString("passwd", "");
          if (ManagerDAO.checkPasswd(loginId, passwd)) {
            // if (manager.isEnabled()) {
            ManagerService.login(session, manager);
            String returnUrl = (String) session.getAttribute("returnUrl");
            if (returnUrl == null) returnUrl = request.getContextPath() + "/main.jsp";
            response.sendRedirect(returnUrl);
            return;
            // }
            // else errMsg = "비활성화된 사용자입니다";
          } else errMsg = "비밀번호가 잘못되었습니다";
        } else errMsg = "로그인 아이디가 잘못되었습니다";
      }

      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<style>\r\n");
      out.write("nav, p, ul, ol, li, dl, dt, dd, form, table, th, td, fieldset, input,\r\n");
      out.write("\ttextarea, select, button, h1, h2, h3, h4, h5, h6, pre {\r\n");
      out.write("\tmargin: 0px;\r\n");
      out.write("\tpadding: 0px;\r\n");
      out.write(
          "\tfont-family: \"나눔고딕\", NanumGothic, nanum, \"맑은 고딕\", \"Malgun Gothic\", \"돋움\",\r\n");
      out.write("\t\tDotum, \"굴림\", Gulim, Helvetica, applegothic, sans-serif;\r\n");
      out.write("\tfont-size: 14px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("nav {\r\n");
      out.write("\theight: 100%;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#wrap {\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top-wrap {\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("\theight: 100px;\r\n");
      out.write("\tborder-bottom: 1px solid #cfcfcf;\r\n");
      out.write("\tz-index: 5;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top {\r\n");
      out.write("\twidth: 980px;\r\n");
      out.write("\tmargin: 0px auto;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #logo {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tmargin: 19px 50px 0px 40px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #logo, #top #logo a {\r\n");
      out.write("\twidth: 30px;\r\n");
      out.write("\theight: 10px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #logo, #top #logo a {\r\n");
      out.write("\twidth: 100px;\r\n");
      out.write("\theight: 10px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a:link {\r\n");
      out.write("\tcolor: #666;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a {\r\n");
      out.write("\toutline: medium none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a {\r\n");
      out.write("\tcolor: #666;\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #tnb {\r\n");
      out.write("\tfloat: right;\r\n");
      out.write("\tmargin: 50px 50px 0px 0px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("ul, ol {\r\n");
      out.write("\tlist-style: outside none none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #tnb li {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tmargin-left: 15px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("img {\r\n");
      out.write("\tborder: 0px none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("fieldset, img {\r\n");
      out.write("\tborder: 0px none;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tmargin: 50px 0px 0px 60px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li .menu {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\tcolor: #333;\r\n");
      out.write("\tfont-size: 25px;\r\n");
      out.write("\tfont-weight: 600;\r\n");
      out.write("\tpadding: 0px 120px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li ul {\r\n");
      out.write("\tposition: absolute;\r\n");
      out.write("\tdisplay: none;\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("\ttop: 100px;\r\n");
      out.write("\tleft: 0px;\r\n");
      out.write("\tbackground: rgb(255, 255, 255) none repeat scroll 0% 0%;\r\n");
      out.write("\theight: 105px;\r\n");
      out.write("\t/* border-bottom: 1px solid #E5E5E5; */\r\n");
      out.write("\tbackground-color: #f9f9f9;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li ul li {\r\n");
      out.write("\twidth: 980px;\r\n");
      out.write("\tposition: absolute;\r\n");
      out.write("\tleft: 50%;\r\n");
      out.write("\tmargin-left: -320px;\r\n");
      out.write("\ttop: 0px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li #snb1 li a:first-child {\r\n");
      out.write("\twidth: 200px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li #snb1 li a {\r\n");
      out.write("\twidth: 200px;\r\n");
      out.write("\tbackground-position: 130px 46px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li ul li #menu /smenu11 {\r\n");
      out.write("\tbackground-image: url(\"/images/picture_suin.png\");\r\n");
      out.write("}\r\n");
      out.write("/*   top #gnb li ul li a:first-child {\r\n");
      out.write("\tborder-left: 1px solid #E5E5E5;\r\n");
      out.write("} \r\n");
      out.write("  #top #gnb li #snb2 li a:first-child {\r\n");
      out.write("    width: 0px;\r\n");
      out.write("} */\r\n");
      out.write("#top #gnb li #snb2 li a {\r\n");
      out.write("\twidth: 200px;\r\n");
      out.write("\tbackground-position: 150px 46px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li #snb3 li a {\r\n");
      out.write("\twidth: 200px;\r\n");
      out.write("\tbackground-position: 170px 46px;\r\n");
      out.write("\tmargin-left: 230px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li #snb4 li a {\r\n");
      out.write("\twidth: 200px;\r\n");
      out.write("\tbackground-position: 200px 46px;\r\n");
      out.write("\tmargin-left: 360px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li ul li a:first-child {\r\n");
      out.write("\t/* border-left: 1px solid #E5E5E5;\r\n");
      out.write("\tborder-right: 1px solid #E5E5E5; */\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li ul li a {\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\t/* border-right: 2px solid #E5E5E5; */\r\n");
      out.write("\tbackground-repeat: no-repeat;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li .menu:hover, #top #gnb li .menu.active {\r\n");
      out.write("\tcolor: #4083c2 !important;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#top #gnb li .menu {\r\n");
      out.write("\tfloat: left;\r\n");
      out.write("\tdisplay: block;\r\n");
      out.write("\tcolor: #333;\r\n");
      out.write("\tfont-size: 15px;\r\n");
      out.write("\tfont-weight: 600;\r\n");
      out.write("\tpadding: 0px 28px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("</style>\r\n");
      out.write("<script>\r\n");
      out.write("\t$(document)\r\n");
      out.write("\t\t\t.ready(\r\n");
      out.write("\t\t\t\t\tfunction() {\r\n");
      out.write("\t\t\t\t\t\t$(\"#gnb > .mn\")\r\n");
      out.write("\t\t\t\t\t\t\t\t.each(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tfunction(index) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t$(this)\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t.bind(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"mouseenter focusin\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction() {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"#gnb > .mn:not(#gnb > .mn:eq(\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ index\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \")) > ul\")\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.slideUp(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t100);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"#gnb > .mn:eq(\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ index\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \") ul:not(:animated)\")\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.slideDown(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t200);\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"#gnb > .mn:not(#gnb > .mn:eq(\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ index\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \")) > .menu\")\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeClass(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"over\");\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"#gnb > .mn:eq(\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ index\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \") .menu\")\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addClass(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"over\");\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t});\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t$(\"#top-wrap\").bind(\"mouseleave\", function() {\r\n");
      out.write("\t\t\t\t\t\t\t$(\".mn > ul\").slideUp(100);\r\n");
      out.write("\t\t\t\t\t\t\t$(\".menu\").removeClass(\"over\");\r\n");
      out.write("\t\t\t\t\t\t\t$(\"#gnb > .menu\").removeClass(\"over\");\r\n");
      out.write("\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t});\r\n");
      out.write("</script>\r\n");

      String R78 = request.getContextPath();
      boolean isManager = ManagerService.isCurrentUserLoggedIn(session);

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<nav id=\"mbody\">\r\n");
      out.write("\r\n");
      out.write("\t<form action=\"\" target=\"\" method=\"post\" name=\"f\">\r\n");
      out.write("\t\t<input type=\"hidden\" value=\"\" name=\"reqPKey\"></input>\r\n");
      out.write("\t</form>\r\n");
      out.write("\t<div id=\"wrap\">\r\n");
      out.write("\t\t<div class=\"notipop\"></div>\r\n");
      out.write("\t\t<div class=\"moviewrap\"></div>\r\n");
      out.write("\t\t<div id=\"top-wrap\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t<div id=\"top\">\r\n");
      out.write("\t\t\t\t<h1 id=\"logo\">\r\n");
      out.write("\t\t\t\t\t<a href=\"");
      out.print(R78);
      out.write("/main.jsp\"> <img title=\"메인\" alt=\"메인\"\r\n");
      out.write("\t\t\t\t\t\tsrc=\"");
      out.print(R78);
      out.write("/images/logo_final.png\" width=\"120px\" height=\"80px\"></img></a>\r\n");
      out.write("\t\t\t\t</h1>\r\n");
      out.write("\t\t\t\t<ul id=\"tnb\">\r\n");
      out.write("\t\t\t\t\t<li><a href=\"");
      out.print(R78);
      out.write("/main.jsp\"> <img title=\"HOME\"\r\n");
      out.write("\t\t\t\t\t\t\talt=\"HOME\" src=\"");
      out.print(R78);
      out.write("/images/home2.png\" width=\"25px\"\r\n");
      out.write("\t\t\t\t\t\t\theight=\"25px\"></img>\r\n");
      out.write("\t\t\t\t\t</a></li>\r\n");
      out.write("\t\t\t\t\t");

      if (!isManager) {

        out.write("\r\n");
        out.write("\t\t\t\t\t<li><a href=\"");
        out.print(R78);
        out.write("/guest/login.jsp\"> <img title=\"로그인\"\r\n");
        out.write("\t\t\t\t\t\t\talt=\"로그인\" src=\"");
        out.print(R78);
        out.write("/images/login.png\" width=\"25px\"\r\n");
        out.write("\t\t\t\t\t\t\theight=\"25px\"></img>\r\n");
        out.write("\t\t\t\t\t</a></li>\r\n");
        out.write("\t\t\t\t\t");

      } else {

        out.write("\r\n");
        out.write("\t\t\t\t\t<li><a href=\"");
        out.print(R78);
        out.write("/guest/logout.jsp\"> <img title=\"로그아웃\"\r\n");
        out.write("\t\t\t\t\t\t\talt=\"로그아웃\" src=\"");
        out.print(R78);
        out.write("/images/login-ok.png\"\r\n");
        out.write("\t\t\t\t\t\t\tonclick=\"return confirm('로그아웃 하시겠습니까?');\" width=\"25px\"\r\n");
        out.write("\t\t\t\t\t\t\theight=\"25px\"></img>\r\n");
        out.write("\t\t\t\t\t</a></li>\r\n");
        out.write("\t\t\t\t\t");
      }

      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t<ul id=\"gnb\">\r\n");
      out.write("\t\t\t\t\t<li class=\"mn\"><a class=\"menu\"\r\n");
      out.write("\t\t\t\t\t\thref=\"");
      out.print(R78);
      out.write("/menu/smenu11.jsp?\"> 회사소개 </a>\r\n");
      out.write("\t\t\t\t\t\t<ul id=\"snb1\">\r\n");
      out.write("\t\t\t\t\t\t\t<li><a id=\"");
      out.print(R78);
      out.write("/menu/smenu11\"\r\n");
      out.write("\t\t\t\t\t\t\t\thref=\"");
      out.print(R78);
      out.write("/menu/smenu11.jsp?\"> <img title=\"경영이념\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\talt=\"경영이념\" src=\"");
      out.print(R78);
      out.write("/images/smenu11-top.jpg\" name=\"smenu11\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu11.src='");
      out.print(R78);
      out.write("/images/smenu11-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu11.src='");
      out.print(R78);
      out.write("/images/smenu11-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t</a> <a id=\"");
      out.print(R78);
      out.write("/menu/smenu12\" href=\"");
      out.print(R78);
      out.write("/menu/smenu12.jsp?\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<img title=\"찾아오시는 길\" alt=\"찾아오시는 길\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsrc=\"");
      out.print(R78);
      out.write("/images/smenu12-top.jpg\" name=\"smenu12\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu12.src='");
      out.print(R78);
      out.write("/images/smenu12-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu12.src='");
      out.print(R78);
      out.write("/images/smenu12-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t</a></li>\r\n");
      out.write("\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\t\t\t\t\t<li class=\"mn\"><a class=\"menu\"\r\n");
      out.write("\t\t\t\t\t\thref=\"");
      out.print(R78);
      out.write("/menu/smenu21.jsp?\"> 사업영역 </a>\r\n");
      out.write("\t\t\t\t\t\t<ul id=\"snb2\">\r\n");
      out.write("\t\t\t\t\t\t\t<li><a id=\"menu/smenu21\" href=\"");
      out.print(R78);
      out.write("/menu/smenu21.jsp?\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<img title=\"시설영역\" alt=\"시설영역\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsrc=\"");
      out.print(R78);
      out.write("/images/smenu21-top.jpg\" name=\"smenu21\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu21.src='");
      out.print(R78);
      out.write("/images/smenu21-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu21.src='");
      out.print(R78);
      out.write("/images/smenu21-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\t\t\t\t\t\t\t</a> <a id=\"menu/smenu22\" href=\"");
      out.print(R78);
      out.write("/menu/smenu22.jsp?\"> <img\r\n");
      out.write("\t\t\t\t\t\t\t\t\ttitle=\"보안영역\" alt=\"보안영역\" src=\"");
      out.print(R78);
      out.write("/images/smenu22-top.jpg\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tname=\"smenu22\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu22.src='");
      out.print(R78);
      out.write("/images/smenu22-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu22.src='");
      out.print(R78);
      out.write("/images/smenu22-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\t\t\t\t\t\t\t</a> <a id=\"menu/smenu23\" href=\"");
      out.print(R78);
      out.write("/menu/smenu23.jsp?\"> <img\r\n");
      out.write("\t\t\t\t\t\t\t\t\ttitle=\"미화영역\" alt=\"미화영역\" src=\"");
      out.print(R78);
      out.write("/images/smenu23-top.jpg\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tname=\"smenu23\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu23.src='");
      out.print(R78);
      out.write("/images/smenu23-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu23.src='");
      out.print(R78);
      out.write("/images/smenu23-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\t\t\t\t\t\t\t</a></li>\r\n");
      out.write("\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\t\t\t\t\t<li class=\"mn\"><a class=\"menu\"\r\n");
      out.write("\t\t\t\t\t\thref=\"");
      out.print(R78);
      out.write("/menu/smenu31.jsp?\"> 수인광장 </a>\r\n");
      out.write("\t\t\t\t\t\t<ul id=\"snb3\">\r\n");
      out.write("\t\t\t\t\t\t\t<li><a id=\"menu/smenu31\" href=\"");
      out.print(R78);
      out.write("/menu/smenu31.jsp?\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<img title=\"수인소식\" alt=\"수인소식\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsrc=\"");
      out.print(R78);
      out.write("/images/smenu31-top.jpg\" name=\"smenu31\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu31.src='");
      out.print(R78);
      out.write("/images/smenu31-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu31.src='");
      out.print(R78);
      out.write("/images/smenu31-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\t\t\t\t\t\t\t</a></li>\r\n");
      out.write("\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t<li class=\"mn\"><a class=\"menu\"\r\n");
      out.write("\t\t\t\t\t\thref=\"");
      out.print(R78);
      out.write("/menu/smenu41.jsp?\"> 견적의뢰 </a>\r\n");
      out.write("\t\t\t\t\t\t<ul id=\"snb4\">\r\n");
      out.write("\t\t\t\t\t\t\t<li><a id=\"menu/smenu41\" href=\"");
      out.print(R78);
      out.write("/menu/smenu41.jsp?\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<img title=\"견적의뢰\" alt=\"견적의뢰\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsrc=\"");
      out.print(R78);
      out.write("/images/smenu41-top.jpg\" name=\"smenu41\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseover=\"smenu41.src='");
      out.print(R78);
      out.write("/images/smenu41-top-hover.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tonmouseout=\"smenu41.src='");
      out.print(R78);
      out.write("/images/smenu41-top.jpg'\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth=\"200px\" height=\"105px\"></img>\r\n");
      out.write("\t\t\t\t\t\t\t</a></li>\r\n");
      out.write("\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\t\t\t\t</ul>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("</nav>");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div class=\"container main\">\r\n");
      out.write("\r\n");
      out.write("<div id=\"aInfo\">관리자 로그인</div>\r\n");
      out.write("\r\n");
      out.write("    <form method=\"post\">\r\n");
      out.write("    <div>\r\n");
      out.write("\t\t<input type='text' class=\"login\" name='loginId' size='10'\r\n");
      out.write("\t\t\tplaceholder=\"아이디\" value=\"");
      out.print(loginId);
      out.write("\">\r\n");
      out.write("\t</div>\r\n");
      out.write("\t<div>\r\n");
      out.write("\t\t<input type='password' class=\"login\" name='passwd' size='10'\r\n");
      out.write("\t\t\tplaceholder=\"비밀번호\">\r\n");
      out.write("\t</div>\r\n");
      out.write("\r\n");
      out.write("        <div>\r\n");
      out.write("            <button type=\"submit\" class=\"button btn btn-primary\">\r\n");
      out.write("                <i class=\"icon-ok icon-white\"></i>\r\n");
      out.write("                로그인\r\n");
      out.write("            </button>\r\n");
      out.write("            \r\n");
      out.write("        </div>\r\n");
      out.write("    </form>\r\n");
      out.write("    ");
      if (errMsg != null) {
        out.write("\r\n");
        out.write("        <div class=\"alert alert-error\">");
        out.print(errMsg);
        out.write("</div>\r\n");
        out.write("    ");
      }
      out.write("\r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<style>\r\n");
      out.write("#bottom{\r\n");
      out.write("    display:block;\r\n");
      out.write("    text-align:center;\r\n");
      out.write("    height:100px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#bottom-img{\r\n");
      out.write("    padding:10px 75px;\r\n");
      out.write("    text-align:cetner;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("    <div class=\"main\" id=\"bottom\">\r\n");
      out.write("        <img id=\"bottom-img\" alt=\"수인\" src=\"");
      out.print(request.getContextPath());
      out.write("/images/bottom.png\" width=\"810px\">\r\n");
      out.write("    </div>");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 8
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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("\n");
      out.write("     \n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");

      request.setCharacterEncoding("euc-kr");

      out.write('\n');
      guestModel.GuestDto guest = null;
      guest =
          (guestModel.GuestDto)
              _jspx_page_context.getAttribute("guest", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (guest == null) {
        guest = new guestModel.GuestDto();
        _jspx_page_context.setAttribute("guest", guest, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(
          _jspx_page_context.findAttribute("guest"), request);
      out.write('\n');

      int num = Integer.parseInt(request.getParameter("num"));
      out.print("num" + num);
      int check = GuestDao.getInstance().delete(guest.getNum());
      out.print("check:" + check);

      out.write("\n");
      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\t");
      if (check > 0) {
        out.write("\n");
        out.write("\t\t<script type=\"text/javascript\">\n");
        out.write("\t\t\talert(\"삭제되었습니다.\");\n");
        out.write("\t\t\tlocation.href=\"write.jsp\";\n");
        out.write("\t\t</script>\n");
        out.write("\t\n");
        out.write("\t");
      } else {
        out.write("\n");
        out.write("\t\t<script type=\"text/javascript\">\n");
        out.write("\t\t\talert(\"삭제 실패.\");\n");
        out.write("\t\t\tlocation.href=\"write.jsp\";\n");
        out.write("\t\t</script>\n");
        out.write("\t");
      }
      out.write("\n");
      out.write("\t\n");
      out.write("\t\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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("\n");
      out.write("\n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/articleForm.css\">\n");
      out.write("\t<script src=\"http://code.jquery.com/jquery-latest.min.js\"></script>\n");
      out.write("\t<script type=\"text/javascript\"  src=\"js/test.js\"></script>\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\t<div id = \"article_form_container\">\n");
      out.write(
          "\t\t<form name=\"articleForm\" action=\"/write\" method=\"post\" enctype=\"multipart/form-data\">\n");
      out.write("\t\t\t<div id =\"article_form\">\n");
      out.write(
          "\t\t\t\t<div id = \"article_title\">제목 : <input type=\"text\" name=\"title\" placeholder=\"제목을 입력하세요.\"/></div>\n");
      out.write(
          "\t\t\t\t<div id = \"address\">주소 : <input type=\"text\" name=\"address\" placeholder=\"주소를 입력하세요.\"/></div>\n");
      out.write("\t\t\t\t<div id = \"recruit_count\">\n");
      out.write("\t\t\t\t\t<div id=\"recruit_count_text\">모집 인원 : </div>\n");
      out.write("\t\t\t\t\t<table id=\"select_recruit_count\">\n");
      out.write("\t\t\t\t\t    <tr>\n");
      out.write(
          "\t\t\t\t\t    \t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><button id =\"down_button\" name=\"title\" style=\"height:24px;width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px;background-color:white;color:#CFCFCF\">-</button></td>\n");
      out.write(
          "\t\t\t\t\t\t\t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><div id=\"recruitCount\"name=\"recruitCount\" type=\"text\" value=\"1\" style=\"width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px\"/>1</td>\n");
      out.write(
          "\t\t\t\t\t\t\t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><button id = \"up_button\" style=\"width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px;background-color:white;color:#CFCFCF;\">+</button></td>\n");
      out.write("\t\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t</table>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<div id =\"visible_btn\" onclick=\"visible()\"></div>\n");
      out.write("\t\t\t\t<div id =\"img_container\" style=\"display:none;\">\n");
      out.write("\t\t\t\t\n");
      out.write("\n");
      out.write("\t\t\t\t<!-- img 시작  -->\n");
      out.write("\t\t\t\t\t<div id = \"before-img\">\n");
      out.write(
          "\t\t\t\t\t\t사진 등록<br /><input type=\"file\" name=\"file\" style=\"text-align:center; width:150px;\"/>\n");
      out.write(
          "\t\t\t\t\t\t<input type=\"hidden\" name=\"localLocation\" value=\"/userImg/beforeImg\">\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\n");
      out.write("\t\t\t\t\t<div id=\"area\" style=\"width:600px\";></div>\n");
      out.write("\n");
      out.write("\t\t\t\t\t<div id ='square-list' style=\"display:none\">\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"0\" src=\"img/dragndrop/0.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div> \t\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"1\" src=\"img/dragndrop/1.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"2\" src=\"img/dragndrop/2.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"3\" src=\"img/dragndrop/3.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"4\" src=\"img/dragndrop/4.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"5\" src=\"img/dragndrop/5.png\" height=\"80\" width=\"80\" style=\"margin-top:-12px;margin-left:-7px;\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"6\" src=\"img/dragndrop/6.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class=\"row\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper2'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"7\" src=\"img/dragndrop/7.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"8\" src=\"img/dragndrop/8.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"9\" src=\"img/dragndrop/9.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"10\" src=\"img/dragndrop/10.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"11\" src=\"img/dragndrop/11.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"12\" src=\"img/dragndrop/12.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"13\" src=\"img/dragndrop/13.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"14\" src=\"img/dragndrop/14.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class=\"row\">\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<!-- <div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t<img class=\"1\" src=\"img/dragndrop/1.png\" height=\"70\" width=\"90\" style=\"margin-top:30px;\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t<img class=\"2\" src=\"img/dragndrop/2.png\" height=\"120\" width=\"130\" style=\"margin-left:3px;margin-top:-8px;\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t<img class=\"3\" src=\"img/dragndrop/3.png\" height=\"140\" width=\"180\" style=\"margin-top:-10px;padding-left:30px;\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div> -->\n");
      out.write("\t\t\t\t<!-- 이미지 끝  -->\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<!-- <input type=\"file\" name=\"beforeImg\" />\n");
      out.write("\t\t\t\t<input type=\"file\" name=\"afterImg\" /> -->\n");
      out.write(
          "\t\t\t\t<div id = \"article_content\"><textarea name=\"content\" placeholder=\"내용을 입력하세요.\" /></textarea></div>\n");
      out.write("\t\t\t\t<!-- <div id = \"recruit_count\">\n");
      out.write("\t\t\t\t\t<select>\n");
      out.write("\t\t\t\t\t  \t<option value=\"1\">1</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"2\">2</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"3\">3</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"4\">4</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"5\">5</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"6\">6</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"7\">7</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"8\">8</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"9\">9</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"10\">10</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"11\">11</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"12\">12</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"13\">13</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"14\">14</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"15\">15</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"16\">16</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"17\">17</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"18\">18</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"19\">19</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"20\">20</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"21\">21</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"22\">22</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"23\">23</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"24\">24</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"25\">25</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"26\">26</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"27\">27</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"28\">28</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"29\">29</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"30\">30</option>\n");
      out.write("\t\t\t\t\t</select> -->\n");
      out.write("\t\t\t\t<!-- <input type=\"hidden\" name=\"userId\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${article.userId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\" /> -->\n");
      out.write("\t\t\t\t<!-- <input type=\"hidden\" name=\"id\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${article.id}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\" /> -->\n");
      out.write(
          "\t\t\t\t<div id = \"submit_button\" class=\"row\"><input type=\"submit\" name=\"submit\" value=\"확인\" /></div>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t</form>\n");
      out.write("\t</div>\t\n");
      out.write("\t\t\n");
      out.write("\t\n");
      out.write("\t<!-- holder에 upload된 file 바로 보여주기 시작 -->\n");
      out.write("\t<script>\n");
      out.write("    \tvar upload = document.getElementsByTagName('input')[2];\n");
      out.write("        var holder = document.getElementById('area');\n");
      out.write("        var suqareList = document.getElementById('square-list');\n");
      out.write("       \n");
      out.write("      \tupload.onchange = function (e) {\n");
      out.write("        \te.preventDefault();\n");
      out.write("\n");
      out.write("        \tvar file = upload.files[0];\n");
      out.write("            var reader = new FileReader();\n");
      out.write("        \treader.onload = function (event) {\n");
      out.write("\t          \tvar img = new Image();\n");
      out.write("\t          \timg.src = event.target.result;\n");
      out.write("\t      \t\timg.style.position = \"relative\";\n");
      out.write("\t        \timg.width = 600;\n");
      out.write("\t        \timg.height = 400;\n");
      out.write("\n");
      out.write("\t          \tholder.innerHTML = '';\n");
      out.write("\t          \tholder.width = 600;\n");
      out.write("\t          \tholder.appendChild(img);\n");
      out.write("        \t};\n");
      out.write("        \treader.readAsDataURL(file);\n");
      out.write("        \treturn false;\n");
      out.write("      \t};\n");
      out.write("      \tsuqareList.style.display = \"block\";\n");
      out.write("    </script>\n");
      out.write("    <!-- holder에 upload된 file 바로 보여주기 끝 -->\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<div>\r\n");
      out.write("  <div class=\"panel panel-default\">\r\n");
      out.write("    <div class=\"panel-heading\">新评论:</div>\r\n");
      out.write("    <div class=\"panel-body\">\r\n");
      out.write("      <table class=\"table table-striped\" id=\"commentNewReply\">\r\n");
      out.write("        <!--<tr>\r\n");
      out.write("          <td>\r\n");
      out.write("            <div class=\"fs-article-meta\">\r\n");
      out.write("              <a href=\"#\">WhatElse</a> : <span>评论了你的文章</span> : \r\n");
      out.write(
          "              <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test One Title</a></span>\r\n");
      out.write("              <div>\r\n");
      out.write("                <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n");
      out.write("              </div>\r\n");
      out.write("            </div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td>\r\n");
      out.write("            <div class=\"fs-article-meta\">\r\n");
      out.write("              <a href=\"#\">WhoYou</a> : <span>评论了你的文章</span> : \r\n");
      out.write(
          "              <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n");
      out.write("              <div>\r\n");
      out.write("                <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n");
      out.write("              </div>\r\n");
      out.write("            </div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td>\r\n");
      out.write("            <div class=\"fs-article-meta\">\r\n");
      out.write("              <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n");
      out.write(
          "              <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n");
      out.write("              <div>\r\n");
      out.write("                <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n");
      out.write("              </div>\r\n");
      out.write("            </div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td>\r\n");
      out.write("            <div class=\"fs-article-meta\">\r\n");
      out.write("              <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n");
      out.write(
          "              <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n");
      out.write("              <div>\r\n");
      out.write("                <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n");
      out.write("              </div>\r\n");
      out.write("            </div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td>\r\n");
      out.write("            <div class=\"fs-article-meta\">\r\n");
      out.write("              <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n");
      out.write(
          "              <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n");
      out.write("              <div>\r\n");
      out.write("                <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n");
      out.write("              </div>\r\n");
      out.write("            </div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td>\r\n");
      out.write("            <div class=\"fs-article-meta\">\r\n");
      out.write("              <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n");
      out.write(
          "              <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n");
      out.write("              <div>\r\n");
      out.write("                <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n");
      out.write("              </div>\r\n");
      out.write("            </div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>-->\r\n");
      out.write("      </table>\r\n");
      out.write("    </div>\r\n");
      out.write("  </div>\r\n");
      out.write("</div>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 11
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html;charset=UTF-8");
      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");
      out.write("<!DOCTYPE >\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<title>Wali智慧錢包</title>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!-- \r\n");
      out.write("<link href=\"/mPortal/resources/css/style.css\" rel=\"stylesheet\"\r\n");
      out.write("\ttype=\"text/css\" media=\"screen\" />\r\n");
      out.write("\t -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/templates/meta.jsp", out, true);
      out.write("\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("This is index.\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=EUC-KR");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"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=EUC-KR\">\r\n");
      out.write("<title>Welcome to Minjoo's Website!</title>\r\n");
      out.write("<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("\r\n");
      out.write("<script language=\"JavaScript\" src=\"script.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body><br><br>\r\n");
      out.write(
          "<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("<img src=\"");
      out.print(request.getContextPath());
      out.write("/images/basicInfo.JPG\"/></div>\r\n");
      out.write("<hr>\r\n");
      out.write(
          "<table border=\"1\" cellpadding=\"18\" cellspacing=\"1\" width=\"80%\" align=\"center\">\r\n");
      out.write("<form name=\"regForm\" method=\"post\" action=\"RegisterProc.jsp\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">\r\n");
      out.write("\t\tID\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_id\" size=\"18\">\r\n");
      out.write(
          "\t\t<input type=\"button\" value=\"ID 중복확인\" onClick=\"idCheck(this.form.mem_id.value)\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">Password\r\n");
      out.write("</td>\r\n");
      out.write(
          "\t\t<td width=\"60%\"><input type=\"password\" name=\"mem_passwd\" size=\"18\">\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write(
          "\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">Confirm Password</td>\r\n");
      out.write(
          "\t\t<td width=\"60%\"><input type=\"password\" name=\"mem_repasswd\" size=\"18\">\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">First Name</td>\r\n");
      out.write(
          "\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_firstname\" size=\"18\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">Last Name</td>\r\n");
      out.write(
          "\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_lastname\" size=\"18\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write(
          "\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">EMAIL ADDRESS</td>\r\n");
      out.write("\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_email\" size=\"27\">\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">PHONE NUMBER</td>\r\n");
      out.write(
          "\t\t<td width=\"30%\"><input type=\"text\" name=\"mem_phone1\" size=\"9\">&nbsp;-&nbsp;\r\n");
      out.write(
          "\t\t<input type=\"text\" name=\"mem_phone2\" size=\"10\">&nbsp;-&nbsp;<input type=\"text\" name=\"mem_phone3\" size=\"10\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t\r\n");
      out.write("</table>\r\n");
      out.write("<br><br>\r\n");
      out.write(
          "<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("<img src=\"");
      out.print(request.getContextPath());
      out.write("/images/additional.JPG\"/></div>\r\n");
      out.write("<hr>\r\n");
      out.write(
          "<table border=\"1\" cellpadding=\"18\" cellspacing=\"1\" width=\"80%\" align=\"center\">\r\n");
      out.write("<tr>\r\n");
      out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">BIRTHDAY</td>\r\n");
      out.write("\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_bday\" size=\"18\">\r\n");
      out.write("\t\t(YYYYMMDD)</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</form>\r\n");
      out.write("<br>\r\n");
      out.write("<br>\r\n");
      out.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("<div align=\"center\">\r\n");
      out.write("<img src=\"");
      out.print(request.getContextPath());
      out.write("/images/submit.JPG\"/>\r\n");
      out.write("<img src=\"");
      out.print(request.getContextPath());
      out.write("/images/goback.JPG\"/></div>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 13
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext =
          _jspxFactory.getPageContext(this, request, response, "../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");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"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=utf-8\">\r\n");
      out.write("<title>登陆后台管理</title>\r\n");
      out.write(
          "        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write(
          "        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n");
      out.write("\r\n");
      out.write("        <!-- Bootstrap -->\r\n");
      out.write(
          "        <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\" media=\"screen\">\r\n");
      out.write(
          "        <link href=\"css/bootstrap-theme.min.css\" rel=\"stylesheet\" media=\"screen\">\r\n");
      out.write("\r\n");
      out.write("        <!-- Bootstrap Admin Theme -->\r\n");
      out.write(
          "        <link href=\"css/bootstrap-admin-theme.css\" rel=\"stylesheet\" media=\"screen\">\r\n");
      out.write("\r\n");
      out.write("        <!-- Custom styles -->\r\n");
      out.write("        <style type=\"text/css\">\r\n");
      out.write("            .alert{\r\n");
      out.write("                margin: 0 auto 20px;\r\n");
      out.write("            }\r\n");
      out.write("            .sorrymsgy{\r\n");
      out.write("            \tcolor:#FF9900;\r\n");
      out.write("            }\r\n");
      out.write("            .sorrymsgr{\r\n");
      out.write("            \tcolor: red;\r\n");
      out.write("            }\r\n");
      out.write("        </style>\r\n");
      out.write("\r\n");
      out.write(
          "        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->\r\n");
      out.write("        <!--[if lt IE 9]>\r\n");
      out.write(
          "           <script type=\"text/javascript\" src=\"js/html5shiv.js\"></script>\r\n");
      out.write(
          "           <script type=\"text/javascript\" src=\"js/respond.min.js\"></script>\r\n");
      out.write("        <![endif]-->\r\n");
      out.write("</head>\r\n");
      out.write("<body class=\"bootstrap-admin-without-padding\">\r\n");
      out.write("<!-- java start -->\r\n");

      User user = null;
      int is_admin = 0;
      if (session.getAttribute("user") != null) {
        user = (User) session.getAttribute("user");
        if (user.getUser_isadmin() == 1) {
          is_admin = 1;
        }
      }

      // 验证登陆回来的信息
      String msg = "";
      if (request.getParameter("msg") != null) {
        msg = request.getParameter("msg");
      }

      out.write("\r\n");
      out.write("<!-- java end -->\r\n");
      out.write("        <div class=\"container\">\r\n");
      out.write("            <div class=\"row\">\r\n");
      out.write("                <div class=\"alert alert-info\">\r\n");
      out.write(
          "                    <a class=\"close\" data-dismiss=\"alert\" href=\"#\">&times;</a>\r\n");
      out.write("                    请输入正确的管理员用户名和密码!\r\n");
      out.write("                </div>\r\n");
      out.write(
          "                <form method=\"post\" action=\"/myblog/AdminSessionDo\" class=\"bootstrap-admin-login-form\">\r\n");
      out.write("                    <h1>登录</h1>\r\n");
      out.write("                    ");
      if (user != null && user.getUser_isadmin() == 1) {
        out.write("\r\n");
        out.write("                    <div class=\"form-group\">\r\n");
        out.write(
            "                        <input class=\"form-control\" type=\"text\" name=\"username\" placeholder=\"账号\">\r\n");
        out.write("                    </div>\r\n");
        out.write("                    <div class=\"form-group\">\r\n");
        out.write(
            "                        <input class=\"form-control\" type=\"password\" name=\"password\" placeholder=\"密码\">\r\n");
        out.write("                    </div>\r\n");
        out.write("                    <div class=\"form-group\">\r\n");
        out.write("                        <label>\r\n");
        out.write("                            <input type=\"checkbox\" name=\"remember_me\">\r\n");
        out.write("                           记住密码\r\n");
        out.write("                        </label>\r\n");
        out.write("                    </div>\r\n");
        out.write(
            "                    <input class=\"btn btn-lg btn-primary\" type=\"submit\" value=\"提交\"/>\r\n");
        out.write("                    ");
      } else {
        out.write("\r\n");
        out.write(
            "                    <h2 class=\"sorrymsgy\">对不起,您不是我们的管理员</h2><h1  class=\"sorrymsgr\">您无权登陆</h1><hr/>\r\n");
        out.write(
            "                    <a href=\"javascript:history.go(-1)\">请返回上一个页面~(^_^)~</a>\r\n");
        out.write("                    ");
      }
      out.write("\r\n");
      out.write("                </form>\r\n");
      out.write("            </div>\r\n");
      out.write("        </div>\r\n");
      out.write("\r\n");
      out.write(
          "        <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script>\r\n");
      out.write(
          "        <script type=\"text/javascript\" src=\"js/bootstrap.min.js\"></script>\r\n");
      out.write("        <script type=\"text/javascript\">\r\n");
      out.write("        \t//判断是否是admin\t\r\n");
      out.write("        \tvar isadmin = '");
      out.print(is_admin);
      out.write("';\r\n");
      out.write("        \tif(isadmin == 0){\r\n");
      out.write("        \t\talert('对不起,您不是我们的管理员');\r\n");
      out.write("        \t}\r\n");
      out.write("        \t\r\n");
      out.write("        \tvar message = '");
      out.print(msg);
      out.write("';\r\n");
      out.write("        \tif(message != \"\"){\r\n");
      out.write("\t        \tif(message == 0){\r\n");
      out.write("\t        \t\talert('对不起,用户名错误');\r\n");
      out.write("\t        \t}else{\r\n");
      out.write("\t        \t\talert('对不起,密码错误');\r\n");
      out.write("\t        \t}\r\n");
      out.write("        \t}\r\n");
      out.write("        \t\r\n");
      out.write("            $(function() {\r\n");
      out.write("                // Setting focus\r\n");
      out.write("                $('input[name=\"email\"]').focus();\r\n");
      out.write("                // Setting width of the alert box\r\n");
      out.write(
          "                var formWidth = $('.bootstrap-admin-login-form').innerWidth();\r\n");
      out.write("                var alertPadding = parseInt($('.alert').css('padding'));\r\n");
      out.write("                $('.alert').width(formWidth - 2 * alertPadding);\r\n");
      out.write("            });\r\n");
      out.write("        </script>\r\n");
      out.write("    </body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 14
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=utf-8");
      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("\n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<!--java 绝对地址 start  -->\n");

      String urlp = application.getContextPath() + "/jsp/back/";
      System.out.println(urlp);

      out.write("\n");
      out.write("<!-- java 绝对地址 end -->\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n");
      out.write("<title>关于我们</title>\n");
      out.write(
          "        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write(
          "        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n");
      out.write("        <!-- Bootstrap Docs -->\n");
      out.write(
          "        <link href=\"http://getbootstrap.com/assets/css/docs.css\" rel=\"stylesheet\" media=\"screen\">\n");
      out.write("\n");
      out.write("        <!-- Bootstrap -->\n");
      out.write("        <link href=\"");
      out.print(urlp);
      out.write("css/bootstrap.min.css\" rel=\"stylesheet\" media=\"screen\">\n");
      out.write("        <link href=\"");
      out.print(urlp);
      out.write("css/bootstrap-theme.min.css\" rel=\"stylesheet\" media=\"screen\">\n");
      out.write("\n");
      out.write("        <!-- Bootstrap Admin Theme -->\n");
      out.write("        <link href=\"");
      out.print(urlp);
      out.write("css/bootstrap-admin-theme.css\" rel=\"stylesheet\" media=\"screen\">\n");
      out.write("\n");
      out.write("        <!-- Custom styles -->\n");
      out.write("        <style type=\"text/css\">\n");
      out.write("            .bootstrap-admin-content-title h1{\n");
      out.write("                font-size: 45px;\n");
      out.write("                margin-bottom: 30px;\n");
      out.write("            }\n");
      out.write("            .bs-docs-home{\n");
      out.write("            }\n");
      out.write("            .bs-masthead{\n");
      out.write("                padding: 0;\n");
      out.write("            }\n");
      out.write("            .bs-masthead h1{\n");
      out.write("                font-size: 40px;\n");
      out.write("                margin: 0;\n");
      out.write("                padding: 34px 0;\n");
      out.write("                text-align: center;\n");
      out.write("            }\n");
      out.write("            .bs-masthead a:hover{\n");
      out.write("                text-decoration: none;\n");
      out.write("            }\n");
      out.write("            .meritoo-logo a{\n");
      out.write("                background-color: #fff;\n");
      out.write("                border: 1px solid rgba(66, 139, 202, 0.4);\n");
      out.write("                display: block;\n");
      out.write("                padding: 12px 0;\n");
      out.write("            }\n");
      out.write("            .meritoo-logo a img{\n");
      out.write("                display: block;\n");
      out.write("                margin: 0 auto;\n");
      out.write("            }\n");
      out.write("            .row-urls{\n");
      out.write("                margin-top: 4px;\n");
      out.write("            }\n");
      out.write("            .row-urls .col-md-6{\n");
      out.write("                text-align: center;\n");
      out.write("            }\n");
      out.write("            .row-urls .col-md-6 a{\n");
      out.write("                font-size: 18px;\n");
      out.write("            }\n");
      out.write("        </style>\n");
      out.write("\n");
      out.write(
          "        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->\n");
      out.write("        <!--[if lt IE 9]>\n");
      out.write("           <script type=\"text/javascript\" src=\"js/html5shiv.js\"></script>\n");
      out.write(
          "           <script type=\"text/javascript\" src=\"js/respond.min.js\"></script>\n");
      out.write("        <![endif]-->\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("<body class=\"bootstrap-admin-with-small-navbar\">\n");
      out.write(
          "    <nav class=\"navbar navbar-default navbar-inverse navbar-fixed-top \" role=\"navigation\">\n");
      out.write("     <div class=\"container\">\n");
      out.write("       <div class=\"row\">\n");
      out.write("          <!-- Brand and toggle get grouped for better mobile display -->\n");
      out.write("          <div class=\"navbar-header\">\n");
      out.write(
          "            <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\">\n");
      out.write("              <span class=\"sr-only\">Toggle navigation</span>\n");
      out.write("              <span class=\"icon-bar\"></span>\n");
      out.write("              <span class=\"icon-bar\"></span>\n");
      out.write("              <span class=\"icon-bar\"></span>\n");
      out.write("            </button>\n");
      out.write("            <a class=\"navbar-brand\" href=\"#\">Gc微博后台</a>\n");
      out.write("          </div>\n");
      out.write(
          "          <!-- Collect the nav links, forms, and other content for toggling -->\n");
      out.write(
          "          <div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\">\n");
      out.write("            <ul class=\"nav navbar-nav\">\n");
      out.write("              <li class=\"active\"><a href=\"#\">首页</a></li>\n");
      out.write("              <li ><a href=\"");
      out.print(urlp);
      out.write("back_help.jsp\">使用介绍</a></li>             \n");
      out.write("            </ul>\n");
      out.write("            <form class=\"navbar-form navbar-left\" role=\"search\">\n");
      out.write("              <div class=\"form-group\">\n");
      out.write(
          "                <input type=\"text\" class=\"form-control\" placeholder=\"请输入内容\">\n");
      out.write("              </div>\n");
      out.write("              <button type=\"submit\" class=\"btn btn-default\">搜索</button>\n");
      out.write("            </form>\n");
      out.write("            <ul class=\"nav navbar-nav navbar-right\">\n");
      out.write("              <li class=\"dropdown\">\n");
      out.write(
          "                <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">管理员<b class=\"caret\"></b></a>\n");
      out.write("                <ul class=\"dropdown-menu\">\n");
      out.write("                  <li><a href=\"/myblog/AdminSessionLogout\">退出登录</a></li>\n");
      out.write("                </ul>\n");
      out.write("              </li>\n");
      out.write("            </ul>\n");
      out.write("          </div><!-- /.navbar-collapse -->\n");
      out.write("          </div>\n");
      out.write("          </div>\n");
      out.write("        </nav>\n");
      out.write("\n");
      out.write("        <div class=\"container\">\n");
      out.write("            <!-- left, vertical navbar & content -->\n");
      out.write("            <div class=\"row\">\n");
      out.write("                <!-- left, vertical navbar -->\n");
      out.write("                <div class=\"col-md-2 bootstrap-admin-col-left\">\n");
      out.write(
          "                     <ul class=\"nav navbar-collapse collapse bootstrap-admin-navbar-side\">\n");
      out.write("                         <li >\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write("back_index.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 首页</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li class=\"active\">\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write("back_about.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 关于我们</a>\n");
      out.write("                        </li>                       \n");
      out.write("                        <li class=\"disabled\">\n");
      out.write(
          "                            <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 日历</a><!-- calendar.html -->\n");
      out.write("                        </li>\n");
      out.write("                        <li class=\"disabled\">\n");
      out.write(
          "                            <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 统计图表</a><!-- stats.html -->\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write(
          "back_journal_release.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 日志发布</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write(
          "back_journal_admin.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 日志管理</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write("back_users.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 用户管理</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write(
          "back_message.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留言管理</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write("back_image.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 图片管理</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write("                            <a href=\"");
      out.print(urlp);
      out.write(
          "back_admin_information.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 账户中心</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write(
          "                            <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白1</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write(
          "                            <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白2</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write(
          "                            <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白3</a>\n");
      out.write("                        </li>\n");
      out.write("                        <li>\n");
      out.write(
          "                            <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白4</a>\n");
      out.write("                        </li>\n");
      out.write("                    </ul>\n");
      out.write("                </div>\n");
      out.write("\n");
      out.write("                <!-- content -->\n");
      out.write("                <div class=\"col-md-10\">\n");
      out.write("                    <div class=\"row bootstrap-admin-no-edges-padding\">\n");
      out.write("                        <div class=\"col-md-12\">\n");
      out.write("                            <div class=\"panel panel-default\">\n");
      out.write("                                <div class=\"panel-heading\">\n");
      out.write(
          "                                    <div class=\"text-muted bootstrap-admin-box-title\"><a href=\"#\">Statement (声明)</a></div>\n");
      out.write("                                </div>\n");
      out.write("                                <div class=\"bootstrap-admin-panel-content\">\n");
      out.write("                                    <p>The MIT License (MIT)</p>\n");
      out.write("                                    <p>版权所有© 2015&gt;Gc</p>\n");
      out.write("                                    <p>本系统所有权归Gc</p>\n");
      out.write("                                    <p>如果有用户使用该系统活着其模板,必须经过作者同意。</p>\n");
      out.write(
          "                                    <p>若有其他问题,请联系作者: <a href=\"\"*****@*****.**> [email protected]</a></p>\n");
      out.write("                                </div>\n");
      out.write("                            </div>\n");
      out.write("                        </div>\n");
      out.write("                    </div>\n");
      out.write("\n");
      out.write("                   \n");
      out.write("\n");
      out.write("            <div class=\"row\">\n");
      out.write("                <hr>\n");
      out.write("                <footer role=\"contentinfo\">\n");
      out.write("                    <p>&copy;2015 <a href=\"#\" target=\"_blank\">Gc</a></p>\n");
      out.write("                </footer>\n");
      out.write("            </div>\n");
      out.write("        </div>\n");
      out.write("\n");
      out.write(
          "        <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"");
      out.print(urlp);
      out.write("js/bootstrap.min.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"");
      out.print(urlp);
      out.write("js/twitter-bootstrap-hover-dropdown.min.js\"></script>\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 15
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=EUC-KR");
      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");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html lang=\"en\">\r\n");
      out.write("<head>\r\n");
      out.write("  <title>Bootstrap Example</title>\r\n");
      out.write("  <meta charset=\"utf-8\">\r\n");
      out.write("  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n");
      out.write(
          "  <link rel=\"stylesheet\" href=\"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css\">\r\n");
      out.write(
          "  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\r\n");
      out.write(
          "  <script src=\"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("<div class=\"container\">\r\n");
      out.write("  <div class=\"jumbotron\">\r\n");
      out.write("    <h1>My First Bootstrap Page</h1>\r\n");
      out.write("    <p>Resize this responsive page to see the effect!</p> \r\n");
      out.write("  </div>\r\n");
      out.write("  <div class=\"row\">\r\n");
      out.write("    <div class=\"col-sm-4\">\r\n");
      out.write("      <h3>Column 1</h3>\r\n");
      out.write("      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>\r\n");
      out.write(
          "      <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>\r\n");
      out.write("    </div>\r\n");
      out.write("    <div class=\"col-sm-4\">\r\n");
      out.write("      <h3>Column 2</h3>\r\n");
      out.write("      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>\r\n");
      out.write(
          "      <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>\r\n");
      out.write("    </div>\r\n");
      out.write("    <div class=\"col-sm-4\">\r\n");
      out.write("      <h3>Column 3</h3>        \r\n");
      out.write("      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>\r\n");
      out.write(
          "      <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>\r\n");
      out.write("    </div>\r\n");
      out.write("  </div>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 16
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html;charset=UTF-8");
      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("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../dialog/display_messages.jsp", out, false);
      out.write('\n');
      out.write('\n');
      //  fmt:bundle
      org.apache.taglibs.standard.tag.rt.fmt.BundleTag _jspx_th_fmt_005fbundle_005f0 =
          (org.apache.taglibs.standard.tag.rt.fmt.BundleTag)
              _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.get(
                  org.apache.taglibs.standard.tag.rt.fmt.BundleTag.class);
      _jspx_th_fmt_005fbundle_005f0.setPageContext(_jspx_page_context);
      _jspx_th_fmt_005fbundle_005f0.setParent(null);
      // /admin/index.jsp(28,0) name = basename type = null reqTime = true required = true fragment
      // = false deferredValue = false expectedTypeName = null deferredMethod = false
      // methodSignature = null
      _jspx_th_fmt_005fbundle_005f0.setBasename("org.wso2.carbon.i18n.Resources");
      int _jspx_eval_fmt_005fbundle_005f0 = _jspx_th_fmt_005fbundle_005f0.doStartTag();
      if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_fmt_005fbundle_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_fmt_005fbundle_005f0.doInitBody();
        }
        do {
          out.write('\n');
          out.write('\n');

          Object param = session.getAttribute("authenticated");
          String passwordExpires =
              (String) session.getAttribute(ServerConstants.PASSWORD_EXPIRATION);
          boolean loggedIn = false;
          if (param != null) {
            loggedIn = (Boolean) param;
          }
          boolean serverAdminComponentFound =
              CarbonUIUtil.isContextRegistered(config, "/server-admin/");

          if (CharacterEncoder.getSafeText(request.getParameter("skipLoginPage")) != null) {
            response.sendRedirect("../admin/login_action.jsp");
            return;
          }

          out.write("\n");
          out.write("    <div id=\"middle\">\n");
          out.write("        ");

          String serverName = CarbonUIUtil.getServerConfigurationProperty("Name");

          out.write("\n");
          out.write("        <h2>\n");
          out.write("            ");
          //  fmt:message
          org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f0 =
              (org.apache.taglibs.standard.tag.rt.fmt.MessageTag)
                  _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get(
                      org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
          _jspx_th_fmt_005fmessage_005f0.setPageContext(_jspx_page_context);
          _jspx_th_fmt_005fmessage_005f0.setParent(
              (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fbundle_005f0);
          // /admin/index.jsp(52,12) name = key type = null reqTime = true required = false fragment
          // = false deferredValue = false expectedTypeName = null deferredMethod = false
          // methodSignature = null
          _jspx_th_fmt_005fmessage_005f0.setKey("carbon.server.home");
          int _jspx_eval_fmt_005fmessage_005f0 = _jspx_th_fmt_005fmessage_005f0.doStartTag();
          if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_fmt_005fmessage_005f0
                != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              out = _jspx_page_context.pushBody();
              _jspx_th_fmt_005fmessage_005f0.setBodyContent(
                  (javax.servlet.jsp.tagext.BodyContent) out);
              _jspx_th_fmt_005fmessage_005f0.doInitBody();
            }
            do {
              out.write("\n");
              out.write("                ");
              //  fmt:param
              org.apache.taglibs.standard.tag.rt.fmt.ParamTag _jspx_th_fmt_005fparam_005f0 =
                  (org.apache.taglibs.standard.tag.rt.fmt.ParamTag)
                      _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.get(
                          org.apache.taglibs.standard.tag.rt.fmt.ParamTag.class);
              _jspx_th_fmt_005fparam_005f0.setPageContext(_jspx_page_context);
              _jspx_th_fmt_005fparam_005f0.setParent(
                  (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f0);
              // /admin/index.jsp(53,16) name = value type = null reqTime = true required = false
              // fragment = false deferredValue = false expectedTypeName = null deferredMethod =
              // false methodSignature = null
              _jspx_th_fmt_005fparam_005f0.setValue(serverName);
              int _jspx_eval_fmt_005fparam_005f0 = _jspx_th_fmt_005fparam_005f0.doStartTag();
              if (_jspx_th_fmt_005fparam_005f0.doEndTag()
                  == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse(
                    _jspx_th_fmt_005fparam_005f0);
                return;
              }
              _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse(
                  _jspx_th_fmt_005fparam_005f0);
              out.write("\n");
              out.write("            ");
              int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f0.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
            } while (true);
            if (_jspx_eval_fmt_005fmessage_005f0
                != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              out = _jspx_page_context.popBody();
            }
          }
          if (_jspx_th_fmt_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse(
                _jspx_th_fmt_005fmessage_005f0);
            return;
          }
          _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse(
              _jspx_th_fmt_005fmessage_005f0);
          out.write("\n");
          out.write("        </h2>\n");
          out.write("\n");
          out.write("        <p>\n");
          out.write("            ");
          //  fmt:message
          org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f1 =
              (org.apache.taglibs.standard.tag.rt.fmt.MessageTag)
                  _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get(
                      org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
          _jspx_th_fmt_005fmessage_005f1.setPageContext(_jspx_page_context);
          _jspx_th_fmt_005fmessage_005f1.setParent(
              (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fbundle_005f0);
          // /admin/index.jsp(58,12) name = key type = null reqTime = true required = false fragment
          // = false deferredValue = false expectedTypeName = null deferredMethod = false
          // methodSignature = null
          _jspx_th_fmt_005fmessage_005f1.setKey("carbon.console.welcome");
          int _jspx_eval_fmt_005fmessage_005f1 = _jspx_th_fmt_005fmessage_005f1.doStartTag();
          if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_fmt_005fmessage_005f1
                != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              out = _jspx_page_context.pushBody();
              _jspx_th_fmt_005fmessage_005f1.setBodyContent(
                  (javax.servlet.jsp.tagext.BodyContent) out);
              _jspx_th_fmt_005fmessage_005f1.doInitBody();
            }
            do {
              out.write("\n");
              out.write("                ");
              //  fmt:param
              org.apache.taglibs.standard.tag.rt.fmt.ParamTag _jspx_th_fmt_005fparam_005f1 =
                  (org.apache.taglibs.standard.tag.rt.fmt.ParamTag)
                      _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.get(
                          org.apache.taglibs.standard.tag.rt.fmt.ParamTag.class);
              _jspx_th_fmt_005fparam_005f1.setPageContext(_jspx_page_context);
              _jspx_th_fmt_005fparam_005f1.setParent(
                  (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f1);
              // /admin/index.jsp(59,16) name = value type = null reqTime = true required = false
              // fragment = false deferredValue = false expectedTypeName = null deferredMethod =
              // false methodSignature = null
              _jspx_th_fmt_005fparam_005f1.setValue(serverName);
              int _jspx_eval_fmt_005fparam_005f1 = _jspx_th_fmt_005fparam_005f1.doStartTag();
              if (_jspx_th_fmt_005fparam_005f1.doEndTag()
                  == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse(
                    _jspx_th_fmt_005fparam_005f1);
                return;
              }
              _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse(
                  _jspx_th_fmt_005fparam_005f1);
              out.write("\n");
              out.write("            ");
              int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f1.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
            } while (true);
            if (_jspx_eval_fmt_005fmessage_005f1
                != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              out = _jspx_page_context.popBody();
            }
          }
          if (_jspx_th_fmt_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse(
                _jspx_th_fmt_005fmessage_005f1);
            return;
          }
          _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse(
              _jspx_th_fmt_005fmessage_005f1);
          out.write("\n");
          out.write("        </p>\n");
          out.write("\n");
          out.write("        <p>&nbsp;</p>\n");
          out.write("\n");
          out.write("        <div id=\"workArea\">\n");
          out.write("        <div id=\"systemInfoDiv\">\n");
          out.write("            ");

          if (loggedIn && passwordExpires != null) {

            out.write("\n");
            out.write("                 <div class=\"info-box\"><p>Your password expires at ");
            out.print(passwordExpires);
            out.write(
                ". Please change by visiting <a href=\"../user/change-passwd.jsp?isUserChange=true&returnPath=../admin/index.jsp\">here</a></p></div>\n");
            out.write("            ");
          }
          if (loggedIn && serverAdminComponentFound) {

            out.write("\n");
            out.write("            <div id=\"result\"></div>\n");
            out.write("            <script type=\"text/javascript\">\n");
            out.write("                jQuery.noConflict();\n");
            out.write("                var refresh;\n");
            out.write("                function refreshStats() {\n");
            out.write(
                "                    var url = \"../server-admin/system_status_ajaxprocessor.jsp\";\n");
            out.write("                    var data = null;\n");
            out.write("                    try {\n");
            out.write("                        jQuery.ajax({\n");
            out.write("                            url: \"../admin/jsp/session-validate.jsp\",\n");
            out.write("                            type: \"GET\",\n");
            out.write("                            dataType: \"html\",\n");
            out.write("                            data: data,\n");
            out.write("                            complete: function(res, status){\n");
            out.write(
                "                                if (res.responseText.search(/----valid----/) != -1) {\n");
            out.write(
                "                                    jQuery(\"#result\").load(url, null, function (responseText, status, XMLHttpRequest) {\n");
            out.write("                                        if (status != \"success\") {\n");
            out.write("                                            stopRefreshStats();\n");
            out.write("                                        }\n");
            out.write("                                    });\n");
            out.write("                                } else {\n");
            out.write("                                    stopRefreshStats();\n");
            out.write("                                }\n");
            out.write("                            },error: function(res, status, error){\n");
            out.write("                            \tstopRefreshStats();\n");
            out.write("                            }\n");
            out.write("                        });\n");
            out.write("                    } catch (e) {\n");
            out.write("                    \tstopRefreshStats();\n");
            out.write("                    }\n");
            out.write("                }\n");
            out.write("                function stopRefreshStats() {\n");
            out.write("                    if (refresh) {\n");
            out.write("                        clearInterval(refresh);\n");
            out.write("                    }\n");
            out.write("                }\n");
            out.write("                try {\n");
            out.write("                    jQuery(document).ready(function() {\n");
            out.write("                        refreshStats();\n");
            out.write(
                "                        if (document.getElementById('systemInfoDiv').style.display == '') {\n");
            out.write(
                "                            refresh = setInterval(\"refreshStats()\", 6000);\n");
            out.write("                        }\n");
            out.write("                    });\n");
            out.write("                } catch (e) {\n");
            out.write("                } // ignored\n");
            out.write("            </script>\n");
            out.write("            ");
          }

          out.write("\n");
          out.write("        </div>\n");
          out.write("        </div>\n");
          out.write("    </div>\n");
          int evalDoAfterBody = _jspx_th_fmt_005fbundle_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
        if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_fmt_005fbundle_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.reuse(
            _jspx_th_fmt_005fbundle_005f0);
        return;
      }
      _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.reuse(
          _jspx_th_fmt_005fbundle_005f0);
      out.write('\n');
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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');
      out.write('\n');

      String username = "";
      if (session.getAttribute("login") != null) {
        username = session.getAttribute("login").toString();
      } else {
        out.println("Invalid session! You must log back into the system.");
        return;
      }

      String outputMsg = "TODO";

      ResultSet employeeRevRes = null;

      String JDBC_DRIVER = "com.mysql.jdbc.Driver";
      String DB_URL = "jdbc:mysql://localhost:3306/SilkRoad 5.0";
      String USER = "******";
      String PASS = "******";

      Statement stmt = null;
      String sql = null;
      Connection conn = null;
      CallableStatement cs = null;
      try {
        // Register JDBC driver
        Class.forName(JDBC_DRIVER).newInstance();

        // Open a connection
        conn = java.sql.DriverManager.getConnection(DB_URL, USER, PASS);

        System.out.println("HERE");
        cs = conn.prepareCall("call GetEmployeeRevenues()");
        cs.execute();
        employeeRevRes = cs.getResultSet();

        // TODO. Error handling

        out.write("\r\n");
        out.write(" <html lang=\"en\">\r\n");
        out.write("  <head>\r\n");
        out.write("   <meta charset=\"utf-8\">\r\n");
        out.write("    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n");
        out.write(
            "     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n");
        out.write(
            "      <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\r\n");
        out.write("      <title>Silk Road 5.0</title>\r\n");
        out.write("      <!-- Bootstrap -->\r\n");
        out.write("      <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
        out.write("       ");
        out.write("\r\n");
        out.write(
            "       <link href=\"css/responsive.bootstrap.min.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
        out.write(
            "        <link href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.5/css/bootstrap-dialog.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
        out.write("        <!-- Our own custom css -->\r\n");
        out.write(
            "        <link href=\"css/stylesheet.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
        out.write(
            "         <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\r\n");
        out.write(
            "         <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\r\n");
        out.write("         <!--[if lt IE 9]>\r\n");
        out.write(
            "         <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\r\n");
        out.write(
            "         <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\r\n");
        out.write("         <![endif]-->\r\n");
        out.write("         <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\r\n");
        out.write("         <script src=\"js/jquery-1.11.3.min.js\"></script>\r\n");
        out.write("         <script src=\"js/jquery.validate.js\"></script>\r\n");
        out.write("         ");
        out.write("\r\n");
        out.write(
            "         <!-- Include all compiled plugins (below), or include individual files as needed -->\r\n");
        out.write("         <script src=\"js/bootstrap.min.js\"></script>\r\n");
        out.write(
            "         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.5/js/bootstrap-dialog.min.js\"></script>\r\n");
        out.write("         <script src=\"js/pattern.js\"></script>\r\n");
        out.write("         <script src=\"js/script.js\"></script>\r\n");
        out.write("         <script src=\"js/editCustomer.js\"></script>\r\n");
        out.write("        </head>\r\n");
        out.write("        <nav class=\"navbar\">\r\n");
        out.write("         <div class=\"container-fluid\">\r\n");
        out.write("          <!-- Brand and toggle get grouped for better mobile display -->\r\n");
        out.write("          <div class=\"navbar-header\">\r\n");
        out.write(
            "           <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\" aria-expanded=\"false\">\r\n");
        out.write("            <span class=\"sr-only\">Toggle navigation</span>\r\n");
        out.write("            <span class=\"icon-bar\"></span>\r\n");
        out.write("            <span class=\"icon-bar\"></span>\r\n");
        out.write("            <span class=\"icon-bar\"></span>\r\n");
        out.write("           </button>\r\n");
        out.write("          </div>\r\n");
        out.write("          <!-- navbar-header -->\r\n");
        out.write(
            "          <!-- Collect the nav links, forms, and other content for toggling -->\r\n");
        out.write("          <div class=\"myNavbar\">\r\n");
        out.write("           <ul class=\"nav\">\r\n");
        out.write(
            "            <li class=\"floatLeft\"><a href=\"ManagerInformation.jsp\">Home</a></li>\r\n");
        out.write(
            "            <li class=\"dropdown navbar-right\" style=\"padding-left:125px;\">\r\n");
        out.write(
            "             <a data-target=\"#collapseHelp\" data-toggle=\"collapse\">Help<span class=\"caret\"></span></a>\r\n");
        out.write("             <ul>\r\n");
        out.write("              <div id=\"collapseHelp\" class=\"dropdown-menu\">\r\n");
        out.write(
            "               <li><a href=\"javascript:showEmployeeScreenHelp()\">Screens</a></li>\r\n");
        out.write("               <br>\r\n");
        out.write(
            "                <li><a href=\"javascript:showAuctionHelp()\">Auctions</a></li>\r\n");
        out.write("                <br>\r\n");
        out.write("                </div>\r\n");
        out.write("               </ul>\r\n");
        out.write("              </li>\r\n");
        out.write(
            "              <li class=\"dropdown navbar-right\" style=\"padding-left:200px;\">\r\n");
        out.write(
            "               <a data-target=\"#collapseMenu\" data-toggle=\"collapse\" >Menu<span class=\"caret\"></span></a>\r\n");
        out.write("               <ul>\r\n");
        out.write("                <div id=\"collapseMenu\" class=\"dropdown-menu\">\r\n");
        out.write("                  </div>\r\n");
        out.write("                 </ul>\r\n");
        out.write("                </li>\r\n");
        out.write("               </ul>\r\n");
        out.write("               <!-- .nav -->\r\n");
        out.write("              </div>\r\n");
        out.write("              <!-- .myNavbar -->\r\n");
        out.write("             </div>\r\n");
        out.write("             <!-- .container-fluid -->\r\n");
        out.write("            </nav>\r\n");
        out.write("            <body class=\"auctionHouseBody\">\r\n");
        out.write(
            "             <h4 class=\"auctionTableHeader\">Highest Grossing Employee</h4>\r\n");
        out.write(
            "             <table id =\"bestSellersTable\" class=\"table table-striped table-bordered dt-responsive nowrap auctionHouseTable\">\r\n");
        out.write("              <thead>\r\n");
        out.write("               <tr>\r\n");
        out.write("                <th>Employee ID</th>\r\n");
        out.write("                <th>Username</th>\r\n");
        out.write("                <th>Revenue</th>\r\n");
        out.write("               </tr>\r\n");
        out.write("              </thead>\r\n");
        out.write("              <tbody>\r\n");
        out.write("               ");
        while (employeeRevRes.next()) {
          out.write("\r\n");
          out.write("               <tr>\r\n");
          out.write("                <td>\r\n");
          out.write("                 ");
          out.print(employeeRevRes.getString("EmployeeID"));
          out.write("\r\n");
          out.write("                </td>\r\n");
          out.write("                <td>\r\n");
          out.write("                 ");
          out.print(employeeRevRes.getString("Username"));
          out.write("\r\n");
          out.write("                </td>\r\n");
          out.write("                <td>\r\n");
          out.write("                 ");
          out.print(employeeRevRes.getDouble("Revenue"));
          out.write("\r\n");
          out.write("                </td>\r\n");
          out.write("               </tr>\r\n");
          out.write("               ");
        }
        out.write("\r\n");
        out.write("              </tbody>\r\n");
        out.write("             </table>\r\n");
        out.write("            </body>\r\n");
        out.write("           </html>\r\n");
        out.write("\r\n");
        out.write("           ");

      } catch (Exception e) {
        e.printStackTrace();
      } finally {
        try {
          conn.close();
        } catch (Exception ee) {
        }
        ;
      }

      out.write('\r');
      out.write('\n');
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 18
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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\r\n");

      final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE);
      final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY);

      /*
       //to be definitive NOT serializable
      InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE");
      if( noser==null )
      {
      	session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] ));
      }
      */

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

      final IconChip theChip = (IconChip) request.getAttribute(AbstractChip.CHIP_KEY);
      final boolean explorable = theChip.isExplorable();
      final String iconURI = explorable ? theChip.getIconURI() : theChip.getNonExplorableIconURI();
      final String iconLabel = theChip.getIconTitle();
      final String iconTooltip = theChip.getIconTooltip();
      final String altTxt =
          iconTooltip != null ? " alt=\"" + iconTooltip.replace("\"", "''") + "\" " : "";
      final String toolTipTxt =
          iconTooltip != null ? " title=\"" + iconTooltip.replace("\"", "''") + "\" " : "";

      final int[] box = theChip.getBoxSize();
      final int boxWidth = box != null && box[0] > 0 ? box[0] : -1;
      final boolean useWidth = boxWidth > 0;
      final int boxHeight = box != null && box[1] > 0 ? box[1] : -1;
      final boolean useHeight = boxHeight > 0;

      final List menuEntries = theChip.getMenuEntries();
      final String contextMenu =
          theChip.hasVisibleContextMenuEntries()
              ? "(new Menu("
                  + theChip.createMenuEntriesForJS(menuEntries)
                  + ", event, null, null, { uniqueName: '"
                  + theChip.getUniqueName()
                  + "'} )).show(); return false;"
              : "return false;";

      final String widthStyle = useWidth ? "width:" + boxWidth + "px;" : "";
      final String heightStyle = useHeight ? "height:" + (boxHeight / 2) + "px;" : "";

      out.write("\r\n<table id=\"box_");
      out.print(theChip.getID());
      out.write(
          "\"\r\n\t\t cellpadding=\"0\"\r\n\t\t cellspacing=\"0\"\r\n\t\t border=\"0\"\r\n\t\t ");
      out.print(toolTipTxt);
      out.write("\r\n\t\t oncontextmenu=\"");
      out.print(contextMenu);
      out.write("\"\r\n\t\t class=\"iconChip\"\r\n  \t\t onMouseover=\"");
      out.print(explorable ? "this.style.backgroundColor = '#ffffff'; return true;" : "");
      out.write("\"\r\n  \t\t onMouseout=\"");
      out.print(explorable ? "this.style.backgroundColor = '#f2f2f5'; return true;" : "");
      out.write("\"\r\n  \t\t >\r\n\t<tr>\r\n\t\t<td>\r\n\t\t\t<div style=\"");
      out.print(heightStyle);
      out.write(' ');
      out.print(widthStyle);
      out.write(
          "\">\r\n\t\t\t\t<table cellpadding=\"0\" cellspacing=\"0\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n");
      if (explorable) {

        out.write(
            "\r\n\t\t\t\t\t\t\t\t<a href=\"#\" hidefocus=\"true\"\r\n\t\t\t\t\t\t\t\t\tonFocus=\"document.getElementById('box_");
        out.print(theChip.getID());
        out.write(
            "').style.backgroundColor = '#ffffff'; return true;\"\r\n\t\t\t\t\t\t\t\t\tonblur=\"document.getElementById('box_");
        out.print(theChip.getID());
        out.write(
            "').style.backgroundColor = '#f2f2f5'; return true;\"\r\n\t\t\t\t\t\t\t\t\tonclick=\"setEvent('");
        out.print(theChip.getCommandID(IconChip.CLICK));
        out.write(
            "', 'true' ); setScrollAndSubmit();return false;\"\r\n\t\t\t\t\t\t\t\t\tonmouseover=\"window.status='open'; return true;\" \r\n\t\t\t\t\t\t\t\t\tonMouseOut=\"window.status=''; return true;\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<img src=\"");
        out.print(iconURI);
        out.write("\" \r\n\t\t\t\t\t\t\t\t\t\t  ");
        out.print(altTxt);
        out.write(" \r\n\t\t\t\t\t\t\t\t\t\t  ");
        out.print(heightStyle);
        out.write("\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t<!--<img src=\"");
        out.print(iconURI);
        out.write('"');
        out.write(' ');
        out.print(altTxt);
        out.write(" />-->\r\n\t\t\t\t\t\t\t\t</a>\r\n");
      } else {

        out.write("\r\n\t\t\t\t\t\t\t\t<img src=\"");
        out.print(iconURI);
        out.write("\" \r\n\t\t\t\t\t\t\t\t\t  ");
        out.print(altTxt);
        out.write(" \r\n\t\t\t\t\t\t\t\t\t  ");
        out.print(heightStyle);
        out.write("\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t<!--<img src=\"");
        out.print(iconURI);
        out.write('"');
        out.write(' ');
        out.print(altTxt);
        out.write(" />-->\r\n");
      }

      out.write(
          "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"smallText\" style=\"");
      out.print(heightStyle);
      out.print(widthStyle);
      out.write("\">\r\n\t\t\t<small>");
      out.print(iconLabel);
      out.write("</small>\r\n\t\t</td>\r\n\t</tr>\r\n</table>\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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\r\n");

      final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE);
      final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY);

      /*
       //to be definitive NOT serializable
      InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE");
      if( noser==null )
      {
      	session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] ));
      }
      */

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

      final AbstractAutocompleterToolbarActionChip theChip =
          (AbstractAutocompleterToolbarActionChip) request.getAttribute(AbstractChip.CHIP_KEY);

      final String label = (theChip.getLabel() == null ? "" : localized(theChip.getLabel()));
      final String tooltip =
          (theChip.getTooltip() == null ? label : localized(theChip.getTooltip()));
      final String width =
          theChip.getWidth() != null && theChip.getWidth().length() > 0
              ? theChip.getWidth()
              : "200px";
      final String value = theChip.getValue() != null ? "value=\"" + theChip.getValue() + "\"" : "";

      final String contextMenu =
          theChip.hasVisibleContextMenuEntries()
              ? "(new Menu("
                  + theChip.createMenuEntriesForJS(theChip.getMenuEntries())
                  + ", event, null, null, { uniqueName: '"
                  + theChip.getUniqueName()
                  + "'} )).show(); return false;"
              : "return false;";

      out.write("\r\n\r\n<td title=\"");
      out.print(tooltip);
      out.write("\" class=\"toolbar-autocomplete\" oncontextmenu=\"");
      out.print(contextMenu);
      out.write(
          "\">\r\n\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n\t\t<tr>\r\n\t\t\t<td class=\"label\">");
      out.print(label);
      out.write(":</td>\r\n\t\t\t<td><input type=\"text\" \r\n\t\t\t\t\t\t id=\"");
      out.print(theChip.getInputID());
      out.write("\" \r\n\t\t\t\t\t\t style=\"width:");
      out.print(width);
      out.write(";\"\r\n\t\t\t\t\t\t name=\"");
      out.print(theChip.getEventID(AbstractAutocompleterToolbarActionChip.VALUE));
      out.write("\" \r\n\t\t\t\t\t\t ");
      out.print(value);
      out.write("/><div id=\"");
      out.print(theChip.getMatchesID());
      out.write("\" class=\"autocomplete\"></div></td>\r\n\t\t</tr>\r\n\t</table>\r\n</td>\r\n");

      final String options =
          "{ paramName: '"
              + AbstractAutocompleterToolbarActionChip.SEARCH
              + "',"
              + "afterUpdateElement: function(inputElement, selectedListItem) "
              + "{ if( selectedListItem.nodeName == \"LI\" )"
              + "{ setEvent('"
              + theChip.getCommandID(AbstractAutocompleterToolbarActionChip.SELECT)
              + "', domQuery('span.hidden', selectedListItem)[0].firstChild.nodeValue);setScrollAndSubmit(); }"
              + "else "
              + "{	inputElement.value = \"\"; }},"
              + "onShow:       function(element, update)"
              + "{ if(!update.style.position || update.style.position=='absolute')"
              + "{	update.style.position = 'absolute'; Position.clone(element, update, { setHeight: false, setWidth:false, offsetTop: element.offsetHeight }); }"
              + "Effect.Appear(update,{duration:0.15}); } }";
      final String tenantIDStr =
          Registry.getCurrentTenant() instanceof SlaveTenant
              ? ";tenantID=" + Registry.getCurrentTenant().getTenantID()
              : "";

      out.write("\r\n<script language=\"JavaScript1.2\">\r\n\t\r\n\tnew Ajax.Autocompleter(\"");
      out.print(theChip.getInputID());
      out.write("\", \"");
      out.print(theChip.getMatchesID());
      out.write("\", \"prototype");
      out.print(tenantIDStr);
      out.write('?');
      out.print(PrototypeServlet.CHIPID);
      out.write('=');
      out.print(theChip.getID());
      out.write('"');
      out.write(',');
      out.write(' ');
      out.print(options);
      out.write(");\r\n\r\n</script>\r\n\t\t\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 20
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"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=UTF-8\">\r\n");
      out.write(
          "<link href=\"http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
      out.write("</head>\r\n");

      String cmd = request.getParameter("cmd");
      String msg = null;

      if (request.getMethod().equals("POST")) {
        if (cmd.equals("login")) {
          int stNum = Integer.parseInt(request.getParameter("stNum"));
          String pass = request.getParameter("pass");

          Register user = new Register();

          if (user.check(stNum, pass) == 0) {
            System.out.println(user.check(stNum, pass));
            msg = "회원가입 하세요";
          } else {
            System.out.println(user.check(stNum, pass));
            if (user.check(stNum, pass) == 1) {
              session.setAttribute("id", stNum);
              response.sendRedirect("admin.jsp");
            } else {
              out.write("\r\n");
              out.write("\t\t\t\t\t<script type=\"text/javascript\">\r\n");
              out.write("\t\t\t\t\t\talert(\"로그인 실패\")\r\n");
              out.write("\t\t\t\t\t\thistory.go(-1);\r\n");
              out.write("\t\t\t\t\t</script>\r\n");
              out.write("\t\t\t\t");
            }
          }
        }
      }

      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\t<div class=\"container\">\r\n");
      out.write("\t<h1>로그인</h1><hr/>\r\n");
      out.write("\t\t<form method=\"POST\">\r\n");
      out.write("\t\t\t<table>\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write(
          "                   <td><span>학번</span></td><td><input type=\"text\" name=\"stNum\"/></td>\r\n");
      out.write("               </tr>\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write(
          "                   <td><span>비밀번호</span></td><td><input type=\"password\" name=\"pass\"/></td>\r\n");
      out.write("               </tr>\t\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write(
          "\t\t\t<button class=\"btn btn-primary\" name=\"cmd\" value=\"login\">로그인</button>\r\n");
      out.write("\t\t\t<a href=\"register.jsp\" class=\"btn\">회원가입</a>\r\n");
      out.write("\t\t</form>\r\n");
      out.write("\t</div>\t\t\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 21
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=EUC-KR");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("a:link {\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("\tcolor: #008100;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a:visited {\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("\tcolor: #008100;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("a:hover {\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("\tcolor: #008100;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=EUC-KR\">\r\n");
      out.write("<title>temp</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t<p align=\"center\">\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<br> <a href=\"../log/index.jsp\">- 회원가입 성공! 홈으로 이동합니다. -</a>\r\n");
      out.write("\t</p>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 22
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html;charset=UTF-8");
      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("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<div class=\"col-md-3 ro-left-sidebar\">\n");
      out.write(
          "    <h4 class=\"ro-sidebar-title\"><a href=\"#\">Quản lí trả mượn tài nguyên</a></h4>\n");
      out.write("    <ul class=\"list-group\">\n");
      out.write("        ");
      if (_jspx_meth_s_005furl_005f0(_jspx_page_context)) return;
      out.write("\n");
      out.write("        <li class=\"list-group-item\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${dailyTrade}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\">Các giao dịch gần đây</a></li>\n");
      out.write("        ");
      if (_jspx_meth_s_005furl_005f1(_jspx_page_context)) return;
      out.write("\n");
      out.write("        <li class=\"list-group-item\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${getBorrow}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\">Giao dịch mượn sách</a></li>\n");
      out.write("        ");
      if (_jspx_meth_s_005furl_005f2(_jspx_page_context)) return;
      out.write("\n");
      out.write("        <li class=\"list-group-item\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${findBorrow}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\">Tìm kiếm giao dịch</a></li>\n");
      out.write("    </ul>\n");
      out.write("    <h4 class=\"ro-sidebar-title\">Quản lí thành viên</h4>\n");
      out.write("    <ul class=\"list-group\">\n");
      out.write("        ");
      if (_jspx_meth_s_005furl_005f3(_jspx_page_context)) return;
      out.write("\n");
      out.write("        <li class=\"list-group-item\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${memberManager}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\">Thông tin chung</a></li>\n");
      out.write("        ");
      if (_jspx_meth_s_005furl_005f4(_jspx_page_context)) return;
      out.write("\n");
      out.write("        <li class=\"list-group-item\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${findMember}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\">Tìm kiếm thành viên</a></li>\n");
      out.write("            ");
      if (_jspx_meth_s_005furl_005f5(_jspx_page_context)) return;
      out.write("\n");
      out.write("        <li class=\"list-group-item\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${memberRegister}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\">Đăng kí thành viên</a></li>\n");
      out.write("    </ul>\n");
      out.write("</div>\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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\r\n");

      final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE);
      final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY);

      /*
       //to be definitive NOT serializable
      InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE");
      if( noser==null )
      {
      	session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] ));
      }
      */

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

      GenericConditionChip theChip =
          (GenericConditionChip) request.getAttribute(AbstractChip.CHIP_KEY);

      out.write("\r\n<td class=\"attribute\">\r\n\t<div class=\"attribute\">");
      out.print(theChip.getName());
      out.write(
          "</div>\r\n</td>\r\n<td class=\"locale\">\r\n\t<div class=\"locale\">&nbsp;</div>\r\n</td>\r\n<td class=\"comparator\">\r\n\t<div class=\"comparator\">");
      theChip.getOperatorEditor().render(pageContext);
      out.write("</div>\r\n</td>\r\n<td class=\"condition\">\r\n\t<div class=\"condition\">\r\n");

      if (theChip.getValueEditor() != null) {
        theChip.getValueEditor().render(pageContext);
      } else {

        out.write("\r\n\t\t\t&nbsp;\r\n");
      }

      out.write("\r\n\t</div>\r\n</td>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 24
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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("\n");
      out.write("  \n");
      out.write(" ");
      request.setCharacterEncoding("utf-8");
      out.write('\n');
      out.write(' ');
      movie.admin.filmBean gb = null;
      gb =
          (movie.admin.filmBean)
              _jspx_page_context.getAttribute("gb", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (gb == null) {
        gb = new movie.admin.filmBean();
        _jspx_page_context.setAttribute("gb", gb, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      movie.admin.film _film = null;
      _film =
          (movie.admin.film)
              _jspx_page_context.getAttribute("_film", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (_film == null) {
        _film = new movie.admin.film();
        _jspx_page_context.setAttribute("_film", _film, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(
          _jspx_page_context.findAttribute("_film"), request);
      out.write("\n");
      out.write(" \n");
      out.write("\n");
      out.write(" ");

      String action = request.getParameter("action");

      if (action.equals("list")) {
        ArrayList<film> films = gb.getDBlist();
        request.setAttribute("datas", films);
        pageContext.forward("admin_mode.jsp");
      }
      if (action.equals("back")) {
        ArrayList<film> films = gb.getDBlist();
        request.setAttribute("datas", films);
        pageContext.forward("admin_mode.jsp");
      } else if (action.equals("insert")) {
        if (gb.insertDB(_film)) {
          response.sendRedirect("film_control.jsp?action=list");
        } else throw new Exception("DB 입력 오류");
      } else if (action.equals("delete")) {

        if (gb.deleteDB(_film.getId_film())) {
          response.sendRedirect("film_control.jsp?action=list");
        } else throw new Exception("DB 삭제 오류");
      }
      // else if(action.equals("update")){
      // }
      else {
      }

      out.write("\n");
      out.write("    \n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 25
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=ISO-8859-1");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"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=ISO-8859-1\">\r\n");
      out.write("<title>Insert title here</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write('\r');
      out.write('\n');
      out.println(getInfo());
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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(
          "<script type=\"text/javascript\" type=\"javascript\" src=\"/IMT/common/_scripts/global.js\"></script>\r\n");
      out.write("<script>\r\n");
      out.write("\t jQuery(document)\r\n");
      out.write("\t\t\t.ready(\r\n");
      out.write("\t\t\t\t\tfunction() {\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\tjQuery\r\n");
      out.write("\t\t\t\t\t\t\t\t.get(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\"AppraisalData/Retail/GroupStore?appraisalId=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${appraisalId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("&includeDealerGroup=0\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tfunction(data) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t if(data.reportGroupingTrimDTO!=null){\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\taddStoreData(data);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t }\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t});\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\tjQuery\r\n");
      out.write("\t\t\t\t\t\t\t\t.get(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\"AppraisalData/Retail/GroupStore?appraisalId=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${appraisalId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("&includeDealerGroup=1\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tfunction(data) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tif(data.reportGroupingTrimDTO!=null){\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t\taddGroupData(data);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\tjQuery\r\n");
      out.write("\t\t\t\t\t\t\t\t.get(\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\"AppraisalData/Retail/Polk?appraisalId=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${appraisalId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tfunction(data) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\taddPolkData(data);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t});\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t$('#multiOpenAccordion').multiOpenAccordion({\r\n");
      out.write("\t\t\t\t\t\t\t active: [1, 2],\r\n");
      out.write("\t\t\t\t\t\t\t    click: function(event, ui) {\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t    init: function(event, ui) {\r\n");
      out.write("\t\t\t\t\t\t\t    },\r\n");
      out.write("\t\t\t\t\t\t\t    tabShown: function(event, ui) {\r\n");
      out.write("\t\t\t\t\t\t\t    },\r\n");
      out.write("\t\t\t\t\t\t\t    tabHidden: function(event, ui) {\r\n");
      out.write("\t\t\t\t\t\t\t    }\r\n");
      out.write("\t\t\t\t\t\t\t   });\r\n");
      out.write("\t\t\t\t\t\t \r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\tvar dealerId = jQuery('#dealerId').val();\r\n");
      out.write("\t\t\t\t\t\tvar memberId = jQuery('#memberId').val();\r\n");
      out.write(
          "\t\t\t\t\t\tvar def_ret_acc = getCookie('ret_def_acc_'+dealerId+\"_\"+memberId);\r\n");
      out.write("\t\t\t\t\t\tif(def_ret_acc==''){\r\n");
      out.write(
          "\t\t\t\t\t\t\t$('#multiOpenAccordion').multiOpenAccordion( \"option\", \"active\", [2]);\r\n");
      out.write("\t\t\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\t\t\tvar sArr = def_ret_acc.split(',');\r\n");
      out.write("\t\t\t\t\t\t\tvar iarr = [];\r\n");
      out.write("\t\t\t\t\t\t\tfor(var i=0;i<sArr.length;i++){\r\n");
      out.write("\t\t\t\t\t\t\t\tiarr.push(parseInt(sArr[i]));\r\n");
      out.write("\t\t\t\t\t\t\t}\r\n");
      out.write(
          "\t\t\t\t\t\t\t$('#multiOpenAccordion').multiOpenAccordion( \"option\", \"active\",iarr);\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\tjQuery('#storeHeaderId').find('span').css('float','left');\r\n");
      out.write("\t\t\t\t\t\tjQuery('#lightId').css('float','');\r\n");
      out.write("\t\t\t\t\t\tjQuery('#groupHeaderId').find('span').css('float','left');\r\n");
      out.write("\t\t\t\t\t\tjQuery('#inGroupHeaderId').find('span').css('float','left');\r\n");
      out.write("\t\t\t\t\t\tjQuery('#grpRedisHeaderId').css('float','');\r\n");
      out.write(
          "\t\t\t\t\t\tjQuery('#polkHeaderId').find('span').css('float','left');\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t});\r\n");
      out.write("\tfunction perfPlus(params,buttonName){\r\n");
      out.write("\r\n");
      out.write("\t\tpop(\"/NextGen/PerformancePlus.go?\"+params,buttonName);\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction vDeals(params,buttonName){\r\n");
      out.write("\r\n");
      out.write("\t\tpop(\"/NextGen/ViewDealsAction.go?\"+params,buttonName);\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction addStoreData(data){\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\tjQuery(\"#pStoreHeadingId\").text(\"Performance from the last \"+data.weeks+\" weeks for \"+data.dealerGroupName);\r\n");
      out.write("\t\t//Data for store with trim\r\n");
      out.write(
          "\t\tjQuery(\"#storeSpanMakeModelTrimId\").text(data.make+\" \"+data.model+\" \"+data.trim);\r\n");
      out.write("\t\tif(data.specificReport.unitsSold!=0){\r\n");
      out.write(
          "\t\t\tvar href = \"/NextGen/ViewDealsAction.go?groupingDescriptionId=\"+data.generalReport.groupingId+\"&weeks=\"+data.weeks+\"&isPopup=true&reportType=\"+data.includeDealerGroup+\"&comingFrom=TA&applyMileageFilter=false&trim=\"+data.trim+\"&mode=UCBP\";\r\n");
      out.write("\t\t\t//alert('href='+href);\r\n");
      out.write("\t\t\tvar buttonName = \"ViewDeals\";\r\n");
      out.write(
          "\t\t\tjQuery(\"#storeSpanTrimButtonsId\").append('<a class=\"ml-retail-btn\" href=\"javascript:pop(\\''+href+'\\',\\''+buttonName+'\\')\" id=\"viewDealsHref\">View Deals</a>');\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(data.includeDealerGroup == 0){\r\n");
      out.write(
          "\t\t\tvar href = \"/NextGen/PerformancePlus.go?groupingDescriptionId=\"+data.groupingDescriptionId+\"&weeks=\"+data.weeks+\"&forecast=false&mode=UCBP&isPopup=true&mileageFilter=false&mileage=\"+data.mileage;\r\n");
      out.write("\t\t\t//alert('href='+href);\r\n");
      out.write("\t\t\tvar buttonName = \"exToPlus\";\r\n");
      out.write(
          "\t\t\tjQuery(\"#storeSpanOverallButtonsId\").append('<a class=\"ml-retail-btn\" href=\"javascript:pop(\\''+href+'\\',\\''+buttonName+'\\');\">Performance Plus</a>');\r\n");
      out.write("\t\t}\r\n");
      out.write(
          "\t\tvar trHtml = '<td  id=\"storeTrimAvgGrossProfitFormattedId\" >'+data.reportGroupingTrimDTO.avgGrossProfitFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeTrimUnitsSoldFormattedId\" >'+data.reportGroupingTrimDTO.unitsSoldFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeTrimAvgDaysToSaleFormattedId\" >'+data.reportGroupingTrimDTO.avgDaysToSaleFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeTrimAvgMileageFormattedId\" >'+data.reportGroupingTrimDTO.avgMileageFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeTrimNoSalesId\" >'+data.reportGroupingTrimDTO.noSales+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeTrimUnitsInStockFormattedId\" >'+data.reportGroupingTrimDTO.unitsInStockFormatted+'</td>';\r\n");
      out.write("\t\tjQuery(\"#storeTrimTrId\").append(trHtml);\r\n");
      out.write("\r\n");
      out.write(
          "\t\t//Data for store with Overall----------------------------------------------------------------------------------------------------------------------\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\tjQuery(\"#storeSpanMakeModelOverallId\").text(data.make+\" \"+data.model+\" Overall\");\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\tvar trOverallHtml = '<td  id=\"storeTrimAvgGrossProfitFormattedId\" >'+data.reportGroupingOverallDTO.avgGrossProfitFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeOverallUnitsSoldFormattedId\" >'+data.reportGroupingOverallDTO.unitsSoldFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeOverallAvgDaysToSaleFormattedId\" >'+data.reportGroupingOverallDTO.avgDaysToSaleFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeOverallAvgMileageFormattedId\" >'+data.reportGroupingOverallDTO.avgMileageFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeOverallNoSalesId\" >'+data.reportGroupingOverallDTO.noSales+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"storeOverallUnitsInStockFormattedId\" >'+data.reportGroupingOverallDTO.unitsInStockFormatted+'</td>';\r\n");
      out.write("\t\tjQuery(\"#storeOverallTrId\").append(trOverallHtml);\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction addGroupData(data){\r\n");
      out.write("\r\n");
      out.write("\t\t//set light\r\n");
      out.write("\t\tjQuery(\"#lightId\").empty();\r\n");
      out.write("\t\tjQuery(\"#lightHeaderId\").empty();\r\n");
      out.write("\t\tif(data.light==1){\r\n");
      out.write(
          "\t\t\tjQuery(\"#lightId\").append('<img src=\"/fl-ims/resources/images/vhr/carfax/red.png\">');\r\n");
      out.write(
          "\t\t\tjQuery(\"#lightHeaderId\").append('<img src=\"/fl-ims/resources/images/vhr/carfax/red.png\">');\r\n");
      out.write("\t\t}else if(data.light==2){\r\n");
      out.write(
          "\t\t\tjQuery(\"#lightId\").append('<img src=\"/fl-ims/resources/images/vhr/carfax/yellow.png\">');\r\n");
      out.write(
          "\t\t\tjQuery(\"#lightHeaderId\").append('<img src=\"/fl-ims/resources/images/vhr/carfax/yellow.png\">');\r\n");
      out.write("\t\t}else if(data.light==3){\r\n");
      out.write(
          "\t\t\tjQuery(\"#lightId\").append('<img src=\"/fl-ims/resources/images/green-round.png\">');\r\n");
      out.write(
          "\t\t\tjQuery(\"#lightHeaderId\").append('<img src=\"/fl-ims/resources/images/green-round.png\">');\r\n");
      out.write("\t\t}\r\n");
      out.write(
          "\t\tjQuery(\"#pGroupHeadingId\").text(\"Performance from the last \"+data.weeks+\" weeks for \"+data.dealerGroupName);\r\n");
      out.write("\t\t//Data for store with trim\r\n");
      out.write(
          "\t\tjQuery(\"#groupSpanMakeModelTrimId\").text(data.make+\" \"+data.model+\" \"+data.trim);\r\n");
      out.write("\t\tif(data.specificReport.unitsSold!=0){\r\n");
      out.write(
          "\t\t\tvar href = \"/NextGen/ViewDealsAction.go?groupingDescriptionId=\"+data.generalReport.groupingId+\"&weeks=\"+data.weeks+\"&isPopup=true&reportType=\"+data.includeDealerGroup+\"&comingFrom=TA&applyMileageFilter=false&trim=\"+data.trim+\"&mode=UCBP\";\r\n");
      out.write("\t\t\t//alert('href='+href);\r\n");
      out.write("\t\t\tvar buttonName = \"ViewDeals\";\r\n");
      out.write(
          "\t\t\tjQuery(\"#groupSpanTrimButtonsId\").append('<a class=\"ml-retail-btn\" href=\"javascript:pop(\\''+href+'\\',\\''+buttonName+'\\')\" id=\"viewDealsHref\">View Deals</a>');\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(data.generalReport.unitsSold!=0){\r\n");
      out.write(
          "\t\t\tvar href = \"/NextGen/ViewDealsAction.go?groupingDescriptionId=\"+data.generalReport.groupingId+\"&weeks=\"+data.weeks+\"&reportType=\"+data.includeDealerGroup+\"&isPopup=true&isPopup=true&applyMileageFilter=false&comingFrom=TA&mode=UCBP\";\r\n");
      out.write("\t\t\tvar buttonName = \"ViewDeals\";\r\n");
      out.write(
          "\t\t\tjQuery(\"#groupSpanOverallButtonsId\").append('<a class=\"ml-retail-btn\" href=\"javascript:pop(\\''+href+'\\',\\''+buttonName+'\\')\" id=\"viewDealsHref\">View Deals</a>');\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(data.includeDealerGroup == 0){\r\n");
      out.write(
          "\t\t\tvar href = \"/NextGen/PerformancePlus.go?groupingDescriptionId=\"+data.groupingDescriptionId+\"&weeks=\"+data.weeks+\"&forecast=false&mode=UCBP&isPopup=true&mileageFilter=false&mileage=\"+data.mileage;\r\n");
      out.write("\t\t\t//alert('href='+href);\r\n");
      out.write("\t\t\tvar buttonName = \"exToPlus\";\r\n");
      out.write(
          "\t\t\tjQuery(\"#groupSpanTrimButtonsId\").append('<a class=\"button\" href=\"javascript:pop(\\''+href+'\\',\\''+buttonName+'\\');\">Performance Plus</a>');\r\n");
      out.write("\t\t}\r\n");
      out.write(
          "\t\tvar trHtml = '<td  id=\"groupTrimAvgGrossProfitFormattedId\" >'+data.reportGroupingTrimDTO.avgGrossProfitFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupTrimUnitsSoldFormattedId\" >'+data.reportGroupingTrimDTO.unitsSoldFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupTrimAvgDaysToSaleFormattedId\" >'+data.reportGroupingTrimDTO.avgDaysToSaleFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupTrimAvgMileageFormattedId\" >'+data.reportGroupingTrimDTO.avgMileageFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupTrimNoSalesId\" >'+data.reportGroupingTrimDTO.noSales+'</td>';\r\n");
      out.write("\t\tjQuery(\"#groupTrimTrId\").append(trHtml);\r\n");
      out.write("\r\n");
      out.write(
          "\t\t//Data for store with Overall----------------------------------------------------------------------------------------------------------------------\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\tjQuery(\"#groupSpanMakeModelOverallId\").text(data.make+\" \"+data.model+\" Overall\");\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\tvar trOverallHtml = '<td  id=\"groupTrimAvgGrossProfitFormattedId\" >'+data.reportGroupingOverallDTO.avgGrossProfitFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupOverallUnitsSoldFormattedId\" >'+data.reportGroupingOverallDTO.unitsSoldFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupOverallAvgDaysToSaleFormattedId\" >'+data.reportGroupingOverallDTO.avgDaysToSaleFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupOverallAvgMileageFormattedId\" >'+data.reportGroupingOverallDTO.avgMileageFormatted+'</td>'+\r\n");
      out.write(
          "\t\t'<td  id=\"groupOverallNoSalesId\" >'+data.reportGroupingOverallDTO.noSales+'</td>';\r\n");
      out.write("\t\tjQuery(\"#groupOverallTrId\").append(trOverallHtml);\r\n");
      out.write("\r\n");
      out.write(
          "\t\t//Add Group Redistribution Data------------------------------------------------------------------------------\r\n");
      out.write("\t\tvar tableHtml = \"\";\r\n");
      out.write("\t\tif(data.demandDealers!=null){\r\n");
      out.write("\t\t\tjQuery(\"#retHeaderId\").empty();\r\n");
      out.write(
          "\t\t\tjQuery(\"#grpRedisHeaderId\").append(\"(\"+data.demandDealers.length+\")\");\r\n");
      out.write(
          "\t\t\tjQuery(\"#retHeaderId\").append('<font style=\"font-size:13px;\">('+data.demandDealers.length+' in Group)</font>');\r\n");
      out.write("\t\t\tfor(var i=0;i<data.demandDealers.length;i++){\r\n");
      out.write("\t\t\t\tvar item = data.demandDealers[i];\r\n");
      out.write("\t\t\t\tif(item == null){\r\n");
      out.write("\t\t\t\t\tcontinue;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\tif(data.isLithia){\r\n");
      out.write(
          "\t\t\t\t\ttableHtml+='<span><a  onclick=\"showEmailRedistributionForm(\\''+item.emailAddress+'\\'); return false;\" >'+item.name+'</a></span> '+\r\n");
      out.write(
          "\t\t\t\t\t'<span>'+item.officePhoneNumberFormatted+'</span> <span>'+item.unitsInStock+'</span><br clear=\"all\">';\r\n");
      out.write("\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\ttableHtml+='<span>'+item.name+'</a></span> '+\r\n");
      out.write(
          "\t\t\t\t\t'<span>'+item.officePhoneNumberFormatted+'</span> <span>'+item.unitsInStock+'</span><br clear=\"all\">';\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\tjQuery(\"#grpRedisTableId\").append(tableHtml);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t}else{\r\n");
      out.write("\t\t\tjQuery(\"#grpRedisHeaderId\").append(\"(0)\");\r\n");
      out.write("\t\t}\r\n");
      out.write(
          "\t\t//End ---------------------------------------------------------------------------------------------------------\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\tfunction addPolkData(data){\r\n");
      out.write("\t\tvar polkHtml = '<div id=\"marketInsights\" class=\"databox\" >'+\r\n");
      out.write("\t\t'<h4>DMV Core Market Anaylsis: </h4>';\r\n");
      out.write("\t\tif(data.insightPresentationAdapter.makeModelMarketInsightAvailable){\r\n");
      out.write(
          "\t\t\tpolkHtml += '<p  class=\"perfDescription\">'+data.insightPresentationAdapter.makeModelMarketInsight+'</p>'\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(data.insightPresentationAdapter.modelYearMarketInsightAvailable){\r\n");
      out.write(
          "\t\t\tpolkHtml += '<p class=\"perfDescription\">'+data.insightPresentationAdapter.modelYearMarketInsight+'</p>';\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tpolkHtml += '</div>';\r\n");
      out.write("\t\tjQuery(\"#polkDivId\").append(polkHtml);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(jQuery(\"#marketInsights\")) { \r\n");
      out.write("\t\t\tjQuery(\"#polkDivId, #marketInsights\").show();\r\n");
      out.write("\t\t\tjQuery(\"#polkDivId .jsData\").empty();\r\n");
      out.write("// \t\t\tjQuery(\"#marketInsights .perfDescription\").each(function () {\r\n");
      out.write(
          "// \t\t\t\tjQuery(\"#polkDivId .jsData\").append(jQuery(\"<dt>\"+$(this).text()+\"</dt>\"));\r\n");
      out.write("// \t\t\t});\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div class=\"fl retail-left-part\">\r\n");
      out.write("\t<div class=\"appraisalbox\">\r\n");
      out.write("\t\t <h2 align=\"center\">Appraisal Calculator</h2>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<label>Target Selling Price</label> $<span\r\n");
      out.write("\t\t\t\tclass=\"appraisal-txtbox txt-right\">0</span>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<label>Estimated Recon.</label> $<span> <input type=\"text\"\r\n");
      out.write("\t\t\t\tclass=\"appraisal-txtbox\">\r\n");
      out.write("\t\t\t</span>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<label>Target gross Profit</label> $<span> <input type=\"text\"\r\n");
      out.write("\t\t\t\tclass=\"appraisal-txtbox\">\r\n");
      out.write("\t\t\t</span>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div class=\"seperator\"></div>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<label>Appraisal Value</label> $<span> <input type=\"text\"\r\n");
      out.write("\t\t\t\tclass=\"appraisal-txtbox\">\r\n");
      out.write("\t\t\t</span>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<label class=\"normal-lineheight\">Current Appraisal<br> <a\r\n");
      out.write("\t\t\t\tclass=\"underline\" href=\"#\">View History</a>\r\n");
      out.write("\t\t\t</label> $<span class=\"appraisal-txtbox txt-right\">1,900</span>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<br>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<label class=\"normal-lineheight\">Appraiser Name<br> <a\r\n");
      out.write("\t\t\t\tclass=\"underline\" href=\"#\">Add/Remove</a></label> <span\r\n");
      out.write("\t\t\t\tclass=\"appraisal-txtbox txt-right\"> <select>\r\n");
      out.write("\t\t\t\t\t<option>Hudson,Brian</option>\r\n");
      out.write("\t\t\t\t\t<option>Hudson,Brian</option>\r\n");
      out.write("\t\t\t</select>\r\n");
      out.write("\t\t\t</span>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div>\r\n");
      out.write("\t\t\t<br> <label class=\"block\">Reconditioning Notes</label> <br>\r\n");
      out.write("\t\t\t<textarea class=\"recnotes\" rows=\"4\"></textarea>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div class=\"align-right\">\r\n");
      out.write("\t\t\t<button class=\"appraisal-btn\">Save</button>\r\n");
      out.write("\t\t\t<button>Cancel</button>\r\n");
      out.write("\t\t</div> \r\n");
      out.write("\t</div>\r\n");
      out.write("</div>\r\n");
      out.write("<!--retail-left-part ends-->\r\n");
      out.write("<div class=\"fr retail-right-part\">\r\n");
      out.write("\t<div class=\"performance-polk-wrap\">\r\n");
      out.write("\t\t<div id=\"performance-polk\" class=\"second-tier-nestings\">\r\n");
      out.write("\t\t\t<ul class=\"fl\">\r\n");
      out.write("\t\t\t\t<!-- <li><a href=\"#ml-perf\">Performance</a></li> -->\r\n");
      out.write("\t\t\t\t<!-- <li><a href=\"#ml-polk\">Polk</a></li> -->\r\n");
      out.write("\t\t\t</ul>\r\n");
      out.write("\t\t\t<br clear=\"all\">\r\n");
      out.write("\t\t\t<div id=\"ml-perf\" style=\"border-radius: 5px;\">\r\n");
      out.write("\t\t\t\t<div id=\"multiOpenAccordion\">\r\n");
      out.write(
          "\t\t\t\t\t<h3 id=\"storeHeaderId\" style=\"margin-top:0px;\" class=\"ui-accordion-header ui-state-default ui-accordion-icons ui-accordion-header-active ui-state-active ui-corner-top\">\r\n");
      out.write("\t\t\t\t\t\tStore Performance <span id=\"lightId\"></span>\r\n");
      out.write("\t\t\t\t\t</h3>\r\n");
      out.write(
          "\t\t\t\t\t<div id=\"0\" class=\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active\">\r\n");
      out.write("\t\t\t\t\t\t<p class=\"greysubhead\" id=\"pStoreHeadingId\"></p>\r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"store-perfm-head fl\" id=\"storeSpanMakeModelTrimId\"></span> \r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"fr store-perfm-head-right\" style=\"padding-bottom: 3px;\" id=\"storeSpanTrimButtonsId\">\r\n");
      out.write("\t\t\t\t\t\t</span> <br clear=\"all\">\r\n");
      out.write(
          "\t\t\t\t\t\t<table class=\"store-perfm-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t<thead>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Retail Average Gross Profit</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Units Sold</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Days to Sale</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Mileage</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>No Sales</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Units in Stock</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</thead>\r\n");
      out.write("\t\t\t\t\t\t\t<tbody>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr id=\"storeTrimTrId\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</tbody>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"store-perfm-head fl\" id=\"storeSpanMakeModelOverallId\"></span> \r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"fr store-perfm-head-right \" style=\"padding-bottom: 3px;\" id=\"storeSpanOverallButtonsId\">\r\n");
      out.write("\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t</span> <br clear=\"all\">\r\n");
      out.write(
          "\t\t\t\t\t\t<table class=\"store-perfm-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t<thead>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Retail Average Gross Profit</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Units Sold</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Days to Sale</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Mileage</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>No Sales</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Units in Stock</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</thead>\r\n");
      out.write("\t\t\t\t\t\t\t<tbody>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr id=\"storeOverallTrId\">\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</tbody>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t\t<br> <br>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write(
          "\t\t\t\t\t<h3 id=\"groupHeaderId\" class=\"ui-accordion-header ui-state-default ui-accordion-icons ui-accordion-header-active ui-state-active ui-corner-top\">Group Performance</h3>\r\n");
      out.write(
          "\t\t\t\t\t<div id=\"1\" class=\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active\">\r\n");
      out.write("\t\t\t\t\t\t<p class=\"greysubhead\" id=\"pGroupHeadingId\"></p>\r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"store-perfm-head fl\" id=\"groupSpanMakeModelTrimId\"></span> \r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"fr store-perfm-head-right \" style=\"padding-bottom: 3px;\" id=\"groupSpanTrimButtonsId\">\r\n");
      out.write("\t\t\t\t\t\t</span> <br clear=\"all\">\r\n");
      out.write(
          "\t\t\t\t\t\t<table class=\"store-perfm-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t<thead>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Retail Average Gross Profit</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Units Sold</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Days to Sale</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Mileage</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>No Sales</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</thead>\r\n");
      out.write("\t\t\t\t\t\t\t<tbody>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr id=\"groupTrimTrId\">\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</tbody>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"store-perfm-head fl\" id=\"groupSpanMakeModelOverallId\"></span> \r\n");
      out.write(
          "\t\t\t\t\t\t<span class=\"fr store-perfm-head-right \" style=\"padding-bottom: 3px;\" id=\"groupSpanOverallButtonsId\">\r\n");
      out.write("\t\t\t\t\t\t</span> <br clear=\"all\">\r\n");
      out.write(
          "\t\t\t\t\t\t<table class=\"store-perfm-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t<thead>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Retail Average Gross Profit</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Units Sold</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Days to Sale</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>Average Mileage</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th>No Sales</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</thead>\r\n");
      out.write("\t\t\t\t\t\t\t<tbody>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr id=\"groupOverallTrId\">\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</tbody>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write(
          "\t\t\t\t\t<h3 id=\"inGroupHeaderId\" class=\"ui-accordion-header ui-state-default ui-accordion-icons ui-accordion-header-active ui-state-active ui-corner-top\">In Group Redistribution <span id=\"grpRedisHeaderId\"></span></h3>\r\n");
      out.write(
          "\t\t\t\t\t<div id=\"2\" class=\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active\">\r\n");
      out.write("\t\t\t\t\t\t<br>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"grp-redistribution-head\">\r\n");
      out.write("\t\t\t\t\t\t\t<span>Dealer</span> <span>Phone Number</span> <span>Unit\r\n");
      out.write("\t\t\t\t\t\t\t\tin Stock</span>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"grp-redistribution-body\" id=\"grpRedisTableId\">\r\n");
      out.write("\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write(
          "\t\t\t\t\t<h3 id=\"polkHeaderId\" class=\"ui-accordion-header ui-state-default ui-accordion-icons ui-accordion-header-active ui-state-active ui-corner-top\">Polk Market Analysis</h3>\r\n");
      out.write(
          "\t\t\t\t\t<div id=\"3\" class=\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active\">\r\n");
      out.write("\t\t\t\t\t\t<br clear=\"all\">\r\n");
      out.write("\t\t\t\t\t\t<div id=\"polkDivId\" class=\"summary\">\r\n");
      out.write("    \t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<br> <br>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t<br clear=\"all\"/>\r\n");
      out.write("\t\t  \t\t<br clear=\"all\"/>\r\n");
      out.write("\t\t\t\t<div class=\"footer-links\"></div>\r\n");
      out.write("\t\t\t\t<br clear=\"all\"/>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<!--performance-polk ends-->\r\n");
      out.write("\t\t \r\n");
      out.write("\t</div>\r\n");
      out.write("\t<!--retail-right-part ends-->\r\n");
      out.write("\t<br clear=\"all\">\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<br clear=\"all\" />");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 27
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html;charset=UTF-8");
      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("\n");
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE html>\n");
      out.write("<html>\n");
      out.write("    <head>\n");
      out.write(
          "        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("        <title>File upload</title>\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("    <center>\n");
      out.write("        <h3>File Upload</h3>\n");
      out.write("        <form>\n");
      out.write("            <input type = \"file\" name = \"file\" size = \"50\"/>\n");
      out.write("            <br/>\n");
      out.write("            <input type = \"button\"  value = \"submit\"/>\n");
      out.write("        </form>\n");
      out.write("        \n");
      out.write("    </center>\n");
      out.write("    </body>\n");
      out.write("</html>\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 28
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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("\n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");

      String id = (String) session.getAttribute("id");
      String name = (String) session.getAttribute("name");

      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\t<div>\n");
      out.write("\t\t");
      out.print(name);
      out.write('(');
      out.print(id);
      out.write(")님 Hello <br/><br/>\n");
      out.write("\t\tShank you very KamSsa<br/>\n");
      out.write("\t\t\n");
      out.write("\t</div>\n");
      out.write("\t\n");
      out.write("\t<form action = \"12_logout.jsp\">\n");
      out.write("\t\t<input type =\"submit\" value = \"logout\">\n");
      out.write("\t</form>\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 29
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=UTF-8");
      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("<!DOCTYPE html>\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n");
      out.write("<title>検定管理システム</title>\r\n");
      out.write("<link href=\"");
      out.print(request.getContextPath());
      out.write("/view/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("<script src=\"");
      out.print(request.getContextPath());
      out.write("/view/js/jquery-1.11.3.min.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("$(function(){\r\n");
      out.write("    $('a,a img,button').css({\r\n");
      out.write("        opacity: 1.0,\r\n");
      out.write("        filter: \"alpha(opacity=100)\"\r\n");
      out.write("        }).hover(function(){\r\n");
      out.write("            $(this).fadeTo(200,0.6);\r\n");
      out.write("        },function(){\r\n");
      out.write("            $(this).fadeTo(200,1.0);\r\n");
      out.write("    })\r\n");
      out.write("});\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\r\n");

      HttpSession examationsearchsession = request.getSession(false);

      ExamationInfoDto examationinfo =
          (ExamationInfoDto) examationsearchsession.getAttribute("examationinfo");

      int i = Integer.parseInt(request.getParameter("forid"));

      out.write("\r\n");
      out.write("\r\n");
      out.write(
          "<header><h1><a href=\"/testmanagement/examationlist\">検定管理システム</a></h1></header>\r\n");
      out.write("\r\n");
      out.write("<div class=\"main\">\r\n");
      out.write("\r\n");
      out.write("\t<div class=\"info\">\r\n");
      out.write("\t<h2>受験検定追加</h2>\r\n");
      out.write("\t<p>受験検定の合否を選択してください。</p>\r\n");
      out.write("\r\n");
      out.write("\t<table class=\"list\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"testadd\">実施日</td><td>");
      out.print(examationinfo.getTestDay().get(i));
      out.write("</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"testadd\">主催</td><td>");
      out.print(examationinfo.getSponsor().get(i));
      out.write("</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"testadd\">検定名</td><td>");
      out.print(examationinfo.getTestName().get(i));
      out.write("</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write("/view/examationaddchack.jsp\">\r\n");
      out.write("\t\t<select name=\"gouhi\" class=\"drop\">\r\n");
      out.write("\t\t<optgroup label=\"合否\">\r\n");
      out.write("\t\t<option value=\"1\">合格</option>\r\n");
      out.write("\t\t<option value=\"0\">不合格</option>\r\n");
      out.write("\t\t</optgroup>\r\n");
      out.write("\t\t</select>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t<table class=\"button\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"button\">\r\n");
      out.write("\t\t\t\t<button class=\"button1\" onClick=\"history.back()\">戻る</button>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t\t<td class=\"button\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<button class=\"button1\" type=\"submit\" name=\"i\" value=\"");
      out.print(i);
      out.write("\">確認</button>\r\n");
      out.write("\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("\t</form>\r\n");
      out.write("\t</div>\r\n");
      out.write("\r\n");
      out.write("\t<div class=\"side\">\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write("/logout\"><button class=\"menu\" type=\"submit\">ログアウト</button></form>\r\n");
      out.write("\r\n");
      out.write("\t<p><hr></p>\r\n");
      out.write("\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write(
          "/examationlist\"><button class=\"menu\" type=\"submit\">受験検定一覧</button></form>\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write(
          "/view/examationadd1.jsp\" method=\"POST\"><button class=\"menu\" type=\"submit\">受験検定の追加</button></form>\r\n");
      out.write("\t</div>\r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<footer>&copy; 2016 WhiteCo.</footer>\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      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\r\n");

      final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE);
      final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY);

      /*
       //to be definitive NOT serializable
      InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE");
      if( noser==null )
      {
      	session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] ));
      }
      */

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

      GenericTRChip theChip = (GenericTRChip) request.getAttribute(AbstractChip.CHIP_KEY);

      out.write("\r\n<tr ");
      out.print((theChip.getHeight() != null ? " height=\"" + theChip.getHeight() + "\"" : ""));
      out.print((theChip.getWidth() != null ? " width=\"" + theChip.getWidth() + "\"" : ""));
      out.write('>');
      out.write('\r');
      out.write('\n');

      for (final Iterator it = theChip.getChildren().iterator(); it.hasNext(); ) {
        final GenericTDChip chip = (GenericTDChip) it.next();
        chip.render(pageContext);
      }

      out.write("\r\n</tr>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }