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

📄 func_invite.asp

📁 企业办公简单管理系统,可以发布信息以及论坛
💻 ASP
字号:
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckInput()
{
	if(!dochange(document.theform.count))
		return false;
		
	return true;
}	
function dochange(object)
{
		var i,strText,s;
		s=object.value;
		strText="请输入正确值,必须用阿拉伯数字填写";
		 for (i = 0; i < s.length; i++)
		{   
			// Check that current character is number.
			var c = s.charAt(i);
			if (!(((c >= "0") && (c <= "9")) || c == "."))
			{
				object.focus();
				window.alert(strText);
				
				return false;
			}
		}
		return true;
}		
//-->
</SCRIPT>

<!-- #include file="func_verify.asp" -->
<%

dim sumcount,saveserial

set rs = Server.CreateObject("ADODB.Recordset")


if request("saveflag")<>"" then
	dim msg
	saveserial=1
	msg=""

	if trim(request("Dest"))="" then
		msg=msg & saveserial & "、请选择招聘目的!<br>"
		saveserial=saveserial+1
	end if

	if trim(request("StationID"))="" then
		msg=msg & saveserial & "、请选择职位!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("count"))="" then
		msg=msg & saveserial & "、请输入招聘人数!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("experience"))="" then
		msg=msg & saveserial & "、请输入经验要求!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("Edu_level"))="" then
		msg=msg & saveserial & "、请选择学历!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("speciality"))="" then
		msg=msg & saveserial & "、请输入专业要求!<br>"
		saveserial=saveserial+1
	end if
	if request("wfid")="" then
		msg=msg & saveserial & "、请选择发起工作流!<br>"
		saveserial=saveserial+1
	end if
				

	if saveserial<=1 then
		maxid=getmaxid(request("wfid"))
		
		sql="select * from cci_oa_invite"
		rs.open sql,connobj,3,3
		rs.addnew
		
		rs("wfid")=maxid
		rs("userid")=session("userid")
		rs("deptid")=session("deptid")
		

		rs("Dest")=request("Dest")
		rs("StationID")=request("StationID")
		rs("Sex")=request("Sex")
		rs("count")=request("count")
		rs("experience")=trim(request("experience"))
		rs("Edu_level")=request("Edu_level")
		if trim(request("Other"))<>"" then
			rs("Other")=trim(request("Other"))
		end if
		rs("speciality")=trim(request("speciality"))
		rs("starttime")=request("year") & "-" & request("month") & "-" & request("day") & " 00:00:00"
		rs("InDate")=now
		rs.update
		rs.close
		
		sql="select * from cci_oa_flowlist where id="& maxid
		rs.open sql,connobj,3,3
		if not rs.eof then
			rs("title")="关于"& session("name") & "的『招聘员工申请』"
			rs.update
		end if
		rs.close
		
		response.redirect "message.asp?rediurl=defaultA.asp&msgurl=首页&msginfo=招聘员工申请操作成功!请耐心等待领导审批!"

		
	end if
	response.Write("<div align=center><font color=#FF0000>" &msg & "</font></div>")
end if





%>

  
<table width="100%" align="center" cellpadding="1" cellspacing="1" class=tableborder1>
  <form name="theform" method="post" action="" onSubmit="return CheckInput()">
    <tr > 
      <th height="25" colspan="6" align="center" class=TopLighNav>招聘员工申请表</th>
    </tr>
    <tr> 
      <td width="90" align="center" class=TopLighNav><b>部门</b></td>
      <td width="100" align="center" class=TopLighNav><%
	  
	  sql="select deptname from cci_dept where id=" & session("deptid")
	  rs.open sql,connobj,1,1
	  if not rs.eof then
	  	response.Write rs("deptname")
	  end if
	  rs.close
	  
	  %></td>
      <td width="80" align="center" class=TopLighNav><b>姓名</b></td>
      <td width="80" align="center" class=TopLighNav><%=session("name")%></td>
      <td width="80" align="center" class=TopLighNav><b>职务</b></td>
      <td align="center" class=TopLighNav><%
	  
	  sql="select stationname from cci_station where id=" & session("stationid")
	  rs.open sql,connobj,1,1
	  if not rs.eof then
	  	response.Write rs("stationname")
	  end if
	  rs.close
	  
	  %></td>
    </tr>
    
    <tr>
      <td align="center" class=tablebody1><b>部门</b></td>
      <td class=tablebody1><select name="DeptID"><%
	  
	  sql="select * from cci_dept"
	  rs.open sql,connobj,1,1
	  do while not rs.eof
	  	if session("deptid")=rs("id") then
			response.Write "<option value=" & cstr(rs("id")) & " selected>" & rs("deptname") & "</option>"
		else
	  		response.Write "<option value=" & cstr(rs("id")) & ">" & rs("deptname") & "</option>"
		end if
		rs.movenext
	  loop
	  rs.close
	  
	  %></select>
	  </td>
      <td class=tablebody1><b>招聘目的</b></td>
      <td class=tablebody1><select name=dest>
	  <option value="1">增设</option>
	  <option value="2">补充</option>
	  <option value="3">人才储备</option>
	  
	  </select></td>
      <td class=tablebody1><b>职位</b></td>
      <td class=tablebody1><select name=stationid>
          <%
	  		sql="select * from cci_station"
			Rs.Open Sql,connObj,1,1
			flag=0
			do while not rs.eof
				if LevelCode=rs("id") then
					flag=1
				 	response.Write "<option value=" & rs("id") & " selected>" & rs("stationName") & "</option>"
				else
					response.Write "<option value=" & rs("id") & ">" & rs("stationName") & "</option>"
				end if
				rs.movenext
			loop
		rs.close
		if flag<>1 then
			response.Write "<option selected></option>"
		else
			response.Write "<option></option>"		
		end if
	  	
	  %>
        </select></td>
    </tr>
    <tr>
      <td align="center" class=tablebody1><b>性别</b></td>
      <td class=tablebody1><select name="sex" id="sex">
          <option value="1" selected>男</option>
          <option value="0">女</option>
		  <option value="2">不确定</option>
        </select></td>
      <td class=tablebody1><b>人数</b></td>
      <td class=tablebody1><input name="count" type="text" id="count" size="4" maxlength="4">
        (个)</td>
      <td class=tablebody1><b>工作经验</b></td>
      <td class=tablebody1><input name="experience" type="text" size="10" maxlength="20"></td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1><b> 学历</b></td>
      <td colspan="2" class=tablebody1><select name="Edu_level" id="Edu_level">
          <option value="1">初中</option>
          <option value="2">中专</option>
		  <option value="3">高中</option>
          <option value="4">大专</option>
          <option value="5">本科</option>
          <option value="6">硕士</option>
          <option value="7">博士</option>
        </select></td>
      <td class=tablebody1><b>专业</b></td>
      <td colspan="2" class=tablebody1><input name="speciality" type="text" id="speciality" size="25" maxlength="40"></td>
    </tr>
	<tr > 
      <td class=tablebody1 align="center"><b>上岗日期</b></td>
      <td colspan="5" class=tablebody1 align="left"><!-- #include file="func_currtime.asp" --></td>
    </tr>
	<tr > 
      <td class=tablebody1 align="center"><b>其他要求</b></td>
      <td colspan="5" class=tablebody1 align="left"><textarea name="other" cols="75" rows="8"><%=request("other")%></textarea></td>
    </tr>
	   <tr >
      <td class=tablebody1 align="center"><b>工作流发起</b></td>
      <td colspan="5" class=tablebody1 align="left"><select name="wfid">
	  <%
	  	sql="select * from cci_oa_wfdefine where taskid=2"
		Rs.Open Sql,connObj,1,1
		do while not rs.eof
			response.Write "<option value=" & rs("id") & ">" & rs("wfname")& "</option>"
			rs.movenext
	  	loop
		rs.close
	  %></select>
	  </td>
    </tr>
	
    <tr> 
      <td colspan="6" align="center" class=tablebody1><input type="submit" name="Submit" value=" 申 请 "></td>
    </tr>
    <input type=hidden name=saveflag value="1">
  </form>
</table>

⌨️ 快捷键说明

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