📄 empupdate.jsp
字号:
<%@ page language="java" import="java.util.*,com.isoftstone.banktearm1.vo.*,com.isoftstone.banktearm1.dao.EmpEditDao;" pageEncoding="gb2312"%>
<%@ page errorPage="SysErrorPage.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'EmpUpdate.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<jsp:include flush="true" page="Top.jsp"></jsp:include>
<body>
<SCRIPT type="text/javascript" src="date.js"></SCRIPT>
<SCRIPT language=JavaScript1.2>
function submit1(workId)
{
document.myform.code.value="1";
document.myform.workerid.value=workId;
if(isNull(document.myform.name,"姓名不能为空!") && isNull(document.myform.password,"密码不能为空!")&& isNull(document.myform.cpassword,"密码不能为空!") && isNull(document.myform.birthday,"生日不能为空!") && isNull(document.myform.jobname,"职务不能为空!")){
if( document.myform.password.value==document.myform.cpassword.value){
document.myform.submit();
}else{
alert("两次输入的密码不匹配!");
document.myform.cpassword.focus();
}
}
}
function returnlist(workId)
{
document.myform.code.value="4";
document.myform.workerid.value=workId;
document.myform.submit();
}
function IfShow(ShowMsg) {
if (ShowMsg == "" ) {
return false;
} else {
return true; }
}
function isNull(obj,ShowMsg) {
var show = IfShow(ShowMsg);
if(obj.value == ""){
if (show) alert(ShowMsg);
obj.focus();
obj.select();
return false;
} else {
return true;
}
}
</script>
<BR>
<BR>
<CENTER><span class="FormTitle">人行长治中支 科技部 编辑用户 810320</span> <BR>
<FORM action="ToEmpRamusDb" name="myform" method="POST">
<input type="hidden" name="workerid">
<input type="hidden" name="code" value="810320">
<table align="center" width="70%" border="0" class="midTable1" cellpadding="3" cellspacing="0">
<tr>
<td class="midTable1td1" valign="top">所属部门</td>
<td class="midTable1td2">
<select name="depid" >
<% EmpEditDao mydao=new EmpEditDao();
ArrayList mylist=mydao.getDepartment();
Iterator it=mylist.iterator();
BankTeam1EmpVo myvo=new BankTeam1EmpVo() ;
myvo=(BankTeam1EmpVo)request.getAttribute("empVo");
while(it.hasNext()){
String s[]=(String [])it.next();
%>
<option value=<%=s[1]%>><%=s[0]%></option>
<%
} %>
</select>
</td>
</tr>
<tr>
<td class="midTable1td1">姓名</td>
<td class="midTable1td2"><%=myvo.getName()%>* </td>
</tr>
<tr>
<td class="midTable1td1">密码</td>
<td class="midTable1td2" ><input type="password" name="password" maxlength="20" value=<%=myvo.getPassword() %>> * </td>
</tr>
<tr>
<td class="midTable1td1">确认密码</td>
<td class="midTable1td2"><input type="password" name="cpassword" maxlength="20" value=<%=myvo.getPassword() %>>* </td>
</tr>
<tr>
<td class="midTable1td1">性别</td>
<td class="midTable1td2"><%=myvo.getSex() %>* </td>
</tr>
<tr>
<td class="midTable1td1">生日</td>
<td class="midTable1td2"><input type="text" name="birthday" disnabled maxlength="20" value=<%=myvo.getBirthday()%> >* </td>
</tr>
<tr>
<td class="midTable1td1">职务</td>
<td class="midTable1td2"><input type="text" name="jobname" maxlength="20" value=<%=myvo.getJobName()%> >* </td>
</tr>
<tr>
<td class="midTable1td1" align="center" colspan=2><INPUT class=button type="button" value="更新" onclick="submit1(<%=myvo.getWorkerId() %>)">
<INPUT class=button type="button" value="返回" onclick="returnlist(<%=myvo.getWorkerId() %>)"></td>
</tr>
</table>
<jsp:include flush="true" page="Bottoml.html"></jsp:include>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -