<%@ LANGUAGE=VBScript CodePage=65001%>
<% response.charset="utf-8" %>
<% session.codepage=65001 %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="../inc/access.asp"  -->
<!-- #include file="inc/functions.asp" -->
<!-- #include file="../inc/en_x_to_html/index_to_html.asp" -->
<!-- #include file="../inc/en_x_to_html/Recruit_list_to_html.asp" -->
	<%
Call header()
%>
<%
'招聘职位内容页文件夹获取
set rs_1=server.createobject("adodb.recordset")
sql="select FileName,FolderName from web_Models_type where [id]=32"
rs_1.open(sql),cn,1,1
if not rs_1.eof and rs_1("FolderName")<>"" then
CategoryContent_FolderName="/"&rs_1("FolderName")
end if
rs_1.close
set rs_1=nothing
%>

	<table cellpadding='3' cellspacing='1' border='0' class='tableBorder' align=center>
	<tr>
	  <th width="100%" height=25 class='tableHeaderText'>审核文章</th>
	
	<tr><td height="400" valign="top"  class='forumRow'><br>
	    <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25" bgcolor="#B1CFF8"><div align="center"></div></td>
          </tr>
          <tr>
            <td height="100">
			<%page=request.querystring("page")
			act=request.querystring("act")
			keywords=request.querystring("keywords")
			article_id=cint(request.querystring("id"))
			set rs_v=server.createobject("adodb.recordset")
sql="select id,cid,view_yes,file_path from en_web_info where id="&article_id&""
rs_v.open(sql),cn,1,3
FilePath=rs_v("file_path")
ClassID=rs_v("cid")
if rs_v("view_yes")=0 then
rs_v("view_yes")=1
a_id=rs_v("id")
'call article_to_html(a_id)
else
rs_v("view_yes")=0
'先判断文件是否存在，否则删除
Set fso=Server.CreateObject("Scripting.FileSystemObject")
If fso.FileExists(Server.MapPath(CategoryContent_FolderName&"/"&FilePath)) then
FilePath=CategoryContent_FolderName&"/"&FilePath
call DelFile(FilePath)
end if
end if
rs_v.update
rs_v.close
set rs_v=nothing

call Recruit_list_to_html(ClassID)

response.Write "<script language='javascript'>alert('修改成功！');location.href='en_info_list.asp?page="&page&"&act="&act&"&keywords="&keywords&"';</script>"
			%></td>
          </tr>
        </table>
	    </td>
	</tr>
	</table>


<%
Call DbconnEnd()
 %>