📄 checkcontent.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.50
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn 演示站点:test.cooin.com
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
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"),"P010000") then Call ReturnError()
Dim NewsID,DownLoadID,OperateType,TempStr,NewsOrDown
OperateType = Request("OperateType")
DownLoadID = Request("DownLoadID")
NewsID = Cstr(Request("NewsID"))
If NewsID<>"" then
if Not JudgePopedomTF(Session("Name"),"P010504") then Call ReturnError()
NewsOrDown="新闻"
End If
If DownLoadID<>"" then
if Not JudgePopedomTF(Session("Name"),"P010703") then Call ReturnError()
NewsOrDown="下载"
End If
if NewsID <> "" OR DownLoadID <> "" then
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="../../../CSS/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="7%" height="10"> </td>
<td width="28%" rowspan="3"><div align="center"><img src="../../Images/Question.gif" width="39" height="37"></div></td>
<td width="59%"> </td>
<td width="6%" height="10"> </td>
</tr>
<tr>
<td> </td>
<td>您确定要<%=TempStr%><%=NewsOrDown%>?</td>
<td> </td>
</tr>
<tr>
<td height="2"> </td>
<td height="2"> </td>
<td height="2"> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"><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>
<td> </td>
</tr>
<tr>
<td height="10"> </td>
<td height="10" colspan="2"> </td>
<td height="10"> </td>
</tr>
</table>
</form>
</body>
</html>
<%
if Request.Form("action") = "trues" then
if NewsID <> "" Then
NewsID = Replace(Replace(Replace(Replace(Replace(NewsID,"'",""),"and",""),"select",""),"or",""),"union","")
NewsID = Replace(NewsID,"***","','")
if OperateType = "UnCheck" then
Conn.Execute("Update FS_News Set AuditTF=0 where NewsID in ('" & NewsID & "')")
elseif OperateType = "Check" then
'response.write "Update News Set AuditTF=1 where NewsID in ('" & NewsID & "')"
'response.end
Conn.Execute("Update FS_News Set AuditTF=1 where NewsID in ('" & NewsID & "')")
End if
end if
if DownLoadID <> "" Then
DownLoadID = Replace(Replace(Replace(Replace(Replace(DownLoadID,"'",""),"and",""),"select",""),"or",""),"union","")
DownLoadID = Replace(DownLoadID,"***","','")
if OperateType = "UnCheck" then
Conn.Execute("Update FS_DownLoad Set AuditTF=0 where DownLoadID in ('" & DownLoadID & "')")
elseif OperateType = "Check" then
Conn.Execute("Update FS_DownLoad Set AuditTF=1 where DownLoadID in ('" & DownLoadID & "')")
End if
end if
Response.Write("<script>window.close();</script>")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -