📄 admin_statisticmodify.asp
字号:
<!--#include file="function.asp"-->
<%CheckAdmin3%>
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<%
action=trim(request("action"))
if action="save" then
set rs=server.createobject("adodb.recordset")
sql="select * from counters"
rs.open sql,conn,1,3
if trim(request.form("total"))="" then
rs("total")=0
else
rs("total")=trim(request.form("total"))
end if
if trim(request.form("today"))="" then
rs("today")=0
else
rs("today")=trim(request.form("today"))
end if
if trim(request.form("yesterday"))="" then
rs("yesterday")=0
else
rs("yesterday")=trim(request.form("yesterday"))
end if
if trim(request.form("months"))="" then
rs("month")=0
else
rs("month")=trim(request.form("months"))
end if
if trim(request.form("bmonth"))="" then
rs("bmonth")=0
else
rs("bmonth")=trim(request.form("bmonth"))
end if
rs.update
rs.close
set rs=nothing
end if
sql="select * from counters"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof then
rs.Close
set rs=nothing
conn.close
set conn=nothing
errmsg="<li>操作错误!请联系管理员</li>"
call error()
Response.End
else
total=rs("total")
today=rs("today")
yesterday=rs("yesterday")
months=rs("month")
bmonth=rs("bmonth")
end if
rs.close
set rs=nothing
%>
<!--#include file="top.asp"-->
<div align="center">
<center>
<table border="0" width="750" cellspacing="0" cellpadding="0" bgcolor="<%=MainBgcolor%>" style="border-collapse: collapse" bordercolor="#111111" height="141">
<tr>
<td width=5 valign=top height="169" background="images/line_bg02.gif">
<img border="0" src="images/line_bg02.gif"></td>
<td width=175 valign=top height="169"><!--#include file="admin_left.asp"--></td>
<td width=5 valign=top height="169" background="images/line_bg02.gif"> </td>
<td align=center valign=top width="591" height="169">
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="<%=MainCColor%>">
<form method="POST" action="admin_Statisticmodify.asp?action=save" id=form2 name=form2>
<tr>
<td width="100%" height="20" colspan=2 align=center bgcolor="<%=MainTColor%>" class=TFColor><b>修 改 统 计 数 据</b></td>
</tr>
<tr>
<td width="40%" align="right">浏览总人数:</td>
<td width="60%"><input type="text" name="total" value="<%=total%>" size="20"></td>
</tr>
<tr>
<td align="right">今日浏览人数:</td>
<td><input type="text" name="today" value="<%=today%>" size="20"></td>
</tr>
<tr>
<td align="right">昨日浏览人数:</td>
<td><input type="text" name="yesterday" value="<%=yesterday%>" size="20"></td>
</tr>
<tr>
<td align="right">本月浏览人数:</td>
<td><input type="text" name="months" value="<%=months%>" size="20"></td>
</tr>
<tr>
<td align="right">上月浏览人数:</td>
<td><input type="text" name="bmonth" value="<%=bmonth%>" size="20"></td>
</tr>
<tr align="center">
<td colspan=2>
<input type="submit" value=" 修 改 " name="cmdok2">
<input type="reset" value=" 取 消 " name="cmdcance2l">
</td>
</tr>
</form>
</table>
</td>
<td align=center valign=top width="5" height="169" background="images/line_bg02.gif">
<img border="0" src="images/line_bg02.gif"></td>
</tr>
<tr>
<td width=750 valign=top height="1" colspan="5" background="images/line_bg01.gif">
<img border="0" src="images/line_bg01.gif"></td>
</tr>
</table>
</center>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -