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

📄 emailtask_005fadd_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      out.write("\t\t//\r\n");
      out.write("\t\tdocument.getElementById('textaa').style.display=\"none\";\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction Click2(){\r\n");
      out.write("\t\tdocument.getElementById('temp').disabled=true;\r\n");
      out.write("\t\tdocument.getElementById('previewButton').disabled=true;\r\n");
      out.write("\t\tdocument.manage.temp.value=\"\";\r\n");
      out.write("\t\tdocument.manage.temp.disabled=true;\r\n");
      out.write("\t\t//\r\n");
      out.write("\t\tdocument.getElementById('textaa').style.display=\"\";\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("function ItmAction(){\r\n");
      out.write("\t\tvar con = document.getElementById('con').value;\r\n");
      out.write("\t\tif(con==\"\"){\r\n");
      out.write("\t\t\tdocument.getElementById('textaa').style.display=\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("function openselect(i){\r\n");
      out.write("\t\tvar taskid=document.manage.taskId.value;\r\n");
      out.write("\t\tvar sign=document.manage.sign.value;\r\n");
      out.write("\t\tif(i==1)window.open(\"");
      out.print(cpath);
      out.write("/email/select.action?identify=customer&sign=\"+sign+\"&taskId=\"+taskid, \"\", \"height=400, width=600, toolbar=atmo , menubar=no, scrollbars=no, resizable=no, location=no, status=no\");\r\n");
      out.write("\t\tif(i==2)window.open(\"");
      out.print(cpath);
      out.write("/email/select.action?identify=group&sign=\"+sign+\"&taskId=\"+taskid, \"\", \"height=400, width=600, toolbar=atmo , menubar=no, scrollbars=no, resizable=no, location=no, status=no\");\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t//删除一行\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\tdocument.getElementById('reftable').deleteRow(i);\r\n");
      out.write("\t  }\r\n");
      out.write("\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');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\t function insRow(){\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.align = \"left\";\r\n");
      out.write("\t\tvar input1 = document.createElement(\"<input type='file' name='upload' id='file\"+a+\"' class='input01'/>\");\r\n");
      out.write("\t\ttd1.appendChild(input1);\r\n");
      out.write("\t\tvar td2=tr.insertCell(1)\r\n");
      out.write("\t\ttd2.align = \"left\";\r\n");
      out.write("\t\tvar input2 = document.createElement(\"<input class='input02' type='button' value='-' onclick='deleteRow(this)' />\");\r\n");
      out.write("\t\ttd2.appendChild(input2);\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t//查看附件\t\r\n");
      out.write("function viewFile(fname){\r\n");
      out.write("\twindow.open('");
      out.print(cpath);
      out.write('/');
      if (_jspx_meth_s_005fproperty_005f1(_jspx_page_context))
        return;
      out.write("/'+fname);\r\n");
      out.write("} \r\n");
      out.write("\r\n");
      out.write("function check(){\r\n");
      out.write("\t\tif(document.getElementById('returnsign').value==1){\r\n");
      out.write("\t\t\talert(\"上传成功!\");\r\n");
      out.write("\t\t}else if(document.getElementById('returnsign').value==2){\r\n");
      out.write("\t\t\t alert(\"上传失败,该文件已经上传过!\");\r\n");
      out.write("\t\t}else if(document.getElementById('returnsign').value==3){\r\n");
      out.write("\t\t\t alert(\"上传失败,上传文件过大!\");\r\n");
      out.write("\t\t}\r\n");
      out.write("}\t\r\n");
      out.write("-->\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<script language=\"JavaScript\">\t\t\r\n");
      out.write("//预览邮件模板内容\r\n");
      out.write("var xmlhttpreq = false;\r\n");
      out.write("//创建xmlhttprequest对象    \r\n");
      out.write("function createxmlhttprequest() {\r\n");
      out.write("\t//alert('createxmlhttprequest');\r\n");
      out.write("        xmlhttpreq = false;\r\n");
      out.write("\r\n");
      out.write("        if (window.XMLHttpRequest) { // Mozilla, Safari,...\r\n");
      out.write("            xmlhttpreq = new XMLHttpRequest();\r\n");
      out.write("            if (xmlhttpreq.overrideMimeType) {\r\n");
      out.write("                xmlhttpreq.overrideMimeType('text/xml');\r\n");
      out.write("            }\r\n");
      out.write("        } else if (window.ActiveXObject) { // IE\r\n");
      out.write("            try {\r\n");
      out.write("                xmlhttpreq = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n");
      out.write("            } catch (e) {\r\n");
      out.write("                try {\r\n");
      out.write("                    xmlhttpreq = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
      out.write("                } catch (e) {}\r\n");
      out.write("            }\r\n");
      out.write("        }\r\n");
      out.write("\r\n");
      out.write("        if (!xmlhttpreq) {\r\n");
      out.write("            alert('Giving up :( Cannot create an XMLHTTP instance');\r\n");
      out.write("            return false;\r\n");
      out.write("        }\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//发送请求函数\r\n");
      out.write("function sendRequest(url) {\r\n");
      out.write("\t//alert('sendRequest');\r\n");
      out.write("\tcreatexmlhttprequest();\r\n");
      out.write("\txmlhttpreq.open('GET', url, true);\r\n");
      out.write("\txmlhttpreq.onreadystatechange = processresponse;//指定响应函数\r\n");
      out.write("\txmlhttpreq.send(null);  // 发送请求\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("// 处理返回信息函数\r\n");
      out.write("function processresponse() {\r\n");
      out.write("\t//alert('processresponse');\r\n");
      out.write("\tif (xmlhttpreq.readyState == 4) { // 判断对象状态\r\n");
      out.write("\t\tif (xmlhttpreq.status == 200) { // 信息已经成功返回,开始处理信息\r\n");
      out.write("\t\t\t//alert('processresponse:'+xmlhttpreq.responseXML.xml);\r\n");
      out.write("\t\t\tprocessRult(xmlhttpreq.responseText);//responseXml\r\n");
      out.write("\t\t} else { //页面不正常\r\n");
      out.write("\t\t\twindow.alert(\"\\u60a8\\u6240\\u8bf7\\u6c42\\u7684\\u9875\\u9762\\u6709\\u5f02\\u5e38\\u3002\");\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("// 设置新值\r\n");
      out.write("function processRult(xmlValue) {\r\n");
      out.write("\t//alert('settoprefresh');\r\n");
      out.write("\twindow.showModelessDialog('");
      out.print(cpath);
      out.write("/pages/LeftMenu/emailsend/emailsend_template.jsp?content='+encodeURI(xmlValue),window);\r\n");
      out.write("\t//document.getElementById(\"Pcontent\").value=xmlValue;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function setContent(){\r\n");
      out.write("\tselObj = document.getElementById('temp');\r\n");
      out.write("\t//textObj = document.getElementById('Pcontent');\r\n");
      out.write("\ttemplateid= selObj.options[selObj.selectedIndex].value;\r\n");
      out.write("\tif(templateid==null||templateid==''){\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}else{\r\n");
      out.write("\t\turl = '");
      out.print(cpath);
      out.write("/email/setContentAjax.action?templateId='+templateid;\r\n");
      out.write("\t\tsendRequest(url);\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<script language=\"Javascript\">\r\n");
      out.write("<!-- // load htmlarea\r\n");
      out.write("_editor_url = \"");
      out.print(cpath);
      out.write("/pages/texteditor/\";                     // URL to htmlarea files\r\n");
      out.write("var win_ie_ver = parseFloat(navigator.appVersion.split(\"MSIE\")[1]);\r\n");
      out.write("\tif (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }\r\n");
      out.write("\tif (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }\r\n");
      out.write("\tif (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }\r\n");
      out.write("\tif (win_ie_ver >= 5.5) {\r\n");
      out.write("\t  document.write('<scr' + 'ipt src=\"' +_editor_url+ 'editor.js\"');\r\n");
      out.write("\t  document.write(' language=\"Javascript1.2\"></scr' + 'ipt>');  \r\n");
      out.write("} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }\r\n");
      out.write("// \r\n");
      out.write("-->\r\n");
      out.write("</script>\r\n");
      out.write("<body leftmargin=\"0\" topmargin=\"0\" class=\"bgOffice\" style=\"width:100%;height:100%;\" onload=\"ItmAction();check();\">\r\n");
      out.write("\t");
      if (_jspx_meth_s_005fform_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t</body>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("editor_generate('content');\r\n");
      out.write("</script>\r\n");
      out.write("\t</html>\r\n");
      out.write("\t\t\t\t");
    } 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("emailtask.emailId");
    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_005fproperty_005f1(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_005f1 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f1.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f1.setParent(null);
    _jspx_th_s_005fproperty_005f1.setValue("pathinfo");
    int _jspx_eval_s_005fproperty_005f1 = _jspx_th_s_005fproperty_005f1.doStartTag();
    if (_jspx_th_s_005fproperty_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f1);

⌨️ 快捷键说明

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