String checkSecurityOLD( int iLevel, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) { try { Object o1 = session.getAttribute("UserID"); Object o2 = session.getAttribute("UserRights"); boolean bRedirect = false; if (o1 == null || o2 == null) { bRedirect = true; } if (!bRedirect) { if ((o1.toString()).equals("")) { bRedirect = true; } else if ((new Integer(o2.toString())).intValue() < iLevel) { bRedirect = true; } } if (bRedirect) { response.sendRedirect( "Login.jsp?querystring=" + toURL(request.getQueryString()) + "&ret_page=" + toURL(request.getRequestURI())); return "sendRedirect"; } } catch (Exception e) { } return ""; }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\r'); out.write('\n'); response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + "/html")); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(true); com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); javax.servlet.ServletContext application = _jsp_application; com.caucho.jsp.PageContextImpl pageContext = _jsp_application.getJspApplicationContext().allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false); javax.servlet.jsp.PageContext _jsp_parentContext = pageContext; javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; response.setContentType("text/html;charset=EUC-KR"); request.setCharacterEncoding("EUC-KR"); try { out.write(_jsp_string0, 0, _jsp_string0.length); String filename = request.getParameter("filename"); String downname = request.getParameter("downname"); FormDataDownload formData = new FormDataDownload(response, new File(filename), null, null); try { formData.download(); }catch(FileNotFoundException e) { out.write(_jsp_string1, 0, _jsp_string1.length); out.print(( e )); out.write(_jsp_string2, 0, _jsp_string2.length); return; }catch(IOException e) { out.write(_jsp_string3, 0, _jsp_string3.length); out.print(( e )); out.write(_jsp_string4, 0, _jsp_string4.length); return; }catch(Exception e) { System.out.println("Exception Error~~" + e); } out.write('\n'); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { _jsp_application.getJspApplicationContext().freePageContext(pageContext); } }
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'); out.write('\n'); String id = request.getParameter("id"); String user = request.getParameter("u"); Upload newupload = new Upload(pageContext, request, response, out, id, "lizozom"); response.sendRedirect(request.getHeader("referer")); 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( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); javax.servlet.ServletContext application = _jsp_application; com.caucho.jsp.PageContextImpl pageContext = _jsp_application .getJspApplicationContext() .allocatePageContext( this, _jsp_application, request, response, null, null, 8192, true, false); javax.servlet.jsp.PageContext _jsp_parentContext = pageContext; javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; response.setContentType("text/html;charset=UTF-8"); request.setCharacterEncoding("UTF-8"); try { out.write(_jsp_string0, 0, _jsp_string0.length); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { _jsp_application.getJspApplicationContext().freePageContext(pageContext); } }
String getParam(javax.servlet.http.HttpServletRequest req, String paramName) { String param = req.getParameter(paramName); if (param == null) return ""; param = replace(param, "&", "&"); param = replace(param, "<", "<"); param = replace(param, ">", ">"); param = replace(param, "&lt;", "<"); param = replace(param, "&gt;", ">"); return param; }
public void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create() .getPageContext(this, request, response, null, true, 8192, true); javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.http.HttpSession session = pageContext.getSession(); javax.servlet.ServletContext application = pageContext.getServletContext(); response.setContentType("text/html;charset=UTF-8"); request.setCharacterEncoding("UTF-8"); org.apache.struts.taglib.html.RewriteTag _jsp_tag0 = null; org.apache.struts.taglib.bean.MessageTag _jsp_tag1 = null; try { pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string1, 0, _jsp_string1.length); if (_jsp_tag0 == null) { _jsp_tag0 = new org.apache.struts.taglib.html.RewriteTag(); _jsp_tag0.setPageContext(pageContext); _jsp_tag0.setParent((javax.servlet.jsp.tagext.Tag) null); _jsp_tag0.setPage("/images/logo.gif"); } int _jspEval2 = _jsp_tag0.doStartTag(); int _jsp_endTagVar3 = _jsp_tag0.doEndTag(); if (_jsp_endTagVar3 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string2, 0, _jsp_string2.length); if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); _jsp_tag1.setKey("module.admin"); } _jsp_tag1.doStartTag(); pageContext.write(_jsp_string3, 0, _jsp_string3.length); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { if (_jsp_tag0 != null) _jsp_tag0.release(); if (_jsp_tag1 != null) _jsp_tag1.release(); JspFactory.getDefaultFactory().releasePageContext(pageContext); } }
public void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(true); com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); com.caucho.jsp.PageContextImpl pageContext = _jsp_pageManager.allocatePageContext( this, _jsp_application, request, response, null, session, 8192, true, false); TagState _jsp_state = null; try { _jspService(request, response, pageContext, _jsp_application, session, _jsp_state); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { _jsp_pageManager.freePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\n'); out.write('\n'); out.write('\n'); out.write('\n'); out.write('\n'); out.write('\n'); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); // liferay-theme:defineObjects com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.get( com.liferay.taglib.theme.DefineObjectsTag.class); _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context); _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null); int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.doStartTag(); if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.reuse( _jspx_th_liferay_002dtheme_005fdefineObjects_005f0); return; } _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.reuse( _jspx_th_liferay_002dtheme_005fdefineObjects_005f0); com.liferay.portal.theme.ThemeDisplay themeDisplay = null; com.liferay.portal.model.Company company = null; com.liferay.portal.model.Account account = null; com.liferay.portal.model.User user = null; com.liferay.portal.model.User realUser = null; com.liferay.portal.model.Contact contact = null; com.liferay.portal.model.Layout layout = null; java.util.List layouts = null; java.lang.Long plid = null; com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null; java.lang.Long scopeGroupId = null; com.liferay.portal.security.permission.PermissionChecker permissionChecker = null; java.util.Locale locale = null; java.util.TimeZone timeZone = null; com.liferay.portal.model.Theme theme = null; com.liferay.portal.model.ColorScheme colorScheme = null; com.liferay.portal.theme.PortletDisplay portletDisplay = null; java.lang.Long portletGroupId = null; themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay"); company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company"); account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account"); user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user"); realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser"); contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact"); layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout"); layouts = (java.util.List) _jspx_page_context.findAttribute("layouts"); plid = (java.lang.Long) _jspx_page_context.findAttribute("plid"); layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context.findAttribute("layoutTypePortlet"); scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId"); permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context.findAttribute("permissionChecker"); locale = (java.util.Locale) _jspx_page_context.findAttribute("locale"); timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone"); theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme"); colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme"); portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context.findAttribute("portletDisplay"); portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId"); out.write('\n'); out.write('\n'); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); Layout selLayout = (Layout) request.getAttribute(WebKeys.SEL_LAYOUT); out.write('\n'); out.write('\n'); String url = StringPool.BLANK; String description = StringPool.BLANK; if (selLayout != null) { UnicodeProperties typeSettingsProperties = selLayout.getTypeSettingsProperties(); url = typeSettingsProperties.getProperty("url", StringPool.BLANK); description = typeSettingsProperties.getProperty("description", StringPool.BLANK); } out.write('\n'); out.write('\n'); // aui:input com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005fid_005fcssClass_005fnobody .get(com.liferay.taglib.aui.InputTag.class); _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context); _jspx_th_aui_005finput_005f0.setParent(null); // /html/portal/layout/edit/embedded.jsp(31,0) name = cssClass type = java.lang.String reqTime // = true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f0.setCssClass("lfr-input-text-container"); // /html/portal/layout/edit/embedded.jsp(31,0) name = id type = java.lang.String reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f0.setId("urlEmbedded"); // /html/portal/layout/edit/embedded.jsp(31,0) name = label type = java.lang.String reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f0.setLabel("url"); // /html/portal/layout/edit/embedded.jsp(31,0) name = name type = java.lang.String reqTime = // true required = true fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f0.setName("TypeSettingsProperties--url--"); // /html/portal/layout/edit/embedded.jsp(31,0) name = type type = java.lang.String reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f0.setType("text"); // /html/portal/layout/edit/embedded.jsp(31,0) name = value type = java.lang.Object reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f0.setValue(url); int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag(); if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005fid_005fcssClass_005fnobody .reuse(_jspx_th_aui_005finput_005f0); return; } _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005fid_005fcssClass_005fnobody .reuse(_jspx_th_aui_005finput_005f0); out.write('\n'); out.write('\n'); // aui:input com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f1 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fwrap_005fvalue_005ftype_005fname_005flabel_005fid_005fcssClass_005fnobody .get(com.liferay.taglib.aui.InputTag.class); _jspx_th_aui_005finput_005f1.setPageContext(_jspx_page_context); _jspx_th_aui_005finput_005f1.setParent(null); // /html/portal/layout/edit/embedded.jsp(33,0) name = cssClass type = java.lang.String reqTime // = true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f1.setCssClass("layout-description"); // /html/portal/layout/edit/embedded.jsp(33,0) name = id type = java.lang.String reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f1.setId("descriptionEmbedded"); // /html/portal/layout/edit/embedded.jsp(33,0) name = label type = java.lang.String reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f1.setLabel("description"); // /html/portal/layout/edit/embedded.jsp(33,0) name = name type = java.lang.String reqTime = // true required = true fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f1.setName("TypeSettingsProperties--description--"); // /html/portal/layout/edit/embedded.jsp(33,0) name = type type = java.lang.String reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f1.setType("textarea"); // /html/portal/layout/edit/embedded.jsp(33,0) name = value type = java.lang.Object reqTime = // true required = false fragment = false deferredValue = false expectedTypeName = null // deferredMethod = false methodSignature = null _jspx_th_aui_005finput_005f1.setValue(description); // /html/portal/layout/edit/embedded.jsp(33,0) null _jspx_th_aui_005finput_005f1.setDynamicAttribute(null, "wrap", "soft"); int _jspx_eval_aui_005finput_005f1 = _jspx_th_aui_005finput_005f1.doStartTag(); if (_jspx_th_aui_005finput_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005faui_005finput_0026_005fwrap_005fvalue_005ftype_005fname_005flabel_005fid_005fcssClass_005fnobody .reuse(_jspx_th_aui_005finput_005f1); return; } _005fjspx_005ftagPool_005faui_005finput_0026_005fwrap_005fvalue_005ftype_005fname_005flabel_005fid_005fcssClass_005fnobody .reuse(_jspx_th_aui_005finput_005f1); } 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=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/articleForm.css\">\n"); out.write("\t<script src=\"http://code.jquery.com/jquery-latest.min.js\"></script>\n"); out.write("\t<script type=\"text/javascript\" src=\"js/test.js\"></script>\n"); out.write("\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("\t<div id = \"article_form_container\">\n"); out.write( "\t\t<form name=\"articleForm\" action=\"/write\" method=\"post\" enctype=\"multipart/form-data\">\n"); out.write("\t\t\t<div id =\"article_form\">\n"); out.write( "\t\t\t\t<div id = \"article_title\">제목 : <input type=\"text\" name=\"title\" placeholder=\"제목을 입력하세요.\"/></div>\n"); out.write( "\t\t\t\t<div id = \"address\">주소 : <input type=\"text\" name=\"address\" placeholder=\"주소를 입력하세요.\"/></div>\n"); out.write("\t\t\t\t<div id = \"recruit_count\">\n"); out.write("\t\t\t\t\t<div id=\"recruit_count_text\">모집 인원 : </div>\n"); out.write("\t\t\t\t\t<table id=\"select_recruit_count\">\n"); out.write("\t\t\t\t\t <tr>\n"); out.write( "\t\t\t\t\t \t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><button id =\"down_button\" name=\"title\" style=\"height:24px;width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px;background-color:white;color:#CFCFCF\">-</button></td>\n"); out.write( "\t\t\t\t\t\t\t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><div id=\"recruitCount\"name=\"recruitCount\" type=\"text\" value=\"1\" style=\"width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px\"/>1</td>\n"); out.write( "\t\t\t\t\t\t\t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><button id = \"up_button\" style=\"width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px;background-color:white;color:#CFCFCF;\">+</button></td>\n"); out.write("\t\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t</table>\n"); out.write("\t\t\t\t</div>\n"); out.write("\t\t\t\t<div id =\"visible_btn\" onclick=\"visible()\"></div>\n"); out.write("\t\t\t\t<div id =\"img_container\" style=\"display:none;\">\n"); out.write("\t\t\t\t\n"); out.write("\n"); out.write("\t\t\t\t<!-- img 시작 -->\n"); out.write("\t\t\t\t\t<div id = \"before-img\">\n"); out.write( "\t\t\t\t\t\t사진 등록<br /><input type=\"file\" name=\"file\" style=\"text-align:center; width:150px;\"/>\n"); out.write( "\t\t\t\t\t\t<input type=\"hidden\" name=\"localLocation\" value=\"/userImg/beforeImg\">\n"); out.write("\t\t\t\t\t</div>\n"); out.write("\n"); out.write("\t\t\t\t\t<div id=\"area\" style=\"width:600px\";></div>\n"); out.write("\n"); out.write("\t\t\t\t\t<div id ='square-list' style=\"display:none\">\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"0\" src=\"img/dragndrop/0.png\" height=\"60\" width=\"60\">\n"); out.write("\t\t\t\t\t\t\t</div> \t\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"1\" src=\"img/dragndrop/1.png\" height=\"60\" width=\"60\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"2\" src=\"img/dragndrop/2.png\" height=\"60\" width=\"60\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"3\" src=\"img/dragndrop/3.png\" height=\"60\" width=\"60\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"4\" src=\"img/dragndrop/4.png\" height=\"60\" width=\"60\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"5\" src=\"img/dragndrop/5.png\" height=\"80\" width=\"80\" style=\"margin-top:-12px;margin-left:-7px;\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"6\" src=\"img/dragndrop/6.png\" height=\"60\" width=\"60\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class=\"row\">\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper2'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"7\" src=\"img/dragndrop/7.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"8\" src=\"img/dragndrop/8.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"9\" src=\"img/dragndrop/9.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"10\" src=\"img/dragndrop/10.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"11\" src=\"img/dragndrop/11.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"12\" src=\"img/dragndrop/12.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"13\" src=\"img/dragndrop/13.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t\t<img class=\"14\" src=\"img/dragndrop/14.png\" height=\"120\" width=\"80\">\n"); out.write("\t\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t<div class=\"row\">\n"); out.write("\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t<!-- <div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t<img class=\"1\" src=\"img/dragndrop/1.png\" height=\"70\" width=\"90\" style=\"margin-top:30px;\">\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t<img class=\"2\" src=\"img/dragndrop/2.png\" height=\"120\" width=\"130\" style=\"margin-left:3px;margin-top:-8px;\">\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t<div class = 'square-wrapper'>\n"); out.write("\t\t\t\t\t\t<div class=\"square\">\n"); out.write( "\t\t\t\t\t\t\t<img class=\"3\" src=\"img/dragndrop/3.png\" height=\"140\" width=\"180\" style=\"margin-top:-10px;padding-left:30px;\">\n"); out.write("\t\t\t\t\t\t</div>\n"); out.write("\t\t\t\t\t</div> -->\n"); out.write("\t\t\t\t<!-- 이미지 끝 -->\n"); out.write("\t\t\t\t</div>\n"); out.write("\t\t\t\t<!-- <input type=\"file\" name=\"beforeImg\" />\n"); out.write("\t\t\t\t<input type=\"file\" name=\"afterImg\" /> -->\n"); out.write( "\t\t\t\t<div id = \"article_content\"><textarea name=\"content\" placeholder=\"내용을 입력하세요.\" /></textarea></div>\n"); out.write("\t\t\t\t<!-- <div id = \"recruit_count\">\n"); out.write("\t\t\t\t\t<select>\n"); out.write("\t\t\t\t\t \t<option value=\"1\">1</option>\n"); out.write("\t\t\t\t\t \t<option value=\"2\">2</option>\n"); out.write("\t\t\t\t\t \t<option value=\"3\">3</option>\n"); out.write("\t\t\t\t\t \t<option value=\"4\">4</option>\n"); out.write("\t\t\t\t\t \t<option value=\"5\">5</option>\n"); out.write("\t\t\t\t\t \t<option value=\"6\">6</option>\n"); out.write("\t\t\t\t\t \t<option value=\"7\">7</option>\n"); out.write("\t\t\t\t\t \t<option value=\"8\">8</option>\n"); out.write("\t\t\t\t\t \t<option value=\"9\">9</option>\n"); out.write("\t\t\t\t\t \t<option value=\"10\">10</option>\n"); out.write("\t\t\t\t\t \t<option value=\"11\">11</option>\n"); out.write("\t\t\t\t\t \t<option value=\"12\">12</option>\n"); out.write("\t\t\t\t\t \t<option value=\"13\">13</option>\n"); out.write("\t\t\t\t\t \t<option value=\"14\">14</option>\n"); out.write("\t\t\t\t\t \t<option value=\"15\">15</option>\n"); out.write("\t\t\t\t\t \t<option value=\"16\">16</option>\n"); out.write("\t\t\t\t\t \t<option value=\"17\">17</option>\n"); out.write("\t\t\t\t\t \t<option value=\"18\">18</option>\n"); out.write("\t\t\t\t\t \t<option value=\"19\">19</option>\n"); out.write("\t\t\t\t\t \t<option value=\"20\">20</option>\n"); out.write("\t\t\t\t\t \t<option value=\"21\">21</option>\n"); out.write("\t\t\t\t\t \t<option value=\"22\">22</option>\n"); out.write("\t\t\t\t\t \t<option value=\"23\">23</option>\n"); out.write("\t\t\t\t\t \t<option value=\"24\">24</option>\n"); out.write("\t\t\t\t\t \t<option value=\"25\">25</option>\n"); out.write("\t\t\t\t\t \t<option value=\"26\">26</option>\n"); out.write("\t\t\t\t\t \t<option value=\"27\">27</option>\n"); out.write("\t\t\t\t\t \t<option value=\"28\">28</option>\n"); out.write("\t\t\t\t\t \t<option value=\"29\">29</option>\n"); out.write("\t\t\t\t\t \t<option value=\"30\">30</option>\n"); out.write("\t\t\t\t\t</select> -->\n"); out.write("\t\t\t\t<!-- <input type=\"hidden\" name=\"userId\" value=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${article.userId}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\" /> -->\n"); out.write("\t\t\t\t<!-- <input type=\"hidden\" name=\"id\" value=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${article.id}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\" /> -->\n"); out.write( "\t\t\t\t<div id = \"submit_button\" class=\"row\"><input type=\"submit\" name=\"submit\" value=\"확인\" /></div>\n"); out.write("\t\t\t</div>\n"); out.write("\t\t</form>\n"); out.write("\t</div>\t\n"); out.write("\t\t\n"); out.write("\t\n"); out.write("\t<!-- holder에 upload된 file 바로 보여주기 시작 -->\n"); out.write("\t<script>\n"); out.write(" \tvar upload = document.getElementsByTagName('input')[2];\n"); out.write(" var holder = document.getElementById('area');\n"); out.write(" var suqareList = document.getElementById('square-list');\n"); out.write(" \n"); out.write(" \tupload.onchange = function (e) {\n"); out.write(" \te.preventDefault();\n"); out.write("\n"); out.write(" \tvar file = upload.files[0];\n"); out.write(" var reader = new FileReader();\n"); out.write(" \treader.onload = function (event) {\n"); out.write("\t \tvar img = new Image();\n"); out.write("\t \timg.src = event.target.result;\n"); out.write("\t \t\timg.style.position = \"relative\";\n"); out.write("\t \timg.width = 600;\n"); out.write("\t \timg.height = 400;\n"); out.write("\n"); out.write("\t \tholder.innerHTML = '';\n"); out.write("\t \tholder.width = 600;\n"); out.write("\t \tholder.appendChild(img);\n"); out.write(" \t};\n"); out.write(" \treader.readAsDataURL(file);\n"); out.write(" \treturn false;\n"); out.write(" \t};\n"); out.write(" \tsuqareList.style.display = \"block\";\n"); out.write(" </script>\n"); out.write(" <!-- holder에 upload된 file 바로 보여주기 끝 -->\n"); out.write("\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final 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; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write(" \n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); request.setCharacterEncoding("euc-kr"); out.write('\n'); guestModel.GuestDto guest = null; guest = (guestModel.GuestDto) _jspx_page_context.getAttribute("guest", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (guest == null) { guest = new guestModel.GuestDto(); _jspx_page_context.setAttribute("guest", guest, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); org.apache.jasper.runtime.JspRuntimeLibrary.introspect( _jspx_page_context.findAttribute("guest"), request); out.write('\n'); int num = Integer.parseInt(request.getParameter("num")); out.print("num" + num); int check = GuestDao.getInstance().delete(guest.getNum()); out.print("check:" + check); out.write("\n"); out.write("\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write("<title>Insert title here</title>\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("\t"); if (check > 0) { out.write("\n"); out.write("\t\t<script type=\"text/javascript\">\n"); out.write("\t\t\talert(\"삭제되었습니다.\");\n"); out.write("\t\t\tlocation.href=\"write.jsp\";\n"); out.write("\t\t</script>\n"); out.write("\t\n"); out.write("\t"); } else { out.write("\n"); out.write("\t\t<script type=\"text/javascript\">\n"); out.write("\t\t\talert(\"삭제 실패.\");\n"); out.write("\t\t\tlocation.href=\"write.jsp\";\n"); out.write("\t\t</script>\n"); out.write("\t"); } out.write("\n"); out.write("\t\n"); out.write("\t\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final 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"); if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return; out.write('\r'); out.write('\n'); String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path; request.setAttribute("basePath", basePath); out.write('\r'); out.write('\n'); out.write("\r\n"); 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("<title>API管理</title>\r\n"); out.write(" "); out.write("<!-- Common JS Lib & CSS Lib -->\r\n"); out.write("<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/webResources/js/easyui/jquery-1.4.4.min.js\"></script>\r\n"); out.write("<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/webResources/js/common.js\"></script>\r\n"); out.write("<script type=\"text/javascript\" src='"); if (_jspx_meth_c_005furl_005f0(_jspx_page_context)) return; out.write("'></script>\r\n"); out.write("<link rel=\"stylesheet\" type=\"text/css\" href='"); if (_jspx_meth_c_005furl_005f1(_jspx_page_context)) return; out.write("'> \r\n"); out.write("<link rel=\"stylesheet\" type=\"text/css\" href='"); if (_jspx_meth_c_005furl_005f2(_jspx_page_context)) return; out.write("'>\r\n"); out.write("<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/webResources/js/easyui/locale/easyui-lang-zh_CN.js\"></script> \r\n"); out.write("<link rel=\"stylesheet\" type=\"text/css\" href='"); if (_jspx_meth_c_005furl_005f3(_jspx_page_context)) return; out.write("' />\r\n"); out.write("<script src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/webResources/js/validator.js\"></script>\r\n"); out.write("<script src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/webResources/My97DatePicker/WdatePicker.js\"></script>"); out.write("\r\n"); out.write("\t<script>\r\n"); out.write(" \r\n"); out.write(" function addNew(){\r\n"); out.write(" \tvar dt=new Date();\r\n"); out.write(" var ah = screen.availHeight - 30;\r\n"); out.write(" \t\tvar aw = screen.availWidth - 10;\r\n"); out.write(" \t\tvar xc = (aw - 500) / 2;\r\n"); out.write(" \t\tvar yc = (ah - 600) / 2;\r\n"); out.write(" openparentWindow(\"newWindow\",\"添加\",xc,yc,\"800\",\"500\",\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write( "/jsp/api/apiInitEdit.action?flag=add&dt=\"+dt.getTime(),true,true,true,false,true,\"win\");\r\n"); out.write(" }\r\n"); out.write(" function edit(row_Id){\r\n"); out.write(" \tvar dt=new Date();\r\n"); out.write(" var ah = screen.availHeight - 30;\r\n"); out.write(" \t\tvar aw = screen.availWidth - 10;\r\n"); out.write(" \t\tvar xc = (aw - 500) / 2;\r\n"); out.write(" \t\tvar yc = (ah - 600) / 2;\r\n"); out.write(" openparentWindow(\"newWindow\",\"修改\",xc,yc,\"800\",\"500\",\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write( "/jsp/api/apiInitEdit.action?flag=mod&api.id=\"+row_Id,true,true,true,false,true,\"win\");\r\n"); out.write(" }\r\n"); out.write(" function view(row_Id){\r\n"); out.write(" \tvar dt=new Date();\r\n"); out.write(" var ah = screen.availHeight - 30;\r\n"); out.write(" \t\tvar aw = screen.availWidth - 10;\r\n"); out.write(" \t\tvar xc = (aw - 400) / 2;\r\n"); out.write(" \t\tvar yc = (ah - 350) / 2;\r\n"); out.write(" openparentWindow(\"newWindow\",\"查看\",xc,yc,\"600\",\"400\",\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write( "/jsp/api/apiView.action?api.id=\"+row_Id+\"&dt=\"+dt.getTime(),true,true,true,false,true,\"win\");\r\n"); out.write(" }\r\n"); out.write(" function close_win(){\r\n"); out.write(" \t$(\"#newWindow\").window(\"close\");\r\n"); out.write(" }\r\n"); out.write(" function reloadDate(){\r\n"); out.write(" $('#pagination').datagrid('clearSelections');\r\n"); out.write(" \tsearch_api();\r\n"); out.write(" }\r\n"); out.write(" function del(){\r\n"); out.write(" \tvar rows = $('#pagination').datagrid('getSelections');\r\n"); out.write(" \tvar ids = \"\";\r\n"); out.write("\t\t\tfor(var i=0;i<rows.length;i++){\r\n"); out.write("\t\t\t\tids += rows[i].id+\"|\";\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t\tif(rows.length<1){\r\n"); out.write("\t\t\t $.messager.alert('提示','至少选择一项删除!');\r\n"); out.write("\t\t\t}else{\r\n"); out.write("\t\t\t $.messager.confirm(\"删除\",\"确定要删除吗?\",function(result){\r\n"); out.write("\t\t\t if(result){\r\n"); out.write("\t\t $.ajax({\r\n"); out.write("\t\t \turl : \"apiDel.action\",\r\n"); out.write("\t\t \ttype: 'post',\r\n"); out.write("\t\t dataType: 'json',\r\n"); out.write("\t\t async : false,\r\n"); out.write("\t\t data:{ \r\n"); out.write("\t\t \tids : ids\r\n"); out.write("\t\t },\r\n"); out.write("\t\t error: function(){\r\n"); out.write("\t\t \t$.messager.alert('错误','删除时出错!');\r\n"); out.write("\t\t },\r\n"); out.write("\t\t success: function(data){\r\n"); out.write("\t\t if(data.result == 'true'){\r\n"); out.write("\t\t \t$.messager.alert('提示','删除成功!');\r\n"); out.write("\t\t \tsearch_api();\r\n"); out.write("\t\t }else if(data.result == 'false'){\r\n"); out.write("\t\t \t$.messager.alert('错误','删除时出错!');\r\n"); out.write("\t\t }else if(data.result == 'have_sons') {\r\n"); out.write( "\t\t \t$.messager.alert('错误',data.name + '存在子级别,无法删除!');\r\n"); out.write("\t\t }\r\n"); out.write("\t\t }\r\n"); out.write("\t\t });\r\n"); out.write("\t\t\t }\r\n"); out.write("\t\t\t });\r\n"); out.write("\t\t\t}\r\n"); out.write(" }\r\n"); out.write(" \r\n"); out.write(" //清除查询表单中的搜索条件\r\n"); out.write(" function clear_form(ff){\r\n"); out.write(" var elements = ff.elements;\r\n"); out.write(" for(i=0;i<elements.length;i++){\r\n"); out.write(" var element = elements[i];\r\n"); out.write(" if(element.type==\"text\"){\r\n"); out.write(" element.value = \"\";\r\n"); out.write( " }else if(element.type==\"radio\" || element.type==\"checkbox\"){\r\n"); out.write(" \telement.checked = false;\r\n"); out.write(" }\r\n"); out.write(" }\r\n"); out.write(" var level_value_1 = $('#level_name_1').combobox('getValue');\r\n"); out.write(" $('#level_name_1').combobox('unselect', level_value_1);\r\n"); out.write(" var level_value_2 = $('#level_name_2').combobox('getValue');\r\n"); out.write(" $('#level_name_2').combobox('unselect', level_value_2);\r\n"); out.write(" }\r\n"); out.write(" \r\n"); out.write(" //双击单选按钮,取消选中状态\r\n"); out.write(" function cancel_selected(radio) {\r\n"); out.write(" \tif($(radio).attr('checked')){\r\n"); out.write(" \t\t$(radio).removeAttr('checked');\r\n"); out.write(" \t}else{\r\n"); out.write(" \t\t$(radio).attr('checked',true);\r\n"); out.write(" \t}\r\n"); out.write(" }\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" function search_api(){\r\n"); out.write(" \tvar queryParams = {\r\n"); out.write("\t\t\t\t\"api.name\": $(\"#name\").val(),\r\n"); out.write("\t\t\t\t\"api.createUserName\" : $('#createUserName').val(),\r\n"); out.write("\t\t\t\t\"level_code_1\" : $('#level_name_1').combobox('getValue'),\r\n"); out.write("\t\t\t\t\"level_code_2\" : $('#level_name_2').combobox('getValue')\r\n"); out.write("\t\t\t};\r\n"); out.write(" \t$('#pagination').datagrid('options').queryParams = queryParams;\r\n"); out.write(" \t$('#pagination').datagrid('clearSelections');\r\n"); out.write(" \t$(\"#pagination\").datagrid('load');\r\n"); out.write(" }\r\n"); out.write(" \r\n"); out.write(" //获得分类名称通过id\r\n"); out.write(" function findTypeNameById(level, rec) {\r\n"); out.write(" \t\tvar type_name = \"\";\r\n"); out.write(" \t\t$.ajax({\r\n"); out.write(" \t\t url: '"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/jsp/api/type/findTypeNameById.action',\r\n"); out.write(" \t\t type: 'post',\r\n"); out.write(" \t\t dataType: 'json',\r\n"); out.write(" \t\t async : false,\r\n"); out.write(" \t\t data:{\r\n"); out.write(" \t\t \t\"api.type_id\" : rec.type_id,\r\n"); out.write(" \t\t \t\"level\" : level //标记是一级还是二级\r\n"); out.write(" \t\t },\r\n"); out.write(" \t\t error: function(){\r\n"); out.write(" \t\t //alert('获取部门类型出错!');\r\n"); out.write(" \t\t },\r\n"); out.write(" \t\t success: function(data){\r\n"); out.write(" \t\t \ttype_name = data.name;\r\n"); out.write(" \t\t }\r\n"); out.write(" \t\t});\r\n"); out.write(" \t \treturn type_name;\r\n"); out.write(" }\r\n"); out.write(" \r\n"); out.write(" \t//利用ajax获得所有一级分类名称,并将这些值赋给下拉框\r\n"); out.write(" function setComboboxValues() {\r\n"); out.write(" \t$.ajax({\r\n"); out.write("\t\t\t\t url: \""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/jsp/api/type/gainAllTypeNames.action\",\r\n"); out.write(" \ttype: 'post',\r\n"); out.write(" dataType: 'json',\r\n"); out.write(" async : false,\r\n"); out.write(" data : {\r\n"); out.write(" \tlevel : '1&2'\r\n"); out.write(" },\r\n"); out.write("\t\t\t\t success: function(json){\r\n"); out.write("\t\t\t\t\t $(\"#level_name_1\").combobox({\r\n"); out.write("\t\t\t\t\t\t data:json.level_1,\r\n"); out.write("\t\t\t\t\t\t valueField:'code',\r\n"); out.write("\t\t\t\t\t\t textField:'name',\r\n"); out.write("\t\t\t\t\t\t editable:false,\r\n"); out.write("\t\t\t\t\t\t onSelect:function(params){\r\n"); out.write("\t\t\t\t\t\t \t//当选择事件触发时\r\n"); out.write("\t\t\t \t $.get('"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/jsp/api/type/gainAllTypeNames.action',\r\n"); out.write("\t\t\t \t \t\t{level : '2', oneLevelCode : params.code},\r\n"); out.write("\t\t\t \t \t\tfunction(data){\r\n"); out.write("\t\t\t \t \t\t\t//为第二级下拉框赋对应的值\r\n"); out.write( "\t\t\t \t \t\t\t$(\"#level_name_2\").combobox(\"clear\").combobox('loadData',data.level_2); \r\n"); out.write("\t\t\t \t \t\t},\r\n"); out.write("\t\t\t \t \t\t'json'\r\n"); out.write("\t\t\t \t );\r\n"); out.write("\r\n"); out.write("\t\t\t \t }\r\n"); out.write("\t\t\t\t\t });\r\n"); out.write("\t\t\t\t\t \r\n"); out.write("\t\t\t\t\t $(\"#level_name_2\").combobox({\r\n"); out.write("\t\t\t\t\t\t data:json.level_2,\r\n"); out.write("\t\t\t\t\t\t valueField:'code',\r\n"); out.write("\t\t\t\t\t\t textField:'name',\r\n"); out.write("\t\t\t\t\t\t editable:false\r\n"); out.write("\t\t\t\t\t });\r\n"); out.write("\t\t\t\t }\r\n"); out.write("\t\t\t});\r\n"); out.write(" }\r\n"); out.write(" \t\r\n"); out.write(" \t\r\n"); out.write(" $(function(){\r\n"); out.write(" \t//初始化下拉框的值\r\n"); out.write(" \tsetComboboxValues();\r\n"); out.write(" \t\r\n"); out.write(" \t//加载datagrid数据\r\n"); out.write("\t\t\t$('#pagination').datagrid({\r\n"); out.write("\t\t\t\ttitle:'列表',\r\n"); out.write("\t\t\t\ticonCls:'icon-save',\r\n"); out.write("\t\t\t\tnowrap: false,\r\n"); out.write("\t\t\t\tstriped: true,\r\n"); out.write("\t\t\t\tcollapsible:true,\r\n"); out.write("\t\t\t\turl:'apiQuery.action',\r\n"); out.write("\t\t\t\tqueryParams:{\r\n"); out.write("\t\t\t\t\t\"api.name\": $(\"#name\").val()\r\n"); out.write("\t\t\t\t},\r\n"); out.write("\t\t\t\tidField:'id',\r\n"); out.write("\t\t\t\tremoteSort: false,\r\n"); out.write("\t\t\t\tfrozenColumns:[[\r\n"); out.write("\t\t\t\t {field:'id',checkbox:true}\r\n"); out.write("\t\t\t\t]],\r\n"); out.write("\t\t\t\tcolumns:[[\r\n"); out.write("\t\t\t\t\t\t\t{field:'name',title:'名称',width:100},\r\n"); out.write( "\t\t\t\t\t\t\t{field:'one_level_name',title:'一级分类',width:100,formatter:function(value,rec){\r\n"); out.write("\t\t\t\t\t\t\t\treturn findTypeNameById('1', rec);\r\n"); out.write("\t\t\t\t\t\t\t}},\r\n"); out.write( "\t\t\t\t\t\t\t{field:'second_level_name',title:'二级分类',width:100,formatter:function(value,rec){\r\n"); out.write("\t\t\t\t\t\t\t\treturn findTypeNameById('2', rec);\r\n"); out.write("\t\t\t\t\t\t\t}},\r\n"); out.write("\t\t\t\t\t\t\t{field:'createUserName',title:'创建人',width:100},\r\n"); out.write( "\t\t\t\t \t{field:'op',title:'操作',width:100,formatter:function(value,rec){\r\n"); out.write( "\t\t\t\t\t\t\t\treturn \"<span style='color:red;cursor:hand' onclick=\\\"edit('\"+rec.id+\"')\\\">编辑</span>\";\r\n"); out.write(" \t}}\r\n"); out.write("\t\t\t\t ]],\r\n"); out.write("\t\t\t\tpagination:true,\r\n"); out.write("\t\t\t\tonLoadSuccess:tabOnloadSuccess,\r\n"); out.write("\t\t\t\tonLoadError:tabOnloadSuccess,\r\n"); out.write("\t\t\t\trownumbers:true,\r\n"); out.write("\t\t\t\tpageList:[10,20,30],\r\n"); out.write("\t\t\t\tonHeaderContextMenu: function(e, field){\r\n"); out.write("\t\t\t\t\te.preventDefault();\r\n"); out.write("\t\t\t\t\tif (!$('#tmenu').length){\r\n"); out.write("\t\t\t\t\t\tcreateColumnMenu();\r\n"); out.write("\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t$('#tmenu').menu('show', {\r\n"); out.write("\t\t\t\t\t\tleft:e.pageX,\r\n"); out.write("\t\t\t\t\t\ttop:e.pageY\r\n"); out.write("\t\t\t\t\t});\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t});\r\n"); out.write("\t\t});\r\n"); out.write("\r\n"); out.write(" var titles = new Array();\r\n"); out.write(" function createColumnMenu(){\r\n"); out.write( "\t\t\tvar tmenu = $('<div id=\"tmenu\" style=\"width:150px;\"></div>').appendTo('body');\r\n"); out.write("\t\t\tvar fields = $('#pagination').datagrid('getColumnFields');\r\n"); out.write("\t\t\t\r\n"); out.write("\t\t\tfor(var i=0; i<fields.length; i++){\r\n"); out.write("\t\t\t\tvar option = $('#pagination').datagrid('getColumnOption',fields[i]);\r\n"); out.write("\t\t\t\tvar obj = {};\r\n"); out.write("\t\t\t\tobj.title = option.title;\r\n"); out.write("\t\t\t\tobj.field = fields[i];\r\n"); out.write("\t\t\t\ttitles[i] = obj;\r\n"); out.write("\t\t\t}\t\t\t\r\n"); out.write("\t\t\tfor(var i=0; i<titles.length; i++){\r\n"); out.write( "\t\t\t\t$('<div iconCls=\"icon-ok\"/>').html(titles[i].title).appendTo(tmenu);\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t\ttmenu.menu({\r\n"); out.write("\t\t\t\tonClick: function(item){\r\n"); out.write("\t\t\t\t\tif (item.iconCls=='icon-ok'){\r\n"); out.write("\t\t\t\t\t\tvar field;\r\n"); out.write("\t\t\t\t\t\tfor(var i=0; i<titles.length; i++){\r\n"); out.write("\t\t\t\t\t\t\tif(titles[i].title==item.text){\r\n"); out.write("\t\t\t\t\t\t\t\tfield = titles[i].field;\r\n"); out.write("\t\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t\t$('#pagination').datagrid('hideColumn', field);\r\n"); out.write("\t\t\t\t\t\ttmenu.menu('setIcon', {\r\n"); out.write("\t\t\t\t\t\t\ttarget: item.target,\r\n"); out.write("\t\t\t\t\t\t\ticonCls: 'icon-empty'\r\n"); out.write("\t\t\t\t\t\t});\r\n"); out.write("\t\t\t\t\t} else {\r\n"); out.write("\t\t\t\t\t\tvar field;\r\n"); out.write("\t\t\t\t\t\tfor(var i=0; i<titles.length; i++){\r\n"); out.write("\t\t\t\t\t\t\tif(titles[i].title==item.text){\r\n"); out.write("\t\t\t\t\t\t\t\tfield = titles[i].field;\r\n"); out.write("\t\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t\t$('#pagination').datagrid('showColumn', field);\r\n"); out.write("\t\t\t\t\t\ttmenu.menu('setIcon', {\r\n"); out.write("\t\t\t\t\t\t\ttarget: item.target,\r\n"); out.write("\t\t\t\t\t\t\ticonCls: 'icon-ok'\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});\r\n"); out.write("\t\t}\r\n"); out.write("\t\t$(window).resize(function(){\r\n"); out.write(" $('#pagination').datagrid('resize',{\r\n"); out.write(" \twidth: document.body.clientWidth-20\r\n"); out.write(" });\r\n"); out.write(" });\r\n"); out.write("\t\t\r\n"); out.write(" </script>\r\n"); out.write("</head>\r\n"); out.write("\r\n"); out.write("<body>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("<script>\r\n"); out.write("function doReturnOrClose(backtimes) {\r\n"); out.write(" if (this.parent != null && this.opener == null) {\r\n"); out.write(" history.go(backtimes);\r\n"); out.write(" }\r\n"); out.write(" else {\r\n"); out.write(" window.close();\r\n"); out.write(" }\r\n"); out.write("}\r\n"); out.write("function showError() {\r\n"); out.write(" if (document.getElementById(\"errorMessages\") != null) {\r\n"); out.write( " document.getElementById(\"errorMessages\").style.display = 'block';\r\n"); out.write(" }\r\n"); out.write("\r\n"); out.write("}\r\n"); out.write("</script>\r\n"); out.write("<div class=\"pages_right_main\">\r\n"); out.write("<!-- \r\n"); out.write("<div class=\"location\">\r\n"); out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td class=\"header01\"></td>\r\n"); out.write("\t\t<td class=\"headerbg\" valign=\"middle\" align=\"left\"> <img src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${ctx}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/webResources/themes/"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${curr_user.cssId}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/images/default/location_bg_01.jpg\" /><edp:showCurrPath moduleCode=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${currModuleCode}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\" customPath=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${curr_path}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\"/> \r\n"); out.write("\t\t</td>\r\n"); out.write("\t\t<td class=\"header01\">\r\n"); out.write("\t\t<div style=\"cursor: hand; width: 100%; height: 100%;\" title=\"查看异常\"\r\n"); out.write("\t\t\tonclick='javascript:showError();'> </div>\r\n"); out.write("\t\t</td>\r\n"); out.write("\t\t<td class=\"header02\">\r\n"); out.write("\t\t<div style=\"cursor: hand; width: 100%; height: 100%;\" title=\"页面回退\"\r\n"); out.write("\t\t\tonclick='javascript:doReturnOrClose(-1);'></div>\r\n"); out.write("\t\t</td>\r\n"); out.write("\t\r\n"); out.write("\t</tr>\r\n"); out.write("</table>\r\n"); out.write("</div> -->\r\n"); out.write("<table width=\"100%\" style=\"height:95%\" border=\"0\" cellspacing=\"0\"\r\n"); out.write("\tcellpadding=\"0\">\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td class=\"content0201\"></td>\r\n"); out.write("\t\t<td valign=\"top\" height=\"100%\">"); out.write("\r\n"); out.write("\r\n"); out.write("<form name=\"myform\" method=\"post\">\r\n"); out.write("\t<div class=\"submitdata\">\r\n"); out.write("\t\t<table width=\"100%\">\r\n"); out.write("\t\t\t<tr>\r\n"); out.write("\t\t\t\t<th width=\"5%\">创建人:</th>\r\n"); out.write( "\t\t\t\t<td width=\"25%\"><input name=\"createUserName\" id=\"createUserName\" value=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${api.createUserName}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\" type=\"text\"></td>\r\n"); out.write("\t\t\t\t<th width=\"5%\">API名称:</th>\r\n"); out.write("\t\t\t\t<td width=\"25%\"><input name=\"api\" id=\"name\" value=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${api.name}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\" type=\"text\"></td>\r\n"); out.write("\t\t\t</tr>\r\n"); out.write("\t\t\t<tr>\r\n"); out.write("\t\t\t\t<th width=\"5%\">一级分类:</th>\r\n"); out.write("\t\t\t\t<td width=\"25%\">\r\n"); out.write( "\t\t\t\t\t<select id=\"level_name_1\" style=\"width:200px;\" onchange=\"setSecondValue(this)\">\r\n"); out.write("\t\t\t\t\t</select>\r\n"); out.write("\t\t\t\t</td>\r\n"); out.write("\t\t\t\t<th width=\"5%\">二级分类:</th>\r\n"); out.write("\t\t\t\t<td width=\"25%\">\r\n"); out.write("\t\t\t\t\t<select id=\"level_name_2\" style=\"width:200px;\">\r\n"); out.write("\t\t\t\t\t</select>\r\n"); out.write("\t\t\t\t</td>\r\n"); out.write("\t\t\t</tr>\r\n"); out.write("\t\t\t<tr>\r\n"); out.write("\t\t\t\t<td colspan=\"4\" align=\"center\">\r\n"); out.write( "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"search_api()\" iconCls=\"icon-search\">查询</a> \r\n"); out.write( "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"clear_form(document.myform);\" iconCls=\"icon-undo\">清空</a> \t\t\t\t\r\n"); out.write( "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"addNew();\" iconCls=\"icon-add\">添加</a> \r\n"); out.write( "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"del();\" iconCls=\"icon-remove\">删除</a>\r\n"); out.write("\t\t\t\t</td>\r\n"); out.write("\t\t\t</tr>\r\n"); out.write("\t\t</table>\r\n"); out.write("\t</div>\r\n"); out.write("\t\t<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">\r\n"); out.write("\t\t\t<tr>\r\n"); out.write("\t\t\t\t<td>\r\n"); out.write( "\t\t\t\t<div id=\"pagination\" style=\"background:#efefef;border:1px solid #ccc;\">\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t</td>\r\n"); out.write("\t\t\t</tr>\r\n"); out.write("\t\t</table>\r\n"); out.write("</form>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("</td>\r\n"); out.write("<td class=\"content0203\"></td>\r\n"); out.write("</tr>\r\n"); out.write("</table>\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 { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<div>\r\n"); out.write(" <div class=\"panel panel-default\">\r\n"); out.write(" <div class=\"panel-heading\">新评论:</div>\r\n"); out.write(" <div class=\"panel-body\">\r\n"); out.write(" <table class=\"table table-striped\" id=\"commentNewReply\">\r\n"); out.write(" <!--<tr>\r\n"); out.write(" <td>\r\n"); out.write(" <div class=\"fs-article-meta\">\r\n"); out.write(" <a href=\"#\">WhatElse</a> : <span>评论了你的文章</span> : \r\n"); out.write( " <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test One Title</a></span>\r\n"); out.write(" <div>\r\n"); out.write(" <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </td>\r\n"); out.write(" </tr>\r\n"); out.write(" <tr>\r\n"); out.write(" <td>\r\n"); out.write(" <div class=\"fs-article-meta\">\r\n"); out.write(" <a href=\"#\">WhoYou</a> : <span>评论了你的文章</span> : \r\n"); out.write( " <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n"); out.write(" <div>\r\n"); out.write(" <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </td>\r\n"); out.write(" </tr>\r\n"); out.write(" <tr>\r\n"); out.write(" <td>\r\n"); out.write(" <div class=\"fs-article-meta\">\r\n"); out.write(" <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n"); out.write( " <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n"); out.write(" <div>\r\n"); out.write(" <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </td>\r\n"); out.write(" </tr>\r\n"); out.write(" <tr>\r\n"); out.write(" <td>\r\n"); out.write(" <div class=\"fs-article-meta\">\r\n"); out.write(" <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n"); out.write( " <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n"); out.write(" <div>\r\n"); out.write(" <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </td>\r\n"); out.write(" </tr>\r\n"); out.write(" <tr>\r\n"); out.write(" <td>\r\n"); out.write(" <div class=\"fs-article-meta\">\r\n"); out.write(" <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n"); out.write( " <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n"); out.write(" <div>\r\n"); out.write(" <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </td>\r\n"); out.write(" </tr>\r\n"); out.write(" <tr>\r\n"); out.write(" <td>\r\n"); out.write(" <div class=\"fs-article-meta\">\r\n"); out.write(" <a href=\"#\">Again</a> : <span>评论了你的文章</span> : \r\n"); out.write( " <span class=\"fs-article-title\"><a href=\"#\" class=\"text-primary fs-article-title\">Test Two Title</a></span>\r\n"); out.write(" <div>\r\n"); out.write(" <span class=\"text-muted\">2012-01-01 01:01:01</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </td>\r\n"); out.write(" </tr>-->\r\n"); out.write(" </table>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write("</div>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
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 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(" <!--css sheet-->\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/dtree/dtree.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/jquery-easyui/easyui.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/jquery-easyui/icon.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/tracywindy.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/button.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/workFlowUtil.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<!--javascript libray-->\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/workFlowUtil.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyUtils.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyJsonUtil.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyAjax.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/jquery.min.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/jquery.easyui.min.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/easyui-lang-zh_CN.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyLoadMask.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyTable.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyComboBox.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindySerializeFormToJsonObject.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/my97DatePicker/WdatePicker.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/validator.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyOperationTable.js\"></script>\r\n"); out.write("\t<style type=\"text/css\">\r\n"); out.write("\t html,body{\r\n"); out.write("\t overflow:hidden;\r\n"); out.write("\t }\r\n"); out.write("\t</style>\r\n"); out.write("<script type=\"text/javascript\"> \r\n"); out.write("//var proj_id=\""); out.print(request.getParameter("id")); out.write("\";\r\n"); out.write("var param={};\r\n"); out.write("//if(proj_id!=\"null\" || proj_id==\"\"){param.proj_id=proj_id;}\r\n"); out.write("\tvar pageWidth = document.documentElement.clientWidth-2;\r\n"); out.write("\tvar pageHeight = document.documentElement.clientHeight-2;\r\n"); out.write("\t\r\n"); out.write("\tvar attachmentParams;\r\n"); out.write("\tjQuery(function(){\r\n"); out.write("\t var table = new tracywindyOperationTable({\r\n"); out.write("\t\t tableComment:'[合同收款信息]',\r\n"); out.write("\t\t constantFlagTable:'ProjInfo',\r\n"); out.write("\t\t windowTop:20,\r\n"); out.write("\t border:true,\r\n"); out.write(" renderTo:'id_tableContainer',\r\n"); out.write(" title:'合同收款信息',\r\n"); out.write(" width:parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableWidth}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageWidth,\r\n"); out.write(" height:parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight,\r\n"); out.write(" id:'id_table',\r\n"); out.write( " xmlFileName:'\\\\eleasing\\\\workflow\\\\contract\\\\contract_flowopen_list.xml',\r\n"); out.write(" loadMode:'ajax',\r\n"); out.write(" params:{\r\n"); out.write("\t\t CONTRACT_STATUS_LessThan : 100, \r\n"); out.write("\t \tCONTRACT_STATUS_GreaterThan : 15,\r\n"); out.write("\t \tuserId:'"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${sessionScope.loginUser.id}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("',\r\n"); out.write("\t \ttotal:'1'\r\n"); out.write("\t\t\t},\r\n"); out.write(" isPage:true,\r\n"); out.write(" operButtons:' ',\r\n"); out.write(" isFit:false,\r\n"); out.write(" tools:[{\r\n"); out.write(" \t html : '<font color=\"red\">收款</font>',\r\n"); out.write("\t\t handler : function(table) {\r\n"); out.write("\t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write("\t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write("\t\t\t\t\talert(\"请选择需要启动的流程!\");\r\n"); out.write("\t\t\t\t\treturn false;\r\n"); out.write("\t\t\t\t}\r\n"); out.write( "\t\t\t\tattachmentParams = \"cust_id=\"+projIDValue[0].custid+\"&contract_id=\" + projIDValue[0].id ;\r\n"); out.write("\t\t\t\tvar custdealerid = projIDValue[0].custdealerid;\r\n"); out.write("\t\t\t\tvar param_ = {};\r\n"); out.write("\t\t\t\tparam_.hasMoney = '0';\r\n"); out.write("\t\t\t\tif(custdealerid){\r\n"); out.write("\t\t\t\t\tparam_.custid = custdealerid;\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t\tvar table_ebank = getTracywindyObject('table_ebank');\r\n"); out.write("\t\t\t\ttable_ebank.setParams(param_);\r\n"); out.write("\t\t\t\ttable_ebank.reload();\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\tjQuery(\"#ebank\").show();\r\n"); out.write("\t\t\t\tjQuery(\"#ebank\").window({\r\n"); out.write("\t\t\t\t\t top:10\r\n"); out.write("\t\t\t\t});\r\n"); out.write("\t\t\t\tjQuery(\"#ebank\").window(\"open\");\r\n"); out.write("\t\t\t\t//startProcess(\"收款流程-4\",attachmentParams);\r\n"); out.write("\t\t\t},\r\n"); out.write("\t\t\ticonCls :'icon-update'\r\n"); out.write(" },\r\n"); out.write(" {\r\n"); out.write(" \t html : '<font color=\"red\">红冲</font>',\r\n"); out.write(" \t\t handler : function(table) {\r\n"); out.write(" \t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write(" \t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write(" \t\t\t\t\talert(\"请选择需要启动的流程!\");\r\n"); out.write(" \t\t\t\t\treturn false;\r\n"); out.write(" \t\t\t\t}\r\n"); out.write(" \t\t\t\tif (projIDValue[0].shebeimoney > 0){\r\n"); out.write(" \t\t\t\t\talert(\"资金已投放不允许红冲!\");\r\n"); out.write(" \t\t\t\t\treturn false;\r\n"); out.write(" \t\t\t\t}else{\r\n"); out.write( "\t \t\t\t\tattachmentParams = \"cust_id=\"+projIDValue[0].custid+\"&contract_id=\" + projIDValue[0].id+\"&feetype=red\";\r\n"); out.write("\t \t\t\t\tvar custdealerid = projIDValue[0].custdealerid;\r\n"); out.write("\t \t\t\t\tvar param_ = {};\r\n"); out.write("\t \t\t\t\tparam_.hasMoney = '0';\r\n"); out.write("\t \t\t\t\tif(custdealerid){\r\n"); out.write("\t \t\t\t\t\tparam_.custid = custdealerid;\r\n"); out.write("\t \t\t\t\t}\r\n"); out.write("\t \t\t\t\tstartProcess(\"收款流程-1\",attachmentParams);\r\n"); out.write(" \t\t\t\t}\r\n"); out.write(" \t\t\t},\r\n"); out.write(" \t\t\ticonCls :'icon-update'\r\n"); out.write(" },\r\n"); out.write(" {\r\n"); out.write("\t\t\t\tisHtml : true,\r\n"); out.write("\t\t\t\thtml : '选择显示合同信息:'\r\n"); out.write("\t\t }, {\r\n"); out.write("\t\t\t\tisHtml : true,\r\n"); out.write("\t\t\t\thtml : '<div id=\"id_flow_name\" style=\"float:left;\"></div>'\r\n"); out.write("\t\t\t}\r\n"); out.write(" ],\r\n"); out.write(" columns:[\r\n"); out.write("\t\t {header:'id',name:'id',hidden:true},\r\n"); out.write("\t\t {header:'proj_id',name:'proj_id',hidden:true},\r\n"); out.write("\t\t {header:'pid',name:'pid',hidden:true},\r\n"); out.write("\t\t {header:'custid',name:'custid',hidden:true},\r\n"); out.write("\t\t {header:'typecode',name:'typecode',hidden:true},\r\n"); out.write("\t\t {header:'业务类别',name:'businesstype'},\r\n"); out.write("\t\t {header:'客户名称',name:'custname',queryConfig:{}},\r\n"); out.write("\t\t {header:'经销商名称',name:'custdealer',queryConfig:{}},\r\n"); out.write("\t\t {header:'合同编号',name:'contractid',queryConfig:{}},\r\n"); out.write("\t\t {header:'业务合同号',name:'contractnumber'},\r\n"); out.write("\t\t {header:'设备款',name:'shebeimoney',hidden:true},\r\n"); out.write( "\t\t {header:'项目名称',name:'projname',width:300,queryConfig:{isNewLine:true}},\r\n"); out.write("\t\t {header:'活动类型',name:'projtype'},\r\n"); out.write("\t\t {header:'项目来源',name:'projsource'},\r\n"); out.write("\t\t //{header:'项目规模',name:'projscale'},\r\n"); out.write("\t\t {header:'资产分类',name:'industrytype'},\r\n"); out.write("\t\t {header:'租赁形式',name:'leasform'},\r\n"); out.write("\t\t {header:'业务模式',name:'businessmode'},\r\n"); out.write("\t\t {header:'客户经理',name:'projmanage'}\r\n"); out.write(" ]\r\n"); out.write("\t });\r\n"); out.write("\t var combo_type = new tracywindyComboBox({\r\n"); out.write("\t\t\tid : 'id_combo_flow_name',\r\n"); out.write("\t\t\twidth : 200,\r\n"); out.write("\t\t\trenderTo : 'id_flow_name',\r\n"); out.write("\t\t\tloadMode : 'local',\r\n"); out.write("\t\t\treadOnly : false,\r\n"); out.write("\t\t\tisAjaxLenovo : true,\r\n"); out.write("\t\t\tisContainEmpty : false,\r\n"); out.write("\t\t\tdropListHeight : 300,\r\n"); out.write("\t\t\ttopAdd : 0,\r\n"); out.write("\t\t\tleftAdd : 0,\r\n"); out.write("\t\t\tpositionDropIconLeftAdd : -1,\r\n"); out.write("\t\t\tvalue:'1',\r\n"); out.write("\t\t\tname : 'flow_name',\r\n"); out.write("\t\t\tdisplayField : 'name',\r\n"); out.write("\t\t\tvalueField : 'value',\r\n"); out.write("\t\t\tdatas : [ \r\n"); out.write("\t\t\t {\r\n"); out.write("\t\t\t\tname : '未收完合同',\r\n"); out.write("\t\t\t\tvalue : '1'\r\n"); out.write("\t\t\t },{\r\n"); out.write("\t\t\t\t\tname : '全部合同',\r\n"); out.write("\t\t\t\t\tvalue : ''\r\n"); out.write("\t\t\t\t}],\r\n"); out.write("\t\t\tonSelect : function(combo) {\r\n"); out.write("\t\t\t\tvar table = getTracywindyObject('id_table');\r\n"); out.write("\t\t\t\t//alert(table);\r\n"); out.write("\t\t\t\t table.setParams({\r\n"); out.write("\t total: combo.getValue()\r\n"); out.write("\t });\r\n"); out.write("\t table.reload();\r\n"); out.write("\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t});\r\n"); out.write("});\r\n"); out.write("\tjQuery(function(){\r\n"); out.write("\t \t new tracywindyOperationTable({\r\n"); out.write("\t \t\t tableComment:'[网银信息]',\r\n"); out.write("\t \t\t constantFlagTable:'fundebank',\r\n"); out.write("\t \t\t windowTop:20,\r\n"); out.write("\t \t border:true,\r\n"); out.write("\t renderTo:'id_ebank',\r\n"); out.write("\t title:'网银信息',\r\n"); out.write("\t width:(parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableWidth}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageWidth) - 300,\r\n"); out.write("\t height:(parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight)-140,\r\n"); out.write("\t id:'table_ebank',\r\n"); out.write( "\t //xmlFileName:'eleasing/jsp/fund_collection/fund_ebank_info_collection.xml',\r\n"); out.write("\t xmlFileName:'eleasing/jsp/fund_ebank/fund_ebank_info.xml',\r\n"); out.write("\t displayToggleContainer:\"ebank\",\r\n"); out.write("\t loadMode:'ajax',\r\n"); out.write("\t isPage:true,\r\n"); out.write("\t operButtons:' ',\r\n"); out.write("\t isFit:true,\r\n"); out.write("\t operButtons:' ',\r\n"); out.write("\t params:{\r\n"); out.write("\t \t enabled:0\r\n"); out.write("\t\t\t },\r\n"); out.write("\t //params : param_,\r\n"); out.write("\t tools:[{\r\n"); out.write("\t \t html : '<font color=\"red\">收款</font>',\r\n"); out.write("\t \t\t\thandler : function(table) {\r\n"); out.write("\t \t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write("\t \t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write("\t \t\t\t\t\talert(\"请选择需要的网银\");\r\n"); out.write("\t \t\t\t\t\treturn false;\r\n"); out.write("\t \t\t\t\t}\r\n"); out.write("\t \t\t\t\t\r\n"); out.write( "\t \t\t\t\tattachmentParams = attachmentParams + \"&ebank_id=\" +projIDValue[0].id ;\r\n"); out.write("\t\t \t\t\tstartProcess(\"收款流程-1\",attachmentParams);\r\n"); out.write("\t \r\n"); out.write("\t \t\t\t},\r\n"); out.write("\t \t\t\ticonCls :'icon-update'\r\n"); out.write("\t }],\r\n"); out.write("\t isFit:false,\r\n"); out.write("\t columns:[\r\n"); out.write("\t {header:'id',name:'id',hidden:true},\r\n"); out.write( "\t {header:'custdealerid',name:'custdealerid',hidden:true},\r\n"); out.write("\t\t\t {header:'网银编号',name:'ebdataid',queryConfig:{}},\r\n"); out.write("\t\t\t {header:'经销商',name:'custname'},\r\n"); out.write("\t\t\t {header:'付款人',name:'clientname',queryConfig:{}},\r\n"); out.write("\t\t\t {header:'本方银行',name:'ownbank',hidden:true},\r\n"); out.write("\t\t\t {header:'本方账户',name:'ownaccount',hidden:true},\r\n"); out.write("\t\t\t {header:'本方账号',name:'ownaccnumber',hidden:true},\r\n"); out.write("\t\t\t {header:'对方银行',name:'clientbank',hidden:true},\r\n"); out.write("\t\t\t {header:'对方账户',name:'clientaccount',hidden:true},\r\n"); out.write("\t\t\t {header:'对方账号',name:'clientaccnumber',hidden:true},\r\n"); out.write("\t\t\t {header:'到账金额类型',name:'moneytype',hidden:true},\r\n"); out.write( "\t\t\t {header:'到账金额',name:'factmoney',queryConfig:{isNewLine:true}},\r\n"); out.write("\t\t\t //{header:'与系统无关金额',name:'nowithmoney'},\r\n"); out.write("\t\t\t {header:'已核销金额',name:'hiremoney'},\r\n"); out.write("\t\t\t {header:'可核销金额',name:'owmoney'},\r\n"); out.write("\t\t\t {header:'到账时间',name:'factdate'},\r\n"); out.write("\t\t\t {header:'流水号',name:'sn'},\r\n"); out.write("\t\t\t {header:'备注',name:'summary',queryConfig:{}},\r\n"); out.write("\t\t\t //{header:'登记人',name:'creator_name'},\r\n"); out.write("\t\t\t //{header:'登记时间',name:'create_date'}\r\n"); out.write("\t\t ]\r\n"); out.write("\t \t });\r\n"); out.write("\t });\r\n"); out.write(" </script>\r\n"); out.write(" \r\n"); out.write("\r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write(" <div id=\"id_tableContainer\"></div>\r\n"); out.write( "\t <div id=\"ebank\" style=\"display: none;overflow:hidden;\" title=\"选择网银\">\r\n"); out.write("\t \t<div id=\"id_ebank\"></div>\r\n"); out.write(" </div>\r\n"); out.write("\t<script type='text/javascript'>\r\n"); out.write("\t var ebankDom =document.getElementById(\"ebank\");\r\n"); out.write("\t ebankDom.style.height= ((parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight) - 100)+\"px\";\r\n"); out.write("\t</script>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("<div class=\"col-md-3 ro-left-sidebar\">\n"); out.write( " <h4 class=\"ro-sidebar-title\"><a href=\"#\">Quản lí trả mượn tài nguyên</a></h4>\n"); out.write(" <ul class=\"list-group\">\n"); out.write(" "); if (_jspx_meth_s_005furl_005f0(_jspx_page_context)) return; out.write("\n"); out.write(" <li class=\"list-group-item\"><a href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${dailyTrade}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\">Các giao dịch gần đây</a></li>\n"); out.write(" "); if (_jspx_meth_s_005furl_005f1(_jspx_page_context)) return; out.write("\n"); out.write(" <li class=\"list-group-item\"><a href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${getBorrow}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\">Giao dịch mượn sách</a></li>\n"); out.write(" "); if (_jspx_meth_s_005furl_005f2(_jspx_page_context)) return; out.write("\n"); out.write(" <li class=\"list-group-item\"><a href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${findBorrow}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\">Tìm kiếm giao dịch</a></li>\n"); out.write(" </ul>\n"); out.write(" <h4 class=\"ro-sidebar-title\">Quản lí thành viên</h4>\n"); out.write(" <ul class=\"list-group\">\n"); out.write(" "); if (_jspx_meth_s_005furl_005f3(_jspx_page_context)) return; out.write("\n"); out.write(" <li class=\"list-group-item\"><a href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${memberManager}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\">Thông tin chung</a></li>\n"); out.write(" "); if (_jspx_meth_s_005furl_005f4(_jspx_page_context)) return; out.write("\n"); out.write(" <li class=\"list-group-item\"><a href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${findMember}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\">Tìm kiếm thành viên</a></li>\n"); out.write(" "); if (_jspx_meth_s_005furl_005f5(_jspx_page_context)) return; out.write("\n"); out.write(" <li class=\"list-group-item\"><a href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${memberRegister}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null)); out.write("\">Đăng kí thành viên</a></li>\n"); out.write(" </ul>\n"); out.write("</div>\n"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write(" \r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n"); out.write( "<link href=\"http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">\r\n"); out.write("</head>\r\n"); String cmd = request.getParameter("cmd"); String msg = null; if (request.getMethod().equals("POST")) { if (cmd.equals("login")) { int stNum = Integer.parseInt(request.getParameter("stNum")); String pass = request.getParameter("pass"); Register user = new Register(); if (user.check(stNum, pass) == 0) { System.out.println(user.check(stNum, pass)); msg = "회원가입 하세요"; } else { System.out.println(user.check(stNum, pass)); if (user.check(stNum, pass) == 1) { session.setAttribute("id", stNum); response.sendRedirect("admin.jsp"); } else { out.write("\r\n"); out.write("\t\t\t\t\t<script type=\"text/javascript\">\r\n"); out.write("\t\t\t\t\t\talert(\"로그인 실패\")\r\n"); out.write("\t\t\t\t\t\thistory.go(-1);\r\n"); out.write("\t\t\t\t\t</script>\r\n"); out.write("\t\t\t\t"); } } } } out.write("\r\n"); out.write("<body>\r\n"); out.write("\t<div class=\"container\">\r\n"); out.write("\t<h1>로그인</h1><hr/>\r\n"); out.write("\t\t<form method=\"POST\">\r\n"); out.write("\t\t\t<table>\r\n"); out.write("\t\t\t\t<tr>\r\n"); out.write( " <td><span>학번</span></td><td><input type=\"text\" name=\"stNum\"/></td>\r\n"); out.write(" </tr>\r\n"); out.write("\t\t\t\t<tr>\r\n"); out.write( " <td><span>비밀번호</span></td><td><input type=\"password\" name=\"pass\"/></td>\r\n"); out.write(" </tr>\t\r\n"); out.write("\t\t\t</table>\r\n"); out.write( "\t\t\t<button class=\"btn btn-primary\" name=\"cmd\" value=\"login\">로그인</button>\r\n"); out.write("\t\t\t<a href=\"register.jsp\" class=\"btn\">회원가입</a>\r\n"); out.write("\t\t</form>\r\n"); out.write("\t</div>\t\t\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=EUC-KR"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=EUC-KR\">\r\n"); out.write("<title>Welcome to Minjoo's Website!</title>\r\n"); out.write("<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\r\n"); out.write("<script language=\"JavaScript\" src=\"script.js\"></script>\r\n"); out.write("</head>\r\n"); out.write("<body><br><br>\r\n"); out.write( "<div> \r\n"); out.write("<img src=\""); out.print(request.getContextPath()); out.write("/images/basicInfo.JPG\"/></div>\r\n"); out.write("<hr>\r\n"); out.write( "<table border=\"1\" cellpadding=\"18\" cellspacing=\"1\" width=\"80%\" align=\"center\">\r\n"); out.write("<form name=\"regForm\" method=\"post\" action=\"RegisterProc.jsp\">\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">\r\n"); out.write("\t\tID\r\n"); out.write("\t\t</td>\r\n"); out.write("\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_id\" size=\"18\">\r\n"); out.write( "\t\t<input type=\"button\" value=\"ID 중복확인\" onClick=\"idCheck(this.form.mem_id.value)\"></td>\r\n"); out.write("\t</tr>\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">Password\r\n"); out.write("</td>\r\n"); out.write( "\t\t<td width=\"60%\"><input type=\"password\" name=\"mem_passwd\" size=\"18\">\r\n"); out.write("\t</tr>\r\n"); out.write("\t<tr>\r\n"); out.write( "\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">Confirm Password</td>\r\n"); out.write( "\t\t<td width=\"60%\"><input type=\"password\" name=\"mem_repasswd\" size=\"18\">\r\n"); out.write("\t</tr>\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">First Name</td>\r\n"); out.write( "\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_firstname\" size=\"18\"></td>\r\n"); out.write("\t</tr>\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">Last Name</td>\r\n"); out.write( "\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_lastname\" size=\"18\"></td>\r\n"); out.write("\t</tr>\r\n"); out.write("\t<tr>\r\n"); out.write( "\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">EMAIL ADDRESS</td>\r\n"); out.write("\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_email\" size=\"27\">\r\n"); out.write("\t</tr>\r\n"); out.write("\t<tr>\r\n"); out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">PHONE NUMBER</td>\r\n"); out.write( "\t\t<td width=\"30%\"><input type=\"text\" name=\"mem_phone1\" size=\"9\"> - \r\n"); out.write( "\t\t<input type=\"text\" name=\"mem_phone2\" size=\"10\"> - <input type=\"text\" name=\"mem_phone3\" size=\"10\"></td>\r\n"); out.write("\t</tr>\r\n"); out.write("\t\r\n"); out.write("</table>\r\n"); out.write("<br><br>\r\n"); out.write( "<div> \r\n"); out.write("<img src=\""); out.print(request.getContextPath()); out.write("/images/additional.JPG\"/></div>\r\n"); out.write("<hr>\r\n"); out.write( "<table border=\"1\" cellpadding=\"18\" cellspacing=\"1\" width=\"80%\" align=\"center\">\r\n"); out.write("<tr>\r\n"); out.write("\t\t<td width=\"13%\" align=\"center\" bgcolor=\"#EFEFEF\">BIRTHDAY</td>\r\n"); out.write("\t\t<td width=\"60%\"><input type=\"text\" name=\"mem_bday\" size=\"18\">\r\n"); out.write("\t\t(YYYYMMDD)</td>\r\n"); out.write("</tr>\r\n"); out.write("</table>\r\n"); out.write("</form>\r\n"); out.write("<br>\r\n"); out.write("<br>\r\n"); out.write(" \r\n"); out.write("<div align=\"center\">\r\n"); out.write("<img src=\""); out.print(request.getContextPath()); out.write("/images/submit.JPG\"/>\r\n"); out.write("<img src=\""); out.print(request.getContextPath()); out.write("/images/goback.JPG\"/></div>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
private void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.caucho.jsp.PageContextImpl pageContext, javax.servlet.ServletContext application, javax.servlet.http.HttpSession session, TagState _jsp_state) throws Throwable { javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null; com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext; response.setContentType("text/html"); response.setCharacterEncoding("utf-8"); out.write(_jsp_string0, 0, _jsp_string0.length); CP_Classes.EthnicGroup ethnic; synchronized (pageContext.getSession()) { ethnic = (CP_Classes.EthnicGroup) pageContext.getSession().getAttribute("ethnic"); if (ethnic == null) { ethnic = new CP_Classes.EthnicGroup(); pageContext.getSession().setAttribute("ethnic", ethnic); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Login logchk; synchronized (pageContext.getSession()) { logchk = (CP_Classes.Login) pageContext.getSession().getAttribute("logchk"); if (logchk == null) { logchk = new CP_Classes.Login(); pageContext.getSession().setAttribute("logchk", logchk); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Translate trans; synchronized (pageContext.getSession()) { trans = (CP_Classes.Translate) pageContext.getSession().getAttribute("trans"); if (trans == null) { trans = new CP_Classes.Translate(); pageContext.getSession().setAttribute("trans", trans); } } out.write(_jsp_string1, 0, _jsp_string1.length); // added to check whether organisation is a consulting company // Mark Oei 09 Mar 2010 out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Organization Org; synchronized (pageContext.getSession()) { Org = (CP_Classes.Organization) pageContext.getSession().getAttribute("Org"); if (Org == null) { Org = new CP_Classes.Organization(); pageContext.getSession().setAttribute("Org", Org); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Create_Edit_Survey CE_Survey; synchronized (pageContext.getSession()) { CE_Survey = (CP_Classes.Create_Edit_Survey) pageContext.getSession().getAttribute("CE_Survey"); if (CE_Survey == null) { CE_Survey = new CP_Classes.Create_Edit_Survey(); pageContext.getSession().setAttribute("CE_Survey", CE_Survey); } } out.write(_jsp_string2, 0, _jsp_string2.length); // by lydia Date 05/09/2008 Fix jsp file to support Thai language out.write(_jsp_string3, 0, _jsp_string3.length); out.print((trans.tslt("Delete Ethnic Group"))); out.write(_jsp_string4, 0, _jsp_string4.length); out.print((trans.tslt("Edit Ethnic Group"))); out.write(_jsp_string5, 0, _jsp_string5.length); out.print((trans.tslt("Please enter Ethnic Group"))); out.write(_jsp_string6, 0, _jsp_string6.length); out.print((trans.tslt("Add Ethnic Group"))); out.write(_jsp_string7, 0, _jsp_string7.length); out.print((trans.tslt("Please enter Ethnic Group"))); out.write(_jsp_string8, 0, _jsp_string8.length); String username = (String) session.getAttribute("username"); if (!logchk.isUsable(username)) { out.write(_jsp_string9, 0, _jsp_string9.length); } else { if (request.getParameter("proceed") != null) { int PKOrg = new Integer(request.getParameter("proceed")).intValue(); logchk.setOrg(PKOrg); } if (request.getParameter("Delete") != null) { int Ethnic_ID = new Integer(request.getParameter("ethnic_ID")).intValue(); boolean bIsDeleted = ethnic.deleteRecord(Ethnic_ID, logchk.getPKUser()); if (bIsDeleted) { out.write(_jsp_string10, 0, _jsp_string10.length); } } if (request.getParameter("Edit") != null) { int Ethnic_ID = new Integer(request.getParameter("ethnic_ID")).intValue(); String txtEthnic = request.getParameter("txtEthnic"); boolean bIsEdited = ethnic.editRecord(Ethnic_ID, txtEthnic, logchk.getOrg(), logchk.getPKUser()); if (bIsEdited) { out.write(_jsp_string11, 0, _jsp_string11.length); } else { out.write(_jsp_string12, 0, _jsp_string12.length); } } if (request.getParameter("Add") != null) { String txtEthnic = request.getParameter("txtEthnic"); boolean bExist = ethnic.existRecord(txtEthnic, logchk.getOrg()); if (!bExist) { boolean bIsAdded = ethnic.addRecord(txtEthnic, logchk.getOrg(), logchk.getPKUser()); if (bIsAdded) { out.write(_jsp_string13, 0, _jsp_string13.length); } } else { out.write(_jsp_string14, 0, _jsp_string14.length); } } out.write(_jsp_string15, 0, _jsp_string15.length); out.print((trans.tslt("Ethnic Group"))); out.write(_jsp_string16, 0, _jsp_string16.length); out.print((trans.tslt("To Add, click on the Add button"))); out.write(_jsp_string17, 0, _jsp_string17.length); out.print( (trans.tslt("To Edit, click on the relevant radio button and click on the Edit button"))); out.write(_jsp_string17, 0, _jsp_string17.length); out.print( (trans.tslt( "To Delete, click on the relevant radio button and click on the Delete button"))); out.write(_jsp_string18, 0, _jsp_string18.length); out.print((trans.tslt("Organisation"))); out.write(_jsp_string19, 0, _jsp_string19.length); // Added to check whether organisation is also a consulting company // if yes, will display a dropdown list of organisation managed by this company // else, it will display the current organisation only // Mark Oei 09 Mar 2010 String[] UserDetail = new String[14]; UserDetail = CE_Survey.getUserDetail(logchk.getPKUser()); boolean isConsulting = true; isConsulting = Org.isConsulting(UserDetail[10]); // check whether organisation is a consulting company if (isConsulting) { Vector vOrg = logchk.getOrgList(logchk.getCompany()); for (int i = 0; i < vOrg.size(); i++) { votblOrganization vo = (votblOrganization) vOrg.elementAt(i); int PKOrg = vo.getPKOrganization(); String OrgName = vo.getOrganizationName(); if (logchk.getOrg() == PKOrg) { out.write(_jsp_string20, 0, _jsp_string20.length); out.print((PKOrg)); out.write(_jsp_string21, 0, _jsp_string21.length); out.print((OrgName)); out.write(_jsp_string22, 0, _jsp_string22.length); } else { out.write(_jsp_string20, 0, _jsp_string20.length); out.print((PKOrg)); out.write('>'); out.print((OrgName)); out.write(_jsp_string22, 0, _jsp_string22.length); } } } else { out.write(_jsp_string23, 0, _jsp_string23.length); out.print((logchk.getSelfOrg())); out.write('>'); out.print((UserDetail[10])); out.write(_jsp_string24, 0, _jsp_string24.length); } // End of isConsulting out.write(_jsp_string25, 0, _jsp_string25.length); out.print((trans.tslt("Ethnic Group"))); out.write(_jsp_string26, 0, _jsp_string26.length); /** ****************** Edited by James 17 Oct 2007 ********************** */ Vector v = ethnic.getAllEthnics(logchk.getOrg()); for (int i = 0; i < v.size(); i++) { voEthnic vo = (voEthnic) v.elementAt(i); int ethnic_ID = vo.getPKEthnic(); String ethnic_Desc = vo.getEthnicDesc(); out.write(_jsp_string27, 0, _jsp_string27.length); out.print((ethnic_ID)); out.write(_jsp_string28, 0, _jsp_string28.length); out.print((ethnic_Desc)); out.write(_jsp_string29, 0, _jsp_string29.length); out.print((ethnic_Desc)); out.write(_jsp_string30, 0, _jsp_string30.length); } out.write(_jsp_string31, 0, _jsp_string31.length); out.print((trans.tslt("Ethnic Group"))); out.write(_jsp_string32, 0, _jsp_string32.length); out.print((trans.tslt("Add"))); out.write(_jsp_string33, 0, _jsp_string33.length); out.print((trans.tslt("Edit"))); out.write(_jsp_string34, 0, _jsp_string34.length); out.print((trans.tslt("Delete"))); out.write(_jsp_string35, 0, _jsp_string35.length); } out.write(_jsp_string36, 0, _jsp_string36.length); // by lydia Date 05/09/2008 Fix jsp file to support Thai language out.write(_jsp_string37, 0, _jsp_string37.length); Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); out.write(_jsp_string38, 0, _jsp_string38.length); // Denise 05/01/2010 update new email address out.write(_jsp_string39, 0, _jsp_string39.length); out.print((year)); out.write(_jsp_string40, 0, _jsp_string40.length); }
private void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.caucho.jsp.PageContextImpl pageContext, javax.servlet.ServletContext application, javax.servlet.http.HttpSession session, TagState _jsp_state) throws Throwable { javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null; com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext; response.setContentType("text/html"); response.setCharacterEncoding("utf-8"); out.write(_jsp_string0, 0, _jsp_string0.length); CP_Classes.Login logchk; synchronized (pageContext.getSession()) { logchk = (CP_Classes.Login) pageContext.getSession().getAttribute("logchk"); if (logchk == null) { logchk = new CP_Classes.Login(); pageContext.getSession().setAttribute("logchk", logchk); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Create_Edit_Survey CE_Survey; synchronized (pageContext.getSession()) { CE_Survey = (CP_Classes.Create_Edit_Survey) pageContext.getSession().getAttribute("CE_Survey"); if (CE_Survey == null) { CE_Survey = new CP_Classes.Create_Edit_Survey(); pageContext.getSession().setAttribute("CE_Survey", CE_Survey); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.Translate trans; synchronized (pageContext.getSession()) { trans = (CP_Classes.Translate) pageContext.getSession().getAttribute("trans"); if (trans == null) { trans = new CP_Classes.Translate(); pageContext.getSession().setAttribute("trans", trans); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.RatingTask RT; synchronized (pageContext.getSession()) { RT = (CP_Classes.RatingTask) pageContext.getSession().getAttribute("RT"); if (RT == null) { RT = new CP_Classes.RatingTask(); pageContext.getSession().setAttribute("RT", RT); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.RatingScale RS; synchronized (pageContext.getSession()) { RS = (CP_Classes.RatingScale) pageContext.getSession().getAttribute("RS"); if (RS == null) { RS = new CP_Classes.RatingScale(); pageContext.getSession().setAttribute("RS", RS); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.Purpose PRP; synchronized (pageContext.getSession()) { PRP = (CP_Classes.Purpose) pageContext.getSession().getAttribute("PRP"); if (PRP == null) { PRP = new CP_Classes.Purpose(); pageContext.getSession().setAttribute("PRP", PRP); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.SurveyRating SVR; synchronized (pageContext.getSession()) { SVR = (CP_Classes.SurveyRating) pageContext.getSession().getAttribute("SVR"); if (SVR == null) { SVR = new CP_Classes.SurveyRating(); pageContext.getSession().setAttribute("SVR", SVR); } } out.write(_jsp_string3, 0, _jsp_string3.length); // by lydia Date 05/09/2008 Fix jsp file to support Thai language out.write(_jsp_string4, 0, _jsp_string4.length); out.print((trans.tslt("Please choose a rating task"))); out.write(_jsp_string5, 0, _jsp_string5.length); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("expires", 0); String username = (String) session.getAttribute("username"); if (!logchk.isUsable(username)) { out.write(_jsp_string6, 0, _jsp_string6.length); } else { if (request.getParameter("purpose") != null) { int var1 = new Integer(request.getParameter("purpose")).intValue(); CE_Survey.setPurpose(var1); System.out.println("Purpose ID" + var1); } else { // Edited by Eric Lu 22/5/08 // Resets purpose if first time accessing this page CE_Survey.setPurpose(0); } if (request.getParameter("add") != null) { String rating = ""; String scale = ""; boolean RequiredChosen = false; String[] chkSelect = new String[10]; String[] ScaleDesc = new String[10]; String[] radioSelect = new String[10]; int SurveyID = CE_Survey.getSurvey_ID(); ScaleDesc = request.getParameterValues("selScaleDesc"); chkSelect = request.getParameterValues("chkRat"); radioSelect = request.getParameterValues("radioRat"); int count = 0; // count shifted, Mark Oei 16 April 2010 /*------------------------------------------------- for checkbox ------------------------------------------------*/ // Changed by Ha 28/05/09 to pop out message when action is done successfully if (chkSelect != null) { boolean added = false; count = 0; // change to declare variable outside if statement, Mark Oei 16 April 2010 for (int i = 0; i < chkSelect.length; i++) { rating = chkSelect[i]; if (rating != null) { String RatName = " "; RatName = RT.getRatingTask(Integer.parseInt(rating)); ScaleDesc = new String[10]; ScaleDesc = request.getParameterValues("selScaleDesc" + rating); for (int j = 0; j < ScaleDesc.length; j++) { scale = ScaleDesc[j]; CE_Survey.editPurpose(SurveyID, CE_Survey.getPurpose()); added = CE_Survey.addRating(SurveyID, scale, rating, RatName); if (added) count++; } } } // Added to insert default values into database when rating tasks are added // Mark Oei 16 April 2010 int lLimit = 0; int uLimit = 0; int scaleRange = CE_Survey.getRatScale(); int taskCount = (Integer) session.getAttribute("taskCount") + count; if ((taskCount == 1 && Integer.parseInt(rating) == 1)) { lLimit = scaleRange / 2 - 1; uLimit = scaleRange / 2 + 1; } else { lLimit = -1; uLimit = 1; } boolean isSuccessful = CE_Survey.setMinPassScore(SurveyID, lLimit, uLimit); if (isSuccessful) { System.out.println( "Default Limits " + lLimit + ", " + uLimit + " has been inserted successfully"); } if (count == chkSelect.length) { out.write(_jsp_string7, 0, _jsp_string7.length); } } /*-------------------------------------------------------- for radiobox ----------------------------------------------*/ rating = ""; if (radioSelect != null) { for (int i = 0; i < radioSelect.length; i++) { rating = radioSelect[i]; if (rating != null) { String RatName = RT.getRatingTask(Integer.parseInt(rating)); ScaleDesc = new String[10]; ScaleDesc = request.getParameterValues("selScaleDesc" + rating); for (int j = 0; j < ScaleDesc.length; j++) { scale = ScaleDesc[j]; CE_Survey.addRating(SurveyID, scale, rating, RatName); } } } } out.write(_jsp_string8, 0, _jsp_string8.length); } out.write(_jsp_string9, 0, _jsp_string9.length); out.print((trans.tslt("To Select Rating Task, checked on the provided boxes under Select"))); out.write(_jsp_string10, 0, _jsp_string10.length); out.print((trans.tslt("Purpose of Survey"))); out.write(_jsp_string11, 0, _jsp_string11.length); out.print((trans.tslt("Choose one"))); out.write(_jsp_string12, 0, _jsp_string12.length); Vector v = PRP.getAllPurpose(); for (int i = 0; i < v.size(); i++) { votblPurpose vo = (votblPurpose) v.elementAt(i); int PurposeID = vo.getPurposeID(); String PurposeName = vo.getPurposeName(); if (CE_Survey.getPurpose() == PurposeID) { out.write(_jsp_string13, 0, _jsp_string13.length); out.print((PurposeID)); out.write(_jsp_string14, 0, _jsp_string14.length); out.print((PurposeName)); out.write(_jsp_string12, 0, _jsp_string12.length); } else { out.write(_jsp_string15, 0, _jsp_string15.length); out.print((PurposeID)); out.write('>'); out.print((PurposeName)); out.write(_jsp_string12, 0, _jsp_string12.length); } } out.write(_jsp_string16, 0, _jsp_string16.length); out.print((trans.tslt("Scale Range Chosen"))); out.write(_jsp_string17, 0, _jsp_string17.length); out.print((CE_Survey.getRatScale())); out.write(_jsp_string18, 0, _jsp_string18.length); out.print((trans.tslt("Rating Task"))); out.write(_jsp_string19, 0, _jsp_string19.length); out.print((trans.tslt("Select"))); out.write(_jsp_string20, 0, _jsp_string20.length); out.print((trans.tslt("Rating Task"))); out.write(_jsp_string21, 0, _jsp_string21.length); out.print((trans.tslt("Scale Description"))); out.write(_jsp_string22, 0, _jsp_string22.length); String query2 = ""; boolean dunAddPR = false; int iRatingTaskID = SVR.getRatingTaskID(CE_Survey.getSurvey_ID()); if (iRatingTaskID != 0) dunAddPR = true; boolean anyRecord = false; boolean anyscale = false; Vector vRT = RT.getRatingTask(CE_Survey.getSurvey_ID(), dunAddPR, CE_Survey.getPurpose()); for (int i = 0; i < vRT.size(); i++) { anyRecord = true; votblRatingTask vo = (votblRatingTask) vRT.elementAt(i); int RatID = vo.getRatingTaskID(); String RatName = vo.getRatingTask(); String ScaleType = vo.getScaleType(); out.write(_jsp_string23, 0, _jsp_string23.length); if (CE_Survey.getPurpose() != 9) { out.write(_jsp_string24, 0, _jsp_string24.length); out.print((RatID)); out.write(_jsp_string25, 0, _jsp_string25.length); } else { if (RatID != 2 && RatID != 3) { out.write(_jsp_string26, 0, _jsp_string26.length); out.print((RatID)); out.write(_jsp_string27, 0, _jsp_string27.length); } else { out.write(_jsp_string28, 0, _jsp_string28.length); out.print((RatID)); out.write(_jsp_string29, 0, _jsp_string29.length); } } out.write(_jsp_string30, 0, _jsp_string30.length); out.print((RatName)); out.write(_jsp_string31, 0, _jsp_string31.length); out.print(("selScaleDesc" + RatID)); out.write(_jsp_string32, 0, _jsp_string32.length); Vector vScale = RS.getRatingScale(CE_Survey.getRatScale(), ScaleType, CE_Survey.get_survOrg()); for (int j = 0; j < vScale.size(); j++) { votblScale voS = (votblScale) vScale.elementAt(j); anyscale = true; int ScaleID = voS.getScaleID(); String ScaleDesc = voS.getScaleDescription(); out.write(_jsp_string33, 0, _jsp_string33.length); out.print((ScaleID)); out.write('>'); out.print((ScaleDesc)); out.write(_jsp_string34, 0, _jsp_string34.length); } out.write(_jsp_string35, 0, _jsp_string35.length); } if (anyRecord == false && CE_Survey.getPurpose() != 0) { out.write(_jsp_string36, 0, _jsp_string36.length); out.print( (trans.tslt("All the rating tasks under this purpose of survey have been added"))); out.write(_jsp_string37, 0, _jsp_string37.length); } out.write(_jsp_string38, 0, _jsp_string38.length); if (anyRecord && anyscale) { out.write(_jsp_string39, 0, _jsp_string39.length); out.print((trans.tslt("Add"))); out.write(_jsp_string40, 0, _jsp_string40.length); } out.write(_jsp_string41, 0, _jsp_string41.length); out.print((trans.tslt("Close"))); out.write(_jsp_string42, 0, _jsp_string42.length); } out.write(_jsp_string43, 0, _jsp_string43.length); }
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\"> </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 \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); } }
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 java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=ISO-8859-1"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\r\n"); out.write("<title>Insert title here</title>\r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write('\r'); out.write('\n'); out.println(getInfo()); out.write("\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final 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 java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("<!DOCTYPE html>\n"); out.write("<html>\n"); out.write(" <head>\n"); out.write( " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write(" <title>File upload</title>\n"); out.write(" </head>\n"); out.write(" <body>\n"); out.write(" <center>\n"); out.write(" <h3>File Upload</h3>\n"); out.write(" <form>\n"); out.write(" <input type = \"file\" name = \"file\" size = \"50\"/>\n"); out.write(" <br/>\n"); out.write(" <input type = \"button\" value = \"submit\"/>\n"); out.write(" </form>\n"); out.write(" \n"); out.write(" </center>\n"); out.write(" </body>\n"); out.write("</html>\n"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(true); com.caucho.server.webapp.Application _jsp_application = _caucho_getApplication(); javax.servlet.ServletContext application = _jsp_application; com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext( this, _jsp_application, request, response, "/error.jsp", session, 8192, true); javax.servlet.jsp.JspWriter out = pageContext.getOut(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; response.setContentType("text/html"); try { out.write(_jsp_string0, 0, _jsp_string0.length); out.print(((String) session.getAttribute("user"))); out.write(_jsp_string1, 0, _jsp_string1.length); out.print(((String) session.getAttribute("db"))); out.write(_jsp_string2, 0, _jsp_string2.length); // get all tables in the database ConDB dbcon = (ConDB) session.getAttribute("dbcon"); Connection conn = dbcon.get(); int total_rec = 0; int total_table = 0; String sql = "show tables"; PreparedStatement pstm = null; ResultSet rs = null; try { pstm = conn.prepareStatement(sql); rs = pstm.executeQuery(); } catch (SQLException e) { out.println(e); } // count the records of each table while (rs.next()) { String curr_tb = rs.getString(1); int curr_rec = 0; PreparedStatement pstm_rec = null; ResultSet rs_rec = null; sql = "select count(*) from " + curr_tb; try { pstm_rec = conn.prepareStatement(sql); rs_rec = pstm_rec.executeQuery(); } catch (SQLException e) { out.println(e); } try { if (rs_rec.next()) { curr_rec = rs_rec.getInt(1); total_rec += curr_rec; } } catch (SQLException e) { out.println(e.getErrorCode() + "---" + e.getSQLState()); } total_table++; out.write(_jsp_string3, 0, _jsp_string3.length); out.print((total_table & 1)); out.write(_jsp_string4, 0, _jsp_string4.length); out.print((curr_tb)); out.write(_jsp_string5, 0, _jsp_string5.length); out.print((curr_tb)); out.write(_jsp_string6, 0, _jsp_string6.length); out.print((curr_tb)); out.write(_jsp_string7, 0, _jsp_string7.length); out.print((curr_tb)); out.write(_jsp_string8, 0, _jsp_string8.length); out.print((curr_tb)); out.write(_jsp_string9, 0, _jsp_string9.length); out.print((curr_rec)); out.write(_jsp_string10, 0, _jsp_string10.length); } out.write(_jsp_string11, 0, _jsp_string11.length); out.print((total_table)); out.write(_jsp_string12, 0, _jsp_string12.length); out.print((total_rec)); out.write(_jsp_string13, 0, _jsp_string13.length); out.print((session.getAttribute("db"))); out.write(_jsp_string14, 0, _jsp_string14.length); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { com.caucho.jsp.QJspFactory.freePageContext(pageContext); } }
public void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(true); com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); javax.servlet.ServletContext application = _jsp_application; com.caucho.jsp.PageContextImpl pageContext = _jsp_application .getJspApplicationContext() .allocatePageContext( this, _jsp_application, request, response, null, session, 8192, true, false); javax.servlet.jsp.PageContext _jsp_parentContext = pageContext; javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; response.setContentType("text/html"); try { response.setHeader("Pragma", "no-cache"); // HTTP 1.0 response.setDateHeader("Expires", 0); response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1 String scmid = ""; String scmnm = ""; String usertype = ""; String usergroup = ""; // String scmsubids = ""; String _adminid = ""; String _adminname = ""; String _admingroup = ""; String _apessid = ""; String _apessname = ""; try { scmid = (String) session.getAttribute("scmid"); _adminid = (String) session.getAttribute("adminid"); if ((scmid == null || scmid.length() == 0 || scmid.equals("null")) && (_adminid == null || _adminid.length() == 0 || _adminid.equals("null"))) { response.sendRedirect("/login_first.html"); return; } _adminname = (String) session.getAttribute("adminname"); _apessid = (String) session.getAttribute("apessid"); _apessname = (String) session.getAttribute("apessname"); scmnm = (String) session.getAttribute("scmnm"); usertype = (String) session.getAttribute("usertype"); if (usertype == null) usertype = ""; usergroup = (String) session.getAttribute("usergroup"); if (usergroup == null) usergroup = ""; // scmsubids = (String) session.getAttribute("scmsubids"); // session.setMaxInactiveInterval(60*60); } catch (Exception e) { response.sendRedirect("/login_first.html"); return; } out.write('\n'); String id = request.getParameter("id"); out.write(_jsp_string0, 0, _jsp_string0.length); out.print((id)); out.write(_jsp_string1, 0, _jsp_string1.length); out.print((id)); out.write(_jsp_string2, 0, _jsp_string2.length); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { _jsp_application.getJspApplicationContext().freePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); org.apache.jasper.runtime.JspRuntimeLibrary.include( request, response, "sessionBoth.jsp" + (("sessionBoth.jsp").indexOf('?') > 0 ? '&' : '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode( "formName", request.getCharacterEncoding()) + "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode( "editItemDetails.jsp", request.getCharacterEncoding()), out, false); out.write(" \n"); out.write("\n"); out.write("\n"); int site_id = 0; DecimalFormat df = new DecimalFormat("###,###.00"); try { site_id = (Integer) session.getAttribute("GlobalSiteId"); System.out.print("In : " + site_id); } catch (Exception e) { e.printStackTrace(); } String i_code = ""; String ig_code = ""; String i_name = ""; String i_mrp = ""; String i_mrp2 = ""; String i_rate = ""; String i_rate2 = ""; String flag = ""; String paramList = ""; String changeParamList = ""; String i_tickflag = ""; String ibarcode = request.getParameter("ibarcode"); i_code = request.getParameter("icodeStartWith"); ig_code = request.getParameter("igcodeStartWith"); i_name = request.getParameter("inameStartWith"); i_mrp = request.getParameter("imrpStartWith"); i_rate = request.getParameter("irateStartWith"); i_mrp2 = request.getParameter("imrp2StartWith"); i_rate2 = request.getParameter("irate2StartWith"); flag = request.getParameter("flag"); i_tickflag = request.getParameter("i_tickflg"); item.ManageItem mi; mi = new item.ManageItem("jdbc/js"); mi.listItem( i_code, ig_code, i_name, i_mrp, i_mrp2, i_rate, i_rate2, i_tickflag, ibarcode, site_id); out.write("\n"); out.write(" <style>\n"); out.write(" #id #tr:hover td{\n"); out.write(" \t\tbackground-color: white;\n"); out.write(" \t\tcursor: pointer;\n"); out.write(" }\n"); out.write(" #id td{\n"); out.write(" \t\tpadding: 3px 0px 3px 5px;\n"); out.write(" }\n"); out.write(" </style>\n"); out.write( " <table border=\"1\" name=\"t\" id=\"id\" class=\"item3\" cellspacing = 0 cellpadding = 0 style=\"border-collapse: collapse; width: 96%;background-color: #ECFB99;\" bordercolor=black>\n"); out.write(" \n"); out.write(" \t <thead>\n"); out.write(" \t\t \t<tr align=\"left\">\n"); out.write("\t\t\t\t<td><b>Item Code</b></td>\n"); out.write("\t\t\t\t<td><b>Change Quantity</b></td>\n"); out.write("\t\t\t\t<td><b>Item Group</b></td>\n"); out.write("\t\t\t\t<td><b>Item Name</b></td>\n"); out.write("\t\t\t\t<td><b>Item Barcode</b></td>\n"); out.write("\t\t\t\t<td><b>Item Weight</b></td>\n"); out.write("\t\t\t\t<td><b>Item MRP</b></td>\n"); out.write("\t\t\t\t<td><b>Item Rate</b></td>\n"); out.write("\t\t\t\t<td><b>Deal Flag</b></td>\n"); out.write("\t\t\t\t<td><b>Ticker Flag</b></td>\n"); out.write("\t\t\t\t<td><b>Is bachka</b></td>\n"); out.write("\t\t\t\t<td><b>Mix Item</b></td>\n"); out.write("\t\t\t\t<td><b>Item History</b></td>\n"); out.write("\t\t\t</tr>\n"); out.write(" \t</thead>\t\n"); out.write("\t\t<tbody>\n"); while (mi.rs.next()) { if (flag.equals("1")) { paramList = "EditItemForm.jsp?icode=" + mi.rs.getString(1) + "&igcode=" + mi.rs.getString(7) + "&iname=" + mi.rs.getString(3) + "&iweight=" + mi.rs.getString(4) + "&imrp=" + mi.rs.getString(5) + "&irate=" + mi.rs.getString(6) + "&id_type=" + mi.rs.getString(10) + "&id_flag=" + mi.rs.getString(9) + "&id_qty=" + mi.rs.getString(11) + "&id_amt=" + mi.rs.getString(12) + "&i_comm=" + mi.rs.getString(13) + "&i_tickflag=" + mi.rs.getString(14) + "&ibarcode=" + mi.rs.getString(15) + "&box_qty=" + mi.rs.getInt(16) + "&is_bachka=" + mi.rs.getString("is_bachka") + "&is_mixture=" + mi.rs.getString("mix_item") + "&groupCodeValue=" + mi.rs.getString("item_group_code"); } else { paramList = "ItemDetails.jsp?icode=" + mi.rs.getString(1) + "&igcode=" + mi.rs.getString(7) + "&iname=" + mi.rs.getString(3) + "&iweight=" + mi.rs.getString(4) + "&imrp=" + mi.rs.getString(5); } changeParamList = "ChangeQuantityItemForm.jsp?icode=" + mi.rs.getString(1) + "&igcode=" + mi.rs.getString(7) + "&iname=" + mi.rs.getString(3) + "&iweight=" + mi.rs.getString(4) + "&imrp=" + mi.rs.getString(5) + "&irate=" + mi.rs.getString(6) + "&id_type=" + mi.rs.getString(10) + "&id_flag=" + mi.rs.getString(9) + "&id_qty=" + mi.rs.getString(11) + "&id_amt=" + mi.rs.getString(12) + "&i_comm=" + mi.rs.getString(13) + "&i_tickflag=" + mi.rs.getString(14) + "&ibarcode=" + mi.rs.getString(15); out.write("\n"); out.write("\t\t\t <tr id=\"tr\" align=\"left\">\t\t\n"); out.write("\t\t\t\t<td align=\"left\"><a href=\""); out.print(paramList); out.write('"'); out.write('>'); out.print(mi.rs.getString(1)); out.write("</a></td>\n"); out.write(" \t \t\t<td><a href=\""); out.print(changeParamList); out.write("\">Change Quantity</a></td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(7)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(3)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(15)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(4)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(df.format(mi.rs.getFloat(5))); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(df.format(mi.rs.getFloat(6))); out.write("</td>\n"); out.write(" \t \t\t"); out.write("\n"); out.write(" \t \t\t<td>\n"); String msg1 = mi.rs.getString(9); if (msg1.equals("N")) { out.println("No"); } else { out.println("Yes"); } out.write(" \n"); out.write(" \t\t</td><td>\n"); String msg2 = mi.rs.getString(14); if (msg2.equals("N")) { out.println("No"); } else { out.println("Yes"); } out.write(" \n"); out.write(" \t</td>\n"); out.write(" \t<td>"); out.print(mi.rs.getString("is_bachka")); out.write("</td>\n"); out.write(" \t<td>"); out.print(mi.rs.getString("mix_item")); out.write("</td><td> \n"); String msg = mi.rs.getString(8); if (!msg.equals("NH")) { out.write(" \n"); out.write(" \t <a href=\"ItemHistoryForm.jsp?icode="); out.print(mi.rs.getString(1)); out.write("\">history\n"); } out.write("\t\t\t\n"); out.write("\t\t\t\t\n"); out.write(" \t \n"); out.write("\t\t\t </td></tr>\n"); out.write("\t\t\t\n"); } mi.closeAll(); out.write("\n"); out.write("\t\t\t <style type=\"text/css\">\n"); out.write("\t\t\t a:link {color: blue}\n"); out.write("\t\t\t a:hover {background: blue;color: white}\n"); out.write("\t\t\t a:active {background: blue;color: white}\n"); out.write("\t\t\t </style>\n"); out.write("\n"); out.write("\t</tbody>\n"); out.write("</table>\n"); out.write("\t\t\t\n"); out.write(" \t"); } 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; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("<!DOCTYPE html>\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n"); out.write("<title>検定管理システム</title>\r\n"); out.write("<link href=\""); out.print(request.getContextPath()); out.write("/view/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n"); out.write("<script src=\""); out.print(request.getContextPath()); out.write("/view/js/jquery-1.11.3.min.js\"></script>\r\n"); out.write("<script type=\"text/javascript\">\r\n"); out.write("$(function(){\r\n"); out.write(" $('a,a img,button').css({\r\n"); out.write(" opacity: 1.0,\r\n"); out.write(" filter: \"alpha(opacity=100)\"\r\n"); out.write(" }).hover(function(){\r\n"); out.write(" $(this).fadeTo(200,0.6);\r\n"); out.write(" },function(){\r\n"); out.write(" $(this).fadeTo(200,1.0);\r\n"); out.write(" })\r\n"); out.write("});\r\n"); out.write("</script>\r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write("\r\n"); out.write("\r\n"); HttpSession examationsearchsession = request.getSession(false); ExamationInfoDto examationinfo = (ExamationInfoDto) examationsearchsession.getAttribute("examationinfo"); int i = Integer.parseInt(request.getParameter("forid")); out.write("\r\n"); out.write("\r\n"); out.write( "<header><h1><a href=\"/testmanagement/examationlist\">検定管理システム</a></h1></header>\r\n"); out.write("\r\n"); out.write("<div class=\"main\">\r\n"); out.write("\r\n"); out.write("\t<div class=\"info\">\r\n"); out.write("\t<h2>受験検定追加</h2>\r\n"); out.write("\t<p>受験検定の合否を選択してください。</p>\r\n"); out.write("\r\n"); out.write("\t<table class=\"list\">\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"testadd\">実施日</td><td>"); out.print(examationinfo.getTestDay().get(i)); out.write("</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"testadd\">主催</td><td>"); out.print(examationinfo.getSponsor().get(i)); out.write("</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"testadd\">検定名</td><td>"); out.print(examationinfo.getTestName().get(i)); out.write("</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t</table>\r\n"); out.write("\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write("/view/examationaddchack.jsp\">\r\n"); out.write("\t\t<select name=\"gouhi\" class=\"drop\">\r\n"); out.write("\t\t<optgroup label=\"合否\">\r\n"); out.write("\t\t<option value=\"1\">合格</option>\r\n"); out.write("\t\t<option value=\"0\">不合格</option>\r\n"); out.write("\t\t</optgroup>\r\n"); out.write("\t\t</select>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t<table class=\"button\">\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"button\">\r\n"); out.write("\t\t\t\t<button class=\"button1\" onClick=\"history.back()\">戻る</button>\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t\t<td class=\"button\">\r\n"); out.write("\r\n"); out.write("\t\t\t\t<button class=\"button1\" type=\"submit\" name=\"i\" value=\""); out.print(i); out.write("\">確認</button>\r\n"); out.write("\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t</table>\r\n"); out.write("\t</form>\r\n"); out.write("\t</div>\r\n"); out.write("\r\n"); out.write("\t<div class=\"side\">\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write("/logout\"><button class=\"menu\" type=\"submit\">ログアウト</button></form>\r\n"); out.write("\r\n"); out.write("\t<p><hr></p>\r\n"); out.write("\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write( "/examationlist\"><button class=\"menu\" type=\"submit\">受験検定一覧</button></form>\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write( "/view/examationadd1.jsp\" method=\"POST\"><button class=\"menu\" type=\"submit\">受験検定の追加</button></form>\r\n"); out.write("\t</div>\r\n"); out.write("\r\n"); out.write("</div>\r\n"); out.write("\r\n"); out.write("<footer>© 2016 WhiteCo.</footer>\r\n"); out.write("\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n\r\n"); final DisplayState theDisplayState = (DisplayState) request.getAttribute(MasterServlet.STATE); final Frame frame = (Frame) request.getAttribute(AbstractChip.FRAME_KEY); /* //to be definitive NOT serializable InputStream noser = (InputStream)session.getAttribute( "NOT_SERIALIZABLE"); if( noser==null ) { session.setAttribute( "NOT_SERIALIZABLE", new ByteArrayInputStream( new byte[0] )); } */ out.write('\r'); out.write('\n'); 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); } }