⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_recount.asp

📁 南鄂电子商务学校网: 学校概况、校园动态、师资力量、教学成果、师生论坛、友情链接
💻 ASP
字号:
<!--#include file="config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="error.asp"-->
<%
dim founderr,errmsg
founderr=false
errmsg=""

if session("adminlogin")<>sessionvar then
  founderr=true
  errmsg=errmsg+"<br>"+"<li>你尚未登录,或者超时了!请<a href='javascript:window.close()'>关闭窗口</a>!"
  call diserror()
else
  dim summarycount,newscount,achievecount,softcount,teachcount,flcount
  
  sql="select summary_id from summary"
  set rs=server.createobject("adodb.recordset")
  rs.open sql,conn,1,1
  summarycount=rs.recordcount

  sql="select news_id from news"
  set rs=server.createobject("adodb.recordset")
  rs.open sql,conn,1,1
  newscount=rs.recordcount

  sql="select achieve_id from achieve"
  set rs=server.createobject("adodb.recordset")
  rs.open sql,conn,1,1
  achievecount=rs.recordcount
  
  sql="select teach_id from teach"
  set rs=server.createobject("adodb.recordset")
  rs.open sql,conn,1,1
  teachcount=rs.recordcount

  sql="select fl_id from friendlink"
  set rs=server.createobject("adodb.recordset")
  rs.open sql,conn,1,1
  flcount=rs.recordcount
  
  sql="select * from allcount"
  set rs=server.createobject("adodb.recordset")
  rs.open sql,conn,1,3
  rs("summarycount")=summarycount
  rs("newscount")=newscount
  rs("achievecount")=achievecount
  rs("teachcount")=teachcount
  rs("friendlinkcount")=flcount
  rs.update
  rs.close
  set rs=nothing
  closedatabase
%>
<html>
<head>
<title>首页统计更新</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE TYPE="text/css">
<!--
BODY {background-image: URL(images/background/bg.gif);
background-position: center;
background-attachment: fixed;
}
TD
{
    FONT-SIZE: 12px;
    COLOR: #0033FF;
}
A:link {
	COLOR: #0000FF; 
	TEXT-DECORATION: none; 
	font-family: "宋体"; 
	font-size: 9pt
}
A:visited {
	COLOR: #0000FF; 
	TEXT-DECORATION: none; 
	font-family: "宋体"; 
	font-size: 9pt
}
A:active {
	COLOR: #0000FF; 
	TEXT-DECORATION: blink; 
	font-family: "宋体"; 
	font-size: 9pt
}
A:hover {
	COLOR: #FF0000; 
	TEXT-DECORATION: none; 
	font-family: "宋体"; 
	font-size: 9pt
}
-->
</STYLE>
</head>
<body leftMargin=0 topMargin=0 rightMargin=0 marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellspacing="1" cellpadding="0"align="center" bgcolor="#293863">
  <tr>
    <td align="center" bgcolor="#FFFFFF" class="chinese">&gt;更新成功&lt;<br>
      <a href="javascript:window.close()">关闭窗口</a></td>
  </tr>
</table>
</body>
</html>
<%end if%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -