otherinformation.jsp
来自「java jsp教程」· JSP 代码 · 共 293 行
JSP
293 行
<!--\webapps\jsp\base\personal\psnInfoOtherInfo.jsp -->
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.icss.cnpc.base.vo.PersonItemInfo" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
String contextpath = request.getContextPath();
List infoList = (List)request.getAttribute("infoList");
//String unitname=request.getParameter("unitname");
%>
<html>
<head>
<script language="JavaScript" src="<%=request.getContextPath()%>/include/common.js"></script>
<script>
function page(number) {
switch(number) {
case 1:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonBasicInfoServlet";
document.form1.submit();
break;
case 2:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonInformationDetailServlet?optionFlag=workExp";
document.form1.submit();
break;
case 3:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonInformationDetailServlet?optionFlag=studyAnd";
document.form1.submit();
break;
case 4:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonInformationDetailServlet?optionFlag=achievment";
document.form1.submit();
break;
case 5:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonInformationDetailServlet?optionFlag=auditAnd";
document.form1.submit();
break;
case 6:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonInformationDetailServlet?optionFlag=otherInfo";
document.form1.submit();
break;
case 7:
document.form1.action = "<%=request.getContextPath()%>/servlet/ShowPersonInformationDetailServlet?optionFlag=infoSend"
document.form1.submit();
break;
}
}
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("../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;
}
}
function _addOthers(){
if(itemCheck()){
form1.typeOfTheRecord.value="8";
document.form1.action = "<%=request.getContextPath()%>/servlet/AddPersonInformationDetailServlet";
document.form1.submit();
}
}
function _updateOthers(){
if(itemCheck()&&idCheck()){
form1.typeOfTheRecord.value="8";
document.form1.action = "<%=request.getContextPath()%>/servlet/ModifyPersonInformationDetailServlet";
document.form1.submit();
}
}
function _delOthers(){
if(idCheck()){
document.form1.action = "<%=request.getContextPath()%>/servlet/DeletePersonInformationDetailServlet";
document.form1.submit();
}
}
function itemCheck(){
if(form1.name.value == ""){
alert("请输入名字!!");
return false;
}
if(form1.relation.value == ""){
alert("请输入关系!!");
return false;
}
if(form1.age.value==""){
alert("年龄不能为空");
return false;
}
if(form1.age.value<=0||form1.age.value>=120){
alert("年龄不合适!!");
return false;
}
return true;
}
function idCheck(){
if(form1.itemNo.value == ""){
alert("请选择信息!!");
return false;
}
return true;
}
function _checked(id,name,relation,age,department){
form1.itemNo.value = id;
form1.name.value = name;
form1.relation.value = relation;
form1.age.value = age;
form1.department.value = department;
}
</script>
<style type="text/css">
<!--
.tag1 { background-color:#6699CC;
width:93px; position:absolute;
left:61px;
top: 81px;
font-weight:300;
height:27px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag2 { background-color:#EEF4FF;
width:115px; position:absolute;
left:186px;
top: 98px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag3 { background-color:#EEF4FF;
width:73px; position:absolute;
left:279px;
top: 69px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
border-color:#6699CC;
border:1
}
.style5 {background-color: #6699CC; width: 110px; position: absolute; left: 37px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style6 {background-color: #EEF4FF; width: 110px; position: absolute; left: 587px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style7 {background-color: #EEF4FF; width: 110px; position: absolute; left: 697px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style13 {background-color: #EEF4FF; width: 110px; position: absolute; left: 147px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style14 {background-color: #EEF4FF; width: 110px; position: absolute; left: 257px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style15 {background-color: #EEF4FF; width: 110px; position: absolute; left: 367px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style16 {background-color: #EEF4FF; width: 110px; position: absolute; left: 477px; top: 14px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style17 {font-size: 16px}
.inp11 { BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #999999 1px solid; COLOR: #000000; PADDING-TOP: 2px; BORDER-BOTTOM: #999999 1px solid; HEIGHT: 15px; BACKGROUND-COLOR: #ffffff;FONT-SIZE: 9pt
}
.inp21 {BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #999999 1px solid; COLOR: #000000; PADDING-TOP: 2px; BORDER-BOTTOM: #999999 1px solid; HEIGHT: 15px; BACKGROUND-COLOR: #eeeeee;FONT-SIZE: 9pt
}
.style20 {font-size: 11pt}
.style21 {font-size: 14pt}
-->
</style>
<link rel="stylesheet" href="../css/style.css">
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>其他信息</title>
</head>
<body background="../images/grid.gif">
<form method=post name=form1>
<input type="hidden" name="itemNo" >
<input type="hidden" name="dateFrom" >
<input type="hidden" name="endDate" >
<input type="hidden" name="note" >
<input type="hidden" name="optionFlag" value="otherInfo" >
<input type="hidden" name="typeOfTheRecord" >
<input type="hidden" name="duty" >
<input type="hidden" name="graduation" >
<div align="center" style="background-color:#EEF4FF" class="style5" onClick="page(1)">基本信息</div>
<div align="center" style="background-color:#EEF4FF" class="style13" onClick="page(7)">个人信息报送</div>
<div align="center" style="background-color:#EEF4FF" class="style14" onClick="page(2)">工作经历</div>
<div align="center" style="background-color:#EEF4FF" class="style15" onClick="page(3)">学习与考核</div>
<div align="center" style="background-color:#EEF4FF" class="style16" onClick="page(4)">主要成果</div>
<div align="center" style="background-color:#EEF4FF" class="style6" onClick="page(5)">审计与培训</div>
<div align="center" style="background-color:#a6d0f2" class="style7" onClick="page(6)">其他信息</div>
<br>
<table width="95%" border="0" align="center">
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
<tr bgcolor="#a6d0f2">
<td colspan="6" align="center"><strong>家庭主要成员情况</strong></td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="28" bgcolor="#EEF4FF"> </td>
<td width="120" bgcolor="#EEF4FF"><p align="center"><strong>姓名</strong></p></td>
<td width="99" bgcolor="#EEF4FF"><div align="center"><strong>关系</strong></div></td>
<td width="73" bgcolor="#EEF4FF"><div align="center"><strong>年龄</strong></div></td>
<td width="427" bgcolor="#EEF4FF"><div align="center"><strong> 工作单位</strong></div></td>
</tr>
<%for(Iterator i = infoList.iterator();i.hasNext();){
PersonItemInfo vo = (PersonItemInfo)i.next();
String itemNo = vo.getItemno()+"";
String name = vo.getName()+"";
if(name==null||name.equals("null"))
name="";
String relation = vo.getContect()+"";
if(relation==null||relation.equals("null"))
relation="";
String age = vo.getAge()+"";
if(age==null||age.equals("null"))
age="";
String department = vo.getWorkunit()+"";
if(department==null||department.equals("null"))
department="";
%>
<tr bgcolor="#EEF4FF">
<td width="28" bgcolor="#EEF4FF"><input type="radio" name="radiobutton" value="radiobutton" onclick="_checked('<%=itemNo%>','<%=name%>','<%=relation%>','<%=age%>','<%=department%>')"></td>
<td width="120" bgcolor="#EEF4FF"><p align="left"><%=name%></p></td>
<td width="99" bgcolor="#EEF4FF"><%=relation%></td>
<td width="73" bgcolor="#EEF4FF"><%=age%></td>
<td bgcolor="#EEF4FF"><%=department%></td>
</tr>
<%}%>
</table>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
<tr bgcolor="#a6d0f2">
<td colspan="5" align="center"><strong> 添加/修改/删除</strong></td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="141" bgcolor="#EEF4FF"><p align="left"><strong>姓名</strong></p></td>
<td width="223" bgcolor="#EEF4FF"><input class="inp1" size="30" name="name" value="" maxlength="40"></td>
<td width="184" bgcolor="#EEF4FF"><p align="left"><strong>关系</strong></p></td>
<td width="307" bgcolor="#EEF4FF"><input class="inp1" size="30" name="relation" value="" maxlength="10"></td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="141"><p align="left"><strong>年龄</strong> </p></td>
<td width="223"><input class="inp1" size="30" name="age" value="" maxlength="3"></td>
<td bgcolor="#EEF4FF"><p align="left"><strong>工作单位
</strong></p></td>
<td bgcolor="#EEF4FF"><input class="inp1" size="30" name="department" value="" maxlength="100"></td>
</tr>
</table>
<table width="95%" border="0" align="center">
<tr>
<td width="11%"> </td>
<td colspan="3"> </td>
<td width="9%"> </td>
</tr>
<tr>
<td> </td>
<td width="23%" align="center"><div align="right"><img src="../images/add.gif" style="cursor:hand " onClick="_addOthers()"></div></td>
<td width="28%" align="center"><img src="../images/modify.gif" style="cursor:hand " onClick="_updateOthers()"></td>
<td width="29%" align="center"><div align="left"><img src="../images/delete.gif" style="cursor:hand " onClick="_delOthers()"></div></td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?