关于对后台[待审文章][待审评论][待审会员]的一点重要改进(2)_动易Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

set MDB_Article_ADO=nothing
if vChannelID = vChannelIDAry(x) then
vCommentCount(x) = vCommentCount(x) 1
else
for y = 0 to x
if vChannelID = vChannelIDAry(y) then
exit for
end if
next
x = y
Set MDB_Channel_ADO=Server.CreateObject("ADODB.Recordset")
MDB_Channel_LinkStr="select * from PE_Channel where ChannelID=" &vChannelID &""
MDB_Channel_ADO.open MDB_Channel_LinkStr,Conn,1,1
vChannelIDAry(x) = MDB_Channel_ADO("ChannelID")
vChannelName(x) = MDB_Channel_ADO("ChannelName")
vCommentCount(x) = vCommentCount(x) 1
MDB_Channel_ADO.close
set MDB_Channel_ADO=nothing
end if
MDB_Comment_ADO.movenext
loop
MDB_Comment_ADO.close
set MDB_Comment_ADO=nothing
%>
<%
dim vCommentCount1
vCommentCount1 = 0
for y=1 to x
vCommentCount1 = vCommentCount1 vCommentCount(y)
next
if vCommentCount1 > 0 then
%>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td <td class="topbg" align="center"><span class="Glow">各 频 道 未 审 评 论 篇 数</span></td>
<td </tr>
<tr>
<td <td>
<%
for y=1 to x
response.write "<a href='Admin_Comment.asp?ChannelID=" & vChannelIDAry(y) & "'>" & vChannelName(y) & "</a>" & "[<span style='color:#ff0000'>" & vCommentCount(y) & "</span>] "
next
%>
</td>
<td </tr>
</table>
<%
end if
%>
<%
Set MDB_User_ADO = Server.CreateObject("ADODB.Recordset")
MDB_User_LinkStr = "select * from PE_User where GroupID >=7 and GroupID <=8 order by GroupID"
MDB_User_ADO.open MDB_User_LinkStr,Conn,1,1
vNoApproveUser = 0
vTestUser = 0
do while not MDB_User_ADO.eof
if MDB_User_ADO("GroupID") = 7 then
vNoApproveUser = vNoApproveUser 1
end if
if MDB_User_ADO("GroupID") = 8 then
vTestUser = vTestUser 1
end if
MDB_User_ADO.movenext
loop
MDB_User_ADO.close
set MDB_User_ADO=nothing
%>
<%
if vNoApproveUser vTestUser > 0 then
%>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td <td class="topbg" align="center"><span class="Glow">待 审 批 及 未 验 证 会 员 情 况</span></td>
<td </tr>
<tr>
<td <td>
<%
if vNoApproveUser > 0 then
response.write "<a href='Admin_User.asp?SearchType=11&GroupID=7'>" & "待审批会员" & "</a>" & "[<span style='color:#ff0000'>" & vNoApproveUser & "</span>] "
end if
if vTestUser > 0 then
response.write "<a href='Admin_User.asp?SearchType=11&GroupID=8'>" & "未验证会员" & "</a>" & "[<span style='color:#ff0000'>" & vTestUser & "</span>] "
end if
%>

</td>
<td </tr>
</table>

查看更多 动易Cms教程  动易Cms模板

来源:模板无忧//所属分类:动易Cms教程/更新时间:2006-12-24
相关动易Cms教程