<% Option Explicit %>
<!--#include file="../../Inc/Const.asp" -->
<!--#include file="../../Inc/Cls_DB.asp" -->
<%
'==============================================================================
'软件名称：风讯网站信息管理系统
'当前版本：Foosun Content Manager System 2.0 
'最新更新：2004.12
'==============================================================================
'商业注册联系：028-85098980-601,602 技术支持：028-85098980-606、607,客户支持：608
'产品咨询QQ：159410,655071,66252421
'技术支持:所有程序使用问题，请提问到bbs.foosun.net我们将及时回答您
'程序开发：风讯开发组 & 风讯插件开发组
'论坛支持：风讯在线论坛(http://bbs.foosun.net)
'官方网站：www.Foosun.net  演示站点：test.cooin.com    
'网站建设专区：www.cooin.com
'==============================================================================
'免费版本请在新闻首页保留版权信息，并做上本站LOGO友情连接
'==============================================================================
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../Inc/Session.asp" -->
<!--#include file="../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P139") then Call ReturnError()
    dim DownLoadID,DownCheckObj,OperateType,TempStr
		OperateType = Request("OperateType")
	    if Request("DownLoadID")<>"" and OperateType <> "" then
		   DownLoadID = Cstr(Request("DownLoadID"))
		   if OperateType = "UnCheck" then
		   		TempStr = "撤消审核"
		   else
		   		TempStr = "审核"
		   end if
		else
			 Response.Write("<script>alert(""参数传递错误"");window.close();</script>")
			 response.end
		end if 
%>
<html>
<head>
<link href="../Inc/ModeWindow.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>下载审核</title>
</head>

<body leftmargin="0" topmargin="0">
<form action="" name="JSDellForm" method="post">
<table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr> 
    <td width="33%"><div align="center"><img src="../Images/Question.gif" width="39" height="37"></div></td>
    <td width="67%">您确定要<%=TempStr%>所选下载?</td>
    </tr>
  <tr> 
    <td colspan="3"><div align="center"> 
          <input type="submit" name="Submit" value=" 确 定 ">
          <input type="hidden" name="action" value="trues">
          <input type="button" name="Submit2" value=" 取 消 " onClick="window.close();">
      </div></td>
    </tr>
</table>
</form>
</body>
</html>
<%
  if request.Form("action")="trues" then
  	Dim CDArray,CD_i
	CDArray = Array("")
	CDArray = Split(DownLoadID,",")
	if OperateType = "UnCheck" then
		For CD_i = 0 to UBound(CDArray)
		 Conn.Execute("Update DownLoad Set AuditTF=0 where DownLoadID='"&CDArray(CD_i)&"'")
		Next
	elseif  OperateType = "Check" then
		For CD_i = 0 to UBound(CDArray)
		 Conn.Execute("Update DownLoad Set AuditTF=1 where DownLoadID='"&CDArray(CD_i)&"'")
		Next
	End if
	response.write("<script>dialogArguments.location.reload();window.close();</script>")
	response.end
  end if
%>