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

📄 delstaffbasicinfo.jsp

📁 一个oa系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" import="java.util.*,com.oa.page.*,com.oa.db.*"
	pageEncoding="gbk"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	//String use=(String)session.getAttribute("username");System.out.println("use"+use);
%>
<%String x = (String)request.getAttribute("x"); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>联信OA-部门办公</title>
		<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 2px;
	margin-top: 2px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #333333;
}
a:active {
	text-decoration: none;
	color: #333333;
}
html,body{

scrollbar-face-color: #f2f2f2; 

scrollbar-highlight-color: #ffffff; 

scrollbar-shadow-color: #999999; 

scrollbar-3dlight-color: #999999; 

scrollbar-arrow-color: #999999; 

scrollbar-track-color: ##FFFFFF; 

scrollbar-darkshadow-color: #ffffff;

}
-->
</style>
		<link href="../css/css.css" rel="stylesheet" type="text/css" />
		<script language="javascript">
	  function aa(s){
	        frm.action = "<%=request.getContextPath()%>/querystaffbasicinfo.do?id=2&x=4";
			frm.submit();
	  }
	  function del(c){
    var check2 = document.getElementsByName("chkpla");
      var a=new Array();
      var objYN=""; 
      objYN=false;  
		      for(var j=0;j<check2.length;j++){   
		              if(check2[j].checked){
		                  a[j]=check2[j].value;  
		                  objYN= true;
		                } 
		       } 
		        
              if(objYN== false){
                      alert('请勾选用户!');
              }else{
				    if(confirm("你确定要删除所勾选的用户吗?")){
				     fr.action="<%=request.getContextPath()%>/delstaffbasicinfo.do?id="+c;
				      fr.submit();
				     //  return true;
				    }
    // return false;
           } 
}
     
     function allsel(){
	   if(frs.chkpla!=null){
		     b=eval(document.frs.chkpla);
		     b_all=eval(document.frs.all);    
		     if(b_all.checked == true){
		       b.checked=true;//长度为1时
		       for(var i=0;i<b.length;i++){
		         b[i].checked=true;
		       }
	     }
      else if(b_all.checked==false){
	       b.checked=false;
	       for(var i=0;i<b.length;i++){
	         b[i].checked=false;
	       }
     }
   }
}

function checkdel(){
      var sel = document.getElementById("chkpla").value;
      var check2 = document.getElementsByName("chkpla");
      var a=new Array();
      var objYN=""; 
      objYN=false;  
       for(var   j=0;j<check2.length;j++){   
              if(check2[j].checked){
                  a[j]=check2[j].value;  
                  objYN= true;
                } 
       }  
              if(objYN== false){
              alert('请勾选用户!');
            }else{
     if(confirm("你确定要删除所勾选的用户吗?")){
        return true;
     }
     return false;
  }
 }
</script>
	</head>
          <%	String querytype = (String) request.getAttribute("querytype");
				String select = (String) request.getAttribute("select");
			%>
	<body>
		<form action="" method="post" name="fr" style="display:none;inline">
		<input type="hidden" name="querytype" value="<%=querytype %>"/>
		<input type="hidden" name="select" value="<%=select %>"/>
		<input type="hidden" name="x" value="<%=x %>"/>
		</form>
		<form action="" method="post" name="frm" style="display:inline">
			
			<table width="768" border="0" cellpadding="0" cellspacing="1">
				<tr>
					<%
					if (querytype == null) {
					%>
					<td width="130" height="25">
						&nbsp;
						<input name="querytype" id="querytype" type="radio" value="all"
							onClick="aa('1')" checked />
						所有员工信息
					</td>
					<td width="130" height="25">
						&nbsp;
						<input name="querytype" id="querytype" type="radio" value="zhengshi"
							onClick="aa('2')" />
						正式员工信息
					</td>
					<td width="130">
						<input type="radio" id="querytype" name="querytype" value="lizhi"
							onClick="aa('3')" />
						离职员工信息
					</td>
					<td width="130">
						<input type="radio" id="querytype" name="querytype" value="shiyong"
							onClick="aa('4')" />
						试用员工信息
					</td>
					<%
					} else {
					%>
					<td width="130" height="25">
						&nbsp;
						<%
								String str = "";
								if (querytype != null && !querytype.equals("")
								&& querytype.equals("all")) {
									str = "checked";
								}
						%>
						<input name="querytype" id="querytype" type="radio" value="all"
							onClick="aa('1')" <%=str%> />
						所有员工信息
					</td>
					<td width="130" height="25">
						&nbsp;
						<%
								String str2 = "";
								if (querytype != null && !querytype.equals("")
								&& querytype.equals("zhengshi")) {
									str2 = "checked";
								}
						%>
						<input name="querytype" id="querytype" type="radio" value="zhengshi"
							onClick="aa('2')" <%=str2%> />
						正式员工信息
					</td>
					<td width="130">
						<%
								String str3 = "";
								if (querytype != null && !querytype.equals("")
								&& querytype.equals("lizhi")) {
									str3 = "checked";
								}
						%>
						<input type="radio" id="querytype" name="querytype" value="lizhi"
							onClick="aa('3')" <%=str3%> />
						离职员工信息
					</td>
					<td width="130">
						<%
								String str4 = "";
								if (querytype != null && !querytype.equals("")
								&& querytype.equals("shiyong")) {
									str4 = "checked";
								}
						%>
						<input type="radio" id="querytype" name="querytype" value="shiyong"
							onClick="aa('4')" <%=str4%> />
						试用员工信息
					</td>
					<%
					}
					%>
					<td width="158">
						<select name="select">
							<%
								String str5 = "";
								String str6 = "";
								if (select != null && !select.equals("") && select.equals("1")) {
									str5 = "selected";
								}
								if (select != null && !select.equals("") && select.equals("2")) {
									str6 = "selected";
								}
							%>
							<option value="1" <%=str5%>>
								按入职时间排序
							</option>
							<option value="2" <%=str6%>>
								按员工编号排序
							</option>
						</select>
					</td>

⌨️ 快捷键说明

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