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

📄 jcy_pxxx_select.jsp

📁 公务员管理系统
💻 JSP
字号:

<%@ page contentType="text/html; charset=GBK" errorPage="" %>
<%@ import="com.vstsoft.std.vststd" %>
<%com.vstsoft.std.vststd std=new com.vstsoft.std.vststd();%>
<%@ errorPage="errorPage.jsp" %>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<% if (jcypurview.checkLogin() == false)
   {
%>   
	<Script Language=javascript>
		alert("用户已断线或未正常登录,请重新登录!")
		window.open("../index.htm","_top")
	</Script>
<%  return;
    }
   if (jcypurview.purviewVerdict("B0500035") == false)
  {
%>   
	<Script Language=javascript>
		alert("您没有操作此页权限!")
		window.open("../index.jsp","_top")
	</Script>
<%  return;  
}  %>
<%
  String nowuserid   = jcypurview.getUserid();   //取当前用户编号
  String nowusername = jcypurview.getUserName(); //取当前用户名称
  String nowuserszqx = jcypurview.getUserSzqx(); //取当前用户所在区县 
  String nowuserszdw = jcypurview.getUserSzdw(); //取当前用户所在单位

%>
<%
 response.setHeader("Pragma","No-cache");
 response.setHeader("Cache-Control","no-cache");
 response.setDateHeader("Expires",0);
 String userid = std.getValue(request,"userid");
 String szt    = std.getValue(request,"zt");
 String sdwdm  = std.getValue(request,"sdwdm");
 String szbdm  = std.getValue(request,"szbdm");
 
 String sql_new =" select username,sfzh from jcy_ry where userid = '"+userid+"'";
 sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_new);
 crs.next();
 String username = crs.getString(1);
 String sfzh     = crs.getString(2);
 if (username == null ) username = "次人无姓名,请修改个人信息";
 if (sfzh == null ) sfzh = "";
 
  //计算当前时间,格式:yyyy.mm.dd
    sun.jdbc.rowset.CachedRowSet aa=std.getResultBySelect("select to_char(sysdate,'yyyy.mm.dd') t from dual");
    aa.next();
    String ti=aa.getString("t");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>公务员管理</title>
<link rel="stylesheet" href="../style.css" type="text/css">
<!--modify: yhy-->
	<link rel="stylesheet" href="../lib/main.css" type="text/css">	
	<script language="javascript" src="../lib/check.js"></script>
	<script language="JavaScript" src="../lib/date/GetDate.js"></script>
	<script language="JavaScript" src="../lib/util.js"></script>
<!-- modify end -->
<!--modify: yhy-->	
<SCRIPT LANGUAGE="JavaScript">
	function checkJsrqs(inval){
	    if(inval==""){
		  return true;
		}
	    var ret = check_date(inval,"D");
		if(ret==""){
		  ret = checkStartEndDate(inval,document.getElementById("rqr").value);
		  if(ret == -1||ret == -2){
            	  alert("日期格式不对!");
	     	return false;
	      }
          if(ret == -3){
		   document.getElementById("rq").value="";
		   document.getElementById("rqr").value="";

		    alert("开始日期不得大于结束日期!");
		    return false;
	      }
	      else{
		   return true;
		  }
		}
		else{
  		  ret="加入日期 起:"+ret;
		  alert(ret);
		  return false;
		}
        
          }

	function checkJsrqz(inval){
	    if(inval==""){
		  return true;
		}
	    var ret = check_date(inval,"D");
		if(ret==""){
		  ret = checkStartEndDate(document.getElementById("rq").value,inval);
		  if(ret == -1||ret == -2){
            	  alert("日期格式不对!");
	     	return false;
	      }
          if(ret == -3){
          		document.getElementById("rq").value="";
          		document.getElementById("rqr").value="";
		    alert("开始日期不得大于结束日期!");
		    return false;
	      }
	      else{
		   return true;
		  }
		}
		else{
  		  ret="加入日期 止:"+ret;
		  alert(ret);
		  return false;
		}
	  }
	  //日期结束
</SCRIPT>
<!--modify end-->

<script>
function f_new()
{   
    window.open("jcy_pxxx_new_modify.jsp?zt=new&userid="+'<%=userid%>',"_self");
}
function f_number()
{
	if (document.form.pxnd.value.length > 4)
	{
		alert('年份长度不能超过4位!');
		document.form.pxnd.focus();
		return(false);
	}
	if (document.form.pxqc.value.length >20)
	{
		alert('培训班期次长度不能超过20位!');
		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.rq.value.length==0)
	{
		alert("请输入培训起始日期!");
		document.form.rq.focus();
		return(false);
	}
	if(document.form.rqr.value.length==0)
	{
		alert("请输入培训终止日期!");
		doucment.form.rqr.focus();
		return(false);
	}*/
	if (isNaN(document.form.pxnd.value) == true)
	{
	  alert('年不能为字符!');
	  document.form.pxnd.focus();
	  return(false);//字符判断
	}
	if (isNaN(document.form.sfzh.value) == true)
	{
	  alert('身份证不能为字符!');
	  document.form.sfzh.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);
			}
	   }
	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);
			}
	   }
}
function check_number(num)
	{
		for(i=0;i<num.length;i++)
		{
			var a=num.substr(i,1);
			if (a<'0' || a>'9')
			return('1');
		}
		return('0');
	}
function f_back()
{
	window.open("jcy_ry_view.jsp?uid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
   </script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<div align="center">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td width="15" height="84" align="left" background="../images/caozuo01.gif"></td>
      <td background="../images/caozuo02.gif" align="center" width="964"><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%" height="279" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
    <tr> 
      <td width="15" height="279" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
      <td align="center"><table width="95%" height="171" border="0" align="center">
          <tr> 
            <td width="722" height="167"> <form name="form" method="post" action="jcy_pxxx_view.jsp?userid=<%=userid%>"   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"> 
                          <td width="103" height="25" bgcolor="#EEF9FF"><font color="#105781"><strong>姓 
                            名 </strong></font></td>
                          <td width="199" align="left" bgcolor="#EEF9FF"><div align="left"> 
                              <font color="#105781"><strong> 
                              <input type="text" name="username" size="10" value = "<%=username%>" disabled style="width:80px">
                              </strong></font></div></td>
                          <td width="92" bgcolor="#EEF9FF"><font color="#105781"><strong>身 
                            份 证</strong></font></td>
                          <td width="312" align="left" bgcolor="#EEF9FF"> <font color="#105781"><strong> 
                            <input name="sfzh" type="text" disabled value = "<%=sfzh%>" size="20" maxlength="18">
                            </strong></font></td>
                        </tr>
                        <tr align="center"> 
                          <td width="103" height="25" bgcolor="#EEF9FF"><font color="#105781"><strong>组织培训部门</strong></font></td>
                          <td width="199" align="left" bgcolor="#EEF9FF"> <font color="#105781"><strong> 
                            <select name="pxbm" style="width:80px">
                              <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5001' ",nowuserszqx)%> 
                            </select>
                            </strong></font></td>
                          <td width="92" bgcolor="#EEF9FF"><font color="#105781"><strong> 
                            参加培训时间</strong></font></td>
                          <td align="left" bgcolor="#EEF9FF"><table width="282" border="0" cellspacing="0">
                              <tr> 
                                <td width="110"> <font color="#105781"><strong> 
                                  <!--<script language="JavaScript">									          
				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=""><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('rq',1);">
                                  </strong></font></td>
                                <td width="26"> <font color="#105781"><strong> 
                                  至 </strong></font></td>
                                <td width="140"><font color="#105781"><strong> 
                                  <!--<script language="JavaScript">										
				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="" ><img src="../images/select.gif" name="select" width="18" height="20" border="0" align="absmiddle" onClick="getDate('rqr',1);">
                                  </strong></font></td>
                              </tr>
                            </table>
                            <font color="#105781"><strong> 
                            <!--<select name="qxdm">
                              <%//=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0001' ","001")%> 
                            </select>-->
                            <!--所属区县-->
                            </strong></font></td>
                        </tr>
                        <tr align="center"> 
                          <td width="103" height="25" bgcolor="#EEF9FF"><font color="#105781"><strong>培训班期次 
                            </strong></font></td>
                          <td colspan="3" align="left" bgcolor="#EEF9FF"> <font color="#105781"><strong> 
                            <input name="pxnd" type="text" size="6" maxlength="4"  style="width:80px">
                            年 第 
                            <input name="pxqc" type="text" size="6" maxlength="20">
                            <script>										
                                           time= new Date();
                                           document.form.pxnd.value=time.getYear();
				           </script>
                            </strong> </font> <div align="center"> </div>
                            <div align="left"> </div></td>
                        </tr>
                      </table></td>
                  </tr>
                </table>
                <br>
                <table width="600" border="0"  align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
                  <tr> 
                    <td width="9" height="23"> <div align="right"></div>
                      <div align="center"></div>
                      <div align="center"></div>
                      <div align="center"> </div></td>
                    <td width="194"><div align="center"> 
                        <input type="submit" name="Submit53" value="查  询" class="input">
                      </div></td>
                    <td width="79"><input type="button" name="Submit583" value="新  增" class="input" onClick="f_new()"></td>
                    <td width="149"><div align="center"> 
                        <input type="reset" name="Submit582" value="清  屏" class="input">
                      </div></td>
                    <!--<%
                    //if (szt.equals("todel"))
                    //{}
                    //if (!szt.equals("todel")){
                    %>-->
                    <td width="81"><div align="center"> 
                        <input type="button" name="Submit58" value="返  回" class="input" onClick="f_back()">
                      </div></td><%//}%>
                    <td width="62"></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></td>
  </tr> </table></td> </div>
<td width="59"> </td>
<div align="center"><br>
</div>
<td width="381"> <p align="center"><br>
  </p></td>

</body>
</html>

⌨️ 快捷键说明

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