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

📄 scoretemplate_005fedit_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      out.write("\t\tdocument.getElementById(\"pageAction\").value=lastwindow.document.getElementById(\"pageAction\").value;\r\n");
      out.write("\t\tdocument.getElementById(\"pageCurrent\").value=lastwindow.document.getElementById(\"pageCurrent\").value;\r\n");
      out.write("\t\tdocument.getElementById(\"pageMax\").value=lastwindow.document.getElementById(\"pageMax\").value;\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("\t<body style=\"margin:0px; padding:0px;background:#EAF3FF;\">\r\n");
      out.write("\t\t");
      if (_jspx_meth_s_005fform_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("<!--\r\n");
      out.write("\tinitPage();\r\n");
      out.write("\tfunction deleteRow(r){\r\n");
      out.write("\t\t\tvar i=r.parentNode.parentNode.rowIndex\r\n");
      out.write("\t\t\t\r\n");
      out.write("  \t\t\tdocument.getElementById('reftable').deleteRow(i)\r\n");
      out.write("\t  }\r\n");
      out.write("\t\r\n");
      out.write("\t function insRow(){\r\n");
      out.write("\r\n");
      out.write("\t\tvar a =  document.getElementById('reftable').rows.length;\r\n");
      out.write("\t\tvar tr=document.getElementById('reftable').insertRow(a)\r\n");
      out.write("\t\tvar td1=tr.insertCell(0)\r\n");
      out.write("\t\ttd1.width=\"201px\";\r\n");
      out.write("\t\tvar input1 = document.createElement(\"<input type='text' id='content\"+a+\"' name='content' class='input01' size='30' maxlength='30'/>\");\r\n");
      out.write("\t\ttd1.appendChild(input1);\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\tvar td2=tr.insertCell(1)\r\n");
      out.write("\t\ttd2.width = \"136px\";\r\n");
      out.write("\t\tvar select2 = document.createElement(\"<select name='type' id='type\"+a+\"' size='1' onchange='changeType(this)'>\");\r\n");
      out.write("\t\tvar option1 = document.createElement(\"option\"); \r\n");
      out.write("\t\toption1.value = \"1\";\r\n");
      out.write("\t\tvar selectOption1 = document.createTextNode(\"选择\");\r\n");
      out.write("\t\toption1.appendChild(selectOption1);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tvar option2 = document.createElement(\"option\"); \r\n");
      out.write("\t\toption2.value = \"2\";\r\n");
      out.write("\t\tvar selectOption2 = document.createTextNode(\"填空\");\r\n");
      out.write("\t\toption2.appendChild(selectOption2);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tselect2.appendChild(option1);\r\n");
      out.write("\t\tselect2.appendChild(option2);\t\t\r\n");
      out.write("\t\ttd2.appendChild(select2);\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\tvar td3=tr.insertCell(2)\r\n");
      out.write("\t\ttd3.width = \"202px\";\r\n");
      out.write("\t\tvar input3 = document.createElement(\"<input onfocus='setValue(this)'  type='text' id='range\"+a+\"' name='range' class='input01' size='30' maxlength='30'>\");\r\n");
      out.write("\t\tvar input4 = document.createElement(\"<input type='hidden' id='other\"+a+\"' name='other' value=''>\");\r\n");
      out.write("\t\t//var input4 = document.createElement(\"<input class='input02' type='button' value='-' onclick='deleteRow(this)' />\");\r\n");
      out.write("\t\ttd3.appendChild(input3);\r\n");
      out.write("\t\t//td3.appendChild(input4);\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\tvar td4=tr.insertCell(3)\r\n");
      out.write("\t\tvar input4 = document.createElement(\"<input class='input02' type='button' value='-' onclick='deleteRow(this)' />\");\r\n");
      out.write("\t\ttd4.appendChild(input4);\t\r\n");
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction setValue(obj){\r\n");
      out.write("\t\tvar idIndex = $(obj).attr('id').substring(5);\r\n");
      out.write("\t\tvar typeValue = $('#type'+idIndex).val();\r\n");
      out.write("\t\tvar value = $('#range'+idIndex).val();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t//window.open('");
      out.print(cpath);
      out.write("/pages/LeftMenu/scoretemplate/score_info.jsp?id=range'+idIndex+'&typeId=type'+idIndex+'&typeValue='+typeValue+'&value='+value);\r\n");
      out.write("\t\t//alert('");
      out.print(cpath);
      out.write("/pages/LeftMenu/scoretemplate/score_info.jsp?id=range'+idIndex+'&typeValue='+typeValue);\r\n");
      out.write("\t\twindow.showModalDialog('");
      out.print(cpath);
      out.write("/pages/LeftMenu/scoretemplate/score_info.jsp?id=range'+idIndex+'&typeValue='+typeValue,window);\r\n");
      out.write("\t\t$(obj).blur();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction changeType(obj){\r\n");
      out.write("\t\tvar idIndex = $(obj).attr('id').substring(4);\r\n");
      out.write("\t\tvar other = $('#other'+idIndex).val();\r\n");
      out.write("\t\tvar range = $('#range'+idIndex).val();\r\n");
      out.write("\t\t$('#range'+idIndex).val(other);\r\n");
      out.write("\t\t$('#other'+idIndex).val(range);\r\n");
      out.write("\t}\r\n");
      out.write("</script>\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);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_s_005fproperty_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:property
    org.apache.struts2.views.jsp.PropertyTag _jspx_th_s_005fproperty_005f0 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f0.setParent(null);
    _jspx_th_s_005fproperty_005f0.setValue("windowId");
    int _jspx_eval_s_005fproperty_005f0 = _jspx_th_s_005fproperty_005f0.doStartTag();
    if (_jspx_th_s_005fproperty_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
    return false;
  }

  private boolean _jspx_meth_s_005fform_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:form
    org.apache.struts2.views.jsp.ui.FormTag _jspx_th_s_005fform_005f0 = (org.apache.struts2.views.jsp.ui.FormTag) _005fjspx_005ftagPool_005fs_005fform_005fname_005fmethod_005fenctype_005faction.get(org.apache.struts2.views.jsp.ui.FormTag.class);
    _jspx_th_s_005fform_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fform_005f0.setParent(null);
    _jspx_th_s_005fform_005f0.setName("form");
    _jspx_th_s_005fform_005f0.setAction("");
    _jspx_th_s_005fform_005f0.setMethod("post");
    _jspx_th_s_005fform_005f0.setEnctype("multipart/form-data");
    int _jspx_eval_s_005fform_005f0 = _jspx_th_s_005fform_005f0.doStartTag();
    if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005fform_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005fform_005f0.doInitBody();
      }
      do {
        out.write("\r\n");
        out.write("\t\t\t<input type=\"hidden\" name=\"returnsign\" value=\"");
        if (_jspx_meth_s_005fproperty_005f1(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\" />\r\n");
        out.write("\t\t\t<input type=\"hidden\" id=\"windowId\" name=\"windowId\" value=\"");
        if (_jspx_meth_s_005fproperty_005f2(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t<input type=\"hidden\" id=\"pageTotal\" name=\"page.pageTotal\" value=\"");
        if (_jspx_meth_s_005fproperty_005f3(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t\t<input type=\"hidden\" id=\"pageAction\" name=\"page.pageAction\" value=\"");
        if (_jspx_meth_s_005fproperty_005f4(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t\t<input type=\"hidden\" id=\"pageCurrent\" name=\"page.pageCurrent\" value=\"");
        if (_jspx_meth_s_005fproperty_005f5(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t\t<input type=\"hidden\" id=\"pageMax\" name=\"page.pageMax\" value=\"");
        if (_jspx_meth_s_005fproperty_005f6(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"bgOffice\" style=\"width:100%;height:100%;\">\r\n");
        out.write("\t\t\t<tr>\r\n");
        out.write("\t\t\t\t<td valign=\"top\" colspan=\"4\" style=\"border:none\">\r\n");
        out.write("\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"title\" width=\"100%\">\r\n");
        out.write("\t\t\t\t<tr>\r\n");
        out.write("\t\t\t\t\t<td style=\"height:25px\">修改评分模板\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t<td align=\"right\">\r\n");
        out.write("                    \t<input class=\"input02\" type=\"button\" value=\"保 存\" name=\"b2\" onclick=\"save()\" />\r\n");
        out.write("                    </td>\r\n");
        out.write("\t\t\t\t</tr>\r\n");
        out.write("\t\t\t\t </table>\r\n");
        out.write("\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t</tr>\r\n");
        out.write("\t\t\t\t  <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table02 inputLine\">\r\n");
        out.write("\t\t\t\t  <tr>\r\n");
        out.write("\t\t\t\t\t<td align=\"right\" width=\"22%\">模板名称:\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t<td align=\"left\" class=\"bgInput\" width=\"30%\">\r\n");
        out.write("\t\t\t\t\t<input type=\"hidden\" name=\"templateId\"  value=\"");
        if (_jspx_meth_s_005fproperty_005f7(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t\t\t\t<input  type=\"text\" id=\"templateName\" name=\"scoretemplate.templateName\" size=\"40\" class=\"input01\"  maxlength=\"40\" value=\"");
        if (_jspx_meth_s_005fproperty_005f8(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\"/>\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t<td width=\"18%\">&nbsp;\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t<td width=\"20%\" class=\"bgInput\">&nbsp;\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t</tr>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write("\t\t\t\r\n");
        out.write("\r\n");
        out.write("\t\t\t\t<tr>\r\n");
        out.write("\t\t\t\t\t<td align=\"right\">\r\n");
        out.write("\t\t\t\t\t\t是否有效:\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t\t<td align=\"left\" class=\"bgInput\">\r\n");
        out.write("\t\t\t\t\t\t<select name=\"scoretemplate.isValid\" id=\"isValid\" size=\"1\">\r\n");
        out.write("\t\t\t\t\t\t\t");
        if (_jspx_meth_s_005fiterator_005f0(_jspx_th_s_005fform_005f0, _jspx_page_context))
          return true;
        out.write("\r\n");
        out.write("\t\t\t\t\t\t</select>\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t<td >&nbsp;\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t\t<td  class=\"bgInput\">&nbsp;\r\n");
        out.write("\t\t\t\t\t</td>\r\n");
        out.write("\t\t\t\t</tr>\r\n");
        out.write("\t\t\t</table>\r\n");
        out.write("\t\t\t\r\n");
        out.write("\t\t\t<tr>\r\n");
        out.write("\t\t<td width=\"100%\" style=\"background-color:white\">\r\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -