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

📄 pactadd.asp

📁 目前人力资源管理系统的发展已经相对成熟
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=yan.asp-->
<!--#include file=purview.asp-->
<%
call tianxiehetong
if request("post")<>"" then 
	if request("qixian")<>"" and request("nameid") then
		set rsa=server.CreateObject("adodb.recordset")
		sqla="select * from tb_Employee where id="&request("nameid")
		rsa.open sqla,conn,1,3
		
		rsa("hetong")=request("hetong")
		rsa("qixian")=request("qixian")
		rsa("youxiaoqi")=request("cyear")&"-"&request("cmonth")&"-"&request("cday")&"至"&request("zyear")&"-"&request("zmonth")&"-"&request("zday")
		rsa("zhengshi")=1
		rsa.update
		rsa.close
		response.Write("<script language=javascript>alert('提交成功');location='pactadd.asp'</script>")
	else
		response.Write("<script language=javascript>alert('人员名称或合同期限不能为空');location='javascript:history.go(-1)'</script>")
	end if
end if


'员工
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Employee where kong=1 and hetong is null"
rs.open sql,conn,1,1 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style2 {color: #FF0000}
body,td,th {
	font-size: 12px;
}
-->
</style>
<script language="javascript">
function more()
{
var id=form1.nameid.value;
      window.open("employeeopen.asp?id="+id,"","width=450,height=450,toolbar=no,location=no,status=no,menubar=no");
}
</script>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {color: #0000FF}
-->
</style>
</head>

<body text="12" topmargin="0">
<form name="form1" method="post" action="">
  <table width="550" border="0" align="center">
    <tr>
      <td width="55%" height="30"> -<span class="style2"> 人事管理</span>→<span class="style3">人力规划</span>→<font color="#FF0000">填写合同</font></td>
    </tr>
  </table>
  <table width="550"  border="0" align="center" cellspacing="1" bgcolor="#000000">
    <tr>
      <td height="216" valign="top" bgcolor="#FFFFFF"><table width="550"  border="0" align="center" cellspacing="0" >
        <tr bgcolor="#FFFFFF">
          <td height="28" align="right" bgcolor="#F0F0F0" background="images/index_24.gif">人员名称:</td>
          <td width="331"  background="images/index_24.gif">&nbsp;
              <%if not rs.eof then%>
              <select name="nameid" id="nameid">
                <%
       do while not rs.eof 
	  %>
                <option value="<%=rs("id")%>"><%=rs("name")%></option>
                <%
	 rs.movenext
	 loop
	 %>
              </select>
              <input name="Submit3" type="button" class="botton" value=" 详细资料 " onClick="more()">
              <%else%>
      没有员工
      <%end if%>
      <input name="post" type="hidden" id="post" value="true"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28" align="right">合同类型:</td>
          <td bgcolor="#FFFFFF">&nbsp;
              <select name="hetong" id="hetong">
                <option value="A">A</option>
                <option value="B">B</option>
                <option value="C">C</option>
                <option value="D">D</option>
                <option value="E">E</option>
            </select></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28" align="right">合同期限:</td>
          <td height="28" bgcolor="#FFFFFF">&nbsp;
              <input name="qixian" type="text" id="qixian"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td align="right">有 效 期:</td>
          <td bgcolor="#FFFFFF"> &nbsp;
              <select name="cyear" id="cyear">
                <%for i=2005 to 2100%>
                <option value="<%=i%>"><%=i%></option>
                <%next%>
              </select>
      <select name="cmonth" id="cmonth">
        <%for i=1 to 12%>
        <option value="<%=i%>"><%=i%></option>
        <%next%>
      </select>
      <select name="cday" id="cday">
        <%for i=1 to 31%>
        <option value="<%=i%>"><%=i%></option>
        <%next%>
      </select>
      日至
      <p></p>
      <p>&nbsp;
          <select name="zyear" id="zyear">
            <%for i=2005 to 2100%>
            <option value="<%=i%>"><%=i%></option>
            <%next%>
          </select>
        <select name="zmonth" id="select2">
          <%for i=1 to 12%>
          <option value="<%=i%>"><%=i%></option>
          <%next%>
        </select>
        <select name="zday" id="select3">
          <%for i=1 to 31%>
          <option value="<%=i%>"><%=i%></option>
          <%next%>
        </select>
        日</td>
        </tr>
      </table>
        <p align="center">
          <input name="Submit" type="submit" class="botton" value=" 提 交 ">
   
  <input name="Submit2" type="reset" class="botton" value=" 重 置 ">
        </p></td>
    </tr>
  </table>
  <table width="550" height="29"  border="0" align="center" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#666699" bgcolor="#FFFFFF">
    <tr>
      <td width="76" height="29"><div align="center" class="style3">A:期限合同</div></td>
      <td width="115" ><div align="center" class="style3">B:无固定期限合同</div></td>
      <td width="172" ><div align="center" class="style3">C:以项目或者以事件终止期限的合同</div></td>
      <td width="94" ><div align="center" class="style3">D:试用期合同</div></td>
      <td width="83" ><div align="center" class="style3">E:其他合同</div></td>
    </tr>
  </table>
  <p align="center">&nbsp;</p>
</form>
</body>
</html>

⌨️ 快捷键说明

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