?? elecinfomodify_jsp.java
字號(hào):
package org.apache.jsp.imis_005felec;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import common.*;
public final class elecInfoModify_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_if_test.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;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
String oldUserId = request.getParameter("UserId");
out.write("\r\n\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\r\n \r\n ");
out.write("<title>用戶基本信息修改");
out.write("</title>\r\n");
out.write("\r\n \r\n\t");
out.write("<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"expires\" content=\"0\"> \r\n\t");
out.write("<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n\t");
out.write("<meta http-equiv=\"description\" content=\"This is my page\">\r\n\t");
out.write("<!--\r\n\t");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n\t-->\r\n");
out.write("<script type=\"text/javascript\">\r\nfunction checkValue() {\t\r\n \t\r\n \tvar UserId = document.form1.UserId.value;\r\n if (UserId==\"\") { \r\n document.form1.UserId.focus();\r\n alert(\"戶號(hào)不能為空\(chéng)");\r\n return false;\r\n }\r\n if (UserId.length > 20){\r\n\t\t\t\twindow.alert(\"戶號(hào)長(zhǎng)度超出,限定為0-20個(gè)英文字符\");\r\n\t \t\tdocument.form1.UserId.focus();\r\n\t \t\treturn false;\r\n\t\t\t\t}\r\n \t\r\n \tvar UserName = document.form1.UserName.value;\r\n if (UserName==\"\") { \r\n document.form1.UserName.focus();\r\n alert(\"戶名不能為空\(chéng)");\r\n return false;\r\n }\r\n if (UserName.length > 100){\r\n\t\t\t\twindow.alert(\"戶名長(zhǎng)度超出,限定為0-100個(gè)英文字符\");\r\n\t \t\tdocument.form1.UserName.focus();\r\n\t \t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n var ElecType = document.form1.ElecType.value;\r\n\t\t\tif (ElecType.length > 100){\r\n\t\t\t\twindow.alert(\"電價(jià)形式長(zhǎng)度超出,限定為0-100個(gè)英文字符\");\r\n");
out.write(" \t\tdocument.form1.ElecType.focus();\r\n \t\treturn false;\r\n\t\t\t}\r\n\r\n var UsedBy = document.form1.UsedBy.value;\r\n\t\t\tif (UsedBy.length > 100){\r\n\t\t\t\twindow.alert(\"托收號(hào)長(zhǎng)度超出,限定為0-100個(gè)英文字符。\");\r\n \tdocument.form1.UsedBy.focus();\r\n \treturn false;\r\n\t\t\t\t}\r\n\t\t\r\n\t\tvar Addr = document.form1.Addr.value;\r\n\t\t\tif (Addr.length > 100){\r\n\t\t\t\twindow.alert(\"地址長(zhǎng)度超出,限定為0-100個(gè)英文字符。\");\r\n \tdocument.form1.Addr.focus();\r\n \treturn false;\r\n\t\t\t\t}\r\n\t\t\t\r\n var Depa = document.form1.Depa.value;\r\n\t\t\tif (Depa.length > 100){\r\n\t\t\t\twindow.alert(\"單位長(zhǎng)度超出,限定為0-100個(gè)英文字符。\");\r\n \tdocument.form1.Depa.focus();\r\n \treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\tvar ElecGre = document.form1.ElecGre.value;\r\n\t\t\tif (ElecGre.length > 100){\r\n\t\t\t\twindow.alert(\"電壓等級(jí)長(zhǎng)度超出,限定為0-100個(gè)英文字符。\");\r\n \tdocument.form1.ElecGre.focus();\r\n \treturn false;\r\n\t\t\t\t}\r\n\t\t\t\r\n var RunCap = document.form1.RunCap.value;\r\n\t\t\tif (RunCap.length > 100){\r\n\t\t\t\twindow.alert(\"運(yùn)行容量長(zhǎng)度超出,限定為0-100個(gè)英文字符。\");\r\n");
out.write(" \tdocument.form1.RunCap.focus();\r\n \treturn false;\r\n\t\t\t\t}\r\n\t\t\r\n\t\tvar memo = document.form1.Memo.value;\r\n\t\t\tif (memo.length > 100){\r\n\t\t\t\twindow.alert(\"輸入備注長(zhǎng)度超出,限定為0-100個(gè)英文字符。\");\r\n \t\tdocument.form1.Memo.focus();\r\n \t\treturn false;\r\n\t\t\t\t}\r\n\t\t\r\n return true;\r\n \r\n}\r\n\r\n\t\tfunction preload() { \r\n\t\t\told=document.form1.oldUserId.value;\r\n\t\t\tform1.action = \"/Imis/servlet/ElecInfo?pattern=modify&&oldUserId=\"+old;\r\n\t\t\tparent.iframe_elec_tree.location.reload(); //刷新左半邊的樹(shù) 框架名稱在menu頁(yè)面內(nèi)\r\n\t\t} \r\n");
out.write("</script>\r\n ");
out.write("</head>\r\n ");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_elec/css/style.css\">\r\n ");
out.write("<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling=\"auto\" background=\"/Imis/imis_elec/images/bg_main.png\" >\r\n\r\n\t\t");
out.write("<form method=\"post\" action=\"/Imis/servlet/ElecInfo?pattern=getElecInfo&page=modify\">\r\n\t\t\t");
out.write("<table align=\"left\" width=\"100%\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\t\t\t\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td width=\"20%\" align=\"right\">戶 號(hào):");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td width=\"20%\">");
out.write("<input type=\"text\" name=\"UserId\" class=\"text1\" />");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td align=\"left\">");
out.write("<input type=\"submit\" name=\"Submit\" value=\"查 詢\" class=\"anniu\" />");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\t\r\n\t\t\t");
out.write("</table>\r\n\t\t");
out.write("</form>\r\n\t\t\r\n\t\t");
if (_jspx_meth_c_if_0(pageContext))
return;
out.write("\r\n\t\t\r\n\t\t");
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_1.setPageContext(pageContext);
_jspx_th_c_if_1.setParent(null);
_jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecInfo!=null || requestScope.UserIdExisted != null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n\t\t");
out.write("<br/>");
out.write("<br/>");
out.write("<br/>\r\n\t\t\t\r\n\t\t\t");
out.write("<form method=\"post\" action=\"/Imis/servlet/ElecInfo?pattern=modify\" name=\"form1\" onsubmit=\"return checkValue()\">\r\n\t\t\t ");
out.write("<input type=\"hidden\" name=\"oldUserId\" value=");
out.print(oldUserId);
out.write(">\r\n\t\t\t");
out.write("<table align=\"left\" width=\"500\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td width=\"29%\" align=\"right\">戶 號(hào):");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>\r\n\t\t\t\t\t\t");
out.write("<input type=\"text\" name=\"UserId\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecInfo.userId}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" class=\"text1\"/>\r\n\t\t\t\t\t\t");
out.write("<font color=\"red\"> *");
out.write("</font>\r\n\t\t\t\t\t\t");
if (_jspx_meth_c_if_2(_jspx_th_c_if_1, pageContext))
return;
out.write("\r\n\t\t\t\t\t");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">戶 名:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("<input type=\"text\" name=\"UserName\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecInfo.userName}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" class=\"text1\"/>\r\n\t\t\t\t\t");
out.write("<font color=\"red\"> *");
out.write("</font>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">電價(jià)形式:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("<input type=\"text\" name=\"ElecType\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecInfo.elecType}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" class=\"text1\"/>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">托 收 號(hào):");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("<input type=\"text\" name=\"UsedBy\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecInfo.usedBy}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" class=\"text1\"/>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">地 址:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("<input type=\"text\" name=\"Addr\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecInfo.addr}", java.lang.String.class, (PageContext)pageContext, null, false));
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -