📄 jobguan1.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<%
if request("del")<>"" then
sqld="delete from tb_Job where id="&request("del")
conn.execute(sqld)
end if
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Job order by id desc"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style3 {color: #0000FF}
body,td,th {
font-size: 12px;
}
a:link {
color: #0000FF;
}
a:visited {
color: #0000FF;
}
.style2 {color: #FF0000}
-->
</style>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0">
<table width="550" border="0" align="center">
<tr>
<td width="55%" height="30"> - <span class="style2">招聘管理</span>→<span class="style3">招聘信息管理</span>→<font color="#FF0000">查看招聘信息</font></td>
</tr>
</table>
<table width="550" border="0" align="center" cellspacing="0" >
<tr align="center">
<td width="168" height="31" background="images/index_24.gif" class="leftdian">职位</td>
<td width="189" background="images/index_24.gif" class="leftdian">递交时间</td>
<td width="107" background="images/index_24.gif" class="leftdian">发布人</td>
<td width="68" background="images/index_24.gif" class="dian">查看</td>
</tr>
<%
maxpage=0
if not rs.eof then
show=15
tol=rs.recordcount
rs.pagesize=show
maxpage=rs.pagecount
requestpage=clng(request("p"))
if requestpage="" or requestpage=0 then
requestpage=1
end if
if requestpage>maxpage then
requestpage=maxpage
end if
if not requestpage=1 then
rs.move (requestpage-1)*rs.pagesize
end if
for i=1 to rs.pagesize and not rs.eof
%>
<tr align="center" >
<td height="28" class="leftdian"><%=rs("zhiwei")%></td>
<td class="leftdian"><%=rs("time")%></td>
<td class="leftdian"><%=rs("name")%></td>
<td class="dian"><a href="javascript:" onClick="window.open('jobopen.asp?id=<%=rs("id")%>','','width=450,height=460')">查看</a></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
else
response.Write("没有招聘信息")
end if
%>
<tr align="right" bgcolor="#efefef">
<td height="24" colspan="5">共<%=maxpage%>页 当前页:<%=requestpage%> <%if requestpage="" or requestpage=1 then%>上一页<%else%><a href="jobguan.asp?p=<%=requestpage-1%>">上一页</a> <%end if%> <%if requestpage=maxpage then%>下一页<%else%><a href="jobguan.asp?p=<%=requestpage+1%>">下一页</a>
<%end if%></td>
</tr>
</table>
</body>
</html>
<%
if request("guanbi")<>"" then
set rsg=server.CreateObject("adodb.recordset")
sqlg="select * from tb_Job where id="&request("guanbi")
rsg.open sqlg,conn,1,3
if rsg("guanbi")="关闭" then
guanbi="开放"
else
guanbi="关闭"
end if
rsg("guanbi")=guanbi
rsg.update
rsg.close
response.Redirect("jobguan.asp?p="&requestpage)
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -