📄 publish.asp
字号:
<% Response.Buffer=True %>
<!--#include file="../inc/company.inc"-->
<!--#include file="../inc/html.inc"-->
<!--#include file="../lib/inctop.asp"-->
<% uname=session("cuid")
modify=request("modify")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from company where uname='"&uname&"'and cname<>'""'"
rs.open sql,conn,1,1 %>
<% if rs.eof or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('您尚未登录公司资料,请先登录公司资料!');"
response.write"javascript:history.go(-1);</SCRIPT>"
end if %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../inc/register.css" type="text/css">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>学生社会实践信息管理系统—>人才中心—>发布招聘信息</title>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function check()
{
if (register.job.value=="") {
alert("请选择招聘职位名称!");
register.job.focus();
return (false);
}
if (register.zpnum.value=="") {
alert("请输入招聘人数!");
register.zpnum.focus();
return (false);
}
if (isNaN(register.zpnum.value)){
alert("请正确填写招聘人数!");
register.zpnum.focus();
return (false);
}
if (register.gzdd.value=="") {
alert("请选择工作地点!");
register.gzdd.focus();
return (false);
}
if (register.zptext.value=="") {
alert("请输入岗位描述!");
register.zptext.focus();
return (false);
}
if (register.xgyq.value=="") {
alert("请输入相关要求!");
register.xgyq.focus();
return (false);
}
else
document.register.submit();
}
//-->
</SCRIPT>
<body bgcolor="#666666">
<FORM name=register action=publish.asp method=post><body topmargin="0" leftmargin="0">
<center>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="760" height="87" bgcolor="#FFFFFF">
<tr>
<td width="780" height="18" valign="top" colspan="5" bgcolor="#396BA5">
</td>
</tr>
<tr>
<td width="139" height="162" valign="top" bgcolor="#396BA5">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="118" height="280">
<tr>
<td width="100%" height="163" background="../images/stat-bg.GIF" valign="top">
<p align="center"><br>
<a href="main.asp">登录首页</a><br>
<br>
<a href="register.asp">登录/更新公司资料</a><br>
<br>
<a href="publish.asp">发布/更新招聘信息</a><br>
<br>
<a href="../changepwd.asp?stype=company" target="_blank">修改登录密码</a><br>
<br>
<a href="search.asp">全部人才列表</a>
</td>
</tr>
<tr>
<td width="100%" height="117" background="../images/stat-bg.GIF" valign="top">
<p align="center"><br>
<br>
<a href="favorite.asp">我的收藏夹<br>
<br>
</a><a href="mailbox.asp">我的信箱</a><br>
<br>
<a href="../exit.asp">退出登录</a>
</td>
</tr>
</table>
</div>
<p align="center">
</td>
<td width="37" height="351" valign="top"><img border="0" src="../images/selfk.GIF"></td>
<td width="484" height="351">
<div align="left">
<table border="1" cellpadding="0" cellspacing="0" width="92%" height="312" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" height="18" valign="bottom" bgcolor="#C6CEDE" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<p align="center">=== 发布招聘信息 ===
</td>
</tr>
<tr>
<td width="100%" height="305" valign="top" bgcolor="#F3F3F3">
<p align="center"> <br>
招聘职位:
<select size="1" name="job">
<option>请在以下列表中选择</option>
<option>--------------活动策划,营销类--------------
<option value=校园代理 <%if rs("job") ="校园代理" then Response.Write "selected"%>>校园代理
<option value=校园销售 <%if rs("job") ="企业策划" then Response.Write "selected"%>>企业策划
<option value=广告宣传 <%if rs("job") ="广告宣传" then Response.Write "selected"%>>广告宣传
<option value=代办校园活动、讲座<%if rs("job") ="代办校园活动、讲座" then Response.Write "selected"%>>代办校园活动、讲座
<option>--------------家教--------------
<option value=初中(全部课程) <%if rs("job") ="初中(全部课程)" then Response.Write "selected"%>>初中(全部课程)
<option value=初中-英语 <%if rs("job") ="初中-英语" then Response.Write "selected"%>>初中-英语
<option value=初中-数、理、化 <%if rs("job") ="初中-数、理、化 " then Response.Write "selected"%>>初中-数、理、化
<option value=高中(全部课程) <%if rs("job") ="高中(全部课程)" then Response.Write "selected"%>>高中(全部课程)
<option value=高中-英语 <%if rs("job") ="高中-英语" then Response.Write "selected"%>>高中-英语
<option value=高中-数、理、化 <%if rs("job") ="高中-数、理、化 " then Response.Write "selected"%>>高中-数、理、化
<option value=高中-生、地、历 <%if rs("job") ="高中-生、地、历 " then Response.Write "selected"%>>高中-生、地、历
<option value=专业相关 <%if rs("job") ="专业相关" then Response.Write "selected"%>>专业相关
<option value=其他 <%if rs("job") ="其他" then Response.Write "selected"%>>其他
</select>
</p>
<p align="center">招聘人数:
<input maxlength=3
size=3 name=zpnum value="<%=rs("zpnum")%>">
人 工作地点:<b>
<select size=1 name=gzdd>
<option>请在以下列表中选择</option>
<option value=福州市 <%if rs("gzdd") ="福州市" then Response.Write "selected"%>>福州市
<option value=泉州市 <%if rs("gzdd") ="泉州市" then Response.Write "selected"%>>泉州市
<option value=厦门市 <%if rs("gzdd") ="厦门市" then Response.Write "selected"%>>厦门市
<option value=漳州市 <%if rs("gzdd") ="漳州市" then Response.Write "selected"%>>漳州市
<option value=莆田市 <%if rs("gzdd") ="莆田市" then Response.Write "selected"%>>莆田市
<option value=龙岩市 <%if rs("gzdd") ="龙岩市" then Response.Write "selected"%>>龙岩市
<option value=三明市 <%if rs("gzdd") ="三明市" then Response.Write "selected"%>>三明市
<option value=宁德市 <%if rs("gzdd") ="宁德市" then Response.Write "selected"%>>宁德市
<option value=南平市 <%if rs("gzdd") ="南平市" then Response.Write "selected"%>>南平市
<option value=其他 <%if rs("gzdd") ="其他" then Response.Write "selected"%>>其他
</select>
</b> </p>
<p align="center">岗位描述:<br>
<%if rs("zptext")<>"" then
kzptext=replace(rs("zptext"),"<br>",chr(13))
kzptext=replace(kzptext," "," ")
else
kzptext="" %>
<%end if%>
<textarea rows="6" name="zptext" cols="41"><%=kzptext%></textarea>
</p>
<p align="center">相关要求:<br>
<%if rs("xgyq")<>"" then
kxgyq=replace(rs("xgyq"),"<br>",chr(13))
kxgyq=replace(kxgyq," "," ")
else
kxgyq=""%>
<%end if%>
<textarea rows="6" name="xgyq" cols="41"><%=kxgyq%></textarea>
</p>
<p align="center">
<input type="button" value="发 布" onClick="check()" name="button">
<p align="center">
</td>
</tr>
</table>
</div>
<p>
</td>
<td width="1" height="351" valign="top" bgcolor="#00006A"></td>
<td width="124" height="351" valign="top" bgcolor="#F3F3F3"> </td>
</tr>
<tr>
<td width="780" height="3" valign="top" colspan="5"> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
<% zptext=htmlencode2(request("zptext"))
if zptext="" then Response.End
job=request("job")
zpnum=request("zpnum")
gzdd=request("gzdd")
xgyq=htmlencode2(request("xgyq"))
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from company where uname='"&uname&"'"
rs.open sql,conn,3,3
rs("zptext")=zptext
rs("job")=job
rs("zpnum")=zpnum
rs("gzdd")=gzdd
rs("xgyq")=xgyq
rs("idate")=date()
rs.update
rs.close
Response.Redirect "main.asp"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -