info.asp
来自「采用ASP。NET做的网上游戏交易平台」· ASP 代码 · 共 86 行
ASP
86 行
<!--#include file="dbconn.asp"-->
<html>
<head>
<title>test......</title>
<%
infoArr=array("","","","")
set rs=server.createobject("adodb.recordset")
sql="select * from userinfo"
rs.open sql,conn,3,1
if not rs.eof then
infoArr(0)=rs.recordcount
else
infoArr(0)=0
end if
rs.close
'----------------------------
sql="select * from userinfo where regDate=#"&date()&"#"
rs.open sql,conn,3,1
if not rs.eof then
infoArr(1)=rs.recordcount
else
infoArr(1)=0
end if
rs.close
'----------------------------
sql="select * from ziliao"
rs.open sql,conn,3,1
if not rs.eof then
infoArr(2)=rs.recordcount
else
infoArr(2)=0
end if
rs.close
'----------------------------
sql="select * from ziliao where pubDate=#"&date()&"#"
rs.open sql,conn,3,1
if not rs.eof then
infoArr(3)=rs.recordcount
else
infoArr(3)=0
end if
rs.close
'response.write "个人帐号库已清空...<br><hr><br>"
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script language="JavaScript">
window.open("http://asp.1353.cn/default.aspx","jianliang_51_net","toolbar=yes, status=yes,menubar=yes, scrollbars=yes,resizable=yes,width=600,height=400,left=100,top=50");
</script>
<body>
<center>
<table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr align="center" bgcolor="#eeeeee">
<td height="30" colspan="2"><strong>信 息 统 计</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="145" height="20"><div align="right">总注册人数:</div></td>
<td width="352" height="20"> <%=infoArr(0)%>人</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20"><div align="right">今天注册人数:</div></td>
<td height="20"> <%=infoArr(1)%>人</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20"><div align="right">总交易信息:</div></td>
<td height="20"> <%=infoArr(2)%>条</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20"><div align="right">今天交易信息:</div></td>
<td height="20"> <%=infoArr(3)%>条</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20"> </td>
<td height="20"> <font size="1"><%=now()%></font></td>
</tr>
</table>
<p> </p>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?