-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob.asp
217 lines (193 loc) · 5.8 KB
/
job.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!--#include file="show.asp"-->
<!--#include file="inc/dbconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link href="inc/css_job.css" rel="stylesheet" type="text/css">
<title>MyJob易聘网 - 我要求职</title>
<style type="text/css">
<!--
.show_talent{
width:631;
font-family:"宋体";
font-size:10.7pt;
color:#000000;
text-align:left;
}
.scour_talent{
width:778;
height:80;
font-family:"宋体";
font-size:9pt;
color:#000000;
text-align:center;
background-color:d5d5d5;
}
.page_topic{
height:50;
background-color:#D5D5D5;
font-family:"宋体";
font-size:18px;
color:#CE0421;
text-align:center;
}
.style8 {
font-family: "宋体";
font-weight: bold;
}
.style9 {color: #3169b5; font-size: 12pt;}
-->
</style>
</head>
<body>
<!--#include file="inc/inc_top.asp"-->
<!--#include file="inc/emptyline.asp"-->
<table cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="ABC6E9">
<tr>
<td bgcolor="#ABC6E9" height="30"><span class="style8"> <span class="style9">搜索工作</span></span></td>
</tr>
<tr>
<td>
<!--#include file="inc/search_job.asp"-->
</td>
</tr>
</table>
</td>
<td width="7"></td>
<td width="591" valign="top">
<!--职位列表-->
<table width="100%"cellpadding="0" cellspacing="0">
<tr bgcolor="3169B5">
<td colspan="3">
<table width="100%"cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="left" width="30%"><img src="inc/angle1.jpg"></td>
<td height="20" class="style6" align="center" width="40%">职位列表</td>
<td valign="top" align="right" width="30%"><img src="inc/angle2.jpg"></td>
</tr>
</table>
</td>
<tr bgcolor="E4E4E4" class="style4">
<td height="20" align="center" width="60%">招聘职位</td>
<td height="20" align="center" width="22%">发布公司</td>
<td height="20" align="center" width="18%">发布日期</td>
</tr>
<td colspan="3">
<%
dim myconn
set myconn = open_conn
const adOpenStatic=3
dim rs
set rs = server.createobject("ADODB.Recordset")
dim sql
'sql="select enrol_id,enrol_type,enrol_trade,enrol_function,enrol_time,com_name from enrol,coms order by enrol_id"
sql="select * from enrol order by enrol_id"
rs.open sql,myconn,adOpenStatic
if rs.eof then'判断是否有符合要求的数据
'没有符合数据的情况下执行的内容
H = "<table align='center' width='100%' cellpadding=0 cellspacing=0>"
H = H & "<tr>"
H = H & "<td align='center' height='20'>"
H = H & "没有纪录"
H = H & "</td>"
H = H & "</tr>"
H = H & "</table>"
response.Write H
close_object(rs)
close_object(myconn)
'没有符合数据的情况下执行的内容 end
else
rs.pagesize=20
dim pageno
pageno=cint(request.querystring("pageno"))
if pageno<1 then
pageno=1
end if
if pageno>rs.pagecount then
pageno=rs.pagecount
end if
rs.absolutepage=pageno
dim i
response.write "<table cellpadding='0' cellspacing='0' width='100%'>"
response.write "<form name=myform action='.asp' method=post>"
dim sql2,rs2
dim myconn2,connstr2
for i=1 to rs.pagesize
if rs.eof then
exit for
end if
sql2 = "select * from coms where com_id="&rs("com_id")&""
set rs2 = myconn.execute(sql2)
if i mod 2 = 0 then
response.write "<tr bgcolor='#E4E4E4'>"
else
response.write "<tr>"
end if
dim H
H = "<td align='left' width='60%' height='20'>"
H = H & "<a href=lookjob.asp?enrol_id="
H = H & rs("enrol_id")
H = H & "&com_name="
H = H & rs2("com_name")
H = H & " target='_blank'>"
H = H & rs("enrol_function")
H = H & "</a>"
H = H & "</td>"
H = H & "<td align='center' width='22%' height='20'>"
H = H & rs2("com_name")
H = H & "</td>"
H = H & "<td align='center' width='18%' height='20'>"
H = H & rs("enrol_time")
H = H & "</td>"
response.Write H
rs.movenext
rs2.close
next
response.write "</form>"
response.write "</table>"
response.Write "<table cellpadding='0' cellspacing='0' width='100%'>"
response.write "<form method='get' action='job.asp'>"
response.Write "<tr>"
response.Write "<td>"
response.write "招聘信息总数"&rs.recordcount&"条"
response.Write "</td>"
response.Write "<td height=20 align=right>"
if pageno<>1 then
response.write "<a href='job.asp?pageno=1'>首页 </a>"
response.write "<a href='job.asp?pageno="&pageno-1&"'>上一页 </a>"
else
response.write "首页 "
response.write "上一页 "
end if
if pageno<>rs.pagecount then
response.write "<a href='job.asp?pageno="&pageno+1&"'>下一页 </a>"
response.write "<a href='job.asp?pageno="&rs.pagecount&"'>最后一页</a>"
else
response.write "下一页 "
response.write "最后一页"
end if
response.write " 转到<input type=text name=pageno size=2 >页/共"&rs.pagecount&"页"
rs.close
response.Write "</td>"
response.Write "</tr>"
response.write "</form>"
response.Write "</table>"
set rs = nothing
close_object myconn
end if
%>
</td>
</tr>
</table>
<!--职位列表 end-->
</td>
</tr>
</table>
<!--#include file="inc/emptyline.asp"-->
<!--#include file="inc/inc_foot.asp"-->
</body>
</html>