📄 smssend_005fedit_jsp.java
字号:
package org.apache.jsp.pages.LeftMenu.SMSSend;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class smssend_005fedit_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fid;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fid = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fs_005fif_005ftest.release();
_005fjspx_005ftagPool_005fs_005felse.release();
_005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fid.release();
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue.release();
}
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("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \r\n");
out.write("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
String cpath=request.getContextPath();
out.write("\r\n");
out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
out.write("\t<head>\r\n");
out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
out.write("\t\t<title>无标题文档</title>\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/css_common1.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/mian.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/calendar.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/page.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/validate.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/autoaddtext.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/jquery126.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/effect.js\"></script>\t\r\n");
out.write("\t<script language=\"JavaScript\">\t\t\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/SMSSend/smssend_template.jsp?content='+xmlValue,window);\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("function setContent(){\r\n");
out.write("\tselObj = document.getElementById('Ptemplate');\r\n");
out.write("\ttemplateid= selObj.options[selObj.selectedIndex].value;\r\n");
out.write("\tif(templateid==null||templateid==''){\r\n");
out.write("\t\talert('请选择一个短信模板!');\r\n");
out.write("\t\treturn;\r\n");
out.write("\t}else{\r\n");
out.write("\t\twindow.showModelessDialog('");
out.print(cpath);
out.write("/pages/LeftMenu/SMSSend/smssend_template.jsp?templateId='+templateid,window);\r\n");
out.write("\t}\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</script>\r\n");
out.write("\t\t<script language=\"JavaScript\">\t\t\t\t\r\n");
out.write("\t\tfunction submitForm(){\r\n");
out.write("\t\t\tif(validateForm(document.getElementById(\"sform\"))){\r\n");
out.write("\r\n");
out.write("\t\t\t\tgosubmit(document.getElementById(\"sform\"));\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t}\r\n");
out.write("\t\t\r\n");
out.write("\t\tfunction savesmsTask(){\r\n");
out.write("\t\t\tif(validateForm(document.getElementById(\"sform\"))){\r\n");
out.write("\t\t\t\tdocument.getElementById('Pcount').value=sumcontent();\r\n");
out.write("\t\t\t\tdocument.getElementById('sform').action='");
out.print(cpath);
out.write("/smssend/save.action';\r\n");
out.write("\r\n");
out.write("\t\t\t\tgosubmit(document.getElementById(\"sform\"));\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\r\n");
out.write("\t\tfunction updatesmsTask(){\r\n");
out.write("\t\t\tif(validateForm(document.getElementById(\"sform\"))){\r\n");
out.write("\t\t\t\tdocument.getElementById('Pcount').value=sumcontent();\r\n");
out.write("\t\t\t\tdocument.getElementById('sform').action='");
out.print(cpath);
out.write("/smssend/update.action';\r\n");
out.write("\t\t\t\tdocument.getElementById('sform').target=\"_parent\";\r\n");
out.write("\r\n");
out.write("\t\t\t\tgosubmit(document.getElementById(\"sform\"));\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t}\r\n");
out.write("\t\t\r\n");
out.write("\t\tfunction sendsmsTask(){\r\n");
out.write("\t\t\t\tdocument.getElementById('sform').action = '");
out.print(cpath);
out.write("/smssend/send.action';\r\n");
out.write("\r\n");
out.write("\t\t\t\tgosubmit(document.getElementById(\"sform\"));\r\n");
out.write("\t\t}\r\n");
out.write("\t\t\r\n");
out.write("\t\tfunction changeradio(id){\r\n");
out.write("\t\t\ttemplate = document.getElementById('Ptempradio');\r\n");
out.write("\t\t\tedit = document.getElementById('Peditradio');\r\n");
out.write("\t\t\ttr = document.getElementById(\"trcontent\");\r\n");
out.write("\t\t\tif(id=='Ptempradio'&&template.checked==true){\r\n");
out.write("\t\t\t\t//alert('Ptempradio');\r\n");
out.write("\t\t\t\tdocument.getElementById('Ptemplate').disabled='';\r\n");
out.write("\t\t\t\tdocument.getElementById('Ppriview').disabled='';\r\n");
out.write("\t\t\t\tvar contentarr = document.getElementsByName('content');\r\n");
out.write("\t\t\t\ttr.style.display = 'none';\r\n");
out.write("\t\t\t\tfor(var i =0;i<contentarr.length;i++){\r\n");
out.write("\t\t\t\t\tcontentarr[i].disabled='disabled';\r\n");
out.write("\t\t\t\t}\r\n");
out.write("\t\t\t\twindow.parent.monframe.rows=\"200,390\";\r\n");
out.write("\t\t\t\twindow.parent.manualobject.document.getElementById('listcontent').style.height='239px';\r\n");
out.write("\t\t\t}else if(id=='Peditradio'&&edit.checked==true){\r\n");
out.write("\t\t\t\t//alert('Peditradio');\r\n");
out.write("\t\t\t\tdocument.getElementById('Ptemplate').disabled='disabled';\r\n");
out.write("\t\t\t\tdocument.getElementById('Ppriview').disabled='disabled';\r\n");
out.write("\t\t\t\tvar contentarr = document.getElementsByName('content');\r\n");
out.write("\t\t\t\ttr.style.display = '';\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -