?? manage_jobbook.asp
字號:
<%@ LANGUAGE="VBScript" %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="Inc/articlechar.inc"-->
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br> <br> <table width="560" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="back_southidc" height="28">
<div align="center"><strong>應聘管理 <br>
</strong></div></td>
</tr>
<tr>
<td><div align="center">
<%
const MaxPerPage=5 '分頁顯示的紀錄個數
dim sql
dim rs
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
set rs=server.createobject("adodb.recordset")
sql="select * from jobbook order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>還沒有任何應聘信息!</p>"
else
totalPut=rs.recordcount
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showpages
showContent
showpages
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpages
showContent
showpages
else
currentPage=1
showContent
end if
end if
rs.close
end if
set rs=nothing
conn.close
set conn=nothing
sub showContent
dim i
i=0
do while not (rs.eof or err) %>
<table class="table_southidc" width="560" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="17%" height="25" bgcolor="#A4B6D7">
<div align="center">應聘崗位</div></td>
<td colspan="2" bgcolor="#A4B6D7"> <b><%=rs("jobname")%></b> </td>
<td bgcolor="#A4B6D7"><a href="Deljobbook.asp?id=<%=rs("ID")%>">刪除</a> <a href="Sendmail.asp?email=<%=rs("email")%>">發信</a>
</td>
</tr>
<%if rs("email")<>"" then%>
<tr>
<td height="10" bgcolor="#ECF5FF">
<div align="center">姓 名</div></td>
<td width="34%" bgcolor="#ECF5FF"> <%=rs("mane")%></td>
<td width="13%" bgcolor="#ECF5FF">
<div align="center">性 別</div></td>
<td width="36%" bgcolor="#ECF5FF"><%=rs("sex")%></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">出生日期</div></td>
<td bgcolor="#ECF5FF"> <%=rs("birthday")%></td>
<td bgcolor="#ECF5FF">
<div align="center">婚姻狀況</div></td>
<td bgcolor="#ECF5FF"><%=rs("marry")%></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">畢業院校</div></td>
<td colspan="3" bgcolor="#ECF5FF"> <%=rs("school")%></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">學 歷</div></td>
<td bgcolor="#ECF5FF"> <%=rs("studydegree")%></td>
<td bgcolor="#ECF5FF">
<div align="center">專 業</div></td>
<td bgcolor="#ECF5FF"><%=rs("specialty")%></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">畢業時間</div></td>
<td bgcolor="#ECF5FF"> <%=rs("gradyear")%></td>
<td bgcolor="#ECF5FF">
<div align="center"><font color="#FF0000">應聘日期</font></div></td>
<td bgcolor="#ECF5FF"><font color="#FF0000"><%=rs("time")%></font></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">電 話</div></td>
<td colspan="3" bgcolor="#ECF5FF"> <%=rs("telephone")%></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">E-mail</div></td>
<td colspan="3" bgcolor="#ECF5FF"> <a href="Sendmail.asp?email=<%=rs("email")%>"><%=rs("email")%></a></td>
</tr>
<tr>
<td height="22" bgcolor="#ECF5FF">
<div align="center">聯系地址</div></td>
<td colspan="3" bgcolor="#ECF5FF"> <%=rs("address")%></td>
</tr>
<%end if%>
<tr>
<td height="25" bgcolor="#ECF5FF">
<div align="center">水平與能力</div></td>
<td height="25" colspan="3" bgcolor="#ECF5FF"> <%=rs("ability")%></td>
</tr>
<tr>
<td height="25" bgcolor="#ECF5FF">
<div align="center">個人簡歷</div></td>
<td height="25" colspan="3" bgcolor="#ECF5FF"> <%=rs("resumes")%></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br> <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
end sub
sub showpages()
dim n
if (totalPut mod MaxPerPage)=0 then
n= totalPut \ MaxPerPage
else
n= totalPut \ MaxPerPage + 1
end if
if n=1 then
exit sub
end if
dim k
response.write "<p align='left'>>> 招聘分頁 "
for k=1 to n
if k=currentPage then
response.write "[<b>"+Cstr(k)+"</b>] "
else
response.write "[<b>"+"<a href='Manage_JobBook.asp?page="+cstr(k)+"'>"+Cstr(k)+"</a></b>] "
end if
next
end sub
%>
</div></td>
</tr>
</table>
<br> <br> </td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -