infosend.jsp
来自「java jsp教程」· JSP 代码 · 共 339 行
JSP
339 行
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.icss.cnpc.base.vo.PersonItemInfo" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
System.out.println("[jsp]infoSend.jsp[/jsp]");
%>
<%
String contextpath = request.getContextPath();
String perUuid = (String)request.getAttribute("perUuid");
List infoList = (List)request.getAttribute("infoList");
%>
<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 _confirm(){
document.form1.action = "<%=request.getContextPath()%>/servlet/AddPersonInformationDetailServlet";
document.form1.submit();
}
function _check(){
if(form1.cnpcInfo.value !="" && !isInteger(form1.cnpcInfo.value))
{
alert("请填入一个整数值");
from1.cnpcInfo.focus();
return false;
}
}
//------------------------------------------------------------
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; " );
//alert(retval);
if( retval != null ){
ctrlobj.value = retval;
}
}
function _addEdu(){
if(form1.sendDate.value==""){
alert("请选择报送日期!!");
return false;
}
if(form1.sendInfo.value==""){
alert("请填写报送信息内容!!");
return false;
}
if(form1.sendInfoType.value==""){
alert("请选择报送信息类别!!")
return false;
}
form1.sendDateStr.value=form1.sendDate.value;
//form1.endDate.value=form1.endDateEdu.value;
form1.sendInfoStr.value = form1.sendInfo.value;
form1.sendInfoTypeStr.value = form1.sendInfoType.value;
form1.typeOfTheRecord.value="9";
document.form1.action = "<%=request.getContextPath()%>/servlet/AddPersonInformationDetailServlet";
document.form1.submit();
}
function checkEduID(id,beginDate,note,type){
form1.infoId.value = id;
form1.sendDate.value = beginDate;
//form1.endDateEdu.value = endDate;
form1.sendInfo.value = note;
document.form1.sendInfoType.value = type;
}
function _delEdu(){
if(form1.infoId.value==""){
alert("请选择一条记录!!");
return false;
}
form1.itemNo.value = form1.infoId.value;
document.form1.action = "<%=request.getContextPath()%>/servlet/DeletePersonInformationDetailServlet";
document.form1.submit();
}
function _updateEdu(){
if(form1.infoId.value==""){
alert("请选择一条记录!!");
return false;
}
if(form1.sendDate.value==""){
alert("请选择报送日期!!");
return false;
}
if(form1.sendInfoType.value==""){
alert("请填写报送信息内容!!");
return false;
}
form1.itemNo.value = form1.infoId.value;
form1.sendDateStr.value=form1.sendDate.value;
form1.sendInfoStr.value = form1.sendInfo.value;
form1.sendInfoTypeStr.value = form1.sendInfoType.value;
form1.typeOfTheRecord.value="9";
document.form1.action = "<%=request.getContextPath()%>/servlet/ModifyPersonInformationDetailServlet";
document.form1.submit();
}
</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="optionFlag" value="infoSend">
<input type="hidden" name="infoId">
<input type="hidden" name="itemNo">
<input type="hidden" name="sendInfoStr">
<input type="hidden" name="sendDateStr">
<input type="hidden" name="sendInfoTypeStr">
<input type="hidden" name="typeOfTheRecord" value="9">
<div align="center" style="background-color:#EEF4FF" class="style5" onClick="page(1)">基本信息</div>
<div align="center" style="background-color:#a6d0f2" 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:#EEF4FF" 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="5" align="center"><strong>个人信息报送</strong> </td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="22" bgcolor="#EEF4FF"> </td>
<td width="240" bgcolor="#EEF4FF"><p align="center"><strong>报送日期</strong></p></td>
<td bgcolor="#EEF4FF"><p align="center"><strong>报送信息明细</strong></p></td>
<td width="120" 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 dateFrom2 = vo.getBegindate()+"";
String dateFrom="";
if(dateFrom2==null||dateFrom2.equals("null")){
dateFrom="";
}else{
dateFrom=dateFrom2.substring(0,10);
}
String sendinfo = vo.getSendinfo()+"";
if(sendinfo==null||sendinfo.equals("null"))
sendinfo="";
String sendinfotype = vo.getSendinfotype()+"";
if(sendinfotype==null||sendinfotype.equals("null")){
sendinfotype="";
}else if(sendinfotype.equals("1")){
sendinfotype="报送集团公司信息";
}else if(sendinfotype.equals("2")){
sendinfotype="报送本单位、领导的信息";
}else if(sendinfotype.equals("3")){
sendinfotype="报送有关媒体的信息";
}else if(sendinfotype.equals("4")){
sendinfotype="优秀论文评优申报";
}else if(sendinfotype.equals("5")){
sendinfotype="优秀审计项目评优申报";
}
%>
<tr bgcolor="#EEF4FF">
<td width="22" bgcolor="#EEF4FF"><input type="radio" name="radiobutton" value="radiobutton" onclick="checkEduID('<%=itemNo%>','<%=dateFrom%>','<%=sendinfo%>','<%=vo.getSendinfotype()%>')"></td>
<td width="240" bgcolor="#EEF4FF"><p align="center"><%=dateFrom%></p></td>
<td bgcolor="#EEF4FF"><p align="left">
<%=sendinfo%></p></td>
<td bgcolor="#EEF4FF" width="120"><%=sendinfotype%></td>
<%}%>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
<tr bgcolor="#a6d0f2">
<td colspan="4" align="center"><strong> 添加/修改/删除</strong></td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="265" bgcolor="#EEF4FF"><p align="center"><strong>报送日期</strong></p></td>
<td bgcolor="#EEF4FF"><p align="center"><strong>报送信息明细</strong></p></td>
<td width="120" bgcolor="#EEF4FF"><div align="center"><strong>报送信息类别</strong></div></td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="265"><p align="center"> <input class="inp2" size="12" name="sendDate" value="" readonly>
<img src="../images/calendar.gif" style="cursor:hand " onClick="popUpCalendarDlg(sendDate)"></p></td>
<td bgcolor="#EEF4FF"><p align="center">
<input class="inp1" size="30" name="sendInfo" value="" maxlength="240">
</p></td>
<td bgcolor="#EEF4FF" align="center">
<select name = "sendInfoType">
<option value = ""> </option>
<option value = "1">报送集团公司信息</option>
<option value = "2">报送本单位、领导的信息</option>
<option value = "3">报送有关媒体的信息</option>
<option value = "4">优秀论文评优申报</option>
<option value = "5">优秀审计项目评优申报</option>
</select>
</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="_addEdu()"></div></td>
<td width="28%" align="center"><img src="../images/modify.gif" style="cursor:hand " onClick="_updateEdu()"></td>
<td width="29%" align="center"><div align="left"><img src="../images/delete.gif" style="cursor:hand " onClick="_delEdu()"></div></td>
<td> </td>
</tr>
</table>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?