📄 admin_recount.asp
字号:
<!--#include file="inc/config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="inc/error.asp"-->
<LINK
href="inc/djcss" type=text/css rel=StyleSheet>
<body bgcolor="#fef4d9" onUnload="leave()">
<%
dim founderr,errmsg
founderr=false
errmsg=""
if session("adminlogin")<>sessionvar then
founderr=true
errmsg=errmsg+"<br>"+"<li>你尚未登录,或者超时了!请<a href='admin.asp'>重新登录</a>!"
call diserror()
else
dim newscount,articlecount,softcount,cscount,jscount,djcount
sql="select news_id from news"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
newscount=rs.recordcount
sql="select art_id from art"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
articlecount=rs.recordcount
sql="select soft_id from soft"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
softcount=rs.recordcount
sql="select cs_id from coolsites"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
cscount=rs.recordcount
sql="select js_id from js"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
jscount=rs.recordcount
sql="select dj_id from dj"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
djcount=rs.recordcount
sql="select * from allcount"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
rs("newscount")=newscount
rs("articlecount")=articlecount
rs("softcount")=softcount
rs("coolsitescount")=cscount
rs("jscount")=jscount
rs("djcount")=djcount
rs.update
rs.close
set rs=nothing
closedatabase
%>
<table width="60%" border="0" cellspacing="1" cellpadding="0"align="center" bgcolor="#293863">
<tr>
<td align="center" bgcolor="#FFFFFF" height="66" class="chinese">>更新成功<<br>
<a href="admin.asp">返回管理首页</a></td>
</tr>
</table>
<%end if%>
<script LANGUAGE="JavaScript">
<!-- Begin
function leave() {
window.open('http://www.87q.com','','toolbar=yes,menubar=yes,location=yes');
}
// End -->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -