<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<!--#include file="admin.asp"-->
<%
function counts(tab,tim)
set rs=server.CreateObject("adodb.recordset")
if tim=0 then
sql="select id from "&tab
end if
if tim=1 then
sql="select * from "&tab&" where format(adddate,'yyyy-mm-dd')=format(date(),'yyyy-mm-dd')"
end if
if tim=2 then
sql="select * from "&tab&" where format(adddate,'yyyy-mm-dd')=format(date()-1,'yyyy-mm-dd')"
end if
rs.open sql,conn,1,1
counts=rs.recordcount
rs.close
set rs=nothing
end function
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>

<body id="page">
<h2 class="title">网站信息</h2>
<table width="99%" border="0" align="center" class="counts">
  <tr>
     <td>新闻资讯：共(<span style="color:#FF0000"><%=counts("cw_news",0)%></span>) 今(<span style="color:#009900"><%=counts("cw_news",1)%></span>)  昨(<span style="color:#009900"><%=counts("cw_news",2)%></span>)</td>
	 <td>分类信息：共(<span style="color:#FF0000"><%=counts("cw_info",0)%></span>) 今(<span style="color:#009900"><%=counts("cw_info",1)%></span>)   昨(<span style="color:#009900"><%=counts("cw_info",2)%></span>)</td>
	 <td>简历信息：共(<span style="color:#FF0000"><%=counts("cw_hr",0)%></span>) 今(<span style="color:#009900"><%=counts("cw_job",1)%></span>)   昨(<span style="color:#009900"><%=counts("cw_job",2)%></span>)</td>
  </tr>
  <tr>
     <td>论坛信息：共(<span style="color:#FF0000"><%=counts("cw_bbs",0)%></span>) 今(<span style="color:#009900"><%=counts("cw_bbs",1)%></span>)  昨(<span style="color:#009900"><%=counts("cw_bbs",2)%></span>) </td>
	 <td>注册用户：共(<span style="color:#FF0000"><%=counts("cw_user",0)%></span>) 今(<span style="color:#009900"><%=counts("cw_user",1)%></span>)  昨(<span style="color:#009900"><%=counts("cw_user",2)%></span>) </td>
	 <td>商家黄页：共(<span style="color:#FF0000"><%=counts("cw_shop",0)%></span>) 今(<span style="color:#009900"><%=counts("cw_shop",1)%></span>)   昨(<span style="color:#009900"><%=counts("cw_shop",2)%></span>)</td>
  </tr>
</table>
<table width="99%" border="0" align="center">
          <tr>
            <td width="18%" height="25" align="right">服务器类型：</td>
            <td width="32%"><%=Request.ServerVariables("OS")%>(IP:<%=Request.ServerVariables("LOCAL_ADDR")%>)</td>
            <td height="25" align="right">AspJpe组件：</td>
            <td><%IF Cw_commons("Persits.Jpeg")=True Then%>√<%Else%>×<%end if%></td>
          </tr>
          <tr>
            <td height="25" align="right">&nbsp;服务器端口：</td>
            <td><%=Request.ServerVariables("SERVER_PORT")%></td>
            <td align="right">Fso文本读写：</td>
            <td><%If Cw_commons("Scripting.FileSystemObject")=True Then%>√<%else%>×<%end if%></td>
          </tr>
          <tr>
            <td height="25" align="right">服务器时间：</td>
            <td><%=now()%></td>
            <td align="right">Jmail组件支持：</td>
            <td><%If Cw_commons("Jmail.Message")=True Then%>√<%else%>×<%end if%></td>
          </tr>
          <tr>
            <td height="25" align="right">&nbsp;服务器CPU：</td>
            <td><%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%>
              个</td>
            <td align="right">Cdonts组件支持：</td>
            <td><%If Cw_commons("Cdo.Message")=True Then%>√<%else%>×<%end if%></td>
          </tr>
          <tr>
            <td height="25" align="right">站点物理路径：</td>
            <td><%=Request.ServerVariables("APPL_PHYSICAL_PATH")%></td>
            <td align="right">脚本解释引挚：</td>
            <td><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
          </tr>
          <tr>
            <td height="25" align="right">服务器版本：</td>
            <td><%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
            <td align="right">脚本超时时间：</td>
            <td><%=Server.ScriptTimeout%>秒</td>
          </tr>

</table>
</body>
</html>

