<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="inc/page.asp"-->
<%
tid = int(Request("tid"))

word=trim(request("word"))
xcid=request("xcid")
canshu1="tid="&tid&""
canshu3="word="&word&"&xcid="&xcid&"&"&canshu1&""
canshu2="page="&page&"&"&canshu3&""

action=request.QueryString("action")
select case action
case "cn1"
 call editbook("lookcn=0")
case "cn2"
 call editbook("lookcn=1")
case "en1" 
 call editbook("looken=0")
case "en2"
 call editbook("looken=1")
case "utf1"
 call editbook("lookutf=0")
case "utf2"
 call editbook("lookutf=1")
case "del" 
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='?"&canshu1&"'</script>"
case "order" 
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 select
%>
<!--#include file="top.asp"-->
<div id="container">
<div class="top_but">
 <li class="left"></li>
 <li><a href="job_add.asp?tid=<%=tid%>" onClick="parent.frmleft.bb(3,10,'c')"><img src="images/but_1.gif" alt="添加" ></a></li>
 <li><img src="images/but_2.gif" alt="排序" style="cursor:hand"  onclick="form1.action='?action=order&<%=canshu2%>';form1.submit();"></li>
 <li><img src="images/but_3.gif" alt="删除" style="cursor:hand"  onclick="form1.action='?action=del&<%=canshu2%>'; ConfirmDel() "></li>
 <li><a href="?tid=<%=tid%>"><img src="images/but_7.gif" alt="全部" ></a></li>
 <li><img src="images/but_8.gif" alt="刷新" style="cursor:hand" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" style="cursor:hand;" onClick="window.print() "/></li>
</div>
<%
sql= "select * from com_job  order by id desc"
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1                     
if rs.eof and rs.bof then                     
response.write conn_eof
else 
page1("20")
i=1	

%>
<%if word<>"" then%><div class="tablesearch">您搜索的关键字是：<font color=#ff6600><%=word%></font>，共搜索到 <%=rs.recordcount%> 条信息。 </div><%end if%>
<form name="form1" id="form1" method="post" action="?<%=canshu2%>">
<div class="tableAll titlebgcolor">
 <li style="width:30px"><input name="chkall" type="checkbox" id="chkall" value="select" onClick="CheckAll(this.form);" ></li>
 <li style="width:50px;">操作</li>
 <li style="width:300px;">招聘对象（点击修改）</li>
 <li style="width:120px;">招聘人数</li>
 <li style="width:120px;">招聘时间</li>
 <li style="width:100px;">发布时间</li>
 <li style="width:40px;"><%=language_cn%></li>
 <%if Const_webEn =1 then%><li style="width:40px;"><%=language_en%></li><%end if%>
 <li style="width:50px;">排序</li>
</div>
<%
while not rs.eof and i<=rs.pagesize
if titlecn="" then
if titleen="" then
if titleutf="" then
titlename="无标题"
else
titlname=titleutf
end if
else
titlename=titleen
end if
else
titlename=titlecn
end if
titlename=replace(titlename,word,"<font color=#ff6600>"&word&"</font>")
%>
<div class="tableAll trbgcolor">
 <li style="width:30px;"><input type="checkbox" name="ID"  value="<%=rs("id")%>"></li>
 <li style="width:50px;"><a href="job_modify.asp?id=<%=rs("id")%>&<%=canshu2%>">编辑</a></li>
 <li style="width:300px"><%=rs("HrNamecn")%></li>
 <li style="width:120px;"><%=rs("HrRequireNum")%></li>
 <li style="width:120px;"><%=rs("Hrtime")%></li>
 <li style="width:100px"><%=rs("HrAddresscn")%></li>
  <li style="width:40px;"><%if rs("lookcn")=1 then%><a href="?action=cn1&id=<%=rs("id")%>&<%=canshu2%>" title="点击更改显示状态"><font color=green>√</font></a>
 <%else%><a href="?action=cn2&id=<%=rs("id")%>&<%=canshu2%>" title="点击更改显示状态"><font color=#999999>×</font></a><%end if%></li>
<%if Const_webEn =1 then%>
 <li style="width:40px;"><%if rs("looken")=1 then%><a href="?action=en1&id=<%=rs("id")%>&<%=canshu2%>" title="点击更改显示状态"><font color=green>√</font></a>
 <%else%><a href="?action=en2&id=<%=rs("id")%>&<%=canshu2%>" title="点击更改显示状态"><font color=#999999>×</font></a><%end if%></li>
 <%end if%>
 <li style="width:50px"><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>
</div>
<%i=i+1
rs.movenext
wend%>
</form>
<div id="divStayTop" class="bottom titlebgcolor">
<%call page2(5,""&canshu3&"&")%>
</div>
<%
end if
rs.close
set rs=nothing
%>
	
</div>

<%
function editbook(b_name)
id=request("id")
conn.execute("update com_job set "&b_name&" where id="&id)
'response.Write "<script>location='?"&canshu2&"'</script-->"
End Function
%>
<!--#include file="footer.asp"-->