Beispiel #1
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
    if (exception != null) {
      response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
    }
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

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

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("\r\n");
      out.write("<title>Error Page</title>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body bgcolor=\"blue\">\r\n");
      out.write("\t<font size=\"16\" color=\"white\">Your page generated an error:\"<br />\r\n");
      out.write("\t\tException:<br /></font>\r\n");
      out.write("\t");
      out.print(exception.toString());
      out.write("\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof 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 log(t.getMessage(), t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
 private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
     throws java.lang.Throwable {
   javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
   javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
   javax.servlet.http.HttpServletRequest request =
       (javax.servlet.http.HttpServletRequest) _jspx_page_context.getRequest();
   javax.servlet.http.HttpServletResponse response =
       (javax.servlet.http.HttpServletResponse) _jspx_page_context.getResponse();
   //  c:if
   org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 =
       (org.apache.taglibs.standard.tag.rt.core.IfTag)
           _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(
               org.apache.taglibs.standard.tag.rt.core.IfTag.class);
   _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
   _jspx_th_c_005fif_005f0.setParent(null);
   // /WEB-INF/jsps/solutions/workflow/forms/project/proj_credit/proj_credit02.jsp(80,20) name =
   // test type = boolean reqTime = true required = true fragment = false deferredValue = false
   // expectedTypeName = null deferredMethod = false methodSignature = null
   _jspx_th_c_005fif_005f0.setTest(
       ((java.lang.Boolean)
               org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                   "${requestScope['proj_info.cust_type']=='法人'}",
                   java.lang.Boolean.class,
                   (javax.servlet.jsp.PageContext) _jspx_page_context,
                   null,
                   false))
           .booleanValue());
   int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
   if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
     do {
       out.write("\r\n");
       out.write("                      ");
       org.apache.jasper.runtime.JspRuntimeLibrary.include(
           request, response, "proj_credit_reportxls.jsp", out, false);
       out.write("\r\n");
       out.write("                    ");
       int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
       if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
     } while (true);
   }
   if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
     _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
     return true;
   }
   _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
   return false;
 }
Beispiel #3
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/web/page/user/login.jsp", out, true);
      out.write(' ');
    } catch (Throwable t) {
      if (!(t instanceof 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 log(t.getMessage(), t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #4
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

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

      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/resource/jsp/resource_js.jsp", out, false);
      out.write("\r\n");
      out.write("<html lang=\"en\">\r\n");
      out.write("    <head>\r\n");
      out.write("        <meta charset=\"utf-8\">\r\n");
      out.write(
          "        <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,user-scalable=0\">\r\n");
      out.write("        <title>项目详情</title>\r\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"../css/weui.css\">\r\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"../css/base.css\">\r\n");
      out.write(
          "        <link rel=\"stylesheet\" type=\"text/css\" href=\"../css/details-jie.css\">\r\n");
      out.write(
          "        <script src=\"http://res.wx.qq.com/open/js/jweixin-1.0.0.js\"></script>\r\n");
      out.write(
          "        <script type=\"text/javascript\" src=\"../js/jquery.2.1.4.js\"></script>\r\n");
      out.write("        <style type=\"text/css\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t/*报名人员列表*/\r\n");
      out.write("\t\t\t.people-list{ color:#333;}\r\n");
      out.write("\t\t\t.people-list li{ padding:8px 0;}\r\n");
      out.write("\t\t\t.people-list li img{ height:40px; width:40px; border-radius:50%;}\r\n");
      out.write("\t\t\t.people-list p{line-height:40px; padding-left:15px;}\r\n");
      out.write("\t\t\t.people-list-ico{\r\n");
      out.write("\t\t\t\theight:25px;\r\n");
      out.write("\t\t\t\twidth:25px;\r\n");
      out.write("\t\t\t\tbackground: url(../images/p-li2.png) 0 0 no-repeat;\r\n");
      out.write("\t\t\t\tbackground-size:100%;\r\n");
      out.write("\t\t\t\tmargin-top:7px;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t.yes .people-list-ico{background-image:url(../images/p-li1.png);}\r\n");
      out.write("        </style>\r\n");
      out.write("    </head>\r\n");
      out.write("    ");

      String openid = request.getParameter("OPENID");
      String wxid = request.getParameter("WXID");
      String itemid = request.getParameter("ITEMID");
      String appid = new String("");
      String noncestr = new String("");
      String signature = new String("");
      String timestamp = new String("");
      JsSdkConfig ro =
          WxJSSDKUtil.getConfig(
              wxid, request.getRequestURL().toString() + "?" + request.getQueryString());
      if (ro != null) {
        System.out.println(request.getRequestURL().toString() + "?" + request.getQueryString());
        appid = ro.getAppid();
        noncestr = ro.getNonceStr();
        signature = ro.getSignature();
        timestamp = ro.getTimestamp();
      }

      out.write("\r\n");
      out.write("    <body>\r\n");
      out.write("   <!--  头部区域 -->\r\n");
      out.write("    \t<header class=\"clearfix ft16 pd10 cor9\">\r\n");
      out.write(
          "    \t\t<p class=\"jie-hd-lf fl\">接单期限: 还剩<span style=\"color:#FE0000;\"></span>天</p>\r\n");
      out.write("    \t\t<div class=\"jie-hd-rt fr\">\r\n");
      out.write("    \t\t\t<p><i class=\"jie-hd-ico di\"></i></p>\r\n");
      out.write("    \t\t</div>\r\n");
      out.write("    \t</header>\r\n");
      out.write("    \t<!-- 预算区域 -->\r\n");
      out.write("    \t<div class=\"yu tc clearfix bd1\">\r\n");
      out.write("    \t\t<p class=\"cor9 yusuan fl\">预算</p>\r\n");
      out.write("    \t\t<p class=\"money fl\"> <i class=\"money-ico di\"></i></p>\r\n");
      out.write("\t\t\t<div class=\"starttime fl\">\r\n");
      out.write("\t\t\t\t<p>启动时间</p>\r\n");
      out.write("\t\t\t\t<p></p>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<div class=\"endtime tr fl\">\r\n");
      out.write("\t\t\t\t<p>完成时间</p>\r\n");
      out.write("\t\t\t\t<p></p>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("    \t</div>\r\n");
      out.write("    \t<!-- 详情 -->\r\n");
      out.write("    \t<div class=\"jie-inf cor9 pd10 ft14 bd1\">\r\n");
      out.write("    \t\t<h1 class=\"ft16\">项目详情:</h1>\r\n");
      out.write("    \t\t <ul class=\"inf-lei\">\r\n");
      out.write("    \t\t\t<!-- <li>Java3人</li>\r\n");
      out.write("    \t\t\t<li>PHP3人</li> -->\r\n");
      out.write("    \t\t</ul> \r\n");
      out.write("    \t\t<p></p>\r\n");
      out.write("    \t</div>\r\n");
      out.write("    \t<div class=\"pd10 cor9\" id=\"bmlist\">\r\n");
      out.write("    \t\t<p style=\"padding:10px 0;\">报名人数: <span>0</span>人</p>\r\n");
      out.write("    \t\t<ul class=\"people-list\">\r\n");
      out.write("    \t\t\t<!-- <li class=\"clearfix\">\r\n");
      out.write("    \t\t\t\t<a href=\"ta.html\" class=\"fl clearfix\">\r\n");
      out.write("    \t\t\t\t\t<img src=\"../images/1.jpg\" class=\"fl\">\r\n");
      out.write("\t    \t\t\t\t<p class=\"fl\">西门科技有限公司</p>\r\n");
      out.write("    \t\t\t\t</a>\r\n");
      out.write("\t    \t\t\t<i class=\"di people-list-ico fr\"></i>\r\n");
      out.write("    \t\t\t</li>\r\n");
      out.write("    \t\t\t<li class=\"clearfix yes\">\r\n");
      out.write("    \t\t\t\t<a href=\"ta.html\" class=\"fl clearfix\">\r\n");
      out.write("    \t\t\t\t\t<img src=\"../images/1.jpg\" class=\"fl\">\r\n");
      out.write("\t    \t\t\t\t<p class=\"fl\">西门科技有限公司</p>\r\n");
      out.write("    \t\t\t\t</a>\r\n");
      out.write("\t    \t\t\t<i class=\"di people-list-ico fr\"></i>\r\n");
      out.write("    \t\t\t</li>  -->\r\n");
      out.write("    \t\t</ul>\r\n");
      out.write(
          "    \t\t<a  class=\"jie-btn weui_btn weui_btn_primary\" style=\"display: none\"></a>\r\n");
      out.write("    \t</div>\r\n");
      out.write("        <div class=\"down\" ></div>\r\n");
      out.write("    \t <!-- 补充资料 -->\r\n");
      out.write("    \t<div class=\"add\">\r\n");
      out.write("\t\t    <div class=\"weui_cells weui_cells_form adddate\">\r\n");
      out.write("\t\t    \t<div class=\"adddate-hd weui_cell bd1\" >\r\n");
      out.write(
          "\t\t    \t\t<p class=\"tc\">补充资料<i class=\"adddate-hd-ico di\"></i></p>\r\n");
      out.write("\t\t    \t</div>\r\n");
      out.write("\t\t    \t<div class=\"weui_cell bd1\" id=\"imgurl\">\r\n");
      out.write(
          "\t                <div class=\"weui_cell_hd\"><img  class=\"tou-img\" src=\"\"></div>\r\n");
      out.write("\t                <div class=\"weui_cell_bd weui_cell_primary\">\r\n");
      out.write(
          "\t                    <input class=\"weui_input tr\" disabled=\"disabled\" type=\"text\" placeholder=\"上传头像\"/>\r\n");
      out.write("\t                </div>\r\n");
      out.write("\t            </div>\r\n");
      out.write("\t            <div class=\"weui_cell bd1\" >\r\n");
      out.write(
          "\t                <div class=\"weui_cell_hd\"><label class=\"weui_label\" >昵称</label></div>\r\n");
      out.write("\t                <div class=\"weui_cell_bd weui_cell_primary\">\r\n");
      out.write(
          "\t                    <input class=\"weui_input tr\" type=\"text\" id=\"nickname\" placeholder=\"请输入\"/>\r\n");
      out.write("\t                </div>\r\n");
      out.write("\t            </div>\r\n");
      out.write("\t            <div class=\"weui_cell bd1\">\r\n");
      out.write(
          "\t                <div class=\"weui_cell_hd\"><label class=\"weui_label\">公司名</label></div>\r\n");
      out.write("\t                <div class=\"weui_cell_bd weui_cell_primary\">\r\n");
      out.write(
          "\t                    <input class=\"weui_input tr\" type=\"text\" id=\"company_name\" placeholder=\"请输入\"/>\r\n");
      out.write("\t                </div>\r\n");
      out.write("\t            </div>\r\n");
      out.write("\t            <div class=\"weui_cell bd1\">\r\n");
      out.write(
          "\t                <div class=\"weui_cell_hd\"><label class=\"weui_label\">联系人</label></div>\r\n");
      out.write("\t                <div class=\"weui_cell_bd weui_cell_primary\">\r\n");
      out.write(
          "\t                    <input class=\"weui_input tr\" type=\"text\" id=\"contact\" placeholder=\"请输入\"/>\r\n");
      out.write("\t                </div>\r\n");
      out.write("\t            </div>\r\n");
      out.write("\t            <div class=\"weui_cell bd1\">\r\n");
      out.write(
          "\t                <div class=\"weui_cell_hd\"><label class=\"weui_label\">联系电话</label></div>\r\n");
      out.write("\t                <div class=\"weui_cell_bd weui_cell_primary\">\r\n");
      out.write(
          "\t                    <input class=\"weui_input tr\" type=\"tel\" id=\"tel\" placeholder=\"请输入\"/>\r\n");
      out.write("\t                </div>\r\n");
      out.write("\t            </div>\r\n");
      out.write("\t\t\t\t<div class=\"weui_cell bd1\">\r\n");
      out.write(
          "\t                <div class=\"weui_cell_hd\"><label class=\"weui_label\">联系地址</label></div>\r\n");
      out.write("\t                <div class=\"weui_cell_bd weui_cell_primary\">\r\n");
      out.write(
          "\t                    <input class=\"weui_input tr\" type=\"text\" id=\"addr\" placeholder=\"请输入\"/>\r\n");
      out.write("\t                </div>\r\n");
      out.write("\t            </div>\r\n");
      out.write("\t\t\t\t<div class=\"weui_btn_area\">\r\n");
      out.write(
          "\t\t            <a class=\"weui_btn weui_btn_primary\" href=\"javascript:\" id=\"showTooltips\">提交资料</a>\r\n");
      out.write("\t\t        </div>\r\n");
      out.write("\t        </div>\r\n");
      out.write("    \t</div>\r\n");
      out.write("    </body>\r\n");
      out.write("    <script type=\"text/javascript\">\r\n");
      out.write("    var openid=\"");
      out.print(openid);
      out.write("\";\r\n");
      out.write("    var wxid=\"");
      out.print(wxid);
      out.write("\";\r\n");
      out.write("    var itemid=\"");
      out.print(itemid);
      out.write("\";\r\n");
      out.write("    var memberInfo=JSON.parse(sessionStorage.getItem(\"MEMBERINFO\"));\r\n");
      out.write("    var state=0;\r\n");
      out.write("    var serverId=\"\";\r\n");
      out.write("    var data=\"\";\r\n");
      out.write("    var hasbm=false;\r\n");
      out.write("    var isJD=false;  // 此项目是否已接单\r\n");
      out.write("\t\t    $(function() {\r\n");
      out.write("\t\t\t\tinitBind();\r\n");
      out.write("\t\t\t\tgetItemInfo();\t\r\n");
      out.write("\t\t\t\tgetJssdkConfig();\r\n");
      out.write("\t\t\t\tsetmemberinfo();\r\n");
      out.write("\t\t\t});\r\n");
      out.write("\t\t  //获取会员信息\r\n");
      out.write("    \t\tfunction setmemberinfo(){\r\n");
      out.write("    \t\t\t//alert(JSON.stringify(memberInfo));\r\n");
      out.write("    \t\t\tif(memberInfo==null){\r\n");
      out.write("    \t\t\t\tgetmemberinfo();\r\n");
      out.write("    \t\t\t\treturn;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\tif(memberInfo.STATE==\"0\"){\r\n");
      out.write("    \t\t\t\t$(\"#imgurl img\").attr(\"src\",memberInfo.data.HEADIMGURL);\r\n");
      out.write("    \t\t\t\t$(\"#nickname\").val(memberInfo.data.NICKNAME);\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t    if(memberInfo.STATE==\"1\"){\r\n");
      out.write("    \t\t    \tstate=1;\r\n");
      out.write("    \t\t    }\r\n");
      out.write("    \t\t}\r\n");
      out.write("    \t\tfunction getmemberinfo(){\r\n");
      out.write("        \t\t$.ajax({\r\n");
      out.write("        \t\t\turl:\"");
      out.print(request.getContextPath());
      out.write("/wci/yw/GetMemberInfo.do\",\r\n");
      out.write("        \t\t\tdata:{\"OPENID\":openid,\"WXID\":wxid},\r\n");
      out.write("        \t\t\tsuccess:function(res){\r\n");
      out.write(
          "        \t\t\t\tsessionStorage.setItem(\"MEMBERINFO\",JSON.stringify(res.data));\r\n");
      out.write("        \t\t\t\tmemberInfo=res.data;\r\n");
      out.write("        \t\t\t\tsetmemberinfo();\r\n");
      out.write(
          "        \t\t\t\t//window.location.href=base_url+\"/\"+reurl+\"?WXID=\"+wxid+\"&OPENID=\"+openid;\r\n");
      out.write("        \t\t\t}\r\n");
      out.write("        \t\t});\r\n");
      out.write("        \t}\r\n");
      out.write("\t\t    function getJssdkConfig(){\r\n");
      out.write("    \t\t\twx.config({\r\n");
      out.write("    \t\t\t    debug: false,\r\n");
      out.write("    \t\t\t    appId: \"");
      out.print(appid);
      out.write("\",\r\n");
      out.write("    \t\t\t    timestamp: \"");
      out.print(timestamp);
      out.write("\",\r\n");
      out.write("    \t\t\t    nonceStr: \"");
      out.print(noncestr);
      out.write("\",\r\n");
      out.write("    \t\t\t    signature: \"");
      out.print(signature);
      out.write("\",\r\n");
      out.write("    \t\t\t    jsApiList: [\r\n");
      out.write("    \t\t\t       'chooseImage',\r\n");
      out.write("    \t\t\t       'uploadImage',\r\n");
      out.write("    \t\t\t       'downloadImage'\r\n");
      out.write("    \t\t\t        ]\r\n");
      out.write("    \t\t\t  });\r\n");
      out.write("    \t\t\t\twx.error(function(res){\r\n");
      out.write("    \t\t\t\t\talert(\"服务器异常,请稍后重试!\");\r\n");
      out.write(
          "    \t\t\t\t    // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。\r\n");
      out.write("    \t\t\t\t});\r\n");
      out.write("    \t\t\t\twx.ready(function(){\r\n");
      out.write("    \t\t\t\t\tdocument.querySelector('#imgurl').onclick = function () {\r\n");
      out.write("    \t\t\t\t\t\twx.chooseImage({\r\n");
      out.write("    \t\t\t\t\t\t    count: 1, // 默认9\r\n");
      out.write(
          "    \t\t\t\t\t\t    sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有\r\n");
      out.write(
          "    \t\t\t\t\t\t    sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有\r\n");
      out.write("    \t\t\t\t\t\t    success: function (res) {\r\n");
      out.write("    \t\t\t\t\t\t    \t//alert(JSON.stringify(res));\r\n");
      out.write("    \t\t\t\t\t\t    \t$(\"#imgurl img\").attr(\"src\",res.localIds[0]);\r\n");
      out.write("    \t\t\t\t\t\t        wx.uploadImage({\r\n");
      out.write(
          "    \t\t\t\t\t\t            localId: res.localIds[0], // 需要上传的图片的本地ID,由chooseImage接口获得\r\n");
      out.write(
          "    \t\t\t\t\t\t            isShowProgressTips: 1, // 默认为1,显示进度提示\r\n");
      out.write("    \t\t\t\t\t\t            success: function (res) {\r\n");
      out.write(
          "    \t\t\t\t\t\t               serverId = res.serverId; // 返回图片的服务器端ID\r\n");
      out.write("    \t\t\t\t\t\t            }\r\n");
      out.write("    \t\t\t\t\t\t        });\r\n");
      out.write("    \t\t\t\t\t\t    }\r\n");
      out.write("    \t\t\t\t\t\t});\r\n");
      out.write("    \t\t\t\t\t}\r\n");
      out.write("    \t\t\t\t\t\r\n");
      out.write("    \t\t\t\t});\r\n");
      out.write("    \t\t}\r\n");
      out.write("\t\t    function getItemInfo(){\r\n");
      out.write("\t\t    \t$.ajax({\r\n");
      out.write("\t\t    \t\turl:\"");
      out.print(request.getContextPath());
      out.write("/wci/yw/GetItemInfo.do\",\r\n");
      out.write("\t\t    \t\tdata:{\"ITEM_ID\":itemid},\r\n");
      out.write("\t\t    \t\tbeforeSend:function(){\r\n");
      out.write("\t\t    \t\t\twc.showLoadding(\"加载中\");\r\n");
      out.write("\t\t    \t\t},\r\n");
      out.write("\t\t    \t\tsuccess:function(res){\r\n");
      out.write("\t\t    \t\t\t//alert(JSON.stringify(res.data));\r\n");
      out.write("\t\t    \t\t\tsetData(res.data);\r\n");
      out.write("\t\t    \t\t\tdata=res.data;\r\n");
      out.write("\t\t    \t\t},\r\n");
      out.write("\t\t    \t\tcomplete:function(){\r\n");
      out.write("\t\t    \t\t\twc.closeLoadding();\r\n");
      out.write("\t\t    \t\t},\r\n");
      out.write("\t\t    \t\terror:function(){\r\n");
      out.write("\t\t    \t\t\twc.closeLoadding();\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    function setData(data){\r\n");
      out.write("\t\t    \tsetCommData(data);\r\n");
      out.write("\t\t    \t//alert(JSON.stringify(data));\r\n");
      out.write("\t\t    \t// 若是发布人进入此页面\r\n");
      out.write("\t\t    \tif(data.ITEMINFO.OPENID==openid&&data.ITEMINFO.WXID==wxid){\r\n");
      out.write("\t\t    \t\tsetBMData(data);\r\n");
      out.write("\t\t    \t}else{  // 非发布人进入\r\n");
      out.write("\t\t    \t\tvar html=\"\";\r\n");
      out.write("\t\t    \t\t$(\"#bmlist span:first\").html(data.BMLIST.length);\r\n");
      out.write("\t\t    \t\tfor(var i=0;i<data.BMLIST.length;i++){\r\n");
      out.write("\t\t\t    \t\tif(data.BMLIST[i].IS_JD==\"1\"){\r\n");
      out.write("\t\t\t    \t\t\tisJD=true;\r\n");
      out.write("\t\t\t    \t\t}\r\n");
      out.write("\t\t\t    \t\tif(data.BMLIST[i].OPENID==openid&&data.BMLIST[i].WXID==wxid){\r\n");
      out.write("\t\t\t    \t\t\thasbm=true;\r\n");
      out.write("\t\t\t    \t\t}\r\n");
      out.write("\t\t\t    \t\thtml+=getPeopleHtml2(data.BMLIST[i]);\r\n");
      out.write("\t\t\t    \t}\r\n");
      out.write("\t\t    \t\t$(\".people-list\").html(html);\r\n");
      out.write("\t\t    \t\tif(!hasbm&&!isJD){\r\n");
      out.write("\t\t    \t\t\t$(\".jie-btn\").unbind();\r\n");
      out.write("\t\t\t    \t    $(\".jie-btn\").text(\"报名\");\r\n");
      out.write("\t\t\t    \t    $(\".jie-btn\").show();\r\n");
      out.write("\t\t\t    \t    $(\".jie-btn\").click(BMItem);\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    function BMItem(){\r\n");
      out.write("\t\t    \tif(state==0){\r\n");
      out.write("\t\t    \t\t$(\".add\").show();\r\n");
      out.write("\t\t    \t\t$(\".down\").show();\r\n");
      out.write("\t\t    \t}else{\r\n");
      out.write("\t\t    \t\t$.ajax({\r\n");
      out.write("\t\t\t    \t\turl:\"");
      out.print(request.getContextPath());
      out.write("/wci/yw/BMItem.do\",\r\n");
      out.write("\t\t\t    \t\tdata:{\"ITEM_ID\":itemid,\"OPENID\":openid,\"WXID\":wxid},\r\n");
      out.write("\t\t\t    \t\tbeforeSend:function(){\r\n");
      out.write("\t\t\t    \t\t\twc.showLoadding(\"操作中\");\r\n");
      out.write("\t\t\t    \t\t},\r\n");
      out.write("\t\t\t    \t\tsuccess:function(res){\r\n");
      out.write("\t\t\t    \t\t\tif(res.data==\"1\"){\r\n");
      out.write("\t\t\t    \t\t\t\twc.showMsg(\"报名成功\",function(){\r\n");
      out.write(
          "\t\t\t    \t\t\t\t\twindow.location.href=\"./succss-baoming.jsp?OPENID=\"+openid+\"&WXID=\"+wxid+\"&ITEM_ID=\"+itemid;\r\n");
      out.write("\t\t\t    \t\t\t\t});\r\n");
      out.write("\t\t\t    \t\t\t}\r\n");
      out.write("\t\t\t    \t\t\t\r\n");
      out.write("\t\t\t    \t\t},\r\n");
      out.write("\t\t\t    \t\tcomplete:function(){\r\n");
      out.write("\t\t\t    \t\t\twc.closeLoadding();\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});\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    \t\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function setBMData(data){  //记载报名列表\r\n");
      out.write("\t\t    \tvar html=\"\";\r\n");
      out.write("\t\t        $(\"#bmlist span:first\").html(data.BMLIST.length);\r\n");
      out.write("\t\t        //alert(JSON.stringify(data));\r\n");
      out.write("\t\t    \tfor(var i=0;i<data.BMLIST.length;i++){\r\n");
      out.write("\t\t    \t\tif(data.BMLIST[i].IS_JD==\"1\"){\r\n");
      out.write("\t\t    \t\t\tisJD=true;\r\n");
      out.write("\t\t    \t\t}\r\n");
      out.write("\t\t    \t\thtml+=getPeopleHtml(data.BMLIST[i]);\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    \t$(\".people-list\").html(html);\r\n");
      out.write("\t\t    \tif(data.BMLIST.length==0){  //没有人接单可以进行修改\r\n");
      out.write("\t\t    \t\t$(\".jie-btn\").unbind();\r\n");
      out.write("\t\t    \t    $(\".jie-btn\").text(\"修改需求\");\r\n");
      out.write("\t\t    \t    $(\".jie-btn\").show();\r\n");
      out.write("\t\t    \t    $(\".jie-btn\").click(updateItem);\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    \tif(data.BMLIST.length>0&&!isJD){\r\n");
      out.write("\t\t    \t\t$(\".jie-btn\").unbind();\r\n");
      out.write("\t\t    \t    $(\".jie-btn\").text(\"确认接单公司\");\r\n");
      out.write("\t\t    \t    $(\".jie-btn\").show();\r\n");
      out.write("\t\t    \t    $(\".jie-btn\").click(updateJDGS);\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    //确认接单公司\r\n");
      out.write("\t\t    \r\n");
      out.write("\t\t    function updateJDGS(data){\r\n");
      out.write("\t\t    \t\tif(checkJDGS()){\r\n");
      out.write("\t\t    \t\t\tsubmitJDGS();\r\n");
      out.write("\t\t    \t\t}\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function submitJDGS(){\r\n");
      out.write("\t\t    \t$.ajax({\r\n");
      out.write("\t    \t\t\turl:\"");
      out.print(request.getContextPath());
      out.write("/wci/yw/SetJD.do\",\r\n");
      out.write("\t    \t\t\tdata:{\"ITEM_ID\":itemid,\"JDGSARR\":JSON.stringify(jdgsarr)},\r\n");
      out.write("\t    \t\t\tbeforeSend:function(){\r\n");
      out.write("\t    \t\t\t\twc.showLoadding(\"操作中\");\r\n");
      out.write("\t    \t\t\t},\r\n");
      out.write("\t    \t\t\tsuccess:function(res){\r\n");
      out.write("\t    \t\t\t\tif(parseInt(res.data)>=1){\r\n");
      out.write("\t    \t\t\t\t\twc.showMsg(\"设置成功\",function(){\r\n");
      out.write("\t\t    \t\t\t\t\twindow.location.reload();\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\tcomplete:function(){\r\n");
      out.write("\t    \t\t\t\twc.closeLoadding();\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    var jdgsarr=[];\r\n");
      out.write("\t\t    function checkJDGS(){\r\n");
      out.write("\t\t    \tif($(\".people-list>li.yes\").length==0){\r\n");
      out.write("\t\t    \t\twc.showDialog(\"\",\"请选择接单公司\");\r\n");
      out.write("\t\t    \t\treturn false\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    \t$(\".people-list>li.yes\").each(function(){\r\n");
      out.write("\t\t    \t\tvar item={};\r\n");
      out.write("\t\t    \t\titem.OPENID=$(this).attr(\"openid\");\r\n");
      out.write("\t\t    \t\titem.WXID=$(this).attr(\"wxid\");\r\n");
      out.write("\t\t    \t\titem.NAME=$(this).find(\"p\").html();\r\n");
      out.write("\t\t    \t\tjdgsarr.push(item);\r\n");
      out.write("\t\t    \t});\r\n");
      out.write("\t\t    \t//alert(JSON.stringify(jdgsarr));\r\n");
      out.write("\t\t    \treturn true;\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function updateItem(){\r\n");
      out.write("\t\t    \tif(data.ITEMINFO.ITEM_TYPE==\"1\"){\r\n");
      out.write(
          "\t\t    \t\twindow.location.href=\"./project.jsp?OPENID=\"+openid+\"&WXID=\"+wxid+\"&ITEMID=\"+itemid;\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    \tif(data.ITEMINFO.ITEM_TYPE==\"2\"){\r\n");
      out.write(
          "\t\t    \t\twindow.location.href=\"./resources.jsp?OPENID=\"+openid+\"&WXID=\"+wxid+\"&ITEMID=\"+itemid;\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function getPeopleHtml(item){\r\n");
      out.write(
          "\t\t    \tvar html=\"<li class='clearfix \"+(item.IS_JD==\"1\"?'yes':'')+\"' openid='\"+item.OPENID+\"' wxid='\"+item.WXID+\"'>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\t\"<a  class='fl clearfix'>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\t\"<img src='\"+item.IMGURL+\"' class='fl'>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\t\"<p class='fl'>\"+item.COMPANY_NAME+\"</p>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\"</a>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\"<i class='di people-list-ico fr' ></i>\"+\r\n");
      out.write("\t\t\t\t\t\t\"</li>\";\r\n");
      out.write("\t\t\t\t\t\treturn html;\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function getPeopleHtml2(item){\r\n");
      out.write(
          "\t\t    \tvar html=\"<li class='clearfix \"+(item.IS_JD==\"1\"?'yes':'')+\"' openid='\"+item.OPENID+\"' wxid='\"+item.WXID+\"'>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\t\"<a  class='fl clearfix'>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\t\"<img src='\"+item.IMGURL+\"' class='fl'>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\t\"<p class='fl'>\"+item.COMPANY_NAME+\"</p>\"+\r\n");
      out.write("\t\t\t\t\t\t\t\"</a>\"+\r\n");
      out.write(
          "\t\t\t\t\t\t\t\"<i class='di people-list-ico fr' style='display:\"+(item.IS_JD==\"1\"?'block':'none')+\"'></i>\"+\r\n");
      out.write("\t\t\t\t\t\t\"</li>\";\r\n");
      out.write("\t\t\t\t\t\treturn html;\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function setCommData(data){\r\n");
      out.write("\t\t    \tvar item=data.ITEMINFO;\r\n");
      out.write("\t\t    \t$(\"header p:first span\").html(item.JSQX);\r\n");
      out.write("\t\t    \t$(\"header p:last\").prepend(item.COMPANY_NAME);\r\n");
      out.write("\t\t    \t$(\".money\").prepend(cc(item.ITEM_XMYS));\r\n");
      out.write("\t\t    \t$(\".starttime p:last\").html(item.ITEM_QDSJ);\r\n");
      out.write("\t\t    \t$(\".endtime p:last\").html(item.ITEM_WCSJ);\r\n");
      out.write("\t\t    \t$(\".jie-inf p:last\").html(item.ITEM_XQ);\r\n");
      out.write("\t\t    \t\r\n");
      out.write("\t\t    \tif(item.ITEM_TYPE==\"2\"){\r\n");
      out.write("\t\t    \t\tfor(var i=0;i<data.TYPELIST.length;i++){\r\n");
      out.write(
          "\t\t    \t\t\t$(\".inf-lei\").append(\"<li>\"+data.TYPELIST[i].ITEM_TYPE_NAME+\" \"+data.TYPELIST[i].ITEM_TYPE_NUM+\"人</li>\");\r\n");
      out.write("\t\t    \t\t}\r\n");
      out.write("\t\t    \t}\r\n");
      out.write("\t\t    \t\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t    function cc(s){\r\n");
      out.write("\t            if(/[^0-9\\.]/.test(s)) return \"invalid value\";\r\n");
      out.write("\t            s=s.replace(/^(\\d*)$/,\"$1.\");\r\n");
      out.write("\t            s=(s+\"00\").replace(/(\\d*\\.\\d\\d)\\d*/,\"$1\");\r\n");
      out.write("\t            s=s.replace(\".\",\",\");\r\n");
      out.write("\t            var re=/(\\d)(\\d{3},)/;\r\n");
      out.write("\t            while(re.test(s))\r\n");
      out.write("\t                    s=s.replace(re,\"$1,$2\");\r\n");
      out.write("\t            s=s.replace(/,(\\d\\d)$/,\".$1\");\r\n");
      out.write("\t            return  s.replace(/^\\./,\"0.\");\r\n");
      out.write("\t            }\r\n");
      out.write("\t\t    $(\"#showTooltips\").click(function(){\r\n");
      out.write("    \t\t\tif(memberCheck()){\r\n");
      out.write("    \t\t\t\tmemberSubmit();\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t});\r\n");
      out.write("    \t\tfunction memberSubmit(){\r\n");
      out.write("    \t\t\t//alert(1);\r\n");
      out.write("    \t\t\t$.ajax({\r\n");
      out.write("    \t\t\t\turl:\"");
      out.print(request.getContextPath());
      out.write("/wci/yw/MemberSubmit.do\",\r\n");
      out.write(
          "    \t\t\t\tdata:{\"OPENID\":openid,\"WXID\":wxid,\"SERVERID\":serverId,\"NICKNAME\":$(\"#nickname\").val(),\r\n");
      out.write(
          "    \t\t\t\t\t   \"COMPANY_NAME\":$(\"#company_name\").val(),\"CONTACT\":$(\"#contact\").val(),\"IMGURL\":memberInfo.data.HEADIMGURL,\r\n");
      out.write("    \t\t\t\t\t   \"TEL\":$(\"#tel\").val(),\"ADDR\":$(\"#addr\").val()\r\n");
      out.write("    \t\t\t\t     },\r\n");
      out.write("    \t\t\t\tbeforeSend:function(){\r\n");
      out.write("    \t\t\t\t\twc.showLoadding(\"提交中.....\");\r\n");
      out.write("    \t\t\t\t},\r\n");
      out.write("    \t\t\t\tsuccess:function(res){\r\n");
      out.write("    \t\t\t\t\tif(res.data==\"1\"){\r\n");
      out.write("    \t\t\t\t\t\twc.showMsg(\"提交成功\",function(){\r\n");
      out.write("        \t\t\t\t\t\t$(\".add\").hide();\r\n");
      out.write("                \t\t\t\t$(\".down\").hide();\r\n");
      out.write("                \t\t\t\tmemberInfo.STATE=1;\r\n");
      out.write(
          "                \t\t\t\tsessionStorage.setItem(\"MEMBERINFO\",JSON.stringify(memberInfo));\r\n");
      out.write("                \t\t\t\tstate=1;\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//setTime\r\n");
      out.write("    \t\t\t\t\t\r\n");
      out.write("    \t\t\t\t},\r\n");
      out.write("    \t\t\t\tcomplete:function(){\r\n");
      out.write("    \t\t\t\t\twc.closeLoadding();\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\tfunction memberCheck(){\r\n");
      out.write("    \t\t\t//wc.showDialog(\"title\",\"text\");\r\n");
      out.write("    \t\t\tif($(\"#nickname\").val()==\"\"){\r\n");
      out.write("    \t\t\t\twc.showDialog(\"\",\"昵称不能为空!\");\r\n");
      out.write("    \t\t\t\treturn false;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\tif($(\"#company_name\").val()==\"\"){\r\n");
      out.write("    \t\t\t\twc.showDialog(\"\",\"公司名不能为空!\");\r\n");
      out.write("    \t\t\t\treturn false;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\tif($(\"#contact\").val()==\"\"){\r\n");
      out.write("    \t\t\t\twc.showDialog(\"\",\"联系人不能为空!\");\r\n");
      out.write("    \t\t\t\treturn false;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\tif($(\"#tel\").val()==\"\"){\r\n");
      out.write("    \t\t\t\twc.showDialog(\"\",\"联系电话不能为空!\");\r\n");
      out.write("    \t\t\t\treturn false;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\tif(!$(\"#tel\").val().match(/^1[0-9]{10}$/)){\r\n");
      out.write("    \t\t\t\twc.showDialog(\"\",\"联系电话格式不正确!\");\r\n");
      out.write("    \t\t\t\treturn false;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\tif($(\"#addr\").val()==\"\"){\r\n");
      out.write("    \t\t\t\twc.showDialog(\"\",\"联系地址不能为空!\");\r\n");
      out.write("    \t\t\t\treturn false;\r\n");
      out.write("    \t\t\t}\r\n");
      out.write("    \t\t\treturn true;\r\n");
      out.write("    \t\t}\r\n");
      out.write("            function initBind(){\r\n");
      out.write("            \t//人员列表情况\r\n");
      out.write(
          "            \t$(\".people-list\").delegate(\"i.people-list-ico\",\"click\",function(){\r\n");
      out.write("                       if(!isJD){  //没有人接单\r\n");
      out.write("                    \t   //$(\".people-list>li\").removeClass(\"yes\");\r\n");
      out.write("                           $(this).parent(\"li\").toggleClass(\"yes\");\r\n");
      out.write("                       }\r\n");
      out.write("            \t});\r\n");
      out.write("            \t$(\".people-list\").delegate(\"a\",\"click\",function(){\r\n");
      out.write(
          "            \t\twindow.location.href=\"./my.jsp?OPENID=\"+$(this).parent().attr(\"openid\")+\"&WXID=\"+$(this).parent().attr(\"wxid\");\r\n");
      out.write("            \t})\r\n");
      out.write("\t\t\t\t/* $(\".people-list-ico\").click(function(event) {\r\n");
      out.write("\t\t\t\t\t//判断是否具有类名\r\n");
      out.write("\t\t\t\t\tif ($(this).parent(\"li\").hasClass('yes')) {\r\n");
      out.write("\t\t\t\t\t\t$(this).parent(\"li\").removeClass('yes')\r\n");
      out.write("\t\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\t\t$(this).parent(\"li\").addClass('yes');\r\n");
      out.write("\t\t\t\t\t};\r\n");
      out.write("\t\t\t\t\t//如果li 任意具有就\r\n");
      out.write("\t\t\t\t\tif ($(\".people-list li\").hasClass('yes')) {\r\n");
      out.write("\t\t\t\t\t\t$(\".jie-btn\").text(\"确认接单公司\")\r\n");
      out.write("\t\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\t\t$(\".jie-btn\").text(\"修改需求\")\r\n");
      out.write("\t\t\t\t\t};\r\n");
      out.write("\t\t\t\t}); */\r\n");
      out.write("\t\t\t\t$(\".down\").click(function(){\r\n");
      out.write("\t\t\t\t\t$(\".down\").hide();\r\n");
      out.write("\t\t\t\t\t$(\".add\").hide();\r\n");
      out.write("\t\t\t\t});\r\n");
      out.write("            }\r\n");
      out.write("\t\t</script>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof 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 log(t.getMessage(), t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #5
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final 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\n");
      out.write("<!-- 插入样式和JS -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../project/proj_approval/base.jsp", out, false);
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("var isSubTable = true;\r\n");
      out.write("isViewHistoryTask = true;\r\n");
      out.write("   function formPageReadOnlyCallBack(){  \r\n");
      out.write("    if(!isCompletedTask){\r\n");
      out.write(
          "       formJSPInputHideOrShow(\"id_table_leasing_contract_rent_close_container\",\"\",1);\r\n");
      out.write("       //fund_rent_adjust.otherin,fund_rent_adjust.otherout,两个只读去掉\r\n");
      out.write(
          "       formJSPInputHideOrShow(\"plan_rent_terminate_form\",\"fund_rent_adjust.dunrent,fund_rent_adjust.dunpenalty,fund_rent_adjust.corpusoverage,fund_rent_adjust.contracttotal\",1);\r\n");
      out.write("     }\r\n");
      out.write("   }\r\n");
      out.write("\t//是否保存   \r\n");
      out.write("\tfunction workflowSaveCallBack()//返回true提交,返回false不提交 ,该回调函数可与用表单字段验证\r\n");
      out.write("\t{\r\n");
      out.write("\t\tfillHiddenVal();\r\n");
      out.write("\t\treturn true;   \r\n");
      out.write("\t}\r\n");
      out.write("\t//保存成功提交后,后台返回\r\n");
      out.write("\tfunction saveCallBack() {\r\n");
      out.write("\t\tfillHiddenVal();\r\n");
      out.write(
          "\t\tvar submitProcessedForm = document.getElementById(\"id_submitProcessedForm\");\r\n");
      out.write("\t\treturn true;\r\n");
      out.write("\t}\r\n");
      out.write("\t//是否提交    \r\n");
      out.write("\tfunction workflowSubmitCallBack()//返回true提交,返回false不提交 ,该回调函数可与用表单字段验证\r\n");
      out.write("\t{\r\n");
      out.write("\t\tfillHiddenVal();\r\n");
      out.write("\t\talert(\"业务员注意:操作部分买断请注明是哪台租赁物买断!\");\r\n");
      out.write(
          "\t\tvar submitProcessedForm1 = document.getElementById(\"id_contract_plan_terminate_form\");\r\n");
      out.write(
          "\t\tvar submitProcessedForm2 = document.getElementById(\"id_table_leasing_contract_rent_close_container\");\r\n");
      out.write("\t\tif(!Validator.Validate(submitProcessedForm1,1,false)){return false;}\r\n");
      out.write("\t\tif(!Validator.Validate(submitProcessedForm2,1,false)){return false;}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t/*start 租金计划内容 */\r\n");
      out.write(
          "\t\tvar renttableDatas = getTracywindyObject('table_id_table_leasing_rent_plan_container').getRowsJsonData();\r\n");
      out.write("\t\tvar inter = 0;\r\n");
      out.write("\t\tvar rent = 0;\r\n");
      out.write("\t\tvar paydayAdjust = $(\"#paydayAdjust\").val();\r\n");
      out.write("\t\t$(\"#caldate\").val(paydayAdjust);\r\n");
      out.write("\t\tvar id_advancerate = $(\"#id_advancerate\").val();\r\n");
      out.write("\t\tfor(var i=0; i<renttableDatas.length; i++){\r\n");
      out.write("\t\t\tinter = parseFloat(inter) + parseFloat(renttableDatas[i].interest);\r\n");
      out.write("\t\t\tif(renttableDatas[i].plandate > paydayAdjust){\r\n");
      out.write("\t\t\t\trent = parseFloat(rent) + parseFloat(renttableDatas[i].rent);\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t$(\"#calinterest\").val(parseFloat(inter).toFixed(2));\r\n");
      out.write("\t\tconsole.log(\"剩余租金--\"+rent);\r\n");
      out.write("\t\tconsole.log(\"剩余利息--\"+inter);\r\n");
      out.write("\t\talert(rent);\r\n");
      out.write("\t\t$(\"#calrent\").val(rent);\r\n");
      out.write("\t\t/*end 租金计划内容 */\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t/*start  判断租赁物件内容*/\r\n");
      out.write(
          "\t\tvar equipTableDatas = getTracywindyObject('table_id_table_leasing_proj_equip_container').getRowsJsonData();\r\n");
      out.write("\t\tvar eqnum = 0;\r\n");
      out.write("\t\tfor(var j=0;j<equipTableDatas.length;j++){\r\n");
      out.write("\t\t\tif(equipTableDatas[j].isadvancestop == '0'){//判断是否提前终止\r\n");
      out.write("\t\t\t\teqnum ++;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tvar advancestop =false;\r\n");
      out.write("\t\tif(equipTableDatas.length == eqnum){\r\n");
      out.write("\t\t\tadvancestop =true; //都标记了 说明是全部买断\r\n");
      out.write("\t\t}else{\r\n");
      out.write("\t\t\tadvancestop =false\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t$(\"#advancestop\").val(advancestop);\r\n");
      out.write("\t\t/*end  判断租赁物件内容*/\r\n");
      out.write("\t\t\r\n");
      out.write("\t\treturn true;\r\n");
      out.write("\t}\r\n");
      out.write("\tisSubTable = true;\r\n");
      out.write("</script>\r\n");
      out.write("<!--多行控件  -->\r\n");
      out.write("<!-- 收款计划 -->\r\n");
      out.write("<input type=\"hidden\" id=\"caldate\" name=\"caldate\"  value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['caldate'] }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"></input>\r\n");
      out.write("<input type=\"hidden\" id=\"calrent\" name=\"calrent\"  value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['calrent'] }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"></input>\r\n");
      out.write("<input type=\"hidden\" id=\"calcops\" name=\"calcops\"  value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['calcops'] }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"></input>\r\n");
      out.write("<input type=\"hidden\" id=\"advancestop\" name=\"advancestop\"  value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['advancestop'] }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"></input>\r\n");
      out.write("<input type=\"hidden\" id=\"calinterest\" name=\"calinterest\"  value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['calinterest'] }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_equip_str\" name=\"json_proj_equip_str\"  value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_equip_str ? \"[]\" : json_proj_equip_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_receiverchargeplan_str\" name=\"json_receiverchargeplan_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_receiverchargeplan_str ? \"[]\" : json_receiverchargeplan_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/>\r\n");
      out.write("<!-- 历史收款 -->\r\n");
      out.write(
          "<input type=\"hidden\"  id=\"id_json_receiverchargehistory_str\" name=\"json_receiverchargehistory_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_receiverchargehistory_str ? \"[]\" : json_receiverchargehistory_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/>\r\n");
      out.write("<!-- 付款计划 -->\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_payfundchargeplan_str\" name=\"json_paychargeplan_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_paychargeplan_str ? \"[]\" : json_paychargeplan_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/> \r\n");
      out.write("<!-- 历史付款 -->\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_contract_fund_payment_history_str\" name=\"json_contract_fund_payment_history_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_contract_fund_payment_history_str ? \"[]\" : json_contract_fund_payment_history_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/>\r\n");
      out.write("<!-- 租金计划 -->\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_fund_rent_plans\" name=\"fund_rent_plans\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty fund_rent_plans ? \"[]\" : fund_rent_plans }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/>\r\n");
      out.write("<!-- 历史租金收款 -->\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_fund_income_history\" name=\"fund_income_history\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty fund_income_history ? \"[]\" : fund_income_history }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_reg_list\" name=\"json_reg_list_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_reg_list_str ? \"[]\" : json_reg_list_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'/>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_word_list_str\" name=\"json_word_list_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_word_list_str ? \"[]\" : json_word_list_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input name=\"law_d\" id=\"law_d\" class=\"td-content-input td-content-readonly\" readOnly  type=\"hidden\"  value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['law_d'] }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\">\r\n");
      out.write("<div class=\"fillTableContainer\">\r\n");
      out.write("   <table class=\"fillTable\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t <tr>\r\n");
      out.write("\t\t<td colspan=4>");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../contract_approval/contract_base_info.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("    <tr class=\"x-panel-table-div-title\">\r\n");
      out.write("\t\t<td class=\"x-panel-table-div-title\" colspan=4>\r\n");
      out.write("\t\t<div class=\"toggle-icon-expanded\" title=\"折叠\"\r\n");
      out.write("\t\t\ttoggleClass=\"tr-project-business-condition\"></div>\r\n");
      out.write("\t\t合同结束</td>\r\n");
      out.write("\t</tr> \r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t <tr class=\"tr-project-business-condition\">\r\n");
      out.write("\t\t<td colspan=4 class=\"td-tabs-container\" style=\"text-indent: 0px;\">\r\n");
      out.write("\t\t<div id='id_project_info_tabs_content' style=\"\">\r\n");
      out.write("\t\t<div title=\"租赁物明细\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_table_leasing_proj_equip_container\"\tstyle=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"资金收款计划\">\r\n");
      out.write(
          "\t\t\t\t\t<div id=\"id_table_receiverchargeplan_container\"\tstyle=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t<div title=\"资金付款计划\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_table_leasing_json_paychargeplan_container\" style=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t<div title=\"租金回笼计划\">\r\n");
      out.write(
          "\t\t\t\t<div id=\"id_fund_income_plans_container\"\tstyle=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t<div title=\"资金收款历史\">\r\n");
      out.write(
          "\t\t\t\t\t<div id=\"id_table_receiverchargehistory_container\"\tstyle=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t    <div title=\"资金付款历史\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_table_leasing_contract_fund_payment_history_container\" style=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"租金回笼历史\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_fund_income_history_container\" style=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("       <div title=\"中途终止结算\">\r\n");
      out.write(
          "       \t\t<div id=\"id_contract_plan_terminate_form\" style=\"overflow: hidden;\">\r\n");
      out.write("       \t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../rent_reckon/rent_terminate/main.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("       </div>\r\n");
      out.write("\t\t<div title=\"原因及备注\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_table_leasing_contract_rent_close_container\" style=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "contract_summary.jsp", out, false);
      out.write("\r\n");
      out.write("\t       </div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t");
      out.write("\r\n");
      out.write("\t\t<div title=\"合同终止协议\">\r\n");
      out.write("\t\t\t<div id=\"id_table_leasing_xieyi_info\"\tstyle=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>   \r\n");
      out.write("</table>\r\n");
      out.write("</div>\r\n");
      out.write("<!--避免在tabs中的js重复执行-->\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\tjQuery(function() {isViewHistoryTask = false; });\r\n");
      out.write("</script>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "contract_terminate_equip_detail.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_credit_reportxls.jsp", out, false);
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\tjQuery(function() {isViewHistoryTask = true; });\r\n");
      out.write("</script>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../fund/fund_collection/fund_receiverchargeplan.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../fund/fund_payment/fund_paychargeplan.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request,
          response,
          "../../fund/fund_collection/fund_receiverchargehistory.jsp",
          out,
          false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../fund/fund_payment/fund_payment_history.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../assets/fund/fund_income/fund_income_plan.jsp", out, false);
      out.write("<!-- 租金回笼计划 -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../assets/fund/fund_income/fund_income_history.jsp", out, false);
      out.write("<!-- 租金回笼历史 -->\r\n");
      out.write("<script>\r\n");
      out.write("\t//隐藏域在提交或保存前的赋值\r\n");
      out.write("\tfunction fillHiddenVal() {\r\n");
      out.write("\t\t//租赁物\r\n");
      out.write(
          "\t\tvar contractEquip = getTracywindyObject('table_id_table_leasing_proj_equip_container');//租赁物件\r\n");
      out.write(
          "\t\tjQuery('#id_json_proj_equip_str').val(JsonUtil.encode(contractEquip.getRowsJsonData()));\r\n");
      out.write("\t\t//收款计划\r\n");
      out.write(
          "\t\tvar currentTable1 = getTracywindyObject('table_id_table_receiverchargeplan_container');\r\n");
      out.write("\t\tjQuery('#id_json_receiverchargeplan_str').val(\r\n");
      out.write("\t\t\t\tJsonUtil.encode(currentTable1.getRowsJsonData()));\r\n");
      out.write("\t\t//历史收款\r\n");
      out.write(
          "\t\tvar currentTable1 = getTracywindyObject('table_id_table_receiverchargehistory_container');\r\n");
      out.write("\t\tjQuery('#id_json_receiverchargehistory_str').val(\r\n");
      out.write("\t\t\t\tJsonUtil.encode(currentTable1.getRowsJsonData()));\r\n");
      out.write("\t\t//付款计划\r\n");
      out.write(
          "\t\tvar currentTable1 = getTracywindyObject('table_id_table_leasing_json_paychargeplan_container');\r\n");
      out.write("\t\tjQuery('#id_json_payfundchargeplan_str').val(\r\n");
      out.write("\t\t\t\tJsonUtil.encode(currentTable1.getRowsJsonData()));\r\n");
      out.write("\t\t//历史付款\r\n");
      out.write(
          "\t\tvar currentTable2 = getTracywindyObject('table_id_table_leasing_contract_fund_payment_history_container');\r\n");
      out.write("\t\tjQuery('#id_json_contract_fund_payment_history_str').val(\r\n");
      out.write("\t\t\t\tJsonUtil.encode(currentTable2.getRowsJsonData()));\r\n");
      out.write("\t\t//回笼计划\r\n");
      out.write(
          "\t\tvar currentTable1 = getTracywindyObject('table_id_fund_income_plans_container');\r\n");
      out.write(
          "\t\tjQuery('#id_json_fund_rent_plans').val(JsonUtil.encode(currentTable1.getRowsJsonData()));\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t//回笼历史\r\n");
      out.write(
          "\t\tvar currentTable1 = getTracywindyObject('table_id_fund_income_history_container');\r\n");
      out.write(
          "\t\tjQuery('#id_json_fund_income_history').val(JsonUtil.encode(currentTable1.getRowsJsonData()));\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\tvar currentTable1 = getTracywindyObject('table_id_table_leasing_xieyi_info');\r\n");
      out.write(
          "\t\tjQuery('#id_json_word_list_str').val(JsonUtil.encode(currentTable1.getRowsJsonData()));\r\n");
      out.write("\t}\r\n");
      out.write("\tvar isSubTable = true;\r\n");
      out.write("\t//初始化调用\r\n");
      out.write("\tjQuery(function() {\r\n");
      out.write("\t\t//初始化资产所有权为承租人\r\n");
      out.write("\t\t$(\"#id_fund_rent_adjust_assetownership\").val(\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['contract_info.custname']}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\");\r\n");
      out.write("\t\t//########公共JS事件##########\r\n");
      out.write("\t\tjQuery(\".toggle-icon-expanded\").click(toggleLeasingOperation);\r\n");
      out.write(
          "\t\t$(\"#id_project_info_tabs_content\").css(\"width\", (formWidth) + \"px\");\r\n");
      out.write("\t\t$(\"#id_project_info_tabs_content\").tabs();\r\n");
      out.write("\t\tisSubTable = false;\r\n");
      out.write("\t\tvar d = $(\"#id_project_info_tabs_content\");\r\n");
      out.write("\t\t$(\"#id_project_fund_rent_plan_tabs_content\").css(\"width\",\r\n");
      out.write("\t\t\t\t(formWidth) + \"px\");\r\n");
      out.write("\t\t$(\"#id_project_fund_rent_plan_tabs_content\").tabs();\r\n");
      out.write("\t\t//jQuery(\".fillTableContainer\").css(\"width\",formWidth+\"px\");\r\n");
      out.write("\t\t//本次保证金小于剩余保证金判断\r\n");
      out.write("\t\t$('#currentcautionmoney').blur(\r\n");
      out.write("\t\t\t\tfunction(){   \r\n");
      out.write("\t\t    \t\tvar currentcautionmoney = $(\"#currentcautionmoney\").val();\r\n");
      out.write("\t\t    \t\tvar deductible = $(\"#deductible\").val();\r\n");
      out.write("\t\t    \t\tif(currentcautionmoney>deductible){\r\n");
      out.write("\t\t\t\t\t\talert(\"本次保证金不能大于剩余保证金\");\r\n");
      out.write("\t\t    \t\t}\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t); \r\n");
      out.write("\t});\r\n");
      out.write("</script>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #7
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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");

      String host = request.getScheme() + "://" + request.getHeader("host");
      request.setAttribute("host", host);

      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../include/core_header.jsp", out, false);
      out.write('\r');
      out.write('\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("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("\r\n");
      out.write("<link href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${url}", java.lang.String.class, (PageContext) _jspx_page_context, null, false));
      out.write("/css/centerLeft.css\" rel=\"stylesheet\">\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${url}", java.lang.String.class, (PageContext) _jspx_page_context, null, false));
      out.write("/js/jquery.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${url}", java.lang.String.class, (PageContext) _jspx_page_context, null, false));
      out.write("/js/centerLeft.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${url}", java.lang.String.class, (PageContext) _jspx_page_context, null, false));
      out.write("/js/ajax-pushlet-client.js\"></script>\r\n");
      out.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n");
      out.write("\r\n");
      out.write("<title>会员个人中心</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("body {\r\n");
      out.write("\toverflow-x: hidden;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t<div class=\"content\">\r\n");
      out.write("\t\t<div class=\"mainContent\">\r\n");
      out.write("\t\t\t<div class=\"leftMain\">\r\n");
      out.write("\t\t\t\t<div class=\"orange\"></div>\r\n");
      out.write("\t\t\t\t<ul>\r\n");
      out.write("\t\t\t\t\t<li class=\"focusColor\"><a id=\"wodeCen\" href=\"wodeCen\"\r\n");
      out.write("\t\t\t\t\t\ttarget=\"rightFrame\">我的中心</a></li>\r\n");
      out.write("\t\t\t\t\t<li id=\"sel1\">医疗服务</li>\r\n");
      out.write("\t\t\t\t\t<div id=\"selD1\" class=\"vanish\">\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"wodeDoc\" href=\"wodeDoc\" target=\"rightFrame\">我的专家</a>\r\n");
      out.write(
          "\t\t\t\t\t\t <a id=\"huanyouSoc\" href=\"javascript:void(0)\" onclick=\"alert('功能正在实现')\" target=\"rightFrame\">患友会</a>\r\n");
      out.write(
          "\t\t\t\t\t\t <a id=\"jiuyiExp\" href=\"jiuyiExp\" target=\"rightFrame\">就医经验</a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<li id=\"sel2\">我的可穿戴设备</li>\r\n");
      out.write("\t\t\t\t\t<div id=\"selD2\" class=\"vanish\">\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"myBloodPressure\" href=\"myBloodPressure\" target=\"rightFrame\">我的血压</a>\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"mySleepRecord\" href=\"mySleepRecord\" target=\"rightFrame\">我的睡眠</a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<li id=\"sel3\">疾病管理</li>\r\n");
      out.write("\t\t\t\t\t<div id=\"selD3\" class=\"vanish\">\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"jibingMan\" href=\"jibingMan\" target=\"rightFrame\">离线咨询</a>\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"myAppointment\" href=\"myAppointment\" target=\"rightFrame\">我的预约</a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<li id=\"sel4\">我的家属</li>\r\n");
      out.write("\t\t\t\t\t<div id=\"selD4\" class=\"vanish\">\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"myfamily\" href=\"myfamily\" target=\"rightFrame\">我的家属</a>\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"membArchInfo\" href=\"membArchInfo\" target=\"rightFrame\">电子健康档案</a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t<li id=\"sel5\">我的账户</li>\r\n");
      out.write("\t\t\t\t\t<div id=\"selD5\" class=\"vanish\">\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"caiwuMan\" href=\"caiwuMan\" target=\"rightFrame\">财务管理</a>\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"jifenMan\" href=\"jifenMan\" target=\"rightFrame\">积分管理</a>\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"gerenInfo\" href=\"gerenInfo\" target=\"rightFrame\">个人信息管理</a>\r\n");
      out.write(
          "\t\t\t\t\t\t<a id=\"passChange\" href=\"passChange\" target=\"rightFrame\">修改密码</a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t<script>\r\n");
      out.write("\t\t\t\t$(window).load(\r\n");
      out.write("\t\t\t\t\t\tfunction() {\r\n");
      out.write("\t\t\t\t\t\t\thobj = $.ajax({\r\n");
      out.write("\t\t\t\t\t\t\t\turl : 'wodeCen',\r\n");
      out.write("\t\t\t\t\t\t\t\tsuccess : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\terror : function() {\r\n");
      out.write("\t\t\t\t\t\t\t\t\talert(\"加载信息错误\");\r\n");
      out.write("\t\t\t\t\t\t\t\t},\r\n");
      out.write("\t\t\t\t\t\t\t\tasync : false\r\n");
      out.write("\t\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t\t\t$(window.frames[\"rightFrame\"].document).html(\r\n");
      out.write("\t\t\t\t\t\t\t\t\thobj.responseText);\r\n");
      out.write("\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t</script>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof 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);
    }
  }
Beispiel #8
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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;
      _jspx_resourceInjector =
          (org.glassfish.jsp.api.ResourceInjector)
              application.getAttribute("com.sun.appserv.jsp.resource.injector");

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

      String basePath = request.getContextPath();

      out.write("\r\n");
      out.write("<!DOCTYPE HTML>\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>");
      out.print(TeeUtil.HTML_TITLE);
      out.write("</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
      out.write("<meta name=\"viewport\"\r\n");
      out.write("\tcontent=\"width=device-width, initial-scale=1, maximum-scale=1\">\r\n");
      out.write(
          "<link href=\"/css/style.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"/js/jquery-1.9.0.min.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t<input id=\"liindex\" value=\"3\" type=\"hidden\">\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "header.jsp", out, false);
      out.write("\r\n");
      out.write("\t<div class=\"main\">\r\n");
      out.write("\t\t<div class=\"wrap\">\r\n");
      out.write("\t\t\t<div class=\"services_grid\">\r\n");
      out.write("\t\t\t\t<div class=\"content_bottom\">\r\n");
      out.write("\t\t\t\t\t<div class=\"section group service_desc\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"listview_1_of_2 images_1_of_2\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"listimg listimg_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"./images/service-1.png\" alt=\"\" />\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"text list_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<h4>Service - 01</h4>\r\n");
      out.write("\t\t\t\t\t\t\t\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsed do eiusmod tempor incididunt ut labore et dolore.Lorem\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tipsum dolor sit amet. Lorem ipsum dolor sit amet, consectetur\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tadipisicing elit, sed do eiusmod tempor incididunt ut labore.</p>\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"events.html\">More Info</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"listview_1_of_2 images_1_of_2\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"listimg listimg_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"./images/service-2.png\" alt=\"\" />\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"text list_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<h4>Service - 02</h4>\r\n");
      out.write("\t\t\t\t\t\t\t\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsed do eiusmod tempor incididunt ut labore et dolore.Lorem\r\n");
      out.write("\t\t\t\t\t\t\t\t\tipsum dolor sit amet sed do eiusmod tempor incididunt ut\r\n");
      out.write("\t\t\t\t\t\t\t\t\tlabore.Lorem ipsum dolor sit amet, consectetur adipisicing\r\n");
      out.write("\t\t\t\t\t\t\t\t\telit.</p>\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"events.html\">More Info</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div class=\"section group service_desc\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"listview_1_of_2 images_1_of_2\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"listimg listimg_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"./images/service-3.png\" alt=\"\" />\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"text list_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<h4>Service - 01</h4>\r\n");
      out.write("\t\t\t\t\t\t\t\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsed do eiusmod tempor incididunt ut labore et dolore.Lorem\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tipsum dolor sit amet. Lorem ipsum dolor sit amet, consectetur\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tadipisicing elit, sed do eiusmod tempor incididunt ut labore.</p>\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"events.html\">More Info</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"listview_1_of_2 images_1_of_2\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"listimg listimg_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"./images/service-4.png\" alt=\"\" />\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"text list_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<h4>Service - 02</h4>\r\n");
      out.write("\t\t\t\t\t\t\t\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsed do eiusmod tempor incididunt ut labore et dolore.Lorem\r\n");
      out.write("\t\t\t\t\t\t\t\t\tipsum dolor sit amet sed do eiusmod tempor incididunt ut\r\n");
      out.write("\t\t\t\t\t\t\t\t\tlabore.Lorem ipsum dolor sit amet, consectetur adipisicing\r\n");
      out.write("\t\t\t\t\t\t\t\t\telit.</p>\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"events.html\">More Info</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div class=\"section group service_desc\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"listview_1_of_2 images_1_of_2\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"listimg listimg_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"./images/service-5.png\" alt=\"\" />\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"text list_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<h4>Service - 01</h4>\r\n");
      out.write("\t\t\t\t\t\t\t\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsed do eiusmod tempor incididunt ut labore et dolore.Lorem\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tipsum dolor sit amet. Lorem ipsum dolor sit amet, consectetur\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\tadipisicing elit, sed do eiusmod tempor incididunt ut labore.</p>\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"events.html\">More Info</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"listview_1_of_2 images_1_of_2\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"listimg listimg_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"./images/service-6.png\" alt=\"\" />\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"text list_2_of_1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<h4>Service - 02</h4>\r\n");
      out.write("\t\t\t\t\t\t\t\t<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,\r\n");
      out.write("\t\t\t\t\t\t\t\t\tsed do eiusmod tempor incididunt ut labore et dolore.Lorem\r\n");
      out.write("\t\t\t\t\t\t\t\t\tipsum dolor sit amet sed do eiusmod tempor incididunt ut\r\n");
      out.write("\t\t\t\t\t\t\t\t\tlabore.Lorem ipsum dolor sit amet, consectetur adipisicing\r\n");
      out.write("\t\t\t\t\t\t\t\t\telit.</p>\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"events.html\">More Info</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<div class=\"sidebar\">\r\n");
      out.write("\t\t\t\t<div class=\"sidebar_right_top\">\r\n");
      out.write("\t\t\t\t\t<h3>Latest News</h3>\r\n");
      out.write("\t\t\t\t\t<div class=\"latestnews\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"latestnews_desc\">\r\n");
      out.write("\t\t\t\t\t\t\t<h4>Jan 15, 2012</h4>\r\n");
      out.write("\t\t\t\t\t\t\t<p>It is a long established fact that a reader will be\r\n");
      out.write(
          "\t\t\t\t\t\t\t\tdistracted by the readable content of a page when looking at its\r\n");
      out.write("\t\t\t\t\t\t\t\tlayout.</p>\r\n");
      out.write("\t\t\t\t\t\t\t<span><a href=\"#\">read more</a></span>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"latestnews_desc\">\r\n");
      out.write("\t\t\t\t\t\t\t<h4>Jan 20, 2013</h4>\r\n");
      out.write("\t\t\t\t\t\t\t<p>It is a long established fact that a reader will be\r\n");
      out.write(
          "\t\t\t\t\t\t\t\tdistracted by the readable content of a page when looking at its\r\n");
      out.write("\t\t\t\t\t\t\t\tlayout.</p>\r\n");
      out.write("\t\t\t\t\t\t\t<span><a href=\"#\">read more</a></span>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<div class=\"view-all\">\r\n");
      out.write("\t\t\t\t\t\t\t<a href=\"events.html\">ViewAll</a>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t<div class=\"sidebar_right_bottom\">\r\n");
      out.write("\t\t\t\t\t<h3>Member Login</h3>\r\n");
      out.write("\t\t\t\t\t<div class=\"login_form\">\r\n");
      out.write("\t\t\t\t\t\t<form>\r\n");
      out.write("\t\t\t\t\t\t\t<div>\r\n");
      out.write("\t\t\t\t\t\t\t\t<span><label>User Name</label></span> <span><input\r\n");
      out.write("\t\t\t\t\t\t\t\t\tname=\"userName\" type=\"text\" class=\"textbox\"></span>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div>\r\n");
      out.write("\t\t\t\t\t\t\t\t<span><label>Password</label></span> <span><input\r\n");
      out.write("\t\t\t\t\t\t\t\t\tname=\"userName\" type=\"password\"></span>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div>\r\n");
      out.write("\t\t\t\t\t\t\t\t<span><input type=\"submit\" class=\"mybutton\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tvalue=\"Submit\"></span>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<span><a href=\"#\">Forgot Password ?</a></span>\r\n");
      out.write("\t\t\t\t\t\t</form>\r\n");
      out.write("\t\t\t\t\t\t<h4>\r\n");
      out.write("\t\t\t\t\t\t\tFree registration <a href=\"#\">Click here</a>\r\n");
      out.write("\t\t\t\t\t\t</h4>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<div class=\"clear\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "footer.jsp", out, false);
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        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;
    java.lang.Throwable exception =
        org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
    if (exception != null) {
      response.setStatus(javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
    }
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

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

      out.write("<!DOCTYPE html>");
      out.write("<html>");
      out.write("<head>");
      out.write("<title>");
      out.write("Error");
      out.write("</title>");
      out.write("<style type=\"text/css\">");
      out.write("body{background-color:#202020} body,p{font-family:monospace;color:white}");
      out.write("</style>");
      out.write("</head>");
      out.write("<body>");
      out.write("<p>");
      out.write("<strong>");
      out.write("Error ");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.errorData.statusCode}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</strong>");
      out.write(' ');
      out.write(':');
      out.write(' ');
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.errorData.requestURI}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</p>");
      out.write("<p>");
      out.write("<pre>");

      Throwable t = pageContext.getErrorData().getThrowable();
      if (t != null) {
        t.printStackTrace(new PrintWriter(out));
      }

      out.write("</pre>");
      out.write("</p>");
      out.write("</body>");
      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(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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;

      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "top-template2.jsp", out, false);
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("</div>\n");
      out.write("<!-- end #header -->\n");
      out.write("<div id=\"menu\">\n");
      out.write("\t\t<ul>\n");
      out.write("\t\t</ul>\n");
      out.write("\t</div>\n");
      out.write("\t<!-- end #menu -->\n");
      out.write("<div id=\"page\">\n");
      out.write("\t\t<div id=\"content\" style =\"float:left;width:1500px\">\n");
      out.write("\t\t\t<div class=\"post\">\n");
      out.write("\t\t\t\t<div class=\"bg1\">\n");
      out.write("\t\t\t\t\t<div class=\"bg2\">\n");
      out.write("\t\t\t\t\t\t<div class=\"bg3\">\n");
      out.write("\t\t\t\t\t\t\t<div class=\"entry\">\n");
      out.write("<p style=\"font-size:small\">&nbsp;</p>\n");
      out.write("<form method=\"post\" action=\"clicktable.do\">\n");
      out.write("\t");
      ArrayList<String[]> tablelist = (ArrayList<String[]>) session.getAttribute("tablelist");
      if (tablelist.size() == 0) {
        out.write("\n");
        out.write("\t\t<td>You don't have any Google Fusion Tables, please upload one!</td>\n");
        out.write("\t\t");
      } else {
        out.write("\t\n");
        out.write("    <td>All my Fusion Tables, choose one to begin!</td>\n");
        out.write("    <br>\n");
        out.write("    <br>\n");
        out.write("    ");

        for (int i = 0; i < tablelist.size(); ++i) {
          String name = "" + tablelist.get(i)[0];
          String id = "" + tablelist.get(i)[1];
          out.write("\n");
          out.write("            <td><a href= \"clicktable.do?tableid=");
          out.print(id);
          out.write('"');
          out.write('>');
          out.print(name);
          out.write("</a></td>\n");
          out.write("            <br>\n");
          out.write("    ");
        }
      }
      out.write("\n");
      out.write("    \n");
      out.write("    <br>\n");
      out.write("    <br>\n");
      out.write("    --or--\n");
      out.write("    <br>\n");
      out.write("    <br>\n");
      out.write("    Search for a public Fusion Table\n");
      out.write("    <br>\n");
      out.write("    <br>\n");
      out.write(
          "    Input table ID<input type = \"text\" name = tableid ><input type = \"submit\" value = \"submit\">\n");
      out.write("\n");
      out.write("</form>\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</div>\n");
      out.write("\t\t\t</div>\t\t\t\n");
      out.write("\t\t</div>\n");
      out.write("   <!-- end #content -->\n");
      out.write("        <div id=\"sidebar\">  \n");
      out.write("\t\t  <ul>\n");
      out.write("          </ul>\n");
      out.write("           </div>\n");
      out.write("\t\t<!-- end #sidebar -->\n");
      out.write("\t\t<div style=\"clear: both;\">&nbsp;</div>\n");
      out.write("\t</div>\n");
      out.write("\n");
      out.write("        <!-- end #page -->\n");
      out.write("    </div>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "bottom-template.jsp", out, false);
    } catch (Throwable t) {
      if (!(t instanceof 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 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("<!DOCTYPE html>\r\n");
      out.write("<html lang=\"en\">\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "main/publicNavigations.jsp", out, false);
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "main/publicNavigations.jsp", out, false);
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_sql_005fsetDataSource_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("<meta charset=\"utf-8\">\r\n");
      out.write("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n");
      out.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n");
      out.write(
          "<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\r\n");
      out.write("<title>I'MPOSSIBLE - Register Password</title>\r\n");
      out.write("\r\n");
      out.write("<!-- Bootstrap -->\r\n");
      out.write("<link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
      out.write("<link rel=\"stylesheet\"\r\n");
      out.write(
          "\thref=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css\">\r\n");
      out.write("\r\n");
      out.write(
          "<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\r\n");
      out.write("<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\r\n");
      out.write("<!--[if lt IE 9]>\r\n");
      out.write(
          "  <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\r\n");
      out.write(
          "  <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\r\n");
      out.write("<![endif]-->\r\n");
      out.write("\r\n");
      out.write("<!-- for filter bar -->\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/flaticon.css\">\r\n");
      out.write("<meta\r\n");
      out.write(
          "\tcontent=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"\r\n");
      out.write("\tname=\"viewport\">\r\n");
      out.write("<!-- Ionicons -->\r\n");
      out.write("<link rel=\"stylesheet\"\r\n");
      out.write(
          "\thref=\"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\">\r\n");
      out.write("<link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
      out.write("<script\r\n");
      out.write(
          "\tsrc=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\r\n");
      out.write("<script\r\n");
      out.write(
          "\tsrc=\"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js\"></script>\r\n");
      out.write("<link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
      out.write("<link href=\"css/jquery-ui.min.css\" rel=\"stylesheet\">\r\n");
      out.write("<script src=\"http://cdn.alloyui.com/3.0.1/aui/aui-min.js\"></script>\r\n");
      out.write("<link href=\"http://cdn.alloyui.com/3.0.1/aui-css/css/bootstrap.min.css\"\r\n");
      out.write("\trel=\"stylesheet\"></link>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/home.css\" />\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t<form action=\"registerpassword.jsp\" method=\"get\" name=\"myForm\"\r\n");
      out.write("\t\tid=\"login_form\" class=\"form-horizontal\" data-toggle=\"validator\"\r\n");
      out.write("\t\trole=\"form\" onsubmit=\"return validateForm()\">\r\n");
      out.write("\t\t<div class=\"container\">\r\n");
      out.write("\t\t\t<div class=\"container-fluid\">\r\n");
      out.write("\t\t\t\t<div class=\"registrationpanel\">\r\n");
      out.write("\t\t\t\t\t<div class=\"panel panel-default\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"panel-heading\">\r\n");
      out.write("\t\t\t\t\t\t\t<h3 class=\"panel-title\">Registration Page</h3>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<fieldset style=\"padding-left: 10px\">\r\n");
      out.write("\t\t\t\t\t\t\t<h3>Personal Details Of Parent</h3>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Salutation:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-3\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"salutation_input\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tname=\"salutation\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mr\">Mr</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mrs\">Mrs</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Ms\">Ms</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mdm\">Mdm</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Full Name:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" placeholder=\"Surname\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tid=\"sname_input\" name=\"sname\" value=\"\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-3\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"gname_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"gname\" placeholder=\"Given Name\" value=\"\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Gender:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"gender_input\" name=\"gender\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option>Male</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option>Female</option>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<hr />\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<h3>Contact Information Of Parent</h3>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<i>Please provide the contact details we should use in the\r\n");
      out.write("\t\t\t\t\t\t\t\t\tevent for the latest updates of IM' Counselling.</i>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<br />\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Contact Number:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"country_code\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tname=\"country\" placeholder=\"+65\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"number_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"contact_number\" placeholder=\"Contact Number\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-sm-2\" for=\"category\">Address Line:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-sm-4\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"address_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"address\" placeholder=\"Address Line 1\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-sm-2\" for=\"category\">Postal Code:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-sm-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pc_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"postal_code\" placeholder=\"Postal Code\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<hr />\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<h3>Personal Details Of Child</h3>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Salutation:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-3\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"salutation_input\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tname=\"salutation1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mr\">Mr</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mrs\">Mrs</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Ms\">Ms</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mdm\">Mdm</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Full Name:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" placeholder=\"Surname\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tid=\"sname_input\" name=\"sname1\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-3\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"gname_input\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tname=\"gname1\" placeholder=\"Given Name\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Gender:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"gender_input\" name=\"gender1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Male\">Male</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Female\">Female</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Date of Birth:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-sm-4\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"date\" class=\"form-control\" id=\"dateofbirth\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tname=\"dob\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Relationship to\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tchild:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-sm-4\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"rtochild\" name=\"relationship\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Mother\">Mother</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Father\">Father</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Guardian\">Guardian</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<option value=\"Others\">Others</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<hr />\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<h3>Contact Information Of Child</h3>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<i>Please provide the contact details we should use in the\r\n");
      out.write("\t\t\t\t\t\t\t\t\tevent for the latest updates of IM' Counselling.</i>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<br />\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-xs-2\" for=\"category\">Contact:</label>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"country_code\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\tname=\"country1\" placeholder=\"+65\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"number_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"contact_number1\" placeholder=\"Contact Number\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-sm-2\" for=\"category\">Address Line:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-sm-4\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"address_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"address1\" placeholder=\"Address Line 1\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"row\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div class=\"form-group form-group-md\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<label class=\"col-sm-2\" for=\"category\">Postal Code:</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<div class=\"col-sm-2\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pc_input\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"postal_code1\" placeholder=\"Postal Code\" required>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</fieldset>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<div class=\"form-actions\">\r\n");
      out.write("\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"\r\n");
      out.write("\t\t\t\t\t\t\t\tonclick=validateForm()>Next</button>\r\n");
      out.write("\t\t\t\t\t\t\t<a href=\"viewProgramsNcourses.html\"><button type=\"button\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tclass=\"btn btn-danger\">Cancel</button></a>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</form>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t<!-- Start of <Fixed footer> -->\r\n");
      out.write("\t<footer id=\"footerMenu\"></footer>\r\n");
      out.write("\t<!-- End of <Fixed footer> -->\r\n");
      out.write("\r\n");
      out.write("\t<script src=\"js/validationregister.js\"></script>\r\n");
      out.write("\t<script src=\"js/footer.js\"></script>\r\n");
      out.write("\t<script src=\"js/bootstrap.min.js\"></script>\r\n");
      out.write("\t<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\r\n");
      out.write("\t<script\r\n");
      out.write(
          "\t\tsrc=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\r\n");
      out.write(
          "\t<!-- Include all compiled plugins (below), or include individual files as needed -->\r\n");
      out.write("\t<script src=\"js/jquery.min.js\"></script>\r\n");
      out.write("\t<script src=\"js/jquery-ui.min.js\"></script>\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);
    }
  }
Beispiel #12
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

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

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

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

      out.write("<!DOCTYPE html>\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("  <meta charset=\"UTF-8\">\n");
      out.write("  <title>Insert title here</title>\n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/CommonStyle.jsp", out, false);
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/header.jsp", out, false);
      out.write("<h1>게시물 목록</h1>\n");
      out.write("  <p>\n");
      out.write("    <form action='list.do' method='get'>\n");
      out.write("      <input type='text' name='word' value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${param.word}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("'>\n");
      out.write("      <button>검색</button>\n");
      out.write("    </form>\n");
      out.write("  </p>\n");
      out.write("  <table border='1'>\n");
      out.write("    <tr> \n");
      out.write("      <th><a href='list.do?order=no&word=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${param.word}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("'>번호\n");
      out.write("          ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write("</a></th> \n");
      out.write("      <th><a href='list.do?order=title&word=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${param.word}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("'>제목\n");
      out.write("          ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) return;
      out.write("</a></th> \n");
      out.write("      <th><a href='list.do?order=createDate&word=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${param.word}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("'>작성일\n");
      out.write("          ");
      if (_jspx_meth_c_005fif_005f2(_jspx_page_context)) return;
      out.write("</a></th> \n");
      out.write("      <th><a href='list.do?order=views&word=");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${param.word}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("'>조회수\n");
      out.write("          ");
      if (_jspx_meth_c_005fif_005f3(_jspx_page_context)) return;
      out.write("</a></th>\n");
      out.write("    </tr> \n");
      if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context)) return;
      out.write("</table>\n");
      out.write("  <div>\n");
      out.write("    <a href='form.html'>새 글</a>\n");
      out.write("    ");
      if (_jspx_meth_c_005fchoose_005f0(_jspx_page_context)) return;
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageNo}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      if (_jspx_meth_c_005fchoose_005f1(_jspx_page_context)) return;
      out.write("</div>  \n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/Footer.jsp", out, false);
      out.write("</body>\n");
      out.write("</html>\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");
    } 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(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html");
      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');

      String cSec = checkSecurity(2, session, response, request);
      if ("sendRedirect".equals(cSec)) return;

      boolean bDebug = false;

      String sAction = getParam(request, "FormAction");
      String sForm = getParam(request, "FormName");
      String seditorialsErr = "";

      java.sql.Connection conn = null;
      java.sql.Statement stat = null;
      String sErr = loadDriver();
      conn = cn();
      stat = conn.createStatement();
      if (!sErr.equals("")) {
        try {
          out.println(sErr);
        } catch (Exception e) {
        }
      }

      out.write('\n');
      out.write(
          "\n\n<html>\n<head>\n<title>Book Store</title>\n<meta name=\"GENERATOR\"\n\tcontent=\"YesSoftware CodeCharge v.1.2.0 / JSP.ccp build 05/21/2001\" />\n<meta http-equiv=\"pragma\" content=\"no-cache\" />\n<meta http-equiv=\"expires\" content=\"0\" />\n<meta http-equiv=\"cache-control\" content=\"no-cache\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n</head>\n<body\n\tstyle=\"background-color: #FFFFFF; color: #000000; font-family: Arial, Tahoma, Verdana, Helveticabackground-color: #FFFFFF; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica\">\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "Header.jsp", out, true);
      out.write("\n<table>\n\t<tr>\n\n\t\t<td valign=\"top\">\n\t\t");
      editorials_Show(request, response, session, out, seditorialsErr, sForm, sAction, conn, stat);
      out.write("\n\n\t\t</td>\n\t</tr>\n</table>\n\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "Footer.jsp", out, true);
      out.write(
          "\n<center><font face=\"Arial\"><small>This dynamic\nsite was generated with <a href=\"http://www.codecharge.com\">CodeCharge</a></small></font></center>\n</body>\n</html>\n");

      out.write('\n');

      if (stat != null) stat.close();
      if (conn != null) conn.close();

      out.write('\n');
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #14
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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;
      _jspx_resourceInjector =
          (org.glassfish.jsp.api.ResourceInjector)
              application.getAttribute("com.sun.appserv.jsp.resource.injector");

      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>Segundo Trabalho de LP3</title>\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\" />\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("<center>\n");
      out.write("<div class=\"geral\">\n");
      out.write("<div class=\"top\">\n");
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE html>\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("        <link rel=\"stylesheet\" type=\"text/css\" href=\"css.css\" />\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("<center>\n");
      out.write("        <div class=\"geral\">\n");
      out.write(
          "            <div class=\"top\"><h1>Segundo Trabalho LP3</h1></div> <div class=\"geral\">\n");
      out.write("\n");
      out.write("</div>\n");
      out.write("<div class=\"left\">");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "menu.jsp", out, false);
      out.write("</div>\n");
      out.write("<div class=\"right\">\n");
      out.write("    <p>Excercicios resolvidos</p>\n");
      out.write("</div>\n");
      out.write("<div class=\"rodape\">\n");
      out.write("\n");
      out.write("\n");
      out.write("           <div class=\"rodape\">\n");
      out.write("                <p>Desenvolvido por<br/> \n");
      out.write("</p></div></div>\n");
      out.write("    </center>\n");
      out.write("</body>\n");
      out.write("</html>");
      out.write("</div></div>\n");
      out.write("</center>\n");
      out.write("</body>\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #15
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

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

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

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

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

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

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

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

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

          if (loggedIn && passwordExpires != null) {

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

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

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

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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("<!DOCTYPE html>\n");
      out.write("<html lang=\"fr\">\n");
      out.write("\t<head>\n");
      out.write("\t\t<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../import.jsp", out, false);
      out.write("\n");
      out.write("    \t<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n");
      out.write("    \t<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n");
      out.write("\t\t<meta name=\"generator\" content=\"Bootply\" />\n");
      out.write(
          "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n");
      out.write("\t\t<link rel=\"stylesheet\" href=\"");
      if (_jspx_meth_c_005furl_005f0(_jspx_page_context)) return;
      out.write("\" media=\"screen\"/>\n");
      out.write("\t\t<!-- Faire fonctionner les balises structurantes de HTML5 -->\n");
      out.write("    \t<!--[if lt IE 9]>\n");
      out.write(
          "      \t\t<script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></script>\n");
      out.write("    \t<![endif]-->\n");
      out.write("\t\t<title>Réinitialiser mot de passe</title>\n");
      out.write("\t\t\n");
      out.write("\t\t<style type=\"text/css\">\n");
      out.write("      \t\tbody\n");
      out.write("\t\t\t{\n");
      out.write("\t\t\t    background-repeat:no-repeat;\n");
      out.write("\t\t\t    background-size:cover;\n");
      out.write("\t\t\t    width: 400px;\n");
      out.write("    \t\t\tmargin: auto;\n");
      out.write("    \t\t\tmargin-top : 20%;\n");
      out.write("\t\t\t    font-family: 'PT Sans', Helvetica, Arial, sans-serif;\n");
      out.write("\t\t\t    font-size: 16px;\n");
      out.write("\t\t\t}\n");
      out.write("    \t</style>\n");
      out.write("\t</head>\n");
      out.write("\t<body style=\"background-image:url(");
      if (_jspx_meth_c_005furl_005f1(_jspx_page_context)) return;
      out.write(")\">\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request,
          response,
          "../../header.jsp"
              + (("../../header.jsp").indexOf('?') > 0 ? '&' : '?')
              + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(
                  "page_active", request.getCharacterEncoding())
              + "="
              + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(
                  "confirmation_mail_mdpo", request.getCharacterEncoding())
              + "&"
              + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(
                  "connected", request.getCharacterEncoding())
              + "="
              + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(
                  (java.lang.String)
                      org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                          "${connected}",
                          java.lang.String.class,
                          (PageContext) _jspx_page_context,
                          null,
                          false),
                  request.getCharacterEncoding()),
          out,
          false);
      out.write("\n");
      out.write("\t\n");
      out.write("\t\t<div class=\"container\" id=\"message\">\n");
      out.write(
          "\t      <h4><span style=\"color:white;\">Un mail de confirmation vient de vous être envoyée</span></h4>\n");
      out.write("\t\n");
      out.write("\t      <div id=\"lien\">\n");
      out.write("\t\t<div><a href=\"hello\">retourner à la page d'Acceuil</a></div>\n");
      out.write("\t      </div>\n");
      out.write("\t    </div>\n");
      out.write("\t</body>\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof 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);
    }
  }
Beispiel #17
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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;
      _jspx_resourceInjector =
          (org.glassfish.jsp.api.ResourceInjector)
              application.getAttribute("com.sun.appserv.jsp.resource.injector");

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

      if (session != null && session.getAttribute("username") == null) {

        out.write("\n");
        out.write("    ");
        org.apache.jasper.runtime.JspRuntimeLibrary.include(
            request, response, "header.jsp", out, false);
        out.write(" \n");
        out.write("            <section>\n");
        out.write("\n");
        out.write("                <div class=\"mockup-content\">\n");
        out.write("                    <p style=\"color:white\">\n");
        out.write(
            "                        1. \tระบบนี้เป็นระบบที่ใช้แบบวันต่อวัน เมื่อเข้าสู่ระบบแล้วกรุณาเลือกช่วงที่จะใช้จองสนาม ซึ่งใช้ 1 สิทธิต่อ 1 ชั่วโมง \n");
        out.write("                        เพื่อให้นักศึกษาได้ใช้งานอย่างทั่วถึง <br>\n");
        out.write(
            "                        2. \tเมื่อเข้าระบบจองสนามเสร็จแล้วจะเข้าสู่ระบบการยืมอุปกรณ์กีฬาซึ่งการยืมอุปกรณ์นั้นๆจะขึ้นอยู่กับการจองสนามกีฬานั้น\n");
        out.write(
            "                        โดยไม่สามารถเลือกอุปกรณ์ ที่ไม่เกี่ยวข้องเกี่ยวสนามนั้นได้ แต่ถ้าไม่ต้องการยืมอุปกรณ์จะข้ามไปสู่ระบบจองล็อกเกอร์ได้เรย<br>\n");
        out.write(
            "                        3.\tเมื่อเข้าระบบจองล็อกเกอร์จะแสดงสถานะ ว่าในวันนั้นมีล็อกเกอร์ว่างอยู่กี่ล็อกเกอร์ แล้วเมื่อต้องการมั้ย จะเข้าสู่ระบบยืนยัน \n");
        out.write(
            "                        แต่ถ้าไม่ต้องการจองล็อกเกอร์จะข้ามไปสู่ระบบการยืนยันทันที<br>\n");
        out.write(
            "                        4.\tเมื่อกเข้าสู่ระบบจองทั้งหมด จะมีหน้าสรุปบอกสถานะสำหรับผู้ใช้ว่าได้เลือกการจองอะไรไว้บ้าง เพื่อยืนยันการใช้บริการ\n");
        out.write("\n");
        out.write("                    </p>\n");
        out.write("                    <br>\n");
        out.write("                    <br>\n");
        out.write(
            "                    <div class=\"morph-button morph-button-modal morph-button-modal-2 morph-button-fixed\">\n");
        out.write("                        <button type=\"button\" >\n");
        out.write("                            <span>เข้าสู่ระบบ</span>\n");
        out.write("                        </button>\n");
        out.write("                        <br>\n");
        out.write("                        <div class=\"morph-content\">\n");
        out.write("                            <div>\n");
        out.write(
            "                                <div class=\"content-style-form content-style-form-1\">\n");
        out.write(
            "                                    <span class=\"icon icon-close\">Close the dialog</span>\n");
        out.write("                                    <h2>Login</h2>\n");
        out.write("\n");
        out.write("                                    <form action=\"UserLogin\">\n");
        out.write("                                        <p>\n");
        out.write("                                            <label>Username</label>\n");
        out.write(
            "                                            <input type=\"text\" name=\"username\" placeholder=\"Student id\"/>\n");
        out.write("                                        </p>\n");
        out.write("                                        <p>\n");
        out.write("                                            <label>Password</label>\n");
        out.write(
            "                                            <input type=\"password\" name=\"password\" placeholder=\"Password\"/>\n");
        out.write("                                        </p>\n");
        out.write("                                        <p>\n");
        out.write(
            "                                            <button type=\"submit\">Login</button>\n");
        out.write("                                        </p>\n");
        out.write("                                    </form>\n");
        out.write("                                </div>\n");
        out.write("                            </div>\n");
        out.write("                        </div> <!--Popup content-->\n");
        out.write("                    </div>\n");
        out.write("                    <!-- morph-button -->\n");
        out.write("\n");
        out.write("                </div>\n");
        out.write("                <!-- /form-mockup -->\n");
        out.write("            </section>\n");
        out.write("\n");
        out.write("        </div>\n");
        out.write("        <!-- /container -->\n");
        out.write("        <script src=\"js/classie.js\"></script>\n");
        out.write("        <script src=\"js/uiMorphingButton_fixed.js\"></script>\n");
        out.write("        <script>\n");
        out.write("            (function() {\n");
        out.write(
            "                var docElem = window.document.documentElement, didScroll, scrollPosition;\n");
        out.write("\n");
        out.write("                // trick to prevent scrolling when opening/closing button\n");
        out.write("                function noScrollFn() {\n");
        out.write(
            "                    window.scrollTo(scrollPosition ? scrollPosition.x : 0, scrollPosition ? scrollPosition.y : 0);\n");
        out.write("                }\n");
        out.write("\n");
        out.write("                function noScroll() {\n");
        out.write("                    window.removeEventListener('scroll', scrollHandler);\n");
        out.write("                    window.addEventListener('scroll', noScrollFn);\n");
        out.write("                }\n");
        out.write("\n");
        out.write("                function scrollFn() {\n");
        out.write("                    window.addEventListener('scroll', scrollHandler);\n");
        out.write("                }\n");
        out.write("\n");
        out.write("                function canScroll() {\n");
        out.write("                    window.removeEventListener('scroll', noScrollFn);\n");
        out.write("                    scrollFn();\n");
        out.write("                }\n");
        out.write("\n");
        out.write("                function scrollHandler() {\n");
        out.write("                    if (!didScroll) {\n");
        out.write("                        didScroll = true;\n");
        out.write("                        setTimeout(function() {\n");
        out.write("                            scrollPage();\n");
        out.write("                        }, 60);\n");
        out.write("                    }\n");
        out.write("                }\n");
        out.write("                ;\n");
        out.write("\n");
        out.write("                function scrollPage() {\n");
        out.write(
            "                    scrollPosition = {x: window.pageXOffset || docElem.scrollLeft, y: window.pageYOffset || docElem.scrollTop};\n");
        out.write("                    didScroll = false;\n");
        out.write("                }\n");
        out.write("                ;\n");
        out.write("\n");
        out.write("                scrollFn();\n");
        out.write("\n");
        out.write(
            "                [].slice.call(document.querySelectorAll('.morph-button')).forEach(function(bttn) {\n");
        out.write("                    new UIMorphingButton(bttn, {\n");
        out.write("                        closeEl: '.icon-close',\n");
        out.write("                        onBeforeOpen: function() {\n");
        out.write("                            // don't allow to scroll\n");
        out.write("                            noScroll();\n");
        out.write("                        },\n");
        out.write("                        onAfterOpen: function() {\n");
        out.write("                            // can scroll again\n");
        out.write("                            canScroll();\n");
        out.write("                        },\n");
        out.write("                        onBeforeClose: function() {\n");
        out.write("                            // don't allow to scroll\n");
        out.write("                            noScroll();\n");
        out.write("                        },\n");
        out.write("                        onAfterClose: function() {\n");
        out.write("                            // can scroll again\n");
        out.write("                            canScroll();\n");
        out.write("                        }\n");
        out.write("                    });\n");
        out.write("                });\n");
        out.write("\n");
        out.write("            })();\n");
        out.write("        </script>\n");
        out.write("        ");
        org.apache.jasper.runtime.JspRuntimeLibrary.include(
            request, response, "footer.jsp", out, false);
        out.write(' ');
        out.write('\n');

      } else {
        response.sendRedirect("StadiumServlet");
      }
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #18
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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;

      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      //  up72:override
      com.up72.framework.web.tags.OverrideTag _jspx_th_up72_005foverride_005f0 =
          (com.up72.framework.web.tags.OverrideTag)
              _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.get(
                  com.up72.framework.web.tags.OverrideTag.class);
      _jspx_th_up72_005foverride_005f0.setPageContext(_jspx_page_context);
      _jspx_th_up72_005foverride_005f0.setParent(null);
      // /pages/admin/jtzs/province/index.jsp(9,0) name = name type = null reqTime = true required =
      // true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false
      // methodSignature = null
      _jspx_th_up72_005foverride_005f0.setName("head");
      int _jspx_eval_up72_005foverride_005f0 = _jspx_th_up72_005foverride_005f0.doStartTag();
      if (_jspx_eval_up72_005foverride_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_up72_005foverride_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_up72_005foverride_005f0.setBodyContent(
              (javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_up72_005foverride_005f0.doInitBody();
        }
        do {
          out.write("<title>");
          out.print(Province.TABLE_ALIAS);
          out.write(" 维护</title>\r\n");
          out.write("  <script src=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/rest.js\" ></script>\r\n");
          out.write("  <link href=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(
              "/scripts/simpletable/simpletable.css\" type=\"text/css\" rel=\"stylesheet\">\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,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/simpletable/simpletable.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,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/columnshow.js\"></script>\r\n");
          out.write("  <link href=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/grid/css/flexigrid.css\" type=\"text/css\" rel=\"stylesheet\">\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,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/grid/flexigrid-source.js\"></script> \r\n");
          out.write("  <script type=\"text/javascript\" >\r\n");
          out.write("\t\t$(document).ready(function() {\r\n");
          out.write("\t\t\t// 分页需要依赖的初始化动作\r\n");
          out.write(
              "\t\t\twindow.simpleTable = new SimpleTable('admin_jtzs_province_search_form',");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${page.thisPageNumber}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(',');
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${page.pageSize}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(',');
          out.write('\'');
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${pageRequest.sortColumns}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("');\r\n");
          out.write("\t\t});\r\n");
          out.write("\t</script> \r\n");
          out.write("  <script type=\"text/javascript\" src=\"");
          if (_jspx_meth_c_005furl_005f0(_jspx_th_up72_005foverride_005f0, _jspx_page_context))
            return;
          out.write("\"></script> \r\n");
          int evalDoAfterBody = _jspx_th_up72_005foverride_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
        if (_jspx_eval_up72_005foverride_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_up72_005foverride_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
            _jspx_th_up72_005foverride_005f0);
        return;
      }
      _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
          _jspx_th_up72_005foverride_005f0);
      //  up72:override
      com.up72.framework.web.tags.OverrideTag _jspx_th_up72_005foverride_005f1 =
          (com.up72.framework.web.tags.OverrideTag)
              _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.get(
                  com.up72.framework.web.tags.OverrideTag.class);
      _jspx_th_up72_005foverride_005f1.setPageContext(_jspx_page_context);
      _jspx_th_up72_005foverride_005f1.setParent(null);
      // /pages/admin/jtzs/province/index.jsp(25,0) name = name type = null reqTime = true required
      // = true fragment = false deferredValue = false expectedTypeName = null deferredMethod =
      // false methodSignature = null
      _jspx_th_up72_005foverride_005f1.setName("content");
      int _jspx_eval_up72_005foverride_005f1 = _jspx_th_up72_005foverride_005f1.doStartTag();
      if (_jspx_eval_up72_005foverride_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_up72_005foverride_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_up72_005foverride_005f1.setBodyContent(
              (javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_up72_005foverride_005f1.doInitBody();
        }
        do {
          out.write("<!--搜索-->\r\n");
          out.write("  <div class=\"up72_search\">\r\n");
          out.write(
              "    <form id=\"admin_jtzs_province_search_form\" name=\"admin_jtzs_province_search_form\" method=\"get\">\r\n");
          out.write("      <div class=\"search_con\"> \r\n");
          out.write("\r\n");
          out.write("        <div class=\"search_txt\">");
          out.print(Province.ALIAS_NAME);
          out.write(":\r\n");
          out.write(
              "          <input type=\"text\" id=\"name\" name=\"name\" class=\"input_text\" value=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${query.name}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("\">\r\n");
          out.write("        </div>\r\n");
          out.write("        <div class=\"search_btn\">\r\n");
          out.write("          <div class=\"input_button\">\r\n");
          out.write(
              "            <button name=\"btnU\" type=\"submit\" onclick=\"$(this).parents('form').submit();\" class=\"button\" value=\"查询\"><span>查询</span></button>\r\n");
          out.write("          </div>\r\n");
          out.write("        </div>\r\n");
          out.write("      </div>\r\n");
          out.write("    </form>\r\n");
          out.write("  </div>\r\n");
          out.write("  <!--end搜索-->\r\n");
          out.write("  \r\n");
          out.write(
              "  <form id=\"admin_jtzs_province_page_form\" name=\"admin_jtzs_province_page_form\" method=\"get\">\r\n");
          out.write("    <table id=\"admin_jtzs_province_table\">\r\n");
          out.write("      <thead>\r\n");
          out.write("        <tr>\r\n");
          out.write("        <!-- \r\n");
          out.write(
              "          <th showColumn=\"checkbox\" width=\"25\"><input type=\"checkbox\" id=\"checkall\" onclick=\"setAllCheckboxState('items',this.checked);\" /></th>\r\n");
          out.write("         -->\r\n");
          out.write("          <th showColumn=\"index\" width=\"50\">序号</th>\r\n");
          out.write("          <th showColumn=\"name\" width=\"400\">");
          out.print(Province.ALIAS_NAME);
          out.write("</th>\r\n");
          out.write("          <th showColumn=\"status\" width=\"100\">状态</th>          \r\n");
          out.write("          <th showColumn=\"option\" width=\"100\"><label>操作</label></th>\r\n");
          out.write("        </tr>\r\n");
          out.write("      </thead>\r\n");
          out.write("      <tbody>\r\n");
          out.write("        ");
          //  c:forEach
          org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 =
              (org.apache.taglibs.standard.tag.rt.core.ForEachTag)
                  _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.get(
                      org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
          _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
          _jspx_th_c_005fforEach_005f0.setParent(
              (javax.servlet.jsp.tagext.Tag) _jspx_th_up72_005foverride_005f1);
          // /pages/admin/jtzs/province/index.jsp(59,8) name = items type = java.lang.Object reqTime
          // = true required = false fragment = false deferredValue = false expectedTypeName = null
          // deferredMethod = false methodSignature = null
          _jspx_th_c_005fforEach_005f0.setItems(
              (java.lang.Object)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${page.result}",
                      java.lang.Object.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          // /pages/admin/jtzs/province/index.jsp(59,8) name = var type = java.lang.String reqTime =
          // false required = false fragment = false deferredValue = false expectedTypeName = null
          // deferredMethod = false methodSignature = null
          _jspx_th_c_005fforEach_005f0.setVar("item");
          // /pages/admin/jtzs/province/index.jsp(59,8) name = varStatus type = java.lang.String
          // reqTime = false required = false fragment = false deferredValue = false
          // expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_c_005fforEach_005f0.setVarStatus("status");
          int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] {0};
          try {
            int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
            if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
              do {
                out.write("<tr>\r\n");
                out.write("          <!-- \r\n");
                out.write(
                    "            <td showColumn=\"checkbox\"><input type=\"checkbox\" id=\"items\" name=\"items\" value=\"");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${item.id}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("\" class=\"sel\" tags=\"null\"></td>\r\n");
                out.write("           -->\r\n");
                out.write("            <td showColumn=\"index\">");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${page.thisPageFirstElementNumber + status.index}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("</td>\r\n");
                out.write("            <td showColumn=\"name\">");
                if (_jspx_meth_c_005fout_005f0(
                    _jspx_th_c_005fforEach_005f0,
                    _jspx_page_context,
                    _jspx_push_body_count_c_005fforEach_005f0)) return;
                out.write("</td>\r\n");
                out.write("            <td showColumn=\"status\">");
                if (_jspx_meth_c_005fout_005f1(
                    _jspx_th_c_005fforEach_005f0,
                    _jspx_page_context,
                    _jspx_push_body_count_c_005fforEach_005f0)) return;
                out.write("</td>\r\n");
                out.write("            <td showColumn=\"option\">\r\n");
                out.write("            \t<a href=\"javascript:;\"  onclick=\"show('");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${ctx}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("/admin/jtzs/province/");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${item.id}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("/edit','");
                out.print(Province.TABLE_ALIAS);
                out.write("编辑',600)\" class=\"sysiconBtnNoIcon\">编辑</a>\r\n");
                out.write("            \t");
                if (_jspx_meth_c_005fforEach_005f1(
                    _jspx_th_c_005fforEach_005f0,
                    _jspx_page_context,
                    _jspx_push_body_count_c_005fforEach_005f0)) return;
                out.write("</td>\r\n");
                out.write("          </tr>\r\n");
                out.write("        ");
                int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
              } while (true);
            }
            if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              return;
            }
          } catch (Throwable _jspx_exception) {
            while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
              out = _jspx_page_context.popBody();
            _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
          } finally {
            _jspx_th_c_005fforEach_005f0.doFinally();
            _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.reuse(
                _jspx_th_c_005fforEach_005f0);
          }
          out.write("</tbody>\r\n");
          out.write("    </table>\r\n");
          out.write("    ");
          if (_jspx_meth_simpletable_005fpageToolbar_005f0(
              _jspx_th_up72_005foverride_005f1, _jspx_page_context)) return;
          out.write("</form>\r\n");
          out.write("  <script type=\"text/javascript\">\r\n");
          out.write("\t// 列选择显示处理\r\n");
          out.write("\t$.showcolumn(");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${showColumn}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(");\r\n");
          out.write("\t\r\n");
          out.write("\t// 表格列表处理\r\n");
          out.write("\t$('#admin_jtzs_province_table').flexigrid({\r\n");
          out.write("\t\theight: 'auto',\r\n");
          out.write("\t\tstriped : true,\r\n");
          out.write("\t\tbuttons : [\r\n");
          out.write("\t\t\t{name: \"添加\", bclass: \"addorder\", onpress : function(){show(\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/admin/jtzs/province/new\",\"");
          out.print(Province.TABLE_ALIAS);
          out.write("添加\",600)}}\r\n");
          out.write("\t\t]\r\n");
          out.write("\t});\r\n");
          out.write("\r\n");
          out.write("\tfunction doValid(id,item){\r\n");
          out.write("\t\tvar $item = $(item);\r\n");
          out.write("\t\t$.ajax({\r\n");
          out.write("\t\t\turl : \"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/admin/jtzs/province/\"+id+\"/doValid\",\r\n");
          out.write("\t\t\ttype : \"post\",\r\n");
          out.write("\t\t\tdataType : \"json\",\r\n");
          out.write("\t\t\tsuccess : function(jsondatas){\r\n");
          out.write("\t\t\t\tif(jsondatas.status=='success'){\r\n");
          out.write("\t\t\t\t\tif(jsondatas.valid=='");
          out.print(JTZSConstants.Pubilc.DISABLE.getIndex());
          out.write("'){\r\n");
          out.write("\t\t\t\t\t\t$item.text('");
          out.print(JTZSConstants.Pubilc.ENABLED.getName());
          out.write("');\r\n");
          out.write(
              "\t\t\t\t\t\t$item.closest(\"tr\").find(\"td[showColumn='status'] div\").text('");
          out.print(JTZSConstants.Pubilc.DISABLE.getName());
          out.write("');\r\n");
          out.write("\t\t\t\t\t}else{\r\n");
          out.write("\t\t\t\t\t\t$item.text('");
          out.print(JTZSConstants.Pubilc.DISABLE.getName());
          out.write("');\r\n");
          out.write(
              "\t\t\t\t\t\t$item.closest(\"tr\").find(\"td[showColumn='status'] div\").text('");
          out.print(JTZSConstants.Pubilc.ENABLED.getName());
          out.write("');\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\terror : function(){\r\n");
          out.write("\t\t\t}\r\n");
          out.write("\t\t});\r\n");
          out.write("\t}\r\n");
          out.write("</script> \r\n");
          int evalDoAfterBody = _jspx_th_up72_005foverride_005f1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
        if (_jspx_eval_up72_005foverride_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_up72_005foverride_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
            _jspx_th_up72_005foverride_005f1);
        return;
      }
      _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
          _jspx_th_up72_005foverride_005f1);
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/admin/adminBase", out, false);
    } catch (Throwable t) {
      if (!(t instanceof 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);
    }
  }
Beispiel #19
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

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

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

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

      out.write("\n");
      out.write("  \n");
      out.write(" ");
      request.setCharacterEncoding("utf-8");
      out.write('\n');
      out.write(' ');
      movie.admin.filmBean gb = null;
      gb =
          (movie.admin.filmBean)
              _jspx_page_context.getAttribute("gb", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (gb == null) {
        gb = new movie.admin.filmBean();
        _jspx_page_context.setAttribute("gb", gb, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      movie.admin.film _film = null;
      _film =
          (movie.admin.film)
              _jspx_page_context.getAttribute("_film", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (_film == null) {
        _film = new movie.admin.film();
        _jspx_page_context.setAttribute("_film", _film, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(
          _jspx_page_context.findAttribute("_film"), request);
      out.write("\n");
      out.write(" \n");
      out.write("\n");
      out.write(" ");

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

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

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

      out.write("\n");
      out.write("    \n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  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(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div  style=\"display:block;\" id=\"id_toggle_tabs_form\">\r\n");
      out.write("\t   <!--表单页签1开始-->\r\n");
      out.write("\t   <!--表单处理-->\r\n");
      out.write("\t   <div style=\"\" id=\"id_workflowFormContainer\">\r\n");
      out.write(
          "\t\t <div  id=\"id_workflowFormContainer_inner\" style=\"width:100%;overflow-y:scroll;\">\r\n");
      out.write(
          "\t\t   <iframe name=\"real_submit_frame\" style=\"display:none;\" id=\"id_real_submit_frame\"></iframe>\r\n");
      out.write(
          "\t\t   <form  id=\"id_submitProcessedForm\" enctype=\"multipart/form-data\" target=\"real_submit_frame\" action=\"{pageContext.request.contextPath}/submitProcessedForm/jbpm/submitProcessedForm.action\" method=\"post\">\r\n");
      out.write("\t\t\t   <!-- 流程提交隐藏域 -->\r\n");
      out.write("\t\t\t   ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "getWorkflowFormHiddenField.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t\t   <!-- 当前任务节点表单路径相对于jbpm-core/forms下的jsp页面 -->\r\n");
      out.write("\t\t\t   ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request,
          response,
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "/${empty requestFormPath ? 'errorPages/error404.bi' : requestFormPath }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false),
          out,
          true);
      out.write("\r\n");
      out.write("\t\t\t   <script type=\"text/javascript\">\r\n");
      out.write("\t\t\t  \t\tjQuery(\"#id_loadMaskContainer\").hide();\r\n");
      out.write("\t\t\t   </script>\r\n");
      out.write("\t\t   </form>\r\n");
      out.write("\t\t </div>\r\n");
      out.write("\t\t <script>\r\n");
      out.write(
          "\t\t      jQuery(\"#id_workflowFormContainer_inner\").css(\"width\",(all_width-containerWidthAdd-10)+\"px\");\r\n");
      out.write(
          "\t\t\t  jQuery(\"#id_workflowFormContainer_inner\").css(\"height\",(all_height-containerHeightAdd-1)+\"px\");\r\n");
      out.write(
          "\t\t\t  jQuery(\".x-panel-table-toolbar-div\").css(\"width\",(all_width-containerWidthAdd)+\"px\");\r\n");
      out.write(
          "\t\t\t  jQuery(\".x-panel-table-div-title\").css(\"width\",(all_width-containerWidthAdd)+\"px\");\r\n");
      out.write(
          "\t\t\t  jQuery(\"#id_toggle_tabs_advise .x-panel-table-div-title\").css(\"width\",(all_width-containerWidthAdd-20)+\"px\");\r\n");
      out.write(
          "\t\t\t  jQuery(\"#id_toggle_tabs_attachment .x-panel-table-div-title\").css(\"width\",(all_width-containerWidthAdd-20)+\"px\");\r\n");
      out.write(
          "\t\t\t  jQuery(\"#id_content_tabs .tabs-header\").css(\"width\",(all_width-containerWidthAdd+1)+\"px\");\r\n");
      out.write("\t    </script>\r\n");
      out.write("\t  </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 {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #21
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    java.lang.Throwable exception =
        org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
    if (exception != null) {
      response.setStatus(javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
    }
    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("\r\n");
      out.write("\r\n");
      if (_jspx_meth_fmt_005fsetBundle_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<title>");
      if (_jspx_meth_fmt_005fmessage_005f0(_jspx_page_context)) return;
      out.write("</title>\r\n");
      out.write("\t\t<meta HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\r\n");
      out.write("\t\t<meta HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">\r\n");
      out.write("\t\t<link href=\"./theme.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t</head>\r\n");
      out.write("\t<body>\r\n");
      out.write("\t\t<h1>");
      if (_jspx_meth_fmt_005fmessage_005f1(_jspx_page_context)) return;
      out.write("</h1>\r\n");
      out.write("\t\t<p>");
      if (_jspx_meth_fmt_005fmessage_005f2(_jspx_page_context)) return;
      out.write("</p>\r\n");
      out.write("\t</body>\r\n");
      out.write("</html>\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");
      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=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>Tackit");
      out.print(session.getAttribute("bName"));
      out.write(" </title>\r\n");
      out.write("\r\n");
      out.write("\r\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\" \"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("<link href=\"css/bootstrap.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<link href=\"navbar-fixed-top.css\" rel=\"stylesheet\">\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t");

      User usrObj = (User) session.getAttribute("userInfo");
      List<String> bList = new ArrayList<String>();

      for (Board board : usrObj.getBoardList()) {
        bList.add(board.getBoardName());
      }
      for (Board board : usrObj.getFollowedBoardList()) {
        bList.add(board.getBoardName());
      }

      out.write("\r\n");
      out.write("\r\n");
      out.write("\t<div class=\"navbar navbar-default navbar-fixed-top\" role=\"navigation\">\r\n");
      out.write("\t\t<div class=\"container\">\r\n");
      out.write("\t\t\t<div class=\"navbar-header\">\r\n");
      out.write(
          "\t\t\t\t<button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\"\r\n");
      out.write("\t\t\t\t\tdata-target=\".navbar-collapse\">\r\n");
      out.write("\t\t\t\t\t<span class=\"sr-only\">Toggle navigation</span> <span\r\n");
      out.write(
          "\t\t\t\t\t\tclass=\"icon-bar\"></span> <span class=\"icon-bar\"></span> <span\r\n");
      out.write("\t\t\t\t\t\tclass=\"icon-bar\"></span>\r\n");
      out.write("\t\t\t\t</button>\r\n");
      out.write("\t\t\t\t<a class=\"navbar-brand\" href=\"#\">TackIT</a>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<div class=\"navbar-collapse collapse\">\r\n");
      out.write("\t\t\t\t<ul class=\"nav navbar-nav\">\r\n");
      out.write("\t\t\t\t\t<li class=\"active\"><a href=\"Dashboard.jsp\">Home</a></li>\r\n");
      out.write("\t\t\t\t\t<li><a href=\"#about\">About</a></li>\r\n");
      out.write("\t\t\t\t\t<li class=\"dropdown\"><a href=\"#\" class=\"dropdown-toggle\"\r\n");
      out.write("\t\t\t\t\t\tdata-toggle=\"dropdown\">MyBoard <b class=\"caret\"></b></a>\r\n");
      out.write("\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"divider\"></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"dropdown-header\">Your Boards</li>\r\n");
      out.write("\t\t\t\t\t\t\t<li><a href=\"#\">Another action</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li><a href=\"#\">Something else here</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"divider\"></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"dropdown-header\">Boards Followed</li>\r\n");
      out.write("\t\t\t\t\t\t\t<li><a href=\"#\">Create Board</a></li>\r\n");
      out.write("\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t<ul class=\"nav navbar-nav navbar-right\">\r\n");
      out.write("\t\t\t\t\t<li class=\"dropdown\"><a href=\"#\" class=\"dropdown-toggle\"\r\n");
      out.write("\t\t\t\t\t\tdata-toggle=\"dropdown\">");
      out.print(usrObj.getfName() + " " + usrObj.getlName());
      out.write(" <b class=\"caret\"></b></a>\r\n");
      out.write("\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"divider\"></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t<li><a href=\"#creatBoard\" id=\"cBoard\" data-toggle=\"modal\">Create\r\n");
      out.write("\t\t\t\t\t\t\t\t\tBoard</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"divider\"></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t<li><a href=\"#createPin\" data-toggle=\"modal\">Create Tack</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li class=\"divider\"></li>\r\n");
      out.write("\t\t\t\t\t\t\t<li><a href=\"Settings.jsp\" >Settings</a></li>\r\n");
      out.write("\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\t\t\t\t\t<li>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t<form action=\"UManager\" method=\"get\">\r\n");
      out.write(
          "\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-link \" style=\"color:#000000;\" value=\"Sign Out\">\r\n");
      out.write("\t\t\t\t\t</form>\r\n");
      out.write("\t\t\t\t\t</li>\r\n");
      out.write("\t\t\t\t</ul>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t<!--/.nav-collapse -->\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t<div id=\"creatBoard\" class=\"modal fade\" aria-hidden=\"false\">\r\n");
      out.write("\t\t<div class=\"modal-dialog\">\r\n");
      out.write("\t\t\t<div class=\"modal-content\">\r\n");
      out.write("\t\t\t\t<div class=\"modal-header\">\r\n");
      out.write("\t\t\t\t\t<center>\r\n");
      out.write("\t\t\t\t\t\t<h2>Create Board</h2>\r\n");
      out.write("\t\t\t\t\t</center>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write(
          "\t\t\t\t<form class=\"form-horizontal\" action=\"BoardCreator\" method=\"post\">\r\n");
      out.write("\t\t\t\t\t<div class=\"modal-body\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"container\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<table cellpadding=\"10px\" cellspacing=\"10px\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Name</label></td>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<td><input class=\"form-control\" autofocus required=\"true\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\ttype=\"text\" class=\"span4\" name=\"bName\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tplaceholder=\"ex:My Favorite Articles\"></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Description</label></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><textarea class=\"form-control\" class=\"span4\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"bDesc\" required placeholder=\"Description to the Board\"></textarea></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Genre</label></td>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<td><select class=\"form-control\" required name=\"bGenre\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t");

      for (String boardName : usrObj.getGenre()) {

        out.write("\r\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t<option>");
        out.print(boardName);
        out.write("</option>\r\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t");
      }

      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</select></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Secret</label></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><input type=\"radio\" name=\"bType\" value=\"0\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\tYes &nbsp; <input type=\"radio\" name=\"bType\" value=\"1\" checked>&nbsp;No\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t</table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div class=\"modal-footer\">\r\n");
      out.write(
          "\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-success\" value=\"Create Board\">\r\n");
      out.write(
          "\t\t\t\t\t\t<button class=\"btn\" data-dismiss=\"modal\" aria-hidden=\"true\">Close</button>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</form>\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("\t\r\n");
      out.write("\t<div id=\"createPin\" class=\"modal fade\" aria-hidden=\"false\">\r\n");
      out.write("\t\t<div class=\"modal-dialog\">\r\n");
      out.write("\t\t\t<div class=\"modal-content\">\r\n");
      out.write("\t\t\t\t<div class=\"modal-header\">\r\n");
      out.write("\t\t\t\t\t<center>\r\n");
      out.write("\t\t\t\t\t\t<h2>Create Tack</h2>\r\n");
      out.write("\t\t\t\t\t</center>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t<form class=\"form-horizontal\" action=\"PinInfo\" method=\"post\">\r\n");
      out.write("\t\t\t\t\t<div class=\"modal-body\">\r\n");
      out.write("\t\t\t\t\t\t<div class=\"container\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t<table cellpadding=\"10px\" cellspacing=\"10px\">\r\n");
      out.write("\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Name</label></td>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<td><input class=\"form-control\" autofocus required=\"true\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\ttype=\"text\" class=\"span4\" name=\"pName\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tplaceholder=\"ex: My First Blog\"></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>URL</label></td>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<td><input class=\"form-control\" autofocus required=\"true\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\ttype=\"text\" class=\"span4\" name=\"pLink\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\tplaceholder=\"Link to Tack\"></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Select Image</label></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/1.jpg\"><img alt=\"\" src=\"img/thumbs/1.jpg\"> \r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/2.jpg\"><img alt=\"\" src=\"img/thumbs/2.jpg\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/3.jpg\"><img alt=\"\" src=\"img/thumbs/3.jpg\"><br>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/4.jpg\"><img alt=\"\" src=\"img/thumbs/4.jpg\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/5.jpg\"><img alt=\"\" src=\"img/thumbs/5.jpg\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/6.jpg\"><img alt=\"\" src=\"img/thumbs/6.jpg\"><br>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/7.jpg\"><img alt=\"\" src=\"img/thumbs/7.jpg\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/8.jpg\"><img alt=\"\" src=\"img/thumbs/8.jpg\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"pImage\" value=\"img/main/9.jpg\"><img alt=\"\" src=\"img/thumbs/9.jpg\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Board</label></td>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t<td><select class=\"form-control\" required name=\"pBoard\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t");

      for (String boardName : bList) {

        out.write("\r\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t<option>");
        out.print(boardName);
        out.write("</option>\r\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t");
      }

      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</select></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><label>Description</label></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td><textarea class=\"form-control\" class=\"span4\"\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t\t\t\tname=\"pDesc\" required placholder=\"Description to the Board\"></textarea></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t</table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div class=\"modal-footer\">\r\n");
      out.write(
          "\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-success\" value=\"TackIT\">\r\n");
      out.write(
          "\t\t\t\t\t\t<button class=\"btn\" data-dismiss=\"modal\" aria-hidden=\"true\">Close</button>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</form>\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("\t\r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\t<script src=\"https://code.jquery.com/jquery-1.10.2.min.js\"></script>\r\n");
      out.write("\t<script src=\"js/bootstrap.min.js\"></script>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
      out.write("\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\t<table width=\"100%\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t<td width=\"20%\">\r\n");
      out.write("\t\r\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "LeftNavBar.jsp", out, false);
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t</td>\r\n");
      out.write("\t<td width=\"60%\">\r\n");
      out.write("\t \r\n");
      out.write("\t\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "DataBoardView.jsp", out, false);
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t</td>\r\n");
      out.write("\t<td width=\"20%\">\r\n");
      out.write("\t\r\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "RightNavBar.jsp", out, false);
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t</table>\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);
    }
  }
Beispiel #24
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

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

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

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

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

    try {
      response.setContentType("text/html");
      pageContext =
          _jspxFactory.getPageContext(
              this,
              request,
              response,
              "ReportErrorPage.jsp?page=EditTargetReportForm.jsp",
              true,
              8192,
              true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "header.jsp", out, false);
      out.write(' ');
      out.write('\n');
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\t<!-- files for JqxWidget grid  -->\n");
      out.write(
          "    <link rel=\"stylesheet\" href=\"js/jqwidgets/styles/jqx.base.css\" type=\"text/css\" />\n");
      out.write(
          "    <link rel=\"stylesheet\" href=\"js/jqwidgets/styles/jqx.darkblue.css\" type=\"text/css\" />\n");
      out.write(
          "\t<link rel=\"stylesheet\" href=\"js/jqwidgets/styles/jqx.ui-redmond.css\" type=\"text/css\" />\n");
      out.write("\t\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/gettheme.js\"></script>\n");
      out.write("\t<script type=\"text/javascript\" src=\"js/jquery-1.10.2.min.js\"></script>\n");
      out.write("    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxcore.js\"></script>\n");
      out.write("    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdata.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxbuttons.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxscrollbar.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxlistbox.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxcalendar.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdatetimeinput.js\"></script>\n");
      out.write("    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.filter.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.selection.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.sort.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.pager.js\"></script>\n");
      out.write(
          "     <script type=\"text/javascript\" src=\"js/jqwidgets/jqxmenu.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxlistbox.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdropdownlist.js\"></script>\n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdata.export.js\"></script> \n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.export.js\"></script> \n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.aggregates.js\"></script>  \n");
      out.write(
          "    <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.grouping.js\"></script> \n");
      out.write("\n");
      out.write("\n");
      out.write("\t\n");
      out.write("\t");

      session.getAttribute("UserName").toString();
      // System.out.println("session bachka maapping : "+session +" \n user
      // "+session.getAttribute("UserName").toString());

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<script src=\"js/editCustomer_details.js\"> </script> \n");
      out.write("\n");
      out.write("<script type=\"text/javascript\" src=\"js/popup.js\"></script>\n");
      out.write("<style>\n");
      out.write("hr {\n");
      out.write("color: #f00;\n");
      out.write("background-color: #f00;\n");
      out.write("height: 3px;\n");
      out.write("}\n");
      out.write("#selected_order{\n");
      out.write("width: 40%;\n");
      out.write("max-height: 300px;\n");
      out.write("border: 1px solid black; \n");
      out.write("background-color: #ECFB99;\n");
      out.write("float: right;\n");
      out.write("margin-top: 30px;\n");
      out.write("overflow: auto;\n");
      out.write("margin-right: 2%;\n");
      out.write("padding: 5px;\n");
      out.write("}\n");
      out.write("</style>\n");
      out.write("<script>\n");
      out.write("\t\n");
      out.write("\tfunction checkField(){\n");
      out.write("\t\tif(document.myform.chckall.checked==true){\n");
      out.write("\t\t\tshowHint();\n");
      out.write("\t\t}\n");
      out.write("\t\telse{\t\tvar c_date1,c_date2,u_date2,u_date1;\n");
      out.write("\t\t\t\tif(!($(\"#createDate2\").jqxDateTimeInput('disabled'))){\n");
      out.write("\t\t\t\tc_date1 = $('#createDate1').jqxDateTimeInput('getText');\n");
      out.write("\t\t\t\tc_date2 = $('#createDate2').jqxDateTimeInput('getText');\n");
      out.write("\t\t\t}\n");
      out.write("\t\t\t\n");
      out.write("\t\t\tif(!($(\"#updateDate2\").jqxDateTimeInput('disabled'))){\n");
      out.write("\t\t\t\tu_date1 = $('#updateDate1').jqxDateTimeInput('getText');\n");
      out.write("\t\t\t\tu_date2 = $('#updateDate2').jqxDateTimeInput('getText');\n");
      out.write("\t\t\t}\t    \n");
      out.write("\t\t    showHint();\t\t  \n");
      out.write("\t    }\n");
      out.write("\t}\n");
      out.write("\tfunction showMsg(){\n");
      out.write("\t  \t document.myform.action=\"HomeForm.jsp\";\n");
      out.write("\t   \t document.myform.submit();\n");
      out.write("\t}\n");
      out.write("\tfunction Clear(){\n");
      out.write("\t\t\n");
      out.write("\t\ttry{\n");
      out.write("\t\t\tdocument.getElementById(\"order_number\").focus();\n");
      out.write("\t\t} catch (exp){}\n");
      out.write("\t\t\n");
      out.write("\t\t\n");
      out.write("\t\t\n");
      out.write("\t\tdocument.myform.custCode.value=\"\";\n");
      out.write("\t\tdocument.myform.phonenumber.value=\"\";\n");
      out.write("\t\tdocument.myform.custName.value=\"\";\n");
      out.write("\t\tdocument.myform.nameString.value=\"\";\t\t\n");
      out.write("\t\tdocument.myform.Building.value=\"\";\n");
      out.write("\t\tdocument.myform.Building_no.value=\"\";\n");
      out.write("\t\tdocument.myform.wing.value=\"\";\n");
      out.write("\t\tdocument.myform.block.value=\"\";\n");
      out.write("\t\tdocument.myform.add1.value=\"\";\n");
      out.write("\t\tdocument.myform.add2.value=\"\";\n");
      out.write("\t\tdocument.myform.area.value=\"\";\n");
      out.write("\t\tdocument.myform.station.value=\"\";\n");
      out.write("\t\t\n");
      out.write("\t\tdocument.myform.selmonth.value=\"\";\n");
      out.write("\t\t\n");
      out.write(
          "\t\t$(\"#createDate1\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',max:new Date(),formatString: \"yyyy-MM-dd\"});\n");
      out.write(
          "\t\t$(\"#createDate2\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',min:new Date(),max:new Date(),formatString: \"yyyy-MM-dd\",value:new Date()});\n");
      out.write("\t\t$(\"#createDate2\").jqxDateTimeInput({disabled: true});\n");
      out.write("\t\t\n");
      out.write("\t\t\n");
      out.write(
          "\t\t$(\"#updateDate1\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',max:new Date(),formatString: \"yyyy-MM-dd\"});\n");
      out.write(
          "\t\t$(\"#updateDate2\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',min:new Date(),max:new Date(),formatString: \"yyyy-MM-dd\",value:new Date()});\n");
      out.write("\t\t$(\"#updateDate2\").jqxDateTimeInput({disabled: true});\n");
      out.write("\t\t\n");
      out.write("\t\t$('#createDate1').on('close', function (event) {\n");
      out.write("\t\t // Some code here. \n");
      out.write("\t\t \t$(\"#createDate2\").jqxDateTimeInput({disabled: false});\n");
      out.write(
          "\t\t \t$(\"#createDate2\").jqxDateTimeInput({min: $('#createDate1').jqxDateTimeInput('getDate')});\n");
      out.write(" \t\t}); \t\n");
      out.write(" \t\t\n");
      out.write(" \t\t$('#updateDate1').on('close', function (event) {\n");
      out.write("\t\t // Some code here. \n");
      out.write("\t\t \t$(\"#updateDate2\").jqxDateTimeInput({disabled: false});\n");
      out.write(
          "\t\t \t$(\"#updateDate2\").jqxDateTimeInput({min: $('#updateDate1').jqxDateTimeInput('getDate')});\n");
      out.write(" \t\t}); \t\n");
      out.write("\t\t\n");
      out.write("\t\tfunEnabled();\n");
      out.write("\t}\n");
      out.write("\t\n");
      out.write("function ckeckEmpty(){\n");
      out.write("\tif(document.getElementById(\"order_number\").value == \"\"){\n");
      out.write("\t\talert(\"Please Enter Order Number\");\n");
      out.write("\t\tdocument.getElementById(\"order_number\").focus();\n");
      out.write("\t\treturn false;\n");
      out.write("\t} else {\n");
      out.write("\t\treturn true;\n");
      out.write("\t}\n");
      out.write("}\n");
      out.write("\n");
      out.write("\n");
      out.write("</script>\n");

      String call_type = request.getParameter("call_type");
      if (call_type == null) {
        call_type = "";
      }
      if (call_type.equals("search_payment")) {
        String m = "<< Show List";

        out.write("\n");
        out.write("\t\t\t<div id=\"selected_order\">\n");
        out.write("\t\t\t\t<b>Selected orders</b>\n");
        out.write(
            "\t\t\t\t<form action=\"PrintSelectedCustPayment.jsp\" method=\"get\" id=\"submit_form\">\n");
        out.write(
            "\t\t\t\t<table style=\"width: 100%;border-collapse: collapse;\" border=1 id=\"selected_order_table\">\n");
        out.write("\t\t\t\t<tr>\n");
        out.write("\t\t\t\t\t<th style=\"width: 20%;\">Order Number</th>\n");
        out.write("\t\t\t\t\t<th style=\"width: 35%;\">Cust Name</th>\n");
        out.write("\t\t\t\t\t<th style=\"width: 20%;\">Balance</th>\n");
        out.write("\t\t\t\t\t<th style=\"width: 25%;\">&nbsp;</th>\n");
        out.write("\t\t\t\t</tr>\n");
        out.write("\t\t\t\t</table>\n");
        out.write("\t\t\t\t<table style=\"width: 100%;\" border=1 id=\"insert_table\">\n");
        out.write("\t\t\t\t</table>\n");
        out.write(
            "\t\t\t\t <input type=\"text\" readonly=\"readonly\" name=\"order_count\" id=\"order_count_id\" size=\"3\" value=\"0\" style=\"background-color :#ECFB99 ;\"/> orders selected to print.\n");
        out.write(
            "\t\t\t\t<input type=\"submit\" onclick=\" return printSelectedInformation()\" value=\"Print\" style=\"float: right;\"/>\n");
        out.write("\t\t\t\t</form>\n");
        out.write("\t\t\t</div>\n");
        out.write("\t\t");
      }
      if (!call_type.equals("search_payment") || !call_type.equals("communication")) {

        out.write("\n");
        out.write("<center>\n");
      }
      out.write("\n");
      out.write("<fieldset style=\"width: 55%;\"><legend>\n");

      String msg = request.getParameter("msg");
      if (call_type.equals("receive_payment")) {
        out.print("<h3>Search Customer To Receive Payment</h3>");
      } else if (call_type.equals("search_payment")) {
        out.print("<h3>Search Customer To See Pending</h3>");
      } else if (call_type.equals("communication")) {
        out.print("<h3>Search Customer To Communicate</h3>");
      } else {
        out.print("<h3>Search Customer</h3>");
      }

      out.write("\n");
      out.write("</legend>\n");

      if (call_type.equals("receive_payment")) {

        out.write("\n");
        out.write(
            "\t\t<input type = \"radio\" name = \"radio\" onclick=\"ChangeCriteria('order')\" checked=\"checked\"/>Search By Order Number\n");
        out.write(
            "\t\t<input type = \"radio\" name = \"radio\" onclick=\"ChangeCriteria('cust')\"/>Search By Customer Detail\n");
        out.write("\t");
      }
      if (call_type.equals("receive_payment")) {

        out.write("\n");
        out.write("\t<br/><br/>\n");
        out.write("<form id=\"myform1\" action=\"SearchCustUsingOrderNo.jsp\" method=\"get\">\n");
        out.write("\t");

        if (msg != null) {
          out.print("<i><font color=red>No Matching Record Found</font></i><br/><br/>");
        }

        out.write("\n");
        out.write(
            "\tEnter Order Number :&nbsp;&nbsp;<input type = \"text\" name = \"order_number\" value=\"\" id =\"order_number\" onkeypress=\"return isNumberKey(event)\"/>\n");
        out.write(
            "\t<input type = \"submit\" value=\"Search\" onclick=\"return ckeckEmpty();\"/>\n");
        out.write("\n");
        out.write("<br/>\n");
        out.write("</form>\n");
        out.write("<form name=\"myform\" method=\"post\" id=\"myform\" style=\"display: none\">\n");
      } else {
        out.write("\n");
        out.write("<form name=\"myform\" method=\"post\" id=\"myform\" >\n");
      }
      out.write("\n");
      out.write("\t<table style=\"width: 100%;\">\n");
      out.write("\t\t<tr style=\"width: 100%;\">\n");
      out.write(
          "\t\t\t<td align=\"center\" colspan=3><b><font color=\"blue\">&nbspA</font>ll Customers List &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp\n");
      out.write(
          "\t\t\t<input type=\"CheckBox\" name=\"chckall\" accesskey=\"a\" onClick=\"funEnabled();\"></td>\n");
      out.write("\t\t</tr>\t\t\n");
      out.write("\t\t<tr style=\"width: 100%;\">\n");
      out.write("\t\t\t<td colspan=3>\n");
      out.write("\t\t\t<div id=\"div4\" style=\"width: 100%;\" >\n");
      out.write("\t\t\t\t<table>\t\t\t\t\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\">\n");
      out.write("\t\t\t\t\t\t\t<b><font color=\"blue\">C</font>ustomer Code</b>\n");
      out.write("\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"custCode\" accesskey=\"c\"></td>\n");
      out.write("\t\t\t\t\t\t");
      if (call_type.equals("search_payment") || call_type.equals("communication")) {
        out.write("\n");
        out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
        out.write("\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\">\n");
        out.write("\t\t\t\t\t\t\t<b>O<font color=\"blue\">r</font>der Number</b>\n");
        out.write("\t\t\t\t\t\t</td>\n");
        out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
        out.write(
            "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"ordernumber\" accesskey=\"c\"></td>\n");
        out.write("\t\t\t\t\t\t");
      }
      out.write("\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Customer <font color=\"blue\">N</font>ame</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"custName\"  align=\"right\" accesskey=\"n\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">P</font>hone Number</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"phonenumber\" size=\"22\" align=\"right\" colspan=\"2\" accesskey=\"p\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>M<font color=\"blue\">o</font>bile Number</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"mobilenumber\" size=\"22\" align=\"right\" colspan=\"2\" accesskey=\"o\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Na<font color=\"blue\">m</font>e String</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" style=\"width: 100%;\" type=\"text\" name=\"nameString\" size=\"22\"  align=\"right\" accesskey=\"m\" colspan=\"2\"></td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">B</font>uilding</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"Building\" accesskey=\"b\" align=\"right\"></b></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Building <font color=\"blue\">N</font>o.</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"Building_no\"  size=\"22\"  accesskey=\"o\"></b></td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t    <td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">W</font>ing</b></td>\n");
      out.write("\t\t\t\t\t    <td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t    <td><input style=\"width: 97%;\" type =\"text\" name=\"wing\" accesskey=\"w\" ></td>\n");
      out.write("\t\t\t\t\t    \n");
      out.write("\t\t\t\t\t    <td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t    \n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">F</font>lat No.</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" name=\"block\"  size=\"22\" accesskey=\"f\" align=\"right\">\n");
      out.write("\t\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Addr<font color=\"blue\">e</font>ss1</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" accesskey=\"e\" name=\"add1\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>A<font color=\"blue\">d</font>dress2</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" accesskey=\"d\" name=\"add2\" size=\"22\"></td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr >\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>A<font color=\"blue\">r</font>ea</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write("\t\t\t\t\t\t<td>\n");
      out.write("\t\t\t\t\t\t");

      String name;
      try {
        Context initContext = new InitialContext();
        Context envContext = (Context) initContext.lookup("java:/comp/env");
        // DataSource ds = (DataSource)envContext.lookup("jdbc/js");
        DataSource ds = (DataSource) envContext.lookup("jdbc/re");
        Connection conn = ds.getConnection();
        Statement stmt = conn.createStatement();
        ResultSet rs =
            stmt.executeQuery(
                "select value from code_table where category='AREA' order by value asc");

        out.write("\n");
        out.write("\t\t\t\t\t\t\t<SELECT style=\"width: 97%;\" name=\"area\">\n");
        out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\"\"> Select Area </OPTION>\n");
        out.write("\t\t\t\t\t\t");

        while (rs.next()) {
          name = rs.getString(1);

          out.write("\n");
          out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\"");
          out.print(name);
          out.write('"');
          out.write('>');
          out.write(' ');
          out.print(name);
          out.write(" </OPTION>\n");
          out.write("\t\t\t\t\t\t");
        }

        out.write("\n");
        out.write("\t\t\t\t\t\t\t</SELECT>\n");
        out.write("\t\t\t\t\t\t</td>\t\n");
        out.write("\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
        out.write("\t\t\t\n");
        out.write(
            "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Payment Type</b></td>\n");
        out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
        out.write("\t\t\t\t\t\t<td>\n");
        out.write("\t\t\t\t\t\t\t<SELECT style=\"width: 97%;\" name=\"payment\" align=\"left\">\n");
        out.write("\t\t\t\t\t\t\t\t<OPTION selected VALUE=\"\"> Select Type </OPTION>\n");
        out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\"NoType\"> No Type </OPTION>\n");
        out.write("\t\t\t\t\t\t");

        ResultSet rs2 =
            stmt.executeQuery("SELECT payment_type_code, payment_type_desc FROM payment_type");
        while (rs2.next()) {

          out.write("\t\n");
          out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\"");
          out.print(rs2.getString(1));
          out.write('"');
          out.write('>');
          out.write(' ');
          out.print(rs2.getString(2));
          out.write(" </OPTION>\n");
          out.write("\t\t\t\t\t\t");
        }
        rs2.close();
        stmt.close();
        conn.close();
      } catch (Exception e) {
        e.getMessage();
        e.printStackTrace();
      }

      out.write("\n");
      out.write("\t\t\t\t\t\t\t</SELECT>\n");
      out.write("\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Create<font color=\"blue\">D</font>ate</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write("\t\t\t\t\t\t<td>\n");
      out.write(
          "\t\t\t\t\t\t\t<!-- <input type =\"text\" accesskey=\"d\" name=\"c_date1\" size=\"15\" style=\"width: 79%;\">\n");
      out.write(
          "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('c_date1');\" value=\"...\" style=\"width: 15%;\"/> -->\n");
      out.write("\t\t\t\t\t\t\t<div id='createDate1'></div>\n");
      out.write("\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>And</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write("\t\t\t\t\t\t<td> \n");
      out.write(
          "\t\t\t\t\t\t\t<!-- <input type =\"text\" name=\"c_date2\" size=\"15\" style=\"width: 79%;\">\n");
      out.write(
          "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('c_date2');\" value=\"...\" style=\"width: 15%;\"/> -->\n");
      out.write("\t\t\t\t\t\t\t<div id='createDate2'></div>\n");
      out.write("\t\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">U</font>pdate Date</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write("\t\t\t\t\t\t<td>\n");
      out.write(
          "\t\t\t\t\t\t\t<!-- <input type =\"text\" accesskey=\"u\" name=\"u_date1\" size=\"15\" style=\"width: 79%;\"/>\n");
      out.write(
          "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('u_date1');\" value=\"...\" style=\"width: 15%;\"/> -->\n");
      out.write("\t\t\t\t\t\t\t<div id=\"updateDate1\"></div>\n");
      out.write("\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>And</b></td>\n");
      out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write("\t\t\t\t\t\t<td> \n");
      out.write(
          "\t\t\t\t\t\t\t<!-- <input type =\"text\" name=\"u_date2\" size=\"15\" style=\"width: 79%;\"/>\n");
      out.write(
          "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('u_date2');\" value=\"...\" style=\"width: 15%;\"/> -->\n");
      out.write("\t\t\t\t\t\t\t<div id='updateDate2'></div>\n");
      out.write("\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t<tr>\n");
      out.write(
          "\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">S</font>tation</b></td>\n");
      out.write("\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\"  size=\"22\" accesskey=\"d\" name=\"station\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n");
      out.write("\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Last Order Days</b></td>\n");
      out.write("\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n");
      out.write(
          "\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"selmonth\"/></td></tr>\n");
      out.write("\t\t\t\t</table></div>\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t</tr>\n");
      out.write("\t\t\t\n");
      out.write("\t\t<tr>\n");
      out.write("\t\t\t<td align=\"center\" colspan=4>\n");
      out.write(
          "\t\t\t\t<input type=\"submit\" name=\"search\"  title=\"Press <Enter>\" value=\"Search <Enter>\" accesskey=\"s\" onclick=\"checkField();return false;\"/>\n");
      out.write(
          "\t\t\t\t<input type=\"reset\" name=\"clear\" title=\"Press <Alt+c>\" tabindex=\"1\" value=\"Clear <Alt+c>\" accesskey=\"c\" onclick=\"document.getElementById('txtHint').innerHTML='';\"/>\n");
      out.write(
          "\t\t\t\t<INPUT type=BUTTON value=\"Cancel <Alt+c>\" accesskey=\"c\" onClick=\"showMsg();\"/></center>\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t</tr>\n");
      out.write("\t</table>\n");
      out.write("\t</fieldset>\n");
      out.write("\t<input  type=\"hidden\" name=\"hchckall\" value=\"1\">\n");
      out.write("\t<input type=\"hidden\" name=\"call_type\" value=\"");
      out.print(call_type);
      out.write("\"/>\n");
      out.write("<script>\n");
      out.write("function funEnabled(){\n");
      out.write("\t    if (document.myform.chckall.checked==true){\n");
      out.write("\t\t\tdocument.getElementById('div4').style.visibility=\"hidden\";\n");
      out.write("\t\t\tdocument.myform.hchckall.value=1;\t\t\n");
      out.write("\t\t\t$(\"#createDate2\").jqxDateTimeInput({disabled: true});\n");
      out.write("\t\t\t$(\"#updateDate2\").jqxDateTimeInput({disabled: true});\n");
      out.write("\t\t\t\n");
      out.write("\t\t}\n");
      out.write("\t\telse{\n");
      out.write("\t\t\tdocument.getElementById('div4').style.visibility=\"visible\";\n");
      out.write("\t\t\tdocument.myform.hchckall.value=0;\t\t\t\n");
      out.write("\t\t}\n");
      out.write("\t}\n");
      out.write("window.onload =Clear;\n");
      out.write("\n");
      out.write("function ChangeCriteria(str){\n");
      out.write("\tif(str == \"cust\"){\n");
      out.write("\t\tdocument.getElementById(\"myform\").style.display='block';\n");
      out.write("\t\tdocument.getElementById(\"myform1\").style.display='none';\n");
      out.write("\t}else if(str == \"order\"){\n");
      out.write("\t\tdocument.getElementById(\"myform\").style.display='none';\n");
      out.write("\t\tdocument.getElementById(\"myform1\").style.display='block';\n");
      out.write("\t\tdocument.getElementById(\"txtHint\").innerHTML=\"\";\n");
      out.write("\t\tdocument.getElementById(\"order_number\").focus();\n");
      out.write("\t\tdocument.getElementById(\"order_number\").value=\"\";\n");
      out.write("\t}\n");
      out.write("}\n");
      out.write("function isNumberKey(evt) {\n");
      out.write("\tvar charCode = (evt.which) ? evt.which : event.keyCode;\n");
      out.write("\tif (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))\n");
      out.write("\t\treturn false;\n");
      out.write("\telse\n");
      out.write("\t\treturn true;\n");
      out.write("}\n");
      out.write("</script>\n");
      out.write(
          "\t<hr><center><div id=\"txtHint\" class=\"ddm1\" style=\"background-color: white;width: 100%;max-height: 400px;overflow: auto;\"></div></center>\n");
      out.write("\t<br><br>\n");
      out.write(
          "\t<p><h1><center><div id=\"waitMessage\"  style=\"cursor: sw-resize;\"></center></div></h1></p>\n");

      String fromFromName = "";
      if (request.getParameter("fromForm") != null) fromFromName = request.getParameter("fromForm");
      // CustPmtHstry

      out.write("\n");
      out.write("\t<input type=\"hidden\" name=\"fromForm\" value=\"");
      out.print(fromFromName);
      out.write("\">\n");
      out.write("</form>\n");
      out.write("\n");
      out.write(
          "<div id=\"dispdiv\" align=\"center\" style=\"border:1px solid black; padding:25px; text-align:center; display:none; background-color:#FFF; overflow:auto; height:300px; width=200px;\"> </div>\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 {
            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("<!-- 插入样式和JS -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/base.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../util/flow_condition_select.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- 特殊附件显示公用方法 -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../util/proj_view_file.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- 项目立项附件带到租前业务相关流程 -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "initFileListParams.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- 项目信审申请 -->\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("//页面初始化\r\n");
      out.write("var isSubTable=false;\r\n");
      out.write("//全局变量说是这一个只读业页\r\n");
      out.write("isViewHistoryTask = true;\r\n");
      out.write("//是否保存   \r\n");
      out.write("function workflowSaveCallBack()//返回true提交,返回false不提交 ,该回调函数可与用表单字段验证\r\n");
      out.write("{\r\n");
      out.write("\tfillHiddenVal();\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("//是否提交    \r\n");
      out.write(
          "function workflowSubmitCallBack(buttonText)//返回true提交,返回false不提交 ,该回调函数可与用表单字段验证\r\n");
      out.write("{\r\n");
      out.write("\tfillHiddenVal();\r\n");
      out.write(
          "\tvar submitProcessedForm = document.getElementById(\"id_submitProcessedForm\");\r\n");
      out.write("\t//var isPassed = Validator.Validate(submitProcessedForm,1,false);\r\n");
      out.write("\t//if(!isPassed){return isPassed;}\r\n");
      out.write("\t/*if(buttonText==\"Submit\"){\r\n");
      out.write(
          "    \tvar condtion=\"[{condtion:'正常审批',rote:'10台以上资料审核'},{condtion:'直接审批',rote:'10台以上资料齐全'}]\";\r\n");
      out.write("\t\tif(!isSelectRote){\r\n");
      out.write("        \tselectRoteByCondtion(condtion);\r\n");
      out.write("        \treturn false;\r\n");
      out.write("        }else{\r\n");
      out.write("        \treturn isPassed;\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("\tisSelectRote=false;*/\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("var isSelectRote=false; \r\n");
      out.write("var selectRote=\"\"; \r\n");
      out.write("\r\n");
      out.write("function workflowNextRouteCallBack(buttonText,requestNextRoute){\r\n");
      out.write("    if(buttonText==\"Submit\"){\r\n");
      out.write("   \t\trequestNextRoute.value=\"04信审部经理审核\";\r\n");
      out.write("   \t\t//isSelectRote=false;\r\n");
      out.write("    }\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<!--多行控件  -->\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_equip_str\" name=\"json_proj_equip_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_equip_str ? \"[]\" : json_proj_equip_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_guarantee_method_str\" \tname=\"json_proj_guarantee_method_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_guarantee_method_str ? \"[]\" : json_proj_guarantee_method_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_guarantee_equip_str\" name=\"json_proj_guarantee_equip_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_guarantee_equip_str ? \"[]\" : json_proj_guarantee_equip_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_word_list_str\" name=\"json_word_list_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_word_list_str ? \"[]\" : json_word_list_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write("<div class=\"fillTableContainer\">\r\n");
      out.write("   <table class=\"fillTable\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目基本信息 --> ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_base_info_forcredit.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目其它基本信息 --> ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_base_other_info.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目信审其它基本信息 --> ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_credit_other_info.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t\r\n");
      out.write("\t<tr>\r\n");
      out.write("       <td colspan=4>\r\n");
      out.write("       <script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\t\t    jQuery(function() {\r\n");
      out.write("\t\t\t\t\t\t    isViewHistoryTask = false;\r\n");
      out.write("\t\t\t\t\t\t    });\r\n");
      out.write("\t\t            </script>\r\n");
      out.write("                    ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("       <script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\t\t    jQuery(function() {\r\n");
      out.write("\t\t\t\t\t\t    //isViewHistoryTask = true;\r\n");
      out.write("\t\t\t\t\t\t    });\r\n");
      out.write("\t\t            </script>\r\n");
      out.write("       </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目评审结果 -->\r\n");
      out.write(
          "\t\t\t<script language=\"javascript\">jQuery(function() {isViewHistoryTask = false;});</script> \r\n");
      out.write("\t\t\t ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_credit_result_info.jsp", out, false);
      out.write("\r\n");
      out.write(
          "\t\t\t<script language=\"javascript\">jQuery(function() {isViewHistoryTask = true;});</script>\r\n");
      out.write("        </td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4 class=\"td-even-line-separator\">&nbsp;</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr class=\"x-panel-table-div-title\">\r\n");
      out.write("\t\t<td class=\"x-panel-table-div-title\" colspan=4>\r\n");
      out.write(
          "\t\t\t<div class=\"toggle-icon-expanded\" title=\"折叠\" toggleClass=\"tr-project-business-condition\"></div>\r\n");
      out.write("\t\t\t项目商务条件\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr class=\"tr-project-business-condition\">\r\n");
      out.write("\t\t<td colspan=4 class=\"td-tabs-container\" style=\"text-indent: 0px;\">\r\n");
      out.write("\t\t<!-- 标签栏 -->\r\n");
      out.write("\t\t<div id='id_project_info_tabs_content' style=\"\">\r\n");
      out.write("\t\t<div title=\"租赁物明细\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_equip_container\"\r\n");
      out.write("\t\t\tstyle=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"拟商务条件\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_condition_container\"\r\n");
      out.write("\t\t\tstyle=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../rent_reckon/rent_reckon/main.jsp", out, false);
      out.write("</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"担保单位信息\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_guarantee_method_container\"\r\n");
      out.write("\t\t\tstyle=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"租金发票类型\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_rent_type_container\"\r\n");
      out.write("\t\t\tstyle=\"height: 350px;\">");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_invoice.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"客户信用评分表\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_table_leasing_proj_cust_creidt_container\" style=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_cust_credit_list.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</div>\r\n");
      out.write("<!--避免在tabs中的js重复执行-->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_equip_detail.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_guarantee_method.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_cust_credit.jsp", out, false);
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("function createTemFileCredit6()\r\n");
      out.write("{\r\n");
      out.write("\tvar currentTablelist = getTracywindyObject('table_projcreditreport');\r\n");
      out.write("\tvar tabledata11=currentTablelist.getRowsData();\r\n");
      out.write("\tfor(var i=0;i<tabledata11.length;i++){\r\n");
      out.write("\t\t\tif(tabledata11[i].filename=='法人客户信审报告(6-10台).xls')\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t  alert(tabledata11[i].filename+\"已经生成\");\r\n");
      out.write("\t\t\t\t  return false;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("    //alert(jQuery(\"#cust_name\").val());\r\n");
      out.write("    //平均租金\r\n");
      out.write(
          "    var currentTable2 = getTracywindyObject('table_id_table_leasing_rent_plan_container');\r\n");
      out.write("\t\tvar tabledata2=currentTable2.getRowsData();\r\n");
      out.write("\t\tvar sumMoney=null;\r\n");
      out.write("\t\tfor(var j=0;j<tabledata2.length;j++)\r\n");
      out.write("\t\t{\r\n");
      out.write("       sumMoney=sumMoney+parseFloat(tabledata2[j].rent);\r\n");
      out.write("\t \t}\r\n");
      out.write("\t \tsumMoney=sumMoney/parseInt(tabledata2.length);\r\n");
      out.write("\t \t//alert(sumMoney);\r\n");
      out.write(
          "\t \t//alert(\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付\"+jQuery(\"#cautionMoney\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney);\r\n");
      out.write("\t \t        \r\n");
      out.write(
          "\t \tvar data=\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付,\"+jQuery(\"#cautionMoneyRatio\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney+\"元\";\r\n");
      out.write("    //担保人\r\n");
      out.write(
          "\tvar currentTable1 = getTracywindyObject('table_id_table_leasing_proj_guarantee_method_container');\r\n");
      out.write("\t\tvar tabledata=currentTable1.getRowsData();\r\n");
      out.write("\t\tvar assurorname=\"('\";\r\n");
      out.write("\t\tfor(var i=0;i<tabledata.length;i++){\r\n");
      out.write("\t\tassurorname+=tabledata[i].assurorname;\r\n");
      out.write("\t\t  if(i<tabledata.length-1)\r\n");
      out.write("\t\t  {\r\n");
      out.write("\t\t\tassurorname+=\"','\";\r\n");
      out.write("\t\t   }\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tassurorname+=\"')\";\r\n");
      out.write("\t\t//alert(assurorname);\r\n");
      out.write("\t\tvar test=getTracywindyObject(\"id_combo_creatordept\").getRawValue();\r\n");
      out.write("\t\tvar filename='table_projcreditreport';\r\n");
      out.write("\tvar url=\"/leasing/template/createFileByTemplateClass.action\";\r\n");
      out.write(
          "    attachmentDown({uploadid:filename,url:url,title:\"\",flowunid:flowUnid,twoClassify:'wordtempletypetwo.33',returnType:'listtocurpaget',modelname:'creditreport',assurorname:assurorname,lesseesname:jQuery(\"#cust_name\").val(),projectid:jQuery(\"#project_id\").val(),\"framework_condition.money\":sumMoney,\"condition.array\":data,dealername:test});\r\n");
      out.write("}\r\n");
      out.write("function createTemFileCredit()\r\n");
      out.write("{\r\n");
      out.write("\tvar currentTablelist = getTracywindyObject('table_projcreditreport');\r\n");
      out.write("\tvar tabledata11=currentTablelist.getRowsData();\r\n");
      out.write("\tfor(var i=0;i<tabledata11.length;i++){\r\n");
      out.write("\t\t\tif(tabledata11[i].filename=='法人客户信审报告(10台以上).xls')\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t  alert(tabledata11[i].filename+\"已经生成\");\r\n");
      out.write("\t\t\t\t  return false;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("    //平均租金\r\n");
      out.write(
          "    var currentTable2 = getTracywindyObject('table_id_table_leasing_rent_plan_container');\r\n");
      out.write("\t\tvar tabledata2=currentTable2.getRowsData();\r\n");
      out.write("\t\tvar sumMoney=null;\r\n");
      out.write("\t\tfor(var j=0;j<tabledata2.length;j++)\r\n");
      out.write("\t\t{\r\n");
      out.write("       sumMoney=sumMoney+parseFloat(tabledata2[j].rent);\r\n");
      out.write("\t \t}\r\n");
      out.write("\t \tsumMoney=sumMoney/parseInt(tabledata2.length);\r\n");
      out.write("\t \t//alert(sumMoney);\r\n");
      out.write("\t \t\r\n");
      out.write("    //担保人\r\n");
      out.write(
          "\tvar currentTable1 = getTracywindyObject('table_id_table_leasing_proj_guarantee_method_container');\r\n");
      out.write("\t\tvar tabledata=currentTable1.getRowsData();\r\n");
      out.write("\t\tvar assurorname=\"('\";\r\n");
      out.write("\t\tfor(var i=0;i<tabledata.length;i++){\r\n");
      out.write("\t\tassurorname+=tabledata[i].assurorname;\r\n");
      out.write("\t\t if(i<tabledata.length-1)\r\n");
      out.write("\t  {\r\n");
      out.write("\t\tassurorname+=\"','\";\r\n");
      out.write("\t   }\r\n");
      out.write("\t}\r\n");
      out.write("\tassurorname+=\"')\";\r\n");
      out.write("\t\tvar test=getTracywindyObject(\"id_combo_creatordept\").getRawValue();\r\n");
      out.write("\t\t//alert(test+\"2222\");\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\t//alert(\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付\"+jQuery(\"#cautionMoney\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney);\r\n");
      out.write(
          "\t \tvar data=\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付,\"+jQuery(\"#cautionMoneyRatio\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney+\"元\";\r\n");
      out.write("\tvar url=\"/leasing/template/createFileByTemplateClass.action\";\r\n");
      out.write("\tvar filename='table_projcreditreport';\r\n");
      out.write(
          "    attachmentDown({uploadid:filename,url:url,title:\"\",flowunid:flowUnid,twoClassify:'wordtempletypetwo.34',returnType:'listtocurpaget',modelname:'creditreport',assurorname:assurorname,lesseesname:jQuery(\"#cust_name\").val(),projectid:jQuery(\"#project_id\").val(),\"framework_condition.money\":sumMoney,\"condition.array\":data,dealername:test});\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("//页面初始化\r\n");
      out.write("var isSubTable=true;\r\n");
      out.write("//法人附件上传权限\r\n");
      out.write("var isAttachment=false;\r\n");
      out.write("//隐藏域在提交或保存前的赋值\r\n");
      out.write("function fillHiddenVal() {\r\n");
      out.write("\tif(\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['proj_info.cust_type']}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"=='法人')\r\n");
      out.write("\t{\r\n");
      out.write("\t    var currentTable3 = getTracywindyObject('table_projcreditreport');\r\n");
      out.write("\t    jQuery('#id_json_word_list_str').val(\r\n");
      out.write("\t\t\tJsonUtil.encode(currentTable3.getRowsJsonData()));\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("var tooldata=[{\r\n");
      out.write(" \t html : '<font color=\"blue\">生成法人客户信审报告(6-10台) </font>',\r\n");
      out.write("\t\thandler : function(table) {\r\n");
      out.write("\t     createTemFileCredit6();\r\n");
      out.write("\t\t\t\t//return false;\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\ticonCls : 'icon-update'\r\n");
      out.write("},\r\n");
      out.write("{\r\n");
      out.write("\t html : '<font color=\"blue\">生成法人客户信审报告 (10台以上)</font>',\r\n");
      out.write("\t\thandler : function(table) {\r\n");
      out.write("\t\t    createTemFileCredit();\r\n");
      out.write("\t\t\t\t//return false;\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\ticonCls : 'icon-update'\r\n");
      out.write("}\r\n");
      out.write("];\r\n");
      out.write("\r\n");
      out.write("/* var tooldata=[{\r\n");
      out.write("  \t html : '<font color=\"blue\">生成法人客户现场考察报告 </font>',\r\n");
      out.write("\t\thandler : function(table) {\r\n");
      out.write("\t\t\t\tcreateTemFile();\r\n");
      out.write("\t\t\t\t//return false;\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\ticonCls : 'icon-update'\r\n");
      out.write("}]; */\r\n");
      out.write("\t//初始化调用\r\n");
      out.write("\tjQuery(function() {\r\n");
      out.write("\t\t//########公共JS事件##########\r\n");
      out.write("\t\tjQuery(\".toggle-icon-expanded\").click(toggleLeasingOperation);\r\n");
      out.write(
          "\t\t$(\"#id_project_info_tabs_content\").css(\"width\", (formWidth) + \"px\");\r\n");
      out.write("\t\t$(\"#id_project_info_tabs_content\").tabs();\r\n");
      out.write("\t\tisSubTable = false;\r\n");
      out.write("\t\tvar d = $(\"#id_project_info_tabs_content\");\r\n");
      out.write("\t\t$(\"#id_project_fund_rent_plan_tabs_content\").css(\"width\",\r\n");
      out.write("\t\t\t\t(formWidth) + \"px\");\r\n");
      out.write("\t\t$(\"#id_project_fund_rent_plan_tabs_content\").tabs();\r\n");
      out.write("\t\t//jQuery(\".fillTableContainer\").css(\"width\",formWidth+\"px\");\r\n");
      out.write("\t});\r\n");
      out.write("</script>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #27
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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;
      _jspx_resourceInjector =
          (org.glassfish.jsp.api.ResourceInjector)
              application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
      out.write("   \"http://www.w3.org/TR/html4/loose.dtd\">\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>Socioware/LearnMore</title>\n");
      out.write("    <link href=\"Index.css\" rel=\"stylesheet\" type=\"text/css\">\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("         ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "Header.html", out, false);
      out.write("\n");
      out.write("       \n");
      out.write("            <tr>\n");
      out.write("                <td>\n");
      out.write("                    <pre>\n");
      out.write("\n");
      out.write("                    </pre>\n");
      out.write("                </td>\n");
      out.write("            </tr></table>\n");
      out.write(
          "        <table width=\"1100\"  border=\"0\" align=\"center\"  bgcolor=\"white\" >\n");
      out.write("    <tr>\n");
      out.write("         <td colspan=\"100%\"><hr/></td>\n");
      out.write("    </tr>  <tr>\n");
      out.write("        <td valign=\"top\" align=\"left\">\n");
      out.write("                    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "Footer.html", out, false);
      out.write("\n");
      out.write("\n");
      out.write("        </td>\n");
      out.write("\n");
      out.write("    </tr> <tr>\n");
      out.write("     <td colspan=\"100%\"><hr/></td>\n");
      out.write("    </tr>     </table>\n");
      out.write("    </body>\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Beispiel #28
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=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 Licensed to Cloudera, Inc. under one\n or more contributor license agreements.  See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership.  Cloudera, Inc. licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you may not use this file except in compliance\n with the License.  You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<html><head>\n<!-- Copyright (c) 2010 Cloudera, Inc.  All rights reserved. -->\n<!-- Retro web 1.0 flume Agent configuration display -->\n\n<title>Flume Node: ");
      out.print(FlumeNode.getInstance().getPhysicalNodeName());
      out.write(
          " :: Sources and Sinks</title>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/flume.css\" />\n\n</head>\n<body>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "menu_agent.jsp", out, false);
      out.write("\n\n<h1>Flume Node: ");
      out.print(FlumeNode.getInstance().getPhysicalNodeName());
      out.write(" :: Extensions - Sink/Source/Decorator</h1>\n\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "version.jsp", out, false);
      out.write("\n<hr>\n\n\n<div id=\"sinks\">\n<h2>Sinks</h2>\n\n<table>\n\n");

      // treeset so that the list is sorted
      for (String n : new TreeSet<String>(FlumeBuilder.getSinkNames())) {

        out.write("\n    <tr><td>");
        out.print(n);
        out.write("</td></tr>\n");
      }

      out.write("\n\n</table>\n</div>\n\n<div id=\"sources\">\n<h2>Sources</h2>\n<table>\n\n");

      // treeset so that the list is sorted
      for (String n : new TreeSet<String>(FlumeBuilder.getSourceNames())) {

        out.write("\n    <tr><td>");
        out.print(n);
        out.write("</td></tr>\n");
      }

      out.write("\n\n</table>\n</div>\n\n<div id=\"decos\">\n<h2>Decorators</h2>\n<table>\n\n");

      // treeset so that the list is sorted
      for (String n : new TreeSet<String>(FlumeBuilder.getDecoratorNames())) {

        out.write("\n    <tr><td>");
        out.print(n);
        out.write("</td></tr>\n");
      }

      out.write("\n\n</table>\n</div>\n</body></html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      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 lang=\"es\">\r\n");
      out.write("  <head>\r\n");
      out.write("    <meta charset=\"utf-8\">\r\n");
      out.write("    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n");
      out.write("    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n");
      out.write(
          "    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\r\n");
      out.write("    <title>Administración</title>\r\n");
      out.write("    <!-- Bootstrap -->\r\n");
      out.write("    <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\r\n");
      out.write(
          "    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\r\n");
      out.write(
          "    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\r\n");
      out.write("    <!--[if lt IE 9]>\r\n");
      out.write(
          "      <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\r\n");
      out.write(
          "      <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\r\n");
      out.write("    <![endif]-->\r\n");
      out.write("    <!-- DataTables -->\r\n");
      out.write("    <link rel=\"stylesheet\" href=\"css/jquery.dataTables.min.css\">\r\n");
      out.write(
          "    <link rel=\"stylesheet\" href=\"css/jquery.dataTables_themeroller.min.css\">\r\n");
      out.write("  </head>\r\n");
      out.write("  <body>\r\n");
      out.write("   ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "taller-sesion.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- Inicio Barra de navegación -->\r\n");
      out.write("    <div class=\"container-fluid\">\r\n");
      out.write("      <div class=\"row\">\r\n");
      out.write("        <nav class=\"navbar navbar-default\" role=\"navigation\">\r\n");
      out.write("          <!-- El logotipo y el icono que despliega el menú se agrupan\r\n");
      out.write("               para mostrarlos mejor en los dispositivos móviles -->\r\n");
      out.write("          <div class=\"navbar-header\">\r\n");
      out.write(
          "            <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\"\r\n");
      out.write("                    data-target=\".navbar-ex1-collapse\">\r\n");
      out.write("              <span class=\"sr-only\">Desplegar navegación</span>\r\n");
      out.write("              <span class=\"icon-bar\"></span>\r\n");
      out.write("              <span class=\"icon-bar\"></span>\r\n");
      out.write("              <span class=\"icon-bar\"></span>\r\n");
      out.write("            </button>\r\n");
      out.write(
          "            <a class=\"navbar-brand\" href=\"taller-escritorio.jsp\">Escritorio</a>\r\n");
      out.write("          </div>\r\n");
      out.write("          <div class=\"collapse navbar-collapse navbar-ex1-collapse\">\r\n");
      out.write("            <ul class=\"nav navbar-nav\">\r\n");
      out.write("              <li class=\"dropdown\">\r\n");
      out.write(
          "                <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\r\n");
      out.write("                  INFORMES<b class=\"caret\"></b>\r\n");
      out.write("                </a>\r\n");
      out.write("                <ul class=\"dropdown-menu\">\r\n");
      out.write(
          "                   <li><a href=\"taller-informes-2-listado.jsp\">Reparación Vehicular</a></li>\r\n");
      out.write("                </ul>\r\n");
      out.write("              </li>\r\n");
      out.write("            </ul>\r\n");
      out.write("            <ul class=\"nav navbar-nav navbar-right\" role=\"navigation\">\r\n");
      out.write("                <li class=\"dropdown\">\r\n");
      out.write(
          "                  <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\r\n");
      out.write("                    PERFIL <b class=\"caret\"></b>\r\n");
      out.write("                    </a>\r\n");
      out.write("                    <ul class=\"dropdown-menu\">\r\n");
      out.write("                      <li><a href=\"#\">Ver Perfil</a></li>\r\n");
      out.write("                      <li><a href=\"#\">Editar Perfil</a></li>\r\n");
      out.write("                    </ul>\r\n");
      out.write("                </li>\r\n");
      out.write("                <li><a href=\"ServletCerrar\">SALIR</a></li>\r\n");
      out.write("            </ul>\r\n");
      out.write("          </div>\r\n");
      out.write("        </nav> \r\n");
      out.write("      </div>\r\n");
      out.write("    </div>\r\n");
      out.write("    <!-- Fin Barra de Navegación -->");
      out.write("\r\n");
      out.write("    <!-- Inicio cabezera de escritorio -->\r\n");
      out.write("    <div class=\"container\">\r\n");
      out.write("      <div class=\"row\">\r\n");
      out.write("        <h1 class=\"text-center\">Bienvedido ");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${sessionScope.USUARIO.descripcionTipoUsuario}",
                  java.lang.String.class,
                  (PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("  @<small>");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${sessionScope.USUARIO.apellidoPaternoUsuario}",
                  java.lang.String.class,
                  (PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(' ');
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${sessionScope.USUARIO.apellidoMaternoUsuario}",
                  java.lang.String.class,
                  (PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(',');
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${sessionScope.USUARIO.nombresUsuario}",
                  java.lang.String.class,
                  (PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</small></h1>\r\n");
      out.write("        <p class=\"text-center\">\r\n");
      out.write(
          "          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio sunt fuga a dignissimos nulla, recusandae, mollitia tempore molestias perferendis, id aspernatur voluptas? Suscipit aliquid saepe corporis, magnam quidem impedit, ex.\r\n");
      out.write("        </p>\r\n");
      out.write("        <p class=\"text-center\">\r\n");
      out.write(
          "          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio impedit alias est illo, repellat nemo nulla fuga, nisi quod, veniam placeat, quo nesciunt sit deleniti quisquam hic ut a dicta?\r\n");
      out.write("        </p>\r\n");
      out.write("      </div>\r\n");
      out.write("    </div>\r\n");
      out.write("    <!-- Fin cabezera de escritorio -->\r\n");
      out.write("    <!-- Inicio ultimos comentarios -->\r\n");
      out.write("    <div class=\"container\">\r\n");
      out.write("      <div class=\"row\">\r\n");
      out.write("        <h2 class=\"text-center\">Últimos Comentarios</h2>\r\n");
      out.write("        <table id=\"tabla\" class=\"table table-bordered table-hover\">\r\n");
      out.write("          <thead>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <th>ID</th>\r\n");
      out.write("              <th>Usuario</th>\r\n");
      out.write("              <th>Tipo</th>\r\n");
      out.write("              <th>Fecha</th>\r\n");
      out.write("              <th>Comentario</th>\r\n");
      out.write("              <th>Operación</th>\r\n");
      out.write("            </tr>\r\n");
      out.write("          </thead>  \r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>1</td>\r\n");
      out.write("            <td>Andres</td>\r\n");
      out.write("            <td>Jefe de Servicios Generales</td>\r\n");
      out.write("            <td>2015-02-01</td>\r\n");
      out.write(
          "            <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio sunt fuga </td>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-success\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-ok\"></span>\r\n");
      out.write("                  Aprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-danger\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-remove\"></span>\r\n");
      out.write("                  Desaprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>1</td>\r\n");
      out.write("            <td>Andres</td>\r\n");
      out.write("            <td>Jefe de Servicios Generales</td>\r\n");
      out.write("            <td>2015-02-01</td>\r\n");
      out.write(
          "            <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio sunt fuga </td>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-success\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-ok\"></span>\r\n");
      out.write("                  Aprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-danger\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-remove\"></span>\r\n");
      out.write("                  Desaprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>1</td>\r\n");
      out.write("            <td>Andres</td>\r\n");
      out.write("            <td>Jefe de Servicios Generales</td>\r\n");
      out.write("            <td>2015-02-01</td>\r\n");
      out.write(
          "            <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio sunt fuga </td>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-success\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-ok\"></span>\r\n");
      out.write("                  Aprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-danger\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-remove\"></span>\r\n");
      out.write("                  Desaprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>1</td>\r\n");
      out.write("            <td>Andres</td>\r\n");
      out.write("            <td>Jefe de Servicios Generales</td>\r\n");
      out.write("            <td>2015-02-01</td>\r\n");
      out.write(
          "            <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio sunt fuga </td>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-success\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-ok\"></span>\r\n");
      out.write("                  Aprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-danger\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-remove\"></span>\r\n");
      out.write("                  Desaprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>1</td>\r\n");
      out.write("            <td>Andres</td>\r\n");
      out.write("            <td>Jefe de Servicios Generales</td>\r\n");
      out.write("            <td>2015-02-01</td>\r\n");
      out.write(
          "            <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio sunt fuga </td>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-success\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-ok\"></span>\r\n");
      out.write("                  Aprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\r\n");
      out.write("              <a href=\"#\">\r\n");
      out.write("                <button class=\"btn btn-danger\">\r\n");
      out.write("                  <span class=\"glyphicon glyphicon-remove\"></span>\r\n");
      out.write("                  Desaprobar\r\n");
      out.write("                </button>\r\n");
      out.write("              </a>\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("    <!-- Fin ultimos comentarios -->\r\n");
      out.write("    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\r\n");
      out.write("    <script src=\"js/jquery-1.11.3.min.js\"></script>\r\n");
      out.write(
          "    <!-- Include all compiled plugins (below), or include individual files as needed -->\r\n");
      out.write("    <script src=\"js/bootstrap.min.js\"></script>\r\n");
      out.write("    <!-- DataTables -->\r\n");
      out.write("    <script src=\"js/jquery.dataTables.js\"></script>\r\n");
      out.write("    <script src=\"js/misFunciones.js\"></script>\r\n");
      out.write("  </body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof 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 log(t.getMessage(), t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }