?? save_edit.asp
字號:
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<link rel="stylesheet" type="text/css" href="../css/style.css">
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"21")=0 then
response.redirect "../err.asp"
response.end
end if
Response.Buffer = true
Response.ExpiresAbsolute=now()-1
Response.Expires=0
Response.CacheControl="no-cache"
%>
<%
if Not ChkPost then
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if
%>
<%
if Chkrequest(request("info_id")) then
info_id=request("info_id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if
showname=Replace_Text(request("showname"))
zrs=Replace_Text(request("zrs"))
xs=Replace_Text(request("xs"))
mmfx=Replace_Text(request("type"))
period=Replace_Text(request("period"))
content=Replace_Text(request("content"))
sql="select info_id from work where showname='"&showname&"' and info_id<>"&info_id&""
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if not rs.eof then
response.write"<SCRIPT language=JavaScript>alert('對不起,您已經提交過此類信息!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from work where info_id="&info_id
rs.open sql,conn,1,3
rs("showname")=showname
rs("zrs")=zrs
rs("xs")=xs
rs("type")=mmfx
rs("period")=period
rs("content")=content
rs("dateandtime")=date()
rs.update
rs.close
set rs=noting
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>操作成功</title>
</head>
<table cellpadding=2 cellspacing=1 border=0 width=400 class=tableBorder align=center><TR>
<TH class=tableHeaderText colSpan=2 height=25>修改企業招聘信息</TH>
<TR><tr><td height=85 valign=top class=forumRow><div align=center><br><br>
企業招聘信息修改成功!</div></td></tr><tr align=center><td height=30 class=forumRowHighlight><a href='work.asp'><< 返回上一頁</a></td>
</tr></table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -