www.gusucode.com > 528人才招聘网整站源代码-蓝色经典 精简版 2.0源码程序 > add_indepot.asp

    <!--#include file="info.asp"-->
<!--#include file="conn.asp"-->
<%
if Request.Cookies("id")="" or Request.Cookies("ac")="" or Request.Cookies("user")<>"1" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您不具备此权限!');" & "history.back()" & "</script>" 
Response.End
end if
sql="select id from indepot where inid="&clng(Request.Cookies("id"))
rs.open sql,conn,1,1
if Request.Cookies("vip")="false" then
if rs.recordcount>=in_max then
rs.close
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('普通用户职位库上限为"&en_max1&"个,若您需要更多的库存容量,请升级成VIP用户,将会拥有100个人才库容量,请与管理员联系!电话:13981528686 QQ:451079368');" & "history.back()" & "</script>" 
Response.End
end if
else
if rs.recordcount>=in_vip_max then
rs.close
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('抱歉,您的职位库已满!若您需要更多的库存容量,请与管理员联系!电话:13981528686 QQ:451079368');" & "history.back()" & "</script>" 
Response.End
end if
end if
rs.close
sql="select id from job where id="&clng(request("jobid"))
rs.open sql,conn,1,1
if rs.recordcount=0 then
rs.close
response.write "<script language=JavaScript>" & chr(13) & "alert('无此招聘信息!');" & "history.back()" & "</script>" 
Response.End
end if
rs.close
sql="select id from indepot where inid="&clng(Request.Cookies("id"))& "and jobid="&clng(request("jobid"))
rs.open sql,conn,1,1
if rs.recordcount<>0 then
rs.close
response.write "<script language=JavaScript>" & chr(13) & "alert('您已经添加过此招聘信息!');" & "history.back()" & "</script>" 
Response.End
end if
rs.close
sql="insert into indepot(inid,jobid) values("&Request.Cookies("id")&","&request("jobid")&")"
rs.open sql,conn,1,1
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('添加成功!');" & "history.back()" & "</script>" 

%>