<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="inc/page.asp"-->
<!--#include file="top.asp"-->
<%
word=trim(request("word"))
xcid=request("xcid")
canshu1="tid="&tid&"&filename="&escape(filename)&""
canshu3="word="&word&"&xcid="&xcid&"&"&canshu1&""
canshu2="page="&page&"&"&canshu3&""

if request("but")="del" then
id=replace(request("id")," ","")
id=split(id,",")
for i=0 to UBound(id)
conn.execute("delete from com_job where id="&id(i))
next
response.Write "<script>location='manage_job.asp'</script>"

elseif request("but")="cn1" then
id=request("id")
conn.execute("update com_job set lookcn=0 where id="&id)
response.Write "<script>location='?"&canshu2&"'</script>"

elseif request("but")="cn2" then
id=request("id")
conn.execute("update com_job set lookcn=1 where id="&id)
response.Write "<script>location='?"&canshu2&"'</script>"

elseif request("but")="en1" then
id=request("id")
conn.execute("update com_job set looken=0 where id="&id)
response.Write "<script>location='?"&canshu2&"'</script>"

elseif request("but")="en2" then
id=request("id")
conn.execute("update com_job set looken=1 where id="&id)
response.Write "<script>location='?"&canshu2&"'</script>"

elseif request("but")="big1" then
id=request("id")
conn.execute("update com_job set lookutf=0 where id="&id)
response.Write "<script>location='?"&canshu2&"'</script>"

elseif request("but")="big2" then
id=request("id")
conn.execute("update com_job set lookutf=1 where id="&id)
response.Write "<script>location='?"&canshu2&"'</script>"

elseif request("but")="order" then
pi=REQUEST("pi")
pi=REPLACE(pi,", ",",")
SQL5="SELECT * from com_job where id IN ("&pi&")"
SET RS5=SERVER.CREATEOBJECT("ADODB.RECORDSET")
rs5.open sql5,conn,1,3
while not rs5.eof 
RS5("pid")=REQUEST("pid"&RS5("id"))
RS5.UPDATE
RS5.MOVENEXT
wend
response.Write "<script>location='?"&canshu2&"'</script>"
end if
%>
<div id="container">
<div class="tableAll tableBorder">招聘管理</div>
<div class="tableAll titlebgcolor">
  <form name="formsearch" method="post" action="?">
  <li style="width:23%"><input name="word" type="text" id="word" > <input class=button type="submit" name="Submit22" value="搜索" ></li>
  <li style="width:27%">[ <a href="?">全部</a> ]</li>
  <li style="width:50%"><a href="manage_jobmodify.asp"><font color="#990000">&gt;&gt;  添加人才招聘</font></a></li>
</form>
</div>
<%
if word<>"" then
sql= "select * from com_job where titlecn like'%"&word&"%' order by pid asc,id desc"
elseif xcid<>"" then
sql= "select * from com_job where anclassid="&xcid&" order by pid asc, id desc"
else
sql= "select * from com_job order by pid asc, id desc"
end if
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1                     
if rs.eof and rs.bof then                     
response.write "暂无内容"
else 
page1("22")
i=1	
%>
<div class="tableAll titlebgcolor">
 <li style="width:34%">人才标题（点击修改）</li>
 <li style="width:10%">人数</li>
 <li style="width:10%">性别</li>
 <li style="width:10%">添加</li>
 <li style="width:10%">版本显示</li>
 <li style="width:15%">发布时间</li>
 <li style="width:5%">排序</li>
 <li style="width:5%">选择</li>
</div>
<form name="form1" id="form1" method="post" action="?<%=canshu2%>">
<%
do while not rs.eof and i<=rs.pagesize
%>
<div class="tableAll trbgcolor">
 <li style="width:34%"><a href="manage_jobmodify.asp?post=modify&id=<%=rs("id")%>&<%=canshu2%>"><%=rs("titlecn")%></a></li>
 <li style="width:10%"><%=rs("job_01")%>人</li>
 <li style="width:10%"><%
 if rs("sex")=1 then
 response.write("男")
 elseif rs("sex")=2 then
 Response.Write("女")
 else
 Response.Write("不限")
 end if%></li>
 <li style="width:10%"><%=rs("adminuser")%></li>
 <li style="width:10%"><%if rs("lookcn")=1 then Response.Write("简") end if
	  if rs("looken")=1 then Response.Write("英") end if
	  if rs("lookutf")=1 then Response.Write("俄") end if%></li>
 <li style="width:15%"><%=rs("date")%></li>
 <li style="width:5%"><input name="pid<%=rs("id")%>" type="text" id="pid<%=rs("id")%>" value="<%=rs("pid")%>" size="3"> 
<input name="pi" type="hidden" id="pi" value="<%=rs("id")%>"></li>
 <li style="width:5%"><input type="checkbox" name="ID"  value="<%=rs("id")%>"></li>
</div>
<%i=i+1
rs.movenext
loop
%>
<div class="butAll titlebgcolor">
<li style="width:70%"><%call page2(5,""&canshu3&"&")%></li>
<li style="width:30%"><div align="right">全选 
<input name="chkall" type="checkbox" id="chkall" value="select" onClick="CheckAll(this.form)" >
<select name="but" >
<option selected value="">请选择...</option>
<option value="order"><%=filename%>排序</option>
<option value="del">删除<%=filename%></option>
</select>
<input type="submit" name="Submit" value="确定" class=button ></div></li>
</div>
</form>
<%
end if
rs.close
set rs=nothing
%>
</div>
<!--#include file="footer.asp"-->