<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/function.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p21")
'''''''''''''''''''''''''''''''''''''''''''''''
BeginTime=Timer
dim act,newsidStr,newsidArr,newsUrl,isoutlink
if not isempty(request.Form("act")) then
	act=request.Form("act")
else
	response.Write("请选择操作方式")
	response.Write("<a href=""#"" onClick=""javascript:history.back();"">返回</a>")
	response.End()
end if
if not isempty(request.Form("newsid")) then
	newsidStr=request.Form("newsid")
else
	response.Write("请选择需要操作的软件记录")
	response.Write("<a href=""#"" onClick=""javascript:history.back();"">返回</a>")
	response.End()
end if
newsidArr=split(newsidStr,",")
Select Case LCase(act)
	Case "check"
		for i=0 to ubound(newsidArr)
			'response.Write(newsidArr(i))
			conn.execute("update t_info set IsCheck=1 where id="&newsidArr(i))
			'response.Write("<iframe src=""info_reset_htm.asp?id="&newsidArr(i)&""" height=""0"" width=""0""></iframe>")
		next
		call ActionRecord(UserName,"审核信息",ubound(newsidArr)+1,"分类信息审核")
		response.Write("<p><br><br></p><p align=""center"">批量审核成功！<a href="""&request.ServerVariables("HTTP_REFERER")&""">返回继续操作</a></p>")
		'response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "nocheck"
		for i=0 to ubound(newsidArr)
			response.Write(newsidArr(i))
			conn.execute("update t_info set IsCheck=0 where id="&newsidArr(i))
		next
		call ActionRecord(UserName,"取消审核信息",ubound(newsidArr)+1,"分类信息取消审核")
		response.Write("批量取消审核成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "notrecomme"
		for i=0 to ubound(newsidArr)
			response.Write(newsidArr(i))
			conn.execute("update t_info set IsHot=0 where id="&newsidArr(i))
		next
		call ActionRecord(UserName,"取消热点信息",ubound(newsidArr)+1,"分类信息取消热点操作")
		response.Write("批量取消热点成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "recomme"
		for i=0 to ubound(newsidArr)
			response.Write(newsidArr(i))
			conn.execute("update t_info set IsHot=1 where id="&newsidArr(i))
		next
		call ActionRecord(UserName,"设置热点信息",ubound(newsidArr)+1,"分类信息热点操作")
		response.Write("批量热点成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "nottop"
		for i=0 to ubound(newsidArr)
			response.Write(newsidArr(i))
			conn.execute("update t_info set IsTop=0 where id="&newsidArr(i))
		next
		call ActionRecord(UserName,"取消置顶",ubound(newsidArr)+1,"分类信息取消置顶")
		response.Write("批量取消置顶成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "top"
		for i=0 to ubound(newsidArr)
			response.Write(newsidArr(i))
			conn.execute("update t_info set IsTop=1 where id="&newsidArr(i))
		next
		call ActionRecord(UserName,"置顶信息",ubound(newsidArr)+1,"分类信息置顶操作")
		response.Write("批量置顶成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "remove"
		dim toCatalogId,toParentId
		toCatalogId=Clng(request.Form("toCatalogId"))
		for i=0 to ubound(newsidArr)
			response.Write(newsidArr(i))
			conn.execute("update t_info set CatalogId="&toCatalogId&" where id="&newsidArr(i))
		next
		call ActionRecord(UserName,"移动信息",ubound(newsidArr)+1,"分类信息移动操作")
		response.Write("批量移动软件成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
	Case "del"
		for i=0 to ubound(newsidArr)			
			conn.execute("delete from t_info where id="&newsidArr(i))	
		next
		call ActionRecord(UserName,"删除信息",ubound(newsidArr)+1,"分类信息删除操作")
		response.Write("批量删除成功！")		
		response.Redirect(request.ServerVariables("HTTP_REFERER"))
end Select
%>
<html>
<head>
<title>新闻操作</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
	font-size:12px;
}
-->
</style>
</head>
<body>
<%
  	'set rs=server.createobject("adodb.recordset")
  	'rs.open "select count(*) AS co from news where classid="&classid,conn,3,1
%>
</body>
</html>
<%

call connclose()
%>
执行时间：<%=CStr(FormatNumber((Timer-BeginTime)*1000,2))& "毫秒"%>