📄 modifyuserinfo.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Date"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<%@ page import="com.saas.biz.userMgr.UserInfo"%>
<jsp:useBean id="bean" class="com.saas.biz.commen.commMethodMgr" scope="page"/>
<%
String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
String user_id="";
String user_name="",passwd="",passwd_answer="",pspt_id="",pspt_end_date=date,pspt_addr="",birthday=date,local_native_code="",
post_addr="",phone="",home_addr="",community_id="",job="",email="";
ParamethodMgr paramCom=new ParamethodMgr();
if (request.getParameter("user_id") != null)
{
user_id = request.getParameter("user_id");
UserInfo userOjb=new UserInfo();
ArrayList userList=userOjb.getUserInfoByUserId(user_id);
if(userList !=null && userList.size()>0)
{
HashMap map=(HashMap)userList.get(0);
if(map.get("user_name")!=null)
{
user_name=map.get("user_name").toString();
}
if(map.get("passwd")!=null)
{
passwd=map.get("passwd").toString();
}
if(map.get("passwd_answer")!=null)
{
passwd_answer=map.get("passwd_answer").toString();
}
if(map.get("pspt_id")!=null)
{
pspt_id=map.get("pspt_id").toString();
}
if(map.get("pspt_end_date")!=null)
{
pspt_end_date=map.get("pspt_end_date").toString();
if(pspt_end_date.length()>10)
{
pspt_end_date=pspt_end_date.substring(0,10);
}
}
if(map.get("pspt_addr")!=null)
{
pspt_addr=map.get("pspt_addr").toString();
}
if(map.get("birthday")!=null)
{
birthday=map.get("birthday").toString();
if(birthday.length()>10)
{
birthday=birthday.substring(0,10);
}
}
if(map.get("local_native_code")!=null)
{
local_native_code=map.get("local_native_code").toString();
}
if(map.get("post_addr")!=null)
{
post_addr=map.get("post_addr").toString();
}
if(map.get("phone")!=null)
{
phone=map.get("phone").toString();
}
if(map.get("community_id")!=null)
{
community_id=map.get("community_id").toString();
}
if(map.get("home_addr")!=null)
{
home_addr=map.get("home_addr").toString();
}
if(map.get("job")!=null)
{
job=map.get("job").toString();
}
if(map.get("email")!=null)
{
email=map.get("email").toString();
}
}
}
ArrayList passReqList =paramCom.getCompareInfo("CRM","passwd_ques");
ArrayList departList=paramCom.getCompareInfo("CRM","depart_code");
ArrayList creditList=paramCom.getCompareInfo("CRM","pspt_type_code");
ArrayList eparchyList=paramCom.getCompareInfo("CRM","eparchy_code");
ArrayList cityList=paramCom.getCompareInfo("CRM","city_code");
ArrayList folkList=paramCom.getCompareInfo("CRM","folk_code");
ArrayList workList=paramCom.getCompareInfo("CRM","work_name");
ArrayList workDeparts=paramCom.getCompareInfo("CRM","work_depart");
ArrayList degreeList=paramCom.getCompareInfo("CRM","work_depart");
%>
<html>
<head>
<title>控制面板</title>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/www/fuction/public.js"></script>
<script src="/www/fuction/calendar.js" type="text/javascript"></script>
<script language="JavaScript">
function Check_Value()
{
if (cTrim(document.Userform.passwd.value,0) == "" || document.Userform.passwd.value == null)
{
alert("密码不可以为空!");
document.Userform.passwd.focus();
return false;
}
if (cTrim(document.Userform.passwd1.value,0) == "" || document.Userform.passwd1.value == null)
{
alert("确认密码不可以为空!");
document.Userform.passwd1.focus();
return false;
}
if (document.Userform.passwd.value !=document.Userform.passwd1.value)
{
alert("输入密码不一致!");
document.Userform.passwd.focus();
return false;
}
if (cTrim(document.Userform.passwd_answer.value,0) == "" || document.Userform.passwd_answer.value == null)
{
alert("密码提示问题答案不可以为空!");
document.Userform.passwd_answer.focus();
return false;
}
if (cTrim(document.Userform.pspt_id.value,0) == "" || document.Userform.pspt_id.value == null)
{
alert("证件号码不可以为空!");
document.Userform.pspt_id.focus();
return false;
}
if (cTrim(document.Userform.local_native_code.value,0) == "" || document.Userform.local_native_code.value == null)
{
alert("籍贯不可以为空!");
document.Userform.local_native_code.focus();
return false;
}
if (cTrim(document.Userform.phone.value,0) == "" || document.Userform.phone.value == null)
{
alert("联系电话不可以为空!");
document.Userform.phone.focus();
return false;
}
if (cTrim(document.Userform.job.value,0) == "" || document.Userform.job.value == null)
{
alert("职位不可以为空!");
document.Userform.job.focus();
return false;
}
if (cTrim(document.Userform.community_id.value,0) == "" || document.Userform.community_id.value == null)
{
alert("社会保障号不可以为空!");
document.Userform.community_id.focus();
return false;
}
return true;
}
function check_none(current_obj)
{
if (current_obj.advshow.checked)
{
current_obj.submit1.disabled=false;
}
else
{
current_obj.submit1.disabled=true;
}
}
function exit()
{
window.location.reload();
}
function confirmsub(formobj)
{
if(window.confirm('你确定要提交吗?'))
{
if (!Check_Value())
{
return;
}
formobj.submit();
}
else
{
return;
}
}
</script>
<script language="javascript" src="/js/Calendar_Ly.js"></script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="26" background="/img/bg-1.gif"> </td>
</tr>
<tr>
<td background="/img/bg-2.gif">
<table width=100% border=0 cellpadding=5 cellspacing=1 bgcolor="#dddddd" align="center">
<form name=Userform action=/doTradeReg.do method=post>
<input type=hidden name=trade_type_code value=0110>
<input name=user_id type=hidden value=<%=user_id%>>
<tr>
<td class="line1" align="left" colspan="2">修改用户信息</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:13px;" align=right width="25%">用户名(英文)</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left width="75%"><%=user_name%></td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:13px;" align=right>密码</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left><div class="ping1"><input type=password name=passwd value="<%=passwd%>"></div></td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:13px;" align=right>确认密码</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left><div class="ping1"><input type=password name=passwd1 value="<%=passwd%>"></div></td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:13px;" align=right>密码提示问题</td>
<td style="background-color:#ffffff; color:#000000; font-size:12px;" align=left><select name=passwd_ques>
<%
if(passReqList != null && passReqList.size()>0)
{
for(int i=0;i<passReqList.size();i++)
{
HashMap map=(HashMap)passReqList.get(i);
String value=map.get("para_code1").toString();
String name=map.get("para_code2").toString();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -