示例#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;charset=GBK");
      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 XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n");
      out.write("<meta http-equiv=\"pragma\" content=\"no-cache\" />\r\n");
      out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\" />\r\n");
      out.write("<meta http-equiv=\"expires\" content=\"0\" />   \r\n");
      out.write(" \r\n");
      out.write("<title>超市管理系统</title>\r\n");
      out.write("<script type=text/javascript>\r\n");
      out.write(" function check(form){\r\n");
      out.write("\t if(form.supplierid.value==\"\"){\r\n");
      out.write("\t\talert(\"编号不能为空\"); \r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t }\r\n");
      out.write("\t if(form.suppliername.value==\"\"){\r\n");
      out.write("\t\talert(\"供应商名称不能为空\"); \r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t }\r\n");
      out.write("\t if(form.supplierdescription.value==\"\"){\r\n");
      out.write("\t\talert(\"供应商描述不能为空\"); \r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t }\r\n");
      out.write("\t if(form.linkedman.value==\"\"){\r\n");
      out.write("\t\talert(\"联系人不能为空\"); \r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t }\r\n");
      out.write("\t if(form.telphone.value==\"\"){\r\n");
      out.write("\t\talert(\"电话不能为空\"); \r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t }\r\n");
      out.write("\t if(form.address.value==\"\"){\r\n");
      out.write("\t\talert(\"地址不能为空\"); \r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t }\r\n");
      out.write("\t if(!window.confirm(\"确定更改?\")){\r\n");
      out.write("\t\t return false;\r\n");
      out.write("\t }\r\n");
      out.write("\t return true;\r\n");
      out.write(" }\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("</head>\r\n");
      if (session.getAttribute("username") == null) {
        out.println("<script type=\"text/javascript\">");
        out.println("alert(\"您还没有登陆!请登陆!\");");
        out.println("open(\"index.jsp\",\"_parent\");");
        out.println("</script>");
        return;
      }

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

      request.setCharacterEncoding("gbk");
      long supplierid = Long.valueOf(request.getParameter("supplierid"));
      String suppliername = request.getParameter("suppliername");
      String supplierdescription = request.getParameter("supplierdescription");
      String linkedman = request.getParameter("linkedman");
      String telphone = request.getParameter("telphone");
      String address = request.getParameter("address");

      pageContext.setAttribute("supplierid", supplierid);
      pageContext.setAttribute("suppliername", suppliername);
      pageContext.setAttribute("supplierdescription", supplierdescription);
      pageContext.setAttribute("linkedman", linkedman);
      pageContext.setAttribute("telphone", telphone);
      pageContext.setAttribute("address", address);

      if (request.getParameter("change") != null) {
        Supplier supplier = new Supplier();
        supplier.setSupplierid(supplierid);
        supplier.setSuppliername(suppliername);
        supplier.setSupplierdescription(supplierdescription);
        supplier.setLinkedman(linkedman);
        supplier.setTelphone(telphone);
        supplier.setAddress(address);

        boolean consequence = new SupplierOperation().supplierinfochange(supplier);
        if (consequence) {
          out.println("<script type=\"text/javascript\">");
          out.println("alert(\"更新成功!\");");
          out.println("open(\"suppliermanage.jsp\",\"_self\");");
          out.println("</script>");
          return;
        } else {
          out.println("<script type=\"text/javascript\">");
          out.println("alert(\"更新失败!\");");
          out.println("open(\"suppliermanage.jsp\",\"_self\");");
          out.println("</script>");
          return;
        }
      }

      out.write("\r\n");
      out.write("<body>\r\n");
      out.write(
          " <form action=supplierinfochange.jsp method=post onSubmit=\"return check(this);\">\r\n");
      out.write("  <input type=hidden name=change />\r\n");
      out.write("  <div style=\"border:10px solid #4169E1;width:80%;\"  >\r\n");
      out.write("   <table>\r\n");
      out.write("     <tr><td><pre> </pre></td><td><input name=supplierid type=\"hidden\" value=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${supplierid}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(" /></td></tr>\r\n");
      out.write("     <tr><td>供应商名称:</td><td><input name=suppliername type=\"text\" value=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${suppliername}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(" /></td></tr>\r\n");
      out.write("    \r\n");
      out.write("<tr><td>供应商描述:</td><td><textarea name=supplierdescription>");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${supplierdescription}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</textarea></td></tr>\r\n");
      out.write("     <tr><td>联系人:</td><td><input name=linkedman type=\"text\" value=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${linkedman}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(" /></td></tr>\r\n");
      out.write("     <tr><td>电话:</td><td><input name=telphone type=\"text\" value=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${telphone}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(" /></td></tr>\r\n");
      out.write("     <tr><td>地址:</td><td><textarea name=address >");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${address}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</textarea></td></tr>\r\n");
      out.write("   </table>\r\n");
      out.write("  </div>\r\n");
      out.write(
          "  <input onclick=\"window.open('suppliermanage.jsp','_self')\" type=\"button\" value=返回 /><input type=\"submit\" value=修改数据  /><input onclick=\"window.open('supplierdelete.jsp?supplierid=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${supplierid}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("','_self')\" type=button value=删除 />\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 {
            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);
    }
  }
示例#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 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 lang=\"en\">\r\n");
      out.write("  <head>\r\n");
      out.write("    <meta charset=\"utf-8\">\r\n");
      out.write("    ");
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("<link type=\"text/css\" href=\"/style/main.css\" rel=\"stylesheet\" />\r\n");
      out.write("<link type=\"text/css\" href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${cxt}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/chosen.css\" rel=\"stylesheet\" />\r\n");
      out.write("<link type=\"text/css\" href=\"/style/chosen.css\" rel=\"stylesheet\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"/js/jquery.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"/js/jquery.cookie.js\"></script>\r\n");
      out.write("<script src=\"/js/chosen.jquery.js\" type=\"text/javascript\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"/js/toast.js\"></script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("    <script type=\"text/javascript\">\r\n");
      out.write("    $(function(){\t\r\n");
      out.write("\r\n");
      out.write("\t");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t});\r\n");
      out.write("    </script>\r\n");
      out.write("    ");
      if (_jspx_meth_decorator_005fhead_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("      <body>\r\n");
      out.write("\r\n");
      out.write("      ");
      if (_jspx_meth_decorator_005fbody_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write(" <!-- /container -->\r\n");
      out.write(" <input type=\"hidden\" id=\"mallId\" name=\"mallId\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${command.mallId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" form=\"command\"/>\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 {
            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);
    }
  }
示例#4
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);
    }
  }
  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);
    }
  }
示例#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');
      out.write('\n');

      String path = request.getContextPath();
      String basePath =
          request.getScheme()
              + "://"
              + request.getServerName()
              + ":"
              + request.getServerPort()
              + path
              + "/";

      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("    <base href=\"");
      out.print(basePath);
      out.write("\">\r\n");
      out.write("    \r\n");
      out.write("    <title>My JSP 'index.jsp' starting page</title>\r\n");
      out.write("\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("\t<meta http-equiv=\"expires\" content=\"0\">    \r\n");
      out.write("\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n");
      out.write("\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n");
      out.write("\t<!--\r\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
      out.write("\t-->\r\n");
      out.write("  </head>\r\n");
      out.write("  \r\n");
      out.write("  <body>\r\n");
      out.write("    访问路径无效!<br>\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 {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
示例#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);
    }
  }
  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);
    }
  }
  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);
    }
  }
示例#10
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);
    }
  }
示例#11
0
文件: role_jsp.java 项目: hymer/site
  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');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" ");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("\t\t<title>角色管理</title>\r\n");
      out.write("\t\t<script type=\"text/javascript\" src=\"");
      out.print(request.getContextPath());
      out.write("/scripts/lib-base.jsp\"></script>\r\n");
      out.write("\t</head>\r\n");
      out.write("\t<body>\r\n");
      out.write("\t\t");
      out.write("\r\n");
      out.write("<div id=\"left\">\r\n");
      out.write("\t<div class=\"innertube\">\r\n");
      out.write("\t\t<h1 class=\"head\">后台管理</h1>\r\n");
      out.write("\t\t<ul class=\"navigation\">\r\n");
      out.write("\t\t\t");
      if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\t\t</ul>\r\n");
      out.write("\t\t<div class=\"bottom_menu\">\r\n");
      out.write("\t\t\t<ul class=\"navigation\">\r\n");
      out.write("\t\t\t\t<li>\r\n");
      out.write("\t\t\t\t\t<a href=\"../\" class=\"beright\">返回主菜单</a>\r\n");
      out.write("\t\t\t\t</li>\r\n");
      out.write("\t\t\t</ul>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("</div>");
      out.write("\r\n");
      out.write("\t\t<div id=\"page\">\r\n");
      out.write("\t\t\t");
      out.write("\r\n");
      out.write("<div id=\"head\">\r\n");
      out.write("\t<div class=\"innertube\">\r\n");
      out.write("\t\t");
      //  c:if
      org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 =
          (org.apache.taglibs.standard.tag.rt.core.IfTag)
              _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(
                  org.apache.taglibs.standard.tag.rt.core.IfTag.class);
      _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context);
      _jspx_th_c_005fif_005f2.setParent(null);
      // /admin/../top.jsp(4,2) name = test type = boolean reqTime = true required = true fragment =
      // false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature
      // = null
      _jspx_th_c_005fif_005f2.setTest(
          ((java.lang.Boolean)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${sessionScope.user ne NULL}",
                      java.lang.Boolean.class,
                      (javax.servlet.jsp.PageContext) _jspx_page_context,
                      null,
                      false))
              .booleanValue());
      int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag();
      if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("\t\t\t<span><a href=\"");
          out.print(request.getContextPath());
          out.write("/\">首页</a></span>\r\n");
          out.write("\t\t\t<span style=\"float: right;\"> 欢迎您:<font color=\"green\">");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${sessionScope.user.userName}",
                      java.lang.String.class,
                      (javax.servlet.jsp.PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("</font>, \r\n");
          out.write("\t\t\t\t<a href=\"");
          out.print(request.getContextPath());
          out.write("/j_security_logout.html\">退出系统</a> </span>\r\n");
          out.write("\t\t");
          int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
      }
      if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
        return;
      }
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
      out.write("\r\n");
      out.write("\t\t");
      //  c:if
      org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 =
          (org.apache.taglibs.standard.tag.rt.core.IfTag)
              _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(
                  org.apache.taglibs.standard.tag.rt.core.IfTag.class);
      _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context);
      _jspx_th_c_005fif_005f3.setParent(null);
      // /admin/../top.jsp(9,2) name = test type = boolean reqTime = true required = true fragment =
      // false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature
      // = null
      _jspx_th_c_005fif_005f3.setTest(
          ((java.lang.Boolean)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${sessionScope.user eq NULL}",
                      java.lang.Boolean.class,
                      (javax.servlet.jsp.PageContext) _jspx_page_context,
                      null,
                      false))
              .booleanValue());
      int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag();
      if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("\t\t\t<span> &nbsp; </span>\r\n");
          out.write("\t\t\t<span style=\"float: right;\"> <a href=\"");
          out.print(request.getContextPath());
          out.write("/login.html\">登录</a></span>\r\n");
          out.write("\t\t");
          int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
      }
      if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
        return;
      }
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
      out.write("\r\n");
      out.write("\t\t<hr style=\"clear: both;\" />\r\n");
      out.write("\t</div>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t<div id=\"main\">\r\n");
      out.write("\t\t\t\t<script type=\"text/javascript\" charset=\"utf-8\">\r\n");
      out.write("\t\t\t\t\tvar t = null;\r\n");
      out.write("\t\t\t\t\t$(function() {\r\n");
      out.write("\t\t\t\t\t\tt = new SimpleTable(\"roleQueryTable\", {\r\n");
      out.write("\t\t\t\t\t\t\tpageSize : 10,\r\n");
      out.write("\t\t\t\t\t\t\tparam : 'searchDiv',\r\n");
      out.write("\t\t\t\t\t\t\turl : '");
      out.print(request.getContextPath());
      out.write("/admin/role_query.html',\r\n");
      out.write("\t\t\t\t\t\t\tsortables : [\"name\"],\r\n");
      out.write("\t\t\t\t\t\t\tcheckMode : 'single',\r\n");
      out.write("\t\t\t\t\t\t\tpagingOptions : {\r\n");
      out.write("\t\t\t\t\t\t\t\tfirst : true,\r\n");
      out.write("\t\t\t\t\t\t\t\tend : true,\r\n");
      out.write("\t\t\t\t\t\t\t\tgo : true,\r\n");
      out.write("\t\t\t\t\t\t\t\tfirstHtml : '<a href=\"#\">首页</a>',\r\n");
      out.write("\t\t\t\t\t\t\t\tlastHtml : '<a href=\"#\">上一页</a>',\r\n");
      out.write("\t\t\t\t\t\t\t\tnextHtml : '<a href=\"#\">下一页</a>',\r\n");
      out.write("\t\t\t\t\t\t\t\tendHtml : '<a href=\"#\">尾页</a>'\r\n");
      out.write("\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t//checkMode : 'single',\r\n");
      out.write("\t\t\t\t\t\t\t// scrollX : true,\r\n");
      out.write("\t\t\t\t\t\t\tcolumns : {\r\n");
      out.write("\t\t\t\t\t\t\t\tcheckbox : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : '3%'\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\tname : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\theader : '角色名称',\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : '15%'\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\tcode : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\theader : '角色代码',\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : '28%'\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\tdescription : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\theader : '角色描述',\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : '38%'\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\tdisabled : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\theader : '是否禁用',\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : '10%'\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\tops : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\theader : '操作',\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : '6%'\r\n");
      out.write("\t\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\tformatters : {\r\n");
      out.write("\t\t\t\t\t\t\t\tdisabled : function(v, obj) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\tif(v) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\treturn '<font color=\"red\">已禁用</font>';\r\n");
      out.write("\t\t\t\t\t\t\t\t\t} else {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\treturn '<font color=\"green\">未禁用</font>';\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},\r\n");
      out.write("\t\t\t\t\t\t\t\tops : function(v, obj) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\tvar html = '';\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\thtml += \"<a href='javascript:doEdit(\" + obj.id + \");'>修改</a>\";\r\n");
      out.write("\t\t\t\t\t\t\t\t\treturn html;\r\n");
      out.write("\t\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\tinfo : {\r\n");
      out.write("\t\t\t\t\t\t\t\t//pageSizeSelect:'', //不显示此控件\r\n");
      out.write("\t\t\t\t\t\t\t\tpageSizeSelect : '显示{0}条记录',\r\n");
      out.write("\t\t\t\t\t\t\t\tpagingInfo : '目前显示{0}-{1}条记录,共计:{2}'\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("\r\n");
      out.write("\t\t\t\t\t\t$('#role_add_form_div').dialog({\r\n");
      out.write("\t\t\t\t\t\t\tdraggable : true,\r\n");
      out.write("\t\t\t\t\t\t\ttitle : '添加/修改角色',\r\n");
      out.write("\t\t\t\t\t\t\twidth : 620,\r\n");
      out.write("\t\t\t\t\t\t\tmodal : true,\r\n");
      out.write(
          "\t\t\t\t\t\t\t// position:'center', 'left', 'right', 'top', 'bottom'.  or [350,100]\r\n");
      out.write("\t\t\t\t\t\t\tresizable : false,\r\n");
      out.write("\t\t\t\t\t\t\tdraggable : true,\r\n");
      out.write("\t\t\t\t\t\t\tautoOpen : false,\r\n");
      out.write("\t\t\t\t\t\t\t// show:'slide',\r\n");
      out.write("\t\t\t\t\t\t\theight : 210,\r\n");
      out.write("\t\t\t\t\t\t\tbuttons : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\"OK\" : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t\tajaxSubmitForm(\"role_add_form\", editCallback);\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\t\"Cancel\" : function() {\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t$(\"#role_add_form input[name='code']\").attr(\"disabled\", false);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t$(this).dialog(\"close\");\r\n");
      out.write("\t\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});\r\n");
      out.write("\t\t\t\t\tfunction editCallback() {\r\n");
      out.write(
          "\t\t\t\t\t\t$(\"#role_add_form input[name='code']\").attr(\"disabled\", false);\r\n");
      out.write("\t\t\t\t\t\tt.doSearch();\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\tfunction doEdit(id) {\r\n");
      out.write("\t\t\t\t\t\tdoGetAjax(\"");
      out.print(request.getContextPath());
      out.write(
          "/admin/role/\" + id + \".html\", '', function(data, textStatus, XMLHttpRequest) {\r\n");
      out.write("\t\t\t\t\t\t\tfillForm(\"role_add_form\", data);\r\n");
      out.write(
          "\t\t\t\t\t\t\t$(\"#role_add_form input[name='code']\").attr(\"disabled\", true);\r\n");
      out.write("\t\t\t\t\t\t\t$(\"#role_add_form_div\").dialog(\"open\");\r\n");
      out.write("\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t</script>\r\n");
      out.write("\t\t\t\t<div id=\"searchDiv\" style=\"width: 90%;\">\r\n");
      out.write("\t\t\t\t\t<table width=\"100%\">\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td width=\"20%\">角色名称:</td><td width=\"30%\">\r\n");
      out.write("\t\t\t\t\t\t\t<input name=\"name\" />\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t<td width=\"20%\">角色代码:</td><td width=\"30%\">\r\n");
      out.write("\t\t\t\t\t\t\t<input name=\"code\" />\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t<div style=\"text-align: right;\">\r\n");
      out.write("\t\t\t\t\t<input type=\"button\" id=\"searchButton\" value=\"查询\" />\r\n");
      out.write("\t\t\t\t\t<script type='text/javascript'>\r\n");
      out.write("\t\t\t\t\t\t$(\"#searchButton\").click(function() {\r\n");
      out.write("\t\t\t\t\t\t\tt.doSearch();\r\n");
      out.write("\t\t\t\t\t\t});\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t</script>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t<div>\r\n");
      out.write("\t\t\t\t\t<script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\t\t\tfunction showAddForm() {\r\n");
      out.write("\t\t\t\t\t\t\tdocument.forms['role_add_form'].reset();\r\n");
      out.write("\t\t\t\t\t\t\tvar dialog = $('#role_add_form_div').dialog(\"open\");\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\tfunction assignAuthorities() {\r\n");
      out.write("\t\t\t\t\t\t\tvar ids = t.getSelected();\r\n");
      out.write("\t\t\t\t\t\t\tif(ids.length == 0 || ids.length > 1) {\r\n");
      out.write("\t\t\t\t\t\t\t\tshowMsg(\"<font colo='red'>请选择一条记录!</font>\");\r\n");
      out.write("\t\t\t\t\t\t\t} else {\r\n");
      out.write(
          "\t\t\t\t\t\t\t\tvar selector = new MultiSelector(\"authority_multiselector\", {\r\n");
      out.write("\t\t\t\t\t\t\t\t\turl : \"");
      out.print(request.getContextPath());
      out.write("/admin/role/assign/\" + ids[0] + \".html\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\tallData : 'available',\r\n");
      out.write("\t\t\t\t\t\t\t\t\tselectedData : 'selected',\r\n");
      out.write("\t\t\t\t\t\t\t\t\tvalueFiled : \"id\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\tdisplayField : \"name\",\r\n");
      out.write("\t\t\t\t\t\t\t\t\tselectorHeight : '240px',\r\n");
      out.write("\t\t\t\t\t\t\t\t\tautoLoad : true\r\n");
      out.write("\t\t\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t\t\t\t$(\"#authority_multiselector\").dialog({\r\n");
      out.write("\t\t\t\t\t\t\t\t\ttitle : '为角色分配权限',\r\n");
      out.write("\t\t\t\t\t\t\t\t\tmodal : true,\r\n");
      out.write("\t\t\t\t\t\t\t\t\twidth : 390,\r\n");
      out.write("\t\t\t\t\t\t\t\t\theight : 360,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tclose : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t$(this).empty();\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\tbuttons : {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\"确认\" : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t$(this).dialog(\"close\");\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tvar authorities = selector.val();\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tconfirmAssignAuthority(ids[0], authorities);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\"取消\" : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t$(this).dialog(\"close\");\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t}\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});\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("\r\n");
      out.write("\t\t\t\t\t\tfunction confirmAssignAuthority(id, authorities) {\r\n");
      out.write("\t\t\t\t\t\t\tdoPostAjax(\"");
      out.print(request.getContextPath());
      out.write(
          "/admin/assignAuthority.html\", 'id=' + id + \"&authorities=\" + authorities, function(data, textStatus, XMLHttpRequest) {\r\n");
      out.write("\t\t\t\t\t\t\t\tshowMsg(data);\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</script>\r\n");
      out.write("\t\t\t\t\t</script> <a href=\"javascript:showAddForm();\">添加新角色</a>\r\n");
      out.write("\t\t\t\t\t&nbsp;&nbsp; <a href=\"javascript:assignAuthorities();\">分配权限</a>\r\n");
      out.write("\t\t\t\t\t&nbsp;&nbsp; <a href=\"javascript:assignMenus();\">分配菜单</a>\r\n");
      out.write("\t\t\t\t\t<br />\r\n");
      out.write("\t\t\t\t\t<br/>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t<div id=\"tableDiv\" style=\"width: 100%;\">\r\n");
      out.write("\t\t\t\t\t<table id=\"roleQueryTable\"></table>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<div id=\"role_add_form_div\" style=\"display: none;\">\r\n");
      out.write("\t\t\t\t<form id=\"role_add_form\" action=\"");
      out.print(request.getContextPath());
      out.write("/admin/role_edit.html\"  method=\"post\">\r\n");
      out.write("\t\t\t\t\t<input type=\"text\" style=\"display: none;\" name=\"id\" />\r\n");
      out.write("\t\t\t\t\t<table>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td>角色名称:</td><td>\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"text\" name=\"name\" />\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t<td>角色代码:</td>\r\n");
      out.write("\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"text\" name=\"code\" />\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td>是否禁用:</td><td colspan=\"3\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t<input id=\"disabled_true\" type=\"radio\" name=\"disabled\" value=\"true\" />\r\n");
      out.write("\t\t\t\t\t\t\t<label for=\"disabled_true\">禁用</label>\r\n");
      out.write(
          "\t\t\t\t\t\t\t<input id=\"disabled_false\" type=\"radio\" name=\"disabled\" checked=\"checked\" value=\"false\" />\r\n");
      out.write("\t\t\t\t\t\t\t<label for=\"disabled_false\">不禁用</label></td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td>角色描述:</td>\r\n");
      out.write("\t\t\t\t\t\t\t<td colspan=\"3\">\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"text\" size=\"54\" name=\"description\"/>\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t</form>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<div id=\"authority_multiselector\"></div>\r\n");
      out.write("\t\t\t<div id=\"menus_selector\">\r\n");
      out.write("\t\t\t\t<ul id=\"menuTree\" class=\"ztree\"/>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\tvar zTree;\r\n");
      out.write("\t\t\t\tvar setting = {\r\n");
      out.write("\t\t\t\t\tasync : {\r\n");
      out.write("\t\t\t\t\t\tenable : true,\r\n");
      out.write("\t\t\t\t\t\turl : \"");
      out.print(request.getContextPath());
      out.write("/admin/role/menu/get.ajax\",\r\n");
      out.write("\t\t\t\t\t\tautoParam : [\"id\"],\r\n");
      out.write("\t\t\t\t\t\totherParam : {\r\n");
      out.write("\t\t\t\t\t\t\t// \"otherParam\" : \"zTreeAsyncTest\"\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\tcallback : {\r\n");
      out.write("\t\t\t\t\t\tbeforeExpand : beforeExpand,\r\n");
      out.write("\t\t\t\t\t\tonExpand : onExpand,\r\n");
      out.write("\t\t\t\t\t\tonClick : onClick\r\n");
      out.write("\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\tcheck : {\r\n");
      out.write("\t\t\t\t\t\tenable : true\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t};\r\n");
      out.write("\t\t\t\tvar curExpandNode = null;\r\n");
      out.write("\t\t\t\tfunction beforeExpand(treeId, treeNode) {\r\n");
      out.write("\t\t\t\t\tvar pNode = curExpandNode ? curExpandNode.getParentNode() : null;\r\n");
      out.write(
          "\t\t\t\t\tvar treeNodeP = treeNode.parentTId ? treeNode.getParentNode() : null;\r\n");
      out.write(
          "\t\t\t\t\tfor(var i = 0, l = !treeNodeP ? 0 : treeNodeP.children.length; i < l; i++) {\r\n");
      out.write("\t\t\t\t\t\tif(treeNode !== treeNodeP.children[i]) {\r\n");
      out.write("\t\t\t\t\t\t\tzTree.expandNode(treeNodeP.children[i], false);\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\twhile(pNode) {\r\n");
      out.write("\t\t\t\t\t\tif(pNode === treeNode) {\r\n");
      out.write("\t\t\t\t\t\t\tbreak;\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\tpNode = pNode.getParentNode();\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\tif(!pNode) {\r\n");
      out.write("\t\t\t\t\t\tsinglePath(treeNode);\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\tfunction singlePath(newNode) {\r\n");
      out.write("\t\t\t\t\tif(newNode === curExpandNode)\r\n");
      out.write("\t\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t\tif(curExpandNode && curExpandNode.open == true) {\r\n");
      out.write("\t\t\t\t\t\tif(newNode.parentTId === curExpandNode.parentTId) {\r\n");
      out.write("\t\t\t\t\t\t\tzTree.expandNode(curExpandNode, false);\r\n");
      out.write("\t\t\t\t\t\t} else {\r\n");
      out.write("\t\t\t\t\t\t\tvar newParents = [];\r\n");
      out.write("\t\t\t\t\t\t\twhile(newNode) {\r\n");
      out.write("\t\t\t\t\t\t\t\tnewNode = newNode.getParentNode();\r\n");
      out.write("\t\t\t\t\t\t\t\tif(newNode === curExpandNode) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\tnewParents = null;\r\n");
      out.write("\t\t\t\t\t\t\t\t\tbreak;\r\n");
      out.write("\t\t\t\t\t\t\t\t} else if(newNode) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\tnewParents.push(newNode);\r\n");
      out.write("\t\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\tif(newParents != null) {\r\n");
      out.write("\t\t\t\t\t\t\t\tvar oldNode = curExpandNode;\r\n");
      out.write("\t\t\t\t\t\t\t\tvar oldParents = [];\r\n");
      out.write("\t\t\t\t\t\t\t\twhile(oldNode) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\toldNode = oldNode.getParentNode();\r\n");
      out.write("\t\t\t\t\t\t\t\t\tif(oldNode) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\toldParents.push(oldNode);\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}\r\n");
      out.write("\t\t\t\t\t\t\t\tif(newParents.length > 0) {\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tfor(var i = Math.min(newParents.length, oldParents.length) - 1; i >= 0; i--) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tif(newParents[i] !== oldParents[i]) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tzTree.expandNode(oldParents[i], false);\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t}\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} else {\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tzTree.expandNode(oldParents[oldParents.length - 1], false);\r\n");
      out.write("\t\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}\r\n");
      out.write("\t\t\t\t\tcurExpandNode = newNode;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\tfunction onExpand(event, treeId, treeNode) {\r\n");
      out.write("\t\t\t\t\tcurExpandNode = treeNode;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\tfunction onClick(e, treeId, treeNode) {\r\n");
      out.write("\t\t\t\t\tvar zTree = $.fn.zTree.getZTreeObj(\"treeDemo\");\r\n");
      out.write("\t\t\t\t\tzTree.expandNode(treeNode, null, null, null, true);\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t$(function() {\r\n");
      out.write("\t\t\t\t\t$('#menus_selector').dialog({\r\n");
      out.write("\t\t\t\t\t\tdraggable : true,\r\n");
      out.write("\t\t\t\t\t\ttitle : '分配菜单',\r\n");
      out.write("\t\t\t\t\t\twidth : 430,\r\n");
      out.write("\t\t\t\t\t\theight : \"auto\",\r\n");
      out.write("\t\t\t\t\t\tmodal : true,\r\n");
      out.write(
          "\t\t\t\t\t\t// position:'center', 'left', 'right', 'top', 'bottom'.  or [350,100]\r\n");
      out.write("\t\t\t\t\t\tresizable : false,\r\n");
      out.write("\t\t\t\t\t\tautoOpen : false,\r\n");
      out.write("\t\t\t\t\t\t// show:'slide',\r\n");
      out.write("\t\t\t\t\t\tbuttons : {\r\n");
      out.write("\t\t\t\t\t\t\t\"OK\" : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\tvar ids = t.getSelected();\r\n");
      out.write("\t\t\t\t\t\t\t\tvar changeds = zTree.getChangeCheckedNodes();\r\n");
      out.write("\t\t\t\t\t\t\t\tvar menus = '';\r\n");
      out.write("\t\t\t\t\t\t\t\tfor(var i = 0; i < changeds.length; i++) {\r\n");
      out.write("\t\t\t\t\t\t\t\t\tmenus += (changeds[i].id + \",\");\r\n");
      out.write("\t\t\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t\t\tconfirmAssignMenus(ids[0], menus);\r\n");
      out.write("\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\"Cancel\" : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t$(this).dialog(\"close\");\r\n");
      out.write("\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\"Close\" : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t$(this).dialog(\"close\");\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});\r\n");
      out.write("\t\t\t\t});\r\n");
      out.write("\t\t\t\tfunction assignMenus() {\r\n");
      out.write("\t\t\t\t\tvar ids = t.getSelected();\r\n");
      out.write("\t\t\t\t\tif(ids.length == 0 || ids.length > 1) {\r\n");
      out.write("\t\t\t\t\t\tshowMsg(\"<font colo='red'>请选择一条记录!</font>\");\r\n");
      out.write("\t\t\t\t\t} else {\r\n");
      out.write("\t\t\t\t\t\tsetting.async.otherParam['roleId'] = ids;\r\n");
      out.write("\t\t\t\t\t\tzTree = $.fn.zTree.init($(\"#menuTree\"), setting);\r\n");
      out.write("\t\t\t\t\t\t$('#menus_selector').dialog(\"open\");\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\t\tfunction confirmAssignMenus(id, menus) {\r\n");
      out.write("\t\t\t\t\tdoPostAjax(\"");
      out.print(request.getContextPath());
      out.write(
          "/admin/role/assignMenu.ajax\", 'id=' + id + \"&menus=\" + menus, function(data, textStatus, XMLHttpRequest) {\r\n");
      out.write("\t\t\t\t\t\tshowMsg(data);\r\n");
      out.write("\t\t\t\t\t\tzTree.refresh();\r\n");
      out.write("\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t</script>\r\n");
      out.write("\t\t\t");
      out.write("\r\n");
      out.write("<div id=\"foot\" class=\"noprint\">\r\n");
      out.write("\t<div style=\"text-align: center;\">\r\n");
      out.write("\t\t© Copyright 2012 Hymer. All Rights Reserved.\r\n");
      out.write("\t</div>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</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 {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
示例#12
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("<title>공지사항</title>\r\n");
      out.write(
          "<link href=\"http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
      out.write("<style>\r\n");
      out.write("\t thead tr { background: #eee; }\r\n");
      out.write("\t tbody tr:hover { background-color: #DAD9FF; cursor: pointer; }\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write(
          "<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\r\n");
      out.write("<script>\r\n");
      out.write("\t$(function(){\r\n");
      out.write("\t\t $(\"tbody tr\").click(function(){\r\n");
      out.write("\t\t\t location.href=\"adminContent.jsp?idx=\"+$(this).attr(\"data-id\");\r\n");
      out.write("\t\t });\r\n");
      out.write("\t});\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");

      int id;
      id = (int) session.getAttribute("id");

      System.out.println(id);
      // 해당 학번=id(세션) 값으로 정보를 불러온다.
      User user = Register.selectDetail(id);

      ArrayList<Admin> list = AdminPage.selectAll();

      String cmd = request.getParameter("cmd");
      if (request.getMethod().equals("POST")) {
        if (cmd.equals("logout")) {
          session.invalidate();

          out.write("\r\n");
          out.write("\t\t\t\t<script>\r\n");
          out.write("\t\t\t\t\talert(\"로그아웃 되었습니다\");\r\n");
          out.write("\t\t\t\t\tlocation.href=\"login.jsp\";\r\n");
          out.write("\t\t\t\t</script>\r\n");
          out.write("\t\t\t");
        }
      }

      out.write("\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<div>\r\n");
      out.write("\t<form method=\"post\">\r\n");
      out.write(
          "\t\t<button class=\"btn btn-small\" name=\"cmd\" value=\"logout\">로그 아웃</button>\r\n");
      out.write("\t</form>\r\n");
      out.write("</div>\r\n");
      out.write("<div class=\"container\">\r\n");
      out.write("\t<h2>공지사항 게시판</h2><hr/>\r\n");
      out.write("\t<form>\r\n");
      out.write("\t\t<table class=\"table table-condensed table-bordered\">\r\n");
      out.write("\t\t\t<thead>\r\n");
      out.write("      \t\t<tr>\r\n");
      out.write("      \t\t\t<th>번호</th>\r\n");
      out.write("      \t\t\t<th>제목</th>\r\n");
      out.write("      \t\t\t<th>작성자</th>\r\n");
      out.write("      \t\t</tr>\r\n");
      out.write("      \t</thead>\r\n");
      out.write("      \t<tbody>\r\n");
      out.write("\t\t\t");
      for (Admin admin : list) {
        out.write("\r\n");
        out.write("\t\t\t<tr data-id=\"");
        out.print(admin.getIdx());
        out.write("\">\r\n");
        out.write("      \t\t\t<td>");
        out.print(admin.getIdx());
        out.write("</td>\r\n");
        out.write("      \t\t\t<td>");
        out.print(admin.getTitle());
        out.write("</td>\r\n");
        out.write("      \t\t\t<td>");
        out.print(admin.getName());
        out.write("</td>\r\n");
        out.write("    \t\t</tr>\r\n");
        out.write("    \t\t");
      }
      out.write("\r\n");
      out.write("     \t</tbody>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t");
      if (user.getLevel() == 2 || user.getLevel() == 3) {
        out.write("\r\n");
        out.write("\t\t<div>\r\n");
        out.write("\t\t\t<a href=\"adminWrite.jsp\" class=\"btn btn-small\">글쓰기</a>\r\n");
        out.write("\t\t</div>\r\n");
        out.write("\t\t");
      }
      out.write("\r\n");
      out.write("\t</form>\r\n");
      out.write("\t</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);
    }
  }
  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');
      out.write('\n');
      out.write(' ');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write(" \r\n");
      out.write("  \r\n");

      Object obj = session.getAttribute("session");
      // attribut session ok, test si utilisateur courant la possède
      if (obj != null) {
        ForumBeanManager fbm = new ForumBeanManager();
        if (fbm.estMembre(obj.toString()) == false) {
          session.invalidate();

          out.write("\r\n");
          out.write("\t\t");
          if (true) {
            _jspx_page_context.forward("./login.jsp");
            return;
          }
          out.write('\r');
          out.write('\n');

        }
        // On récupère l'utilisateur courant et on l'attribut  à la session
        else {
          Utilisateur uCourant = fbm.getUtilisateur(obj.toString());
          session.setAttribute("user", uCourant);
        }

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

      }
      // Pas d'attribut session, redirection vers la page de login
      else {
        session.setAttribute(
            "Erreur", "L'accès au forum nécessite une authentification préalable !");

        out.write('\r');
        out.write('\n');
        out.write('	');
        if (true) {
          _jspx_page_context.forward("./login.jsp");
          return;
        }
        out.write('\r');
        out.write('\n');
      }

      out.write('\r');
      out.write('\n');
      out.write(' ');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f1(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

      ForumBeanManager fbm = new ForumBeanManager();
      Utilisateur uCourant = (Utilisateur) session.getAttribute("user");
      if (fbm.isAdmin(uCourant) == true) {

        out.write('\r');
        out.write('\n');
        //  stripes:layout-render
        net.sourceforge.stripes.tag.layout.LayoutRenderTag
            _jspx_th_stripes_005flayout_002drender_005f0 =
                (net.sourceforge.stripes.tag.layout.LayoutRenderTag)
                    _005fjspx_005ftagPool_005fstripes_005flayout_002drender_0026_005ftitle_005fname
                        .get(net.sourceforge.stripes.tag.layout.LayoutRenderTag.class);
        _jspx_th_stripes_005flayout_002drender_005f0.setPageContext(_jspx_page_context);
        _jspx_th_stripes_005flayout_002drender_005f0.setParent(null);
        // /admin.jsp(15,0) name = name type = null reqTime = true required = true fragment = false
        // deferredValue = false expectedTypeName = null deferredMethod = false methodSignature =
        // null
        _jspx_th_stripes_005flayout_002drender_005f0.setName("/style.jsp");
        // /admin.jsp(15,0) null
        _jspx_th_stripes_005flayout_002drender_005f0.setDynamicAttribute(
            null, "title", "CRUDE gestion membres");
        int _jspx_eval_stripes_005flayout_002drender_005f0 =
            _jspx_th_stripes_005flayout_002drender_005f0.doStartTag();
        if (_jspx_eval_stripes_005flayout_002drender_005f0
            != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
          if (_jspx_eval_stripes_005flayout_002drender_005f0
              != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_stripes_005flayout_002drender_005f0.setBodyContent(
                (javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_stripes_005flayout_002drender_005f0.doInitBody();
          }
          do {
            out.write("\r\n");
            out.write("\r\n");
            out.write("<h3>Bienvenue sur le module de gestion des membres</h3>\r\n");
            out.write("\r\n");
            //  stripes:layout-component
            net.sourceforge.stripes.tag.layout.LayoutComponentTag
                _jspx_th_stripes_005flayout_002dcomponent_005f0 =
                    (net.sourceforge.stripes.tag.layout.LayoutComponentTag)
                        _005fjspx_005ftagPool_005fstripes_005flayout_002dcomponent_0026_005fname
                            .get(net.sourceforge.stripes.tag.layout.LayoutComponentTag.class);
            _jspx_th_stripes_005flayout_002dcomponent_005f0.setPageContext(_jspx_page_context);
            _jspx_th_stripes_005flayout_002dcomponent_005f0.setParent(
                (javax.servlet.jsp.tagext.Tag) _jspx_th_stripes_005flayout_002drender_005f0);
            // /admin.jsp(19,0) name = name type = null reqTime = true required = true fragment =
            // false deferredValue = false expectedTypeName = null deferredMethod = false
            // methodSignature = null
            _jspx_th_stripes_005flayout_002dcomponent_005f0.setName("contents");
            int _jspx_eval_stripes_005flayout_002dcomponent_005f0 =
                _jspx_th_stripes_005flayout_002dcomponent_005f0.doStartTag();
            if (_jspx_eval_stripes_005flayout_002dcomponent_005f0
                != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
              if (_jspx_eval_stripes_005flayout_002dcomponent_005f0
                  != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_stripes_005flayout_002dcomponent_005f0.setBodyContent(
                    (javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_stripes_005flayout_002dcomponent_005f0.doInitBody();
              }
              do {
                out.write("\r\n");
                out.write("\r\n");
                out.write("\r\n");
                out.write("<div style=\"float:left:width:18%\"></div>\r\n");
                out.write(" <div style=\"margin-left:20%;\">\r\n");
                out.write(" <h3>Liste des utilisateurs</h3>\r\n");
                out.write("<TABLE class=\"tab\" >\r\n");
                out.write("<tr class=\"tab_titre\">\r\n");
                out.write("<td align=\"center\">id</td>\r\n");
                out.write("<td align=\"center\">role</td>\r\n");
                out.write("<td align=\"center\">pseudo</td>\r\n");
                out.write("<td align=\"center\">mail</td>\r\n");
                out.write("<td align=\"center\">modifier</td>\r\n");
                out.write("<td align=\"center\">supprimer</td>\r\n");
                out.write("</tr>\r\n");

                // On récupère l'ensemble des topics
                List<Utilisateur> users = fbm.listeruser();

                for (Utilisateur u : users) {

                  out.write('\r');
                  out.write('\n');
                  //  stripes:form
                  net.sourceforge.stripes.tag.FormTag _jspx_th_stripes_005fform_005f0 =
                      (net.sourceforge.stripes.tag.FormTag)
                          _005fjspx_005ftagPool_005fstripes_005fform_0026_005ffocus_005fbeanclass
                              .get(net.sourceforge.stripes.tag.FormTag.class);
                  _jspx_th_stripes_005fform_005f0.setPageContext(_jspx_page_context);
                  _jspx_th_stripes_005fform_005f0.setParent(
                      (javax.servlet.jsp.tagext.Tag)
                          _jspx_th_stripes_005flayout_002dcomponent_005f0);
                  // /admin.jsp(41,0) name = beanclass type = java.lang.Object reqTime = true
                  // required = false fragment = false deferredValue = false expectedTypeName = null
                  // deferredMethod = false methodSignature = null
                  _jspx_th_stripes_005fform_005f0.setBeanclass("Controllers.RedirectActionBean");
                  // /admin.jsp(41,0) name = focus type = java.lang.String reqTime = true required =
                  // false fragment = false deferredValue = false expectedTypeName = null
                  // deferredMethod = false methodSignature = null
                  _jspx_th_stripes_005fform_005f0.setFocus("");
                  int[] _jspx_push_body_count_stripes_005fform_005f0 = new int[] {0};
                  try {
                    int _jspx_eval_stripes_005fform_005f0 =
                        _jspx_th_stripes_005fform_005f0.doStartTag();
                    if (_jspx_eval_stripes_005fform_005f0
                        != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                      if (_jspx_eval_stripes_005fform_005f0
                          != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                        out = _jspx_page_context.pushBody();
                        _jspx_push_body_count_stripes_005fform_005f0[0]++;
                        _jspx_th_stripes_005fform_005f0.setBodyContent(
                            (javax.servlet.jsp.tagext.BodyContent) out);
                        _jspx_th_stripes_005fform_005f0.doInitBody();
                      }
                      do {
                        out.write('\r');
                        out.write('\n');
                        //  stripes:hidden
                        net.sourceforge.stripes.tag.InputHiddenTag
                            _jspx_th_stripes_005fhidden_005f0 =
                                (net.sourceforge.stripes.tag.InputHiddenTag)
                                    _005fjspx_005ftagPool_005fstripes_005fhidden_0026_005fvalue_005fname_005fid_005fnobody
                                        .get(net.sourceforge.stripes.tag.InputHiddenTag.class);
                        _jspx_th_stripes_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_stripes_005fhidden_005f0.setParent(
                            (javax.servlet.jsp.tagext.Tag) _jspx_th_stripes_005fform_005f0);
                        // /admin.jsp(42,0) name = name type = null reqTime = true required = true
                        // fragment = false deferredValue = false expectedTypeName = null
                        // deferredMethod = false methodSignature = null
                        _jspx_th_stripes_005fhidden_005f0.setName("iduser");
                        // /admin.jsp(42,0) name = id type = null reqTime = true required = false
                        // fragment = false deferredValue = false expectedTypeName = null
                        // deferredMethod = false methodSignature = null
                        _jspx_th_stripes_005fhidden_005f0.setId("q1");
                        // /admin.jsp(42,0) name = value type = java.lang.Object reqTime = true
                        // required = false fragment = false deferredValue = false expectedTypeName
                        // = null deferredMethod = false methodSignature = null
                        _jspx_th_stripes_005fhidden_005f0.setValue(u.getIdUtilisateur());
                        int[] _jspx_push_body_count_stripes_005fhidden_005f0 = new int[] {0};
                        try {
                          int _jspx_eval_stripes_005fhidden_005f0 =
                              _jspx_th_stripes_005fhidden_005f0.doStartTag();
                          if (_jspx_th_stripes_005fhidden_005f0.doEndTag()
                              == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            return;
                          }
                        } catch (java.lang.Throwable _jspx_exception) {
                          while (_jspx_push_body_count_stripes_005fhidden_005f0[0]-- > 0)
                            out = _jspx_page_context.popBody();
                          _jspx_th_stripes_005fhidden_005f0.doCatch(_jspx_exception);
                        } finally {
                          _jspx_th_stripes_005fhidden_005f0.doFinally();
                          _005fjspx_005ftagPool_005fstripes_005fhidden_0026_005fvalue_005fname_005fid_005fnobody
                              .reuse(_jspx_th_stripes_005fhidden_005f0);
                        }
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("<tr>\r\n");
                        out.write("<td>");
                        out.print(u.getIdUtilisateur());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        out.print(u.getDroit().getDroit());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        out.print(u.getPseudo());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        out.print(u.getMail());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        if (_jspx_meth_stripes_005fsubmit_005f0(
                            _jspx_th_stripes_005fform_005f0,
                            _jspx_page_context,
                            _jspx_push_body_count_stripes_005fform_005f0)) return;
                        out.write("</td>\r\n");
                        int i = uCourant.getIdUtilisateur();
                        int j = u.getIdUtilisateur();
                        if ((i) == (j)) {
                          out.write("\r\n");
                          out.write("<td><i>impossible</i> </td>\r\n");
                        } else {
                          out.write("\r\n");
                          out.write("<td>");
                          if (_jspx_meth_stripes_005fsubmit_005f1(
                              _jspx_th_stripes_005fform_005f0,
                              _jspx_page_context,
                              _jspx_push_body_count_stripes_005fform_005f0)) return;
                          out.write("</td>\r\n");
                        }
                        out.write("\r\n");
                        out.write("</tr>\r\n");
                        out.write("\r\n");
                        out.write("\r\n");
                        int evalDoAfterBody = _jspx_th_stripes_005fform_005f0.doAfterBody();
                        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                          break;
                      } while (true);
                      if (_jspx_eval_stripes_005fform_005f0
                          != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                        out = _jspx_page_context.popBody();
                        _jspx_push_body_count_stripes_005fform_005f0[0]--;
                      }
                    }
                    if (_jspx_th_stripes_005fform_005f0.doEndTag()
                        == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                      return;
                    }
                  } catch (java.lang.Throwable _jspx_exception) {
                    while (_jspx_push_body_count_stripes_005fform_005f0[0]-- > 0)
                      out = _jspx_page_context.popBody();
                    _jspx_th_stripes_005fform_005f0.doCatch(_jspx_exception);
                  } finally {
                    _jspx_th_stripes_005fform_005f0.doFinally();
                    _005fjspx_005ftagPool_005fstripes_005fform_0026_005ffocus_005fbeanclass.reuse(
                        _jspx_th_stripes_005fform_005f0);
                  }
                  out.write("\r\n");
                  out.write("\r\n");
                }
                out.write("\r\n");
                out.write("</TABLE>\r\n");
                out.write("</div>\r\n");
                out.write("\r\n");
                out.write("\t");
                int evalDoAfterBody = _jspx_th_stripes_005flayout_002dcomponent_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
              } while (true);
              if (_jspx_eval_stripes_005flayout_002dcomponent_005f0
                  != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
              }
            }
            if (_jspx_th_stripes_005flayout_002dcomponent_005f0.doEndTag()
                == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fstripes_005flayout_002dcomponent_0026_005fname.reuse(
                  _jspx_th_stripes_005flayout_002dcomponent_005f0);
              return;
            }
            _005fjspx_005ftagPool_005fstripes_005flayout_002dcomponent_0026_005fname.reuse(
                _jspx_th_stripes_005flayout_002dcomponent_005f0);
            out.write('\r');
            out.write('\n');
            out.write('	');
            int evalDoAfterBody = _jspx_th_stripes_005flayout_002drender_005f0.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
          } while (true);
          if (_jspx_eval_stripes_005flayout_002drender_005f0
              != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
          }
        }
        if (_jspx_th_stripes_005flayout_002drender_005f0.doEndTag()
            == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
          _005fjspx_005ftagPool_005fstripes_005flayout_002drender_0026_005ftitle_005fname.reuse(
              _jspx_th_stripes_005flayout_002drender_005f0);
          return;
        }
        _005fjspx_005ftagPool_005fstripes_005flayout_002drender_0026_005ftitle_005fname.reuse(
            _jspx_th_stripes_005flayout_002drender_005f0);
        out.write('\r');
        out.write('\n');

      } else {

        out.write('\r');
        out.write('\n');
        if (true) {
          _jspx_page_context.forward("/login.jsp");
          return;
        }
        out.write('\r');
        out.write('\n');
      }

      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 {
            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=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("\r\n");
      out.write("\r\n");
      out.write("\r\n");

      // String savePath = "C:\\Program Files\\Wowza Media Systems\\Wowza Streaming Engine
      // 4.2.0\\content\\safeme";
      String savePath =
          "C:\\Program Files (x86)\\Wowza Media Systems\\Wowza Streaming Engine 4.3.0\\content\\safeme";
      int sizelimit = 50 * 1024 * 1024;
      try {
        out.print("<br>");
        out.print("SavePath : " + savePath);
        MultipartRequest multi =
            new MultipartRequest(request, savePath, sizelimit, new DefaultFileRenamePolicy());

        // MultipartRequest를 다양하게 활용하기 위한 방법(확장..)
        /* Enumeration formNames = multi.getFileNames(); //폼의 이름 변경
        String formName = (String)formNames.nextElement(); //자료가 많을 경우엔 while문을 사용
        String fileName = multi.getFilesystemName(formName); //파일의 이름 얻기 */

        // multi.getFile("images");
      } catch (Exception e) {
        out.print("<br>");
        out.print("<br>");
        out.print("예외 상황 발생..!");
        out.print("<br>예외상황 : ");
        out.print(e);
      } finally {
        out.print("<br>");
        out.print("저장완료!");
      }

      out.write("\r\n");
      out.write("<p></p>");
    } 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);
    }
  }