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

📄 recruitmanage.asp

📁 这个也是一个功能强大的企业整站的ASP源代码
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="CheckAdminLogined.asp"-->
<!--#include file="../include/connstr.asp"-->
<!--#include file="../include/DefFunction.asp"-->
<%if request("cur_action")="addsave" then
    if not isdate(request("T_AddTime")) then 
	  response.write "<script>alert('错误的日期格式,请重新输入!');history.back();</script>"
	  response.End()
	end if
    sql_addsave="insert into tRecruit(Job,Content,AddTime,StateFlag) values('"&request("T_Job")&"','"&request("T_Content")&"','"&request("T_AddTime")&"',"&request("R_StateFlag")&")"
    conn.execute sql_addsave
	response.write "<script>alert('已经成功添加');location.replace('RecruitManage.asp');</script>"	
	response.end		
  end if
  
  if request("cur_action")="editsave" then
    if not isdate(request("T_AddTime")) then 
	  response.write "<script>alert('错误的日期格式,请重新输入!');history.back();</script>"
	  response.End()
	end if  
    sql_editsave="update tRecruit set Job='"&request("T_Job")&"',Content='"&request("T_Content")&"',AddTime='"&request("T_AddTime")&"',StateFlag='"&request("R_StateFlag")&"' where ID="&request("EditID")
    conn.execute sql_editsave
	response.write "<script>alert('已经成功修改');location.replace('RecruitManage.asp?PageNo="&request("PageNo")&"');</script>"	
	response.end	
  end if
  
  if request("cur_action")="delete" then 
    conn.execute("delete from tRecruit where ID="&request("EditID"))
	response.write "<script>alert('已经成功删除');location.replace('RecruitManage.asp?PageNo="&request("PageNo")&"');</script>"	
	response.end	
  end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/AdminCss.css" rel="stylesheet" type="text/css">
<script src="../Include/JChar.js"></script>
<script language="JavaScript">
function check_data(){
  if(Jtrim(document.form1.T_Job.value)==""){
    alert('招聘职位为必填项,请填写!')
	document.form1.T_Job.focus()
	return(false)
  }
  if(Jtrim(document.form1.T_Content.value)==""){
    alert('要求事项为必填项,请填写!')
	document.form1.T_Content.focus()
	return(false)
  }  
  if(Jtrim(document.form1.T_AddTime.value)==""){
    alert('发布时间为必填项,请填写!')
	document.form1.T_AddTime.focus()
	return(false)
  }    
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body leftmargin="0" topmargin="0">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8" colspan="2"></td>
  </tr>
  <tr> 
    <td width="76" height="20" rowspan="2"><img src="Images/TopBt.gif" width="67" height="36"></td>
    <td width="917" height="10"></td>
  </tr>
  <tr>
    <td>我的位置:后台管理系统._人力资源管理._招聘信息管理</td>
  </tr>
  <tr> 
    <td height="4" colspan="2"></td>
  </tr>
  <tr> 
    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="E7E7E7">
        <tr> 
          <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="159" height="20" align="center" background="images/title1.gif" class="fontwintitle"><strong>招聘信息管理</strong></td>
                <td align="right" background="images/title2.gif"><img src="Images/Topicon.gif" width="11" height="11" align="absmiddle">&nbsp;<a href="?cur_action=add"><font color="#FF0000"><strong>发布招聘信息</strong></font></a>&nbsp;</td>
                <td width="10"><img src="images/title3.gif" width="10" height="20"></td>
              </tr>
            </table></td>
        </tr>
        <tr valign="top"> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="6" background="images/midder1.gif"><img src="images/midder1.gif" width="6" height="3"></td>
                <td height="100%" align="center" valign="top"> 
				<% if request("cur_action")="add" then%>  <br>               
                   <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#333333"><form name="form1" method="post" action="?cur_action=addsave" onSubmit="return check_data()">
                      <tr> 
                        <td width="20%" height="22" align="right" bgcolor="f7f7f7">* 
                          招聘职位:</td>
                        <td width="80%" bgcolor="#FFFFFF">&nbsp;<input name="T_Job" type="text" id="T_Job">
                        </td>
                      </tr>
                      <tr> 
                        <td height="22" align="right" bgcolor="f7f7f7">* 要求事项:</td>
                        <td bgcolor="#FFFFFF">&nbsp;<textarea name="T_Content" cols="50" rows="8" id="T_Content"></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td height="22" align="right" bgcolor="f7f7f7">状态:</td>
                        <td bgcolor="#FFFFFF">&nbsp;<input name="R_StateFlag" type="radio" value="0" checked>
                          发布 
                          <input type="radio" name="R_StateFlag" value="1">
                          不显示 </td>
                      </tr>
                      <tr> 
                        <td height="22" align="right" bgcolor="f7f7f7">* 添加时间:</td>
                        <td bgcolor="#FFFFFF">&nbsp;<input name="T_AddTime" type="text" id="T_AddTime2" value="<%=now()%>"></td>
                      </tr>
                      <tr align="center" bgcolor="#FFFFFF"> 
                        <td height="28" colspan="2"> 
                          <input type="submit" name="Submit5" value="正确提交">
                          <input type="reset" value="重新填写">
                          <input type="button" name="Submit7" value="返回" onclick="javascript:history.back();"></td>
                      </tr>
                  </form></table>                   
                  <%end if
				    if request("cur_action")="edit" then
				      set rs_edit=conn.execute("select * from tRecruit where ID="&request("EditID"))
					  if rs_edit.eof and rs_edit.bof then
					     response.write "<script>alert('读取数据时出错,请与管理员联系!');history.back();</script>"
					     response.end						
					   end if
				  %><br>
                  <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#333333">
                    <form name="form1" method="post" action="?cur_action=editsave&PageNo=<%=request("PageNo")%>&EditID=<%=request("EditID")%>" onSubmit="return check_data()">
                      <tr> 
                        <td width="20%" height="22" align="right" bgcolor="f7f7f7">* 
                          招聘职位:</td>
                        <td width="80%" bgcolor="#FFFFFF">&nbsp;<input name="T_Job" type="text" id="T_Job" value="<%=rs_edit("Job")%>"></td>
                      </tr>

⌨️ 快捷键说明

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