?? jcy_pxxx_new_modify.jsp
字號:
}
if (document.form.pxqc.value > 12)
{
alert('培訓班期次最大只能為12!');
document.form.pxqc.focus();
return(false);
}
/*if (document.form.username.value.length > 40)
{
alert('公務員姓名長度不能超過40位!');
document.form.username.focus();
return(false);
}
if (document.form.sfzh.value.length > 20)
{
alert('公務員身份證長度不能超過20位!');
document.form.sfzh.focus();
return(false);
}
if (document.form.username.value.length == 0)
{
alert('公務員姓名不能為空!');
document.form.username.focus();
return(false);
}
if (document.form.sfzh.value.length == 0)
{
alert('公務員身份證不能為空!');
document.form.sfzh.focus();
return(false);
}
if(document.form.pxbm.value == "")
{
alert('請選擇培訓組織部門!');
document.form.pxbm.focus();
return(false);
}
if (isNaN(document.form.sfzh.value) == true)
{
alert('身份證不能為字符!');
document.form.sfzh.focus();
return(false);//字符判斷
}
for (var i=1;i<document.form.sfzh.value.length;i++)
{
var a=document.form.sfzh.value.substr(i,1);
if (a =='.')
{
alert('身份證不能有(.)');
document.form.sfzh.focus();
return(false);
}
}
*/
if (isNaN(document.form.pxnd.value) == true)
{
alert('年不能為字符!');
document.form.pxnd.focus();
return(false);//字符判斷
}
if (isNaN(document.form.pxqc.value) == 20)
{
alert('培訓班期次不能為字符!');
document.form.pxqc.focus();
return(false);
}
if (isNaN(document.form.pxqc.value) == true)
{
alert('培訓班期次不能為字符!');
document.form.pxqc.focus();
return(false);//字符判斷
}
for (var i=1;i<document.form.pxnd.value.length;i++)
{
var a=document.form.pxnd.value.substr(i,1);
if (a =='.')
{
alert('年份不能有(.)');
document.form.pxnd.focus();
return(false);
}
}
for (var i=1;i<document.form.pxqc.value.length;i++)
{
var a=document.form.pxqc.value.substr(i,1);
if (a =='.')
{
alert('培訓班期次不能有(.)');
document.form.pxqc.focus();
return(false);
}
}
/*<%
//String set = "select count(*) from jcy_ry where sfzh = 'v_sfzh' and username = 'v_username'";
//sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(set);
//ii.next();
//String jl = ii.getString(1);
%>
if (<%//=jl%> == 0)
{
alert('請檢察姓名和身份證號是否一致!');
document.form.usermane.focus();
return(false);
}*/
}
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text);
window.open("jcy_pxxx_select.jsp?userid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
else
{
alert(text);
}
}
function f_back()
{
window.open("jcy_pxxx_select.jsp?zt=back&userid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> <br> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17" align="left" background="../images/caozuo01.gif"> </td>
<td background="../images/caozuo02.gif" align="center" width="946"><font size="3" color="#FF6600"><b>公務員培訓信息管理</b></font></td>
<td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEF9FF">
<tr>
<td width="15" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
<td align="center"><table width="89%" height="154" border="0" align="center">
<tr>
<td width="719"> <form name="form" method="post" action="jcy_pxxx_submit.jsp?zt=<%=szt%>&ID=<%=pxxxid%>&userid=<%=userid%>" target="submitpxxxnew" onSubmit="return(f_number())">
<table width="750" cellspacing="1" cellpadding="0" bgcolor="#000099">
<tr>
<td><table width=100% border="0" align=center
cellpadding=0 cellspacing=1 bordercolorlight=#666699 bordercolordark=#ffffff bgcolor="#000099">
<tr align="center" bgcolor="#EEF9FF">
<td width="78" height="25"><b><font color="#105781">姓名</font></b></td>
<td width="242" height="18"><div align="left"><b>
<input type="text" name="username" size="10" value="<%=username%>" disabled style="width:80px">
</b></div></td>
<td width="60"><b><font color="#105781">身份證號</font></b></td>
<td width="336"><div align="left"><b>
<input name="sfzh" type="text" disabled value="<%=sfzh%>" size="20" maxlength="18">
</b></div></td>
</tr>
<tr align="center" bgcolor="#EEF9FF">
<td width="78" height="25"><b><font color="#105781">培訓班期次</font><font color="#FF0000">*</font></b>
</td>
<td width="242" height="23"> <div align="left"><b>
<input name="pxnd" type="text" value="<%=pxnd%>" size="6" maxlength="4" style="width:80px">
<font color="#105781">年第 </font>
<input name="pxqc" type="text" value="<%=pxqc%>" size="6" maxlength="20">
<font color="#105781">
<script>
if (<%=szt.equals("new")%>)
{time= new Date();
document.form.pxnd.value=time.getYear();
}
</script>
期</font> </b></div></td>
<td width="60" height="44" rowspan="3"> <b><font color="#105781">培訓情況</font><font color="#FF0000">*</font></b></td>
<td height="44" rowspan="3" width="320"> <div align="left">
<b><font color="#105781">
<textarea name="pxqk" ><%=pxqk%></textarea>
</font></b></div></td>
</tr>
<tr align="center" bgcolor="#EEF9FF">
<td width="78" height="25"><b><font color="#105781">參加培訓時間</font><font color="#FF0000">*</font></b></td>
<td height="11"><div align="left">
<table width="236" border="0" cellspacing="0">
<tr>
<td width="104"><!-- <script language="JavaScript">-->
<%if (szt.equals("modify"))
{
rqtime =pxqr;
}else
{
rqtime = ti;
}
%>
<!--var d1=new rlCtrl("rq","");</script>-->
<input id="rq" name="rq" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqs(this.value)) this.focus();" onDblClick=this.value="" value="<%=rqtime%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('rq',1);">
</td>
<td width="20"> <b> <font color="#105781">至
</font></b></td>
<td width="112"><!--<script language="JavaScript">-->
<%if (szt.equals("modify"))
{
rqtime1 =pxzr;
}else
{
rqtime1 = ti;
}
%>
<!--var d2=new rlCtrl("rqr","");</script>-->
<input id="rqr" name="rqr" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqz(this.value)) this.focus();" onDblClick=this.value="" value="<%=rqtime1%>" ><img src="../images/select.gif" name="select" width="18" height="20" border="0" align="absmiddle" onClick="getDate('rqr',1);"> </td>
</tr>
</table>
</div></td>
</tr>
<tr align="center" bgcolor="#EEF9FF">
<td width="78" height="25"><b><font color="#105781">組織培訓部門</font></b></td>
<td height="23"><div align="left"><b><font color="#105781">
<select name="pxbm" style="width:80px">
<%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5001' ",pxbm)%>
</select>
</font></b></div></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="654" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td height="23"> <div align="center"> </div>
<div align="center">
<input type="submit" name="Submit5" value="保 存" class="input">
</div></td>
<% if(szt.equals("modify")){ %>
<%}%>
<% if(szt.equals("new")){ %>
<td width="34%" align="center"><input type="reset" class="input" name="return2" value="清 屏">
<%}%>
</td>
<td> <div align="center">
<input type="button" name="Submit222" value="返 回" class="input" onClick="f_back()">
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
<p> </p>
<p> </p></td>
<td width="14" background="../images/caozuo07.gif"><img src="../images/caozuo07.gif" width="14" height="6"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21"><img src="../images/caozuo05.gif" width="21" height="16"></td>
<td background="../images/caozuo08.gif"><img src="../images/caozuo08.gif" width="6" height="16"></td>
<td width="19"><img src="../images/caozuo09.gif" width="19" height="16"></td>
</tr>
</table></td>
</tr>
</table>
<br>
<td width="381"> </td>
<table width="100%" height="32" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/login2-1.gif">
<tr>
<td height="32" align="center"><font size="2">版權所有 (C) 北京市勞動和社會保障局 北京北控偉仕軟件工ss程技術有限公司承制</font></td>
</tr>
</table>
<iframe name="submitpxxxnew" width="100" height="100" style="display:none" ></iframe>
<!--<iframe name="submitpxxxnew" width="100" height="100" style="display:none" ></iframe>-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -