📄 __modify.java
字号:
/* compiled from JSP: /Modify.jsp
*
* This code was automatically generated at 14:14:13 on 2005-11-23
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports
import java.util.Vector; //[ /Modify.jsp; Line: 2]
// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client (if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's implementation class (i.e., 'this')
/**
* This code was automatically generated at 14:14:13 on 2005-11-23
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2005 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __modify
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
// StaleIndicator interface public boolean _isStale() { weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext()); java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/Modify.jsp", 1120194145515L, "WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709 ")) return true; return false; } public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) { java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/Modify.jsp", 1120194145515L, "WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709 ")) return true; return false; }
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
{
// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application = config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol
Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext = javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
response.setHeader("Content-Type", "text/html; charset=gb2312"); out = pageContext.getOut(); JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block response.setContentType("text/html; charset=gb2312"); out.print("\r\n"); out.print("\r\n"); //[ /Modify.jsp; Line: 3] if(session.getAttribute("userid")==null) //[ /Modify.jsp; Line: 4] response.sendRedirect("/login.jsp"); //[ /Modify.jsp; Line: 5] out.print("\r\n<HTML>\r\n<HEAD>\r\n<META http-equiv=\"Content-Type\" content=\"text/html;charset=gb2312\">\r\n<title>修改用户信息</title>\r\n\r\n<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript >\r\n<!--\r\nfunction Modify_Check() {\r\n\tif(MainForm.UserID.value==\"\")\r\n\t{\r\n\t\talert(\"请输入企业识别号。\");\r\n\t\tMainForm.UserID.focus();\r\n\t\treturn false;}\r\n var strUserA,strUserB;\r\n strUserA = MainForm.UserID.value;\r\n strUserB = "); out.print(String.valueOf(session.getAttribute("Tax"))); //[ /Modify.jsp; Line: 22] out.print(";\r\n if(strUserA.search(strUserB) != 0){\r\n alert(\"您无权修改该企业信息.\");\r\n return false;\r\n }\r\n\r\n\treturn true;\r\n}\r\n\r\nfunction Modify_onclick() {\r\n\tMainForm.Op.value=\"Modify\";\r\n\tif (Modify_Check()==true)\r\n\t\tMainForm.submit();\r\n}\r\n\r\nfunction getNsrInfo(){\r\n if (event.keyCode==13){\r\n MainForm.Op.value=\"getInfo\";\r\n var url=\"Result.jsp?Op=\"+MainForm.Op.value+\"&UserID=\"+MainForm.UserID.value;\r\n window.location=url;\r\n }\r\n}\r\n\r\nfunction LoadFrm(){\r\n newWindow=window.open(\"ModifyStatus.jsp\",\"subwindow\",\"left=200,top=200,width=450,height=300\");\r\n newWindow.focus();\r\n}\r\n//-->\r\n</SCRIPT>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"Admin_STYLE.CSS\" rel=\"stylesheet\" type=\"text/css\">\r\n</HEAD>\r\n"); //[ /Modify.jsp; Line: 54] Vector myV=null; //[ /Modify.jsp; Line: 55] if(session.getAttribute("UserList")!=null) //[ /Modify.jsp; Line: 56] myV=(Vector)session.getAttribute("UserList"); //[ /Modify.jsp; Line: 57] out.print("\r\n<BODY bgcolor=\"#E1F4EE\" leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" LANGUAGE=javascript>\r\n<form id=MainForm method=post action=Result.jsp LANGUAGE=javascript>\r\n <table width=\"100%\" border=\"0\">\r\n <tr>\r\n <td class=\"topbg\">修改用户信息:</td>\r\n </tr>\r\n </table>\r\n <table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n <tr class=\"tdbg\">\r\n <td width=\"44%\">\r\n <div align=\"right\"><font color=\"#000000\">企业识别号:</font></div></td>\r\n <td width=\"56%\">\r\n "); if(myV==null){ //[ /Modify.jsp; Line: 71] //[ /Modify.jsp; Line: 71] out.print("\r\n <input name=\"UserID\" maxlength=15 size=50 value="); out.print(String.valueOf(session.getAttribute("Tax"))); //[ /Modify.jsp; Line: 72] out.print(" onKeyPress=\"getNsrInfo()\"></td>\r\n "); }else{ //[ /Modify.jsp; Line: 73] //[ /Modify.jsp; Line: 73] out.print("\r\n <input name=\"UserID\" maxlength=15 size=50 value="); out.print(String.valueOf(myV.get(0).toString())); //[ /Modify.jsp; Line: 74] out.print(" onKeyPress=\"getNsrInfo()\"></td>\r\n "); } //[ /Modify.jsp; Line: 75] //[ /Modify.jsp; Line: 75] out.print("\r\n </tr>\r\n <tr class=\"tdbg\">\r\n <td>\r\n <div align=\"right\"><font color=\"#000000\">企 业 名 称:</font></div></td>\r\n <td>\r\n "); if(myV!=null){ //[ /Modify.jsp; Line: 81] //[ /Modify.jsp; Line: 81] out.print("\r\n <input name=\"UserName\" maxlength=50 size=50 value="); out.print(String.valueOf(myV.get(1).toString())); //[ /Modify.jsp; Line: 82] out.print("></td>\r\n "); }else{ //[ /Modify.jsp; Line: 83] //[ /Modify.jsp; Line: 83] out.print("\r\n <input name=\"UserName\" maxlength=50 size=50 ></td>\r\n "); } //[ /Modify.jsp; Line: 85] //[ /Modify.jsp; Line: 85] out.print("\r\n </tr>\r\n <tr class=\"tdbg\">\r\n <td>\r\n <div align=\"right\"><font color=\"#000000\">密 码:</font></div></td>\r\n <td>\r\n <input type=\"password\" name=\"PassWord\" maxlength=20 ></td>\r\n </tr>\r\n <tr class=\"tdbg\">\r\n <td>\r\n <div align=\"right\"><font color=\"#000000\">操 作 指 示:</font></div></td>\r\n <td>\r\n "); if(myV==null){ //[ /Modify.jsp; Line: 97] //[ /Modify.jsp; Line: 97] out.print("\r\n <input name=\"Operate\" maxlength=2 ></td>\r\n "); }else{ //[ /Modify.jsp; Line: 99] //[ /Modify.jsp; Line: 99] out.print("\r\n <input name=\"Operate\" maxlength=2 value="); out.print(String.valueOf(myV.get(2).toString())); //[ /Modify.jsp; Line: 100] out.print(">\r\n "); String strOperate=myV.get(2).toString().trim(); //[ /Modify.jsp; Line: 101] if("2".equals(strOperate)){ //[ /Modify.jsp; Line: 102] //[ /Modify.jsp; Line: 102] out.print("\r\n <label id=\"lo\"><font color=\"#000FFF\">销户</font></label>\r\n "); }else if("3".equals(strOperate)){ //[ /Modify.jsp; Line: 104] //[ /Modify.jsp; Line: 104] out.print("\r\n <label id=\"lo\"><font color=\"#000FFF\">禁用</font></label>\r\n "); }else{ //[ /Modify.jsp; Line: 106] //[ /Modify.jsp; Line: 106] out.print("\r\n <label id=\"lo\"><font color=\"#000FFF\">正常</font></LABEL>\r\n "); } //[ /Modify.jsp; Line: 108] //[ /Modify.jsp; Line: 108] out.print("\r\n </td>\r\n "); } //[ /Modify.jsp; Line: 110] //[ /Modify.jsp; Line: 110] out.print("\r\n </tr>\r\n <tr class=\"tdbg\">\r\n <td>\r\n <div align=\"right\"><font color=\"#000000\">企业所属:</font></div></td>\r\n <td>\r\n <input name=\"net_type\" size=\"20\"> \r\n </td>\r\n </tr>\r\n <tr class=\"tdbg\">\r\n <td>\r\n <div align=\"right\"><font color=\"#000000\">类型:</font></div></td>\r\n <td>\r\n <select name=\"user_type\">\r\n <option>企业版</option>\r\n <option>代理版</option>\r\n <option selected></option>\r\n </select>\r\n </td>\r\n </tr>\r\n </table>\r\n <table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n <tr>\r\n <td height=\"31\">\r\n <div align=\"center\">\r\n <input type=\"button\" name=\"button1\" value=\"确 认\" onClick=\"return Modify_onclick()\">\r\n <input type=\"reset\" name=\"Submit2\" value=\"重 置\">\r\n "); //[ /Modify.jsp; Line: 137] if("ADMIN".equals(session.getAttribute("userid").toString().toUpperCase())){ //[ /Modify.jsp; Line: 138] //[ /Modify.jsp; Line: 139] //[ /Modify.jsp; Line: 139] out.print("\r\n <input type=\"button\" name=\"button2\" value=\"批修改用户状态\" onclick=\"LoadFrm()\">\r\n\r\n "); } //[ /Modify.jsp; Line: 142] //[ /Modify.jsp; Line: 142] out.print("\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n <p>\r\n <input type=\"hidden\" name=\"Op\" maxlength=4 ></P>\r\n</form>\r\n<script language=\"javascript\">\r\n var NetType=null;\r\n var UserType=null;\r\n "); if(session.getAttribute("UserList")!=null){ //[ /Modify.jsp; Line: 153] //[ /Modify.jsp; Line: 153] out.print("\r\n NetType="); out.print(String.valueOf("'"+myV.get(3).toString()+"'")); //[ /Modify.jsp; Line: 154] out.print(";\r\n UserType="); out.print(String.valueOf("'"+myV.get(4).toString()+"'")); //[ /Modify.jsp; Line: 155] out.print(";\r\n\t MainForm.net_type.value=NetType;\r\n "); } //[ /Modify.jsp; Line: 157] //[ /Modify.jsp; Line: 157] out.print("\r\n \r\n \r\n UserList=MainForm.user_type;\r\n if(UserType==\"企业版\"){\r\n UserList.options[0].selected=true;\r\n }else{\r\n\t if(UserType==\"代理版\"){\r\n\t UserList.options[1].selected=true;\r\n\t }else{\r\n\t UserList.options[2].selected=true;\r\n\t\t}\r\n\t} \r\n \r\n\r\n</script>\r\n</BODY>\r\n</HTML>\r\n"); } catch (Throwable __ee) { while (out != null && out != _originalOut) out = pageContext.popBody(); ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee); }
//before final close brace...
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -