⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jcy_pxb_new_modify.jsp

📁 一个较好的公务员管理系统软件源代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		alert('培训班期次最大为12!');
		document.form.pxqc.focus();
		return(false);
	}	
	if (isNaN(document.form.year.value) == true)
	{
	  alert('年不能为字符!');
	  document.form.year.focus();
	  return(false);								//字符判断
	}
	if (isNaN(document.form.pxrs.value) == true)
	{
	  alert('培训班人数不能为字符!');
	  document.form.pxrs.focus();
	  return(false);								//字符判断
	}
	if (isNaN(document.form.pxqc.value) == true)
	{
	  alert('培训班期次不能为字符!');
	  document.form.pxqc.focus();
	  return(false);								//字符判断
	}
	for (var i=1;i<document.form.year.value.length;i++)
	{
	   var a=document.form.year.value.substr(i,1);
	   if (a =='.')
	   {
		 alert('年份不能有"."');
		 document.form.year.focus();
		 return(false);
		}
     }
	  for (var i=1;i<document.form.pxrs.value.length;i++)
	   {
		   var a=document.form.pxrs.value.substr(i,1);
		   if (a =='.')
		   {
			 alert('培训人数不能有"."');
			 document.form.pxqc.focus();
			 return(false);
			}
	   }
}
 function f_imager(text,ixy)
	 {	         		   
	   if (ixy == '0') 		  
	      {
		 alert(text);	      
	     window.open("jcy_pxb_select.jsp?zt="+text,"_self");		 
	      }
		  else
		  {
		  alert(text);
		  }		 	     
	 }
function f_back()
{
	     window.open("jcy_pxb_select.jsp","_self");		 
}
   </script>
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<div align="center">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="16" height="84" align="left" background="../images/caozuo01.gif">&nbsp;</td>
            <td background="../images/caozuo02.gif" align="center" width="963"><font color="#FF6600" size="3"><strong> 
              培训班信息管理</strong></font></td>
            <td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
          </tr>
        </table>
        <table width="100%" height="244" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
          <tr> 
            <td width="15" height="244" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
            <td align="center"><table width="95%" height="154" border="0" align="center">
                <tr> 
                  <td width="735"> <form name="form" method="post" action="jcy_pxb_submit.jsp?zt=<%=szt%>&ID=<%=pxxh%>" onSubmit="return(f_number())" target="aaa">
                      <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="0" height="25"><b><font color="#105781">参加培训时间 
                                  </font></b></td>
                                <td width="0" height="25"> 
                                  <table align="left">
                                    <tr> 
                                      <td><!-- <script language="JavaScript">-->
                                    <%if (szt.equals("modify"))
                                   {
                                    rqtime =pxqr;
                                    }else
                                    {
                                    rqtime = today; 
                                    }
                                   %>
					<!--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> <b> <font color="#105781">至 </font></b></td>
                                      <td><!--<script language="JavaScript">-->
                                    <%if (szt.equals("modify"))
                                   {
                                    rqtime1 =pxzr;
                                    }else
                                    {
                                    rqtime1 = today; 
                                    }
                                   %>
					<!--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></td>
                                <td width="0"><b><font color="#105781">组织培训部门</font></b></td>
                                <td width="0"> 
                                  <div align="left"><b><font color="#105781"> 
                                    <!--如果是市级公务员-->
                                    <%
                      		if(nowuserszqx.equals("001"))
                      		{%>
                                    <select name="pxbm" style="width:80px">
                                      <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5001' ",pxbm)%> 
                                    </select>
                                    <%}%>
                                    <!--如果不是市级公务员-->
                                    <% if(!nowuserszqx.equals("001"))
                              {%>
                                    <select name="pxbm" style="width:80px">
                                      <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5001' and dm = '"+nowuserszqx+"' ",nowuserszqx)%> 
                                    </select>
                                    <%}%>
                                    </font></b></div></td>
                              </tr>
                              <tr align="center" bgcolor="#EEF9FF"> 
                                <td width="122" height="25"><b><font color="#105781">培训班期次</font>
                                  <font color="#FF0000">*</font></b> </td>
                                <td height="21"> <div align="left"><b> 
                                    <input name="year" type="text" value="<%=year%>" size="6" maxlength="4" style="width:80px">
                                    <font color="#105781">年第</font> 
                                    <input name="pxqc" type="text" value="<%=pxqc%>" size="6" maxlength="9" style="width:80px">
                                    <font color="#105781"> 
                                    <script>										 
                                           if (<%=szt.equals("new")%>)
                                           {time= new Date();
                                           document.form.year.value=time.getYear();
                                        	}                                        
					  </script>
                                    期</font> </b></div></td>
                                <td width="122" height="21"> <b><font color="#105781">培训人数</font><font color="#FF0000">*</font><font color="#105781"> 
                                  </font></b></td>
                                <td height="21"> <div align="left"><b><font color="#105781"> 
                                    <input name="pxrs" type="text" value="<%=pxrs%>" size="9" maxlength="9" style="width:80px">
                                    </font></b> </div></td>
                              </tr>
                            </table></td>
                        </tr>
                      </table>
                      <br>
                      <table width="600" border="0"  align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
                        <tr> 
                          <td height="23"> <div align="right"> </div>
                            <div align="center"></div>
                            <div align="center"></div>
                            <div align="center"> </div>
                            <div align="center"> 
                              <input type="submit" name="Submit5" value="保  存" class="input" >
                            </div></td>
                          <% if(szt.equals("modify")){ %>
                          <td width="34%" align="center">&nbsp;<%}%></td>
                          <% if(szt.equals("new")){ %>
                          <td width="34%" align="center"><input type="reset" class="input" name="return2" value="清  屏"> 
                            <%}%></td>
                          <td> <div align="center"> </div>
                            <div align="center"> 
                              <input type="button" name="Submit542" value="返  回" class="input" onClick="f_back()">
                            </div>
                            <div align="center"> </div></td>
                        </tr>
                      </table>
                    </form></td>
                </tr>
              </table>
              <br> </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" height="16"><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>
        <br> </td>
    </tr>
  </table></td>
  </div>
<td width="59"> </td>
<div align="center"><br>
</div>
<td width="381"><p align="center"><br>
  </p></td>

</body>
<iframe name="aaa" width="1000" height="1000" style="display:none" ></iframe>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -