addperson.jsp
来自「java jsp教程」· JSP 代码 · 共 430 行 · 第 1/2 页
JSP
430 行
}
function popUpCalendarDlg(ctrlobj) {
showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
showy = event.screenY - event.offsetY + 18; // + deltaY;
newWINwidth = 210 + 4 + 18;
retval = window.showModalDialog("/cnpc/include/date.htm", "", "dialogWidth:220px; dialogHeight:220px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scroll:no;Resizable:no; " );
if( retval != null ){
ctrlobj.value = retval;
}
}
</script>
</head>
<%
String orgid=request.getParameter("orgid");
String orgName=request.getParameter("orgName");
String UserID=request.getParameter("UserID");
%>
<body background="/resourceone/images/grid.gif" bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="10">
<form name="frmAddPerson" >
<input type="hidden" name="UserID" value="<%=UserID%>">
<input type="hidden" name="orgName" value="<%=orgName%>">
<input type="hidden" name="orgid" value="<%=orgid%>">
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="95%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#003366" bordercolordark="#DFDFFF">
<tr>
<td bgcolor="#A6D0F2" align="center" height="23">添加人员----详细信息</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="1" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#B3C4DB">
<tr >
<td height="22" colspan="4" align="left" bgcolor="#A6D0F2">帐号信息</td>
</tr>
<tr bgcolor="EEF4FF" >
<td width="95">登录帐号</td>
<td colspan="3"><%= UserID%></td>
</tr>
<tr bgcolor="EEF4FF" >
<td>登录口令</td>
<td width="215"><input type="password" name="Password" class="txt1" maxlength="254">
* </td>
<td width="76">重复口令</td>
<td width="184"><input type="password" name="rePassword" class="txt1" maxlength="254">* </td>
</tr>
<tr bgcolor="EEF4FF">
<td>账号类型</td>
<td bgcolor="EEF4FF"><select name="TTLFlag" class="slect1" onChange="_SetTTLFlag()">
<option value="<%=LoginConstants.ACCOUNT_TYPE_NORMAL%>" selected>普通账号</option>
<option value="<%=LoginConstants.ACCOUNT_TYPE_SYSADMIN%>">子系统管理员账号</option>
</select>
* </td>
<td>排序号</td>
<td><input type="text" class="txt1" name="Sequenceno" maxlength="10">*</td>
</tr>
<tr>
<td height="22" colspan="4" align="left" bgcolor="#A6D0F2">基本信息</td>
</tr>
<tr bgcolor="EEF4FF">
<td>中文姓名</td>
<td>
<input type="text" class="txt1" name="CnName" maxlength="254">
*</td>
<td>职务</td>
<td><input name="ryxx003" type="text" class="txt1" value="" readonly >
<input name="ryxx003Code" type="hidden" class="txt1" value="" readonly >
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('ryxx003div')"> * </td>
</tr>
<tr bgcolor="EEF4FF">
<td>是否审计人员</td>
<td><select name="isaudit" style="width:130">
<option selected value="1">是</option>
<option value="0">否</option>
</select>
*</td>
<td>职称</td>
<td><input name="ryxx002" type="text" class="txt1" value="" readonly >
<input name="ryxx002Code" type="hidden" class="txt1" value="" readonly >
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('ryxx002div')"> * </td>
</tr>
<tr bgcolor="EEF4FF">
<td>性别</td>
<td><select name="Sex" class="slect1" style="width:130">
<option value="1">男</option>
<option value="2">女</option>
</select>
* </td>
<td>专业结构</td>
<td><input name="ryxx004" type="text" class="txt1" value="" readonly >
<input name="ryxx004Code" type="hidden" class="txt1" value="" readonly >
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('ryxx004div')"> * </td>
</tr>
<tr bgcolor="EEF4FF">
<td>政治面貌</td>
<td><select name="PoliticalStat" class="slect1" style="width:130">
<option value="-1" selected>--------------------</option>
<option value = "0">中共党员</option>
<option value = "1">共青团员</option>
<option value = "2">群众</option>
<option value = "3">预备党员</option>
<option value = "4">民建会员</option>
<option value = "5">民进会员</option>
</select>
</td>
<td>学历</td>
<td><input name="ryxx001" type="text" class="txt1" value="" readonly >
<input name="ryxx001Code" type="hidden" class="txt1" value="" readonly >
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('ryxx001div')"> * </td>
</tr>
<tr bgcolor="EEF4FF">
<td>是否专职</td>
<td>
<select name="fulltime" class="slect1" style="width:130">
<option value = "0">兼职</option>
<option value = "1" selected>专职</option>
</select>
*
</td>
<td>资格情况</td>
<td><input name="ryxx006" type="text" class="txt1" value="" readonly >
<input name="ryxx006Code" type="hidden" class="txt1" value="" readonly >
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('ryxx006div')"> * </td>
</tr>
<tr bgcolor="EEF4FF">
<td>出生日期</td>
<td><input name="birthday" type="text" class="txt1" value="" >
* <img src="/cnpc/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(birthday)"></td>
<td>办公电话</td>
<td><input type="text" class="txt1" name="OfficeTel" maxlength="64"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="center" colspan="5">
<img style="cursor:hand" src="/resourceone/images/conform.gif" onclick="javascript:_Add();" border="0">
<img style="cursor:hand" src="/resourceone/images/cancel.gif" border="0" onclick="window.history.back()">
</td>
</tr>
</table>
<div id="ryxx004div" style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'" onMouseOut="this.style.display='none'">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#EEFFF7">
<td height="150" valign="top">
<script>
var tree = new WebFXLoadTree("专业结构", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=ryxx004&codeField=ryxx004Code&nameField=ryxx004&divId=ryxx004div");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<div id="ryxx001div" style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'" onMouseOut="this.style.display='none'">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#EEFFF7">
<td height="150" valign="top">
<script>
var tree = new WebFXLoadTree("学历", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=ryxx001&codeField=ryxx001Code&nameField=ryxx001&divId=ryxx001div");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<div id="ryxx002div" style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'" onMouseOut="this.style.display='none'">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#EEFFF7">
<td height="150" valign="top">
<script>
var tree = new WebFXLoadTree("职称", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=ryxx002&codeField=ryxx002Code&nameField=ryxx002&divId=ryxx002div");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<div id="ryxx006div" style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'" onMouseOut="this.style.display='none'">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#EEFFF7">
<td height="150" valign="top">
<script>
var tree = new WebFXLoadTree("资格情况", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=ryxx006&codeField=ryxx006Code&nameField=ryxx006&divId=ryxx006div");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
<div id="ryxx003div" style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'" onMouseOut="this.style.display='none'">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#EEFFF7">
<td height="150" valign="top">
<script>
var tree = new WebFXLoadTree("职务", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=ryxx003&codeField=ryxx003Code&nameField=ryxx003&divId=ryxx003div");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?