Repository navigation
Expand file tree
/
Copy pathsubsearch_talent.asp
More file actions
222 lines (200 loc) · 6.61 KB
/
Copy pathsubsearch_talent.asp
File metadata and controls
222 lines (200 loc) · 6.61 KB
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
218
219
220
221
222
</body>
</html>
<!--#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="40%" colspan="2">求职意向</td>
</tr>
<td colspan="3">
<%
dim enrol_type,trade_id,na_id
enrol_type = request.Form("enrol_type")
trade_id = request.Form("trade_id")
na_id = request.Form("na_id")
dim sql4,sql5
dim myconn4
set myconn4 = open_conn
dim rs4,rs5
sql4 = "select * from trade where trade_id = '"&trade_id&"'"
set rs4 = myconn4.execute(sql4)
sql5 = "select * from nationality where na_id = '"&na_id&"'"
set rs5 = myconn4.execute(sql5)
dim myconn
set myconn = open_conn
const adOpenStatic=3
dim rs
set rs = server.createobject("ADODB.Recordset")
dim sql
sql="select * from users where user_habitus='"&enrol_type&"' and user_trade='"&rs4("trade_name")&"' and user_nationality='"&rs5("na_name")&"'"
'response.Write sql
'response.end
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=15
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 "<form name=myform action='subrecruit.asp' method=post>"
response.write "<table align=center width='100%' cellpadding=0 cellspacing=0>"
for i=1 to rs.pagesize
if rs.eof then
exit for
end if
if i mod 2 = 0 then
response.write "<tr bgcolor='#d5d5d5'>"
else
response.write "<tr>"
end if
if session("auth_id") = "3" then
response.Write "<td align='left' width='20' height='20'>"
response.Write "<input type='checkbox' value="&rs("user_id")&" name=user_id title="&rs("user_name")&">"
response.write "</td>"
end if
response.Write "<td align='left' width='60%' height='20'>"
response.write "<a href='looktalent.asp?userno="&rs("user_id")&"' target='_blank'>"&rs("real_name")&"</a><br>"
response.write "</td>"
response.Write "<td align='center' width='40%'>"
response.write rs("user_trade")
response.write "</td>"
response.write "</tr>"
rs.movenext
next
response.write "</table>"
response.write "</form>"
response.Write "<table cellpadding='0' cellspacing='0' width='100%'>"
response.write "<form method='get' action='talent.asp'>"
response.Write "<tr>"
response.Write "<td>"
if session("auth_id") = "3" then
response.Write "<input name=button type=button value=发送面试邀请 onClick='sub_recruit()'>"
end if
response.write "库中人才总数"&rs.recordcount&"条"
response.Write "</td>"
response.Write "<td height=20 align=right>"
if pageno<>1 then
response.write "<a href='talent.asp?pageno=1'>首页 </a>"
response.write "<a href='talent.asp?pageno="&pageno-1&"'>上一页 </a>"
else
response.write "首页 "
response.write "上一页 "
end if
if pageno<>rs.pagecount then
response.write "<a href='talent.asp?pageno="&pageno+1&"'>下一页 </a>"
response.write "<a href='talent.asp?pageno="&rs.pagecount&"'>最后一页</a>"
else
response.write "下一页 "
response.write "最后一页"
end if
response.write " 转到<input type=text name=pageno size=2 >页/共"&rs.pagecount&"页"
response.Write "</td>"
response.Write "</tr>"
response.write "</form>"
response.Write "</table>"
close_object(rs)
close_object(myconn)
end if
%>
<!--查询结果 end-->
</td>
</tr>
</table>
<!--职位列表 end-->
</td>
</tr>
</table>
<!--#include file="inc/emptyline.asp"-->
<!--#include file="inc/inc_foot.asp"-->
</body>
</html>