📄 qqcf_admin_manage_3.asp
字号:
%>
<%
If Page<Rs.PageCount Then
%>
<a href='?Action=<%=Action%>&ViewadEffect=<%=ViewadEffect%>&ID=<%=ID%>&AddDate=<%=AddDate%>&Ip=<%=Ip%>&IpArea=<%=IpArea%>&Px=<%=Px%>&Page=<%=Page+1%>'>下一页</a>
<%
end if
%>
<a href="?Action=<%=Action%>&ViewadEffect=<%=ViewadEffect%>&ID=<%=ID%>&AddDate=<%=AddDate%>&Ip=<%=Ip%>&IpArea=<%=IpArea%>&Px=<%=Px%>&Page=<%=Totalpage%>">最后一页</a> 页次:<font color="#ff0000"><%=Page%></font>/<%=TotalPage%>页 共<%=TotalRs%>条记录 每页显示<%=Rs.PageSize%>条</div></td>
<form name="form1" method="post" action="?">
<td valign="top">
<Select name="page" size="1" id="page" onChange="window.location=form.page.options[form.page.selectedIndex].value">
<%
For I=1 To TotalPage
Response.Write "<option value=?Action="&Action&"&ViewadEffect="&ViewadEffect&"&ID="&ID&"&AddDate="&AddDate&"&IP="&IP&"&IpArea="&IpArea&"&Px="&Px&"&Page="&I
If Page=i Then Response.Write " selected"
Response.Write ">转到第"& I &"页</option>"
Next
%>
</select>
</td>
</form>
</tr>
</table>
<table border="0" align="center" cellpadding="2" cellspacing="0">
<form name="form2" method="post" action="?Action=ipsearch&AddDate=<%=AddDate%>">
<tr>
<td> <div align="left"><strong>搜 索</strong></div></td>
<td>IP:</td>
<td width="1"><input name="IP" type="text" id="IP" size="10"></td>
<td><select name="IpArea">
<option selected value="0">全部</option>
<option value="1">国内IP</option>
<option value="2">国外IP</option>
</select></td>
<td><input type="submit" name="Submit3323" value="搜索"></td>
</tr>
</form>
</table>
<%End If%>
<%If Action="daytj" Then%>
<%
Sql="Select Sum(Display_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Day"
Set Rs=Conn.Execute(Sql)
TotalShowCount=Rs(0)
Sql="Select Sum(Click_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Day"
Set Rs=Conn.Execute(Sql)
TotalClickCount=Rs(0)
Sql="Select Sum(Reg_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Day"
Set Rs=Conn.Execute(Sql)
TotalRegCount=Rs(0)
AllDayTotal=TotalShowCount+TotalClickCount+TotalRegCount
If AllDayTotal=0 Then AllDayTotal=1
Sql="Select AddDate From WWW_QQCF_COM_CfWztg_AD_Counter_Day Group By AddDate Order By AddDate Desc"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open Sql,Conn,1,1
If Not Rs.eof Then
If Not IsNumeric(Request("Page")) Or IsEmpty(Request("Page")) Then
Page=1
Else
Page=Int(Abs(Request("Page")))
End if
Rs.pagesize=10
TotalRs=Rs.RecordCount
TotalPage=Rs.PageCount
MyPageSize=Rs.PageSize
Rs.AbsolutePage=Page
End If
%>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="D6DFF5" bgcolor="D6DFF5">
<tr bgcolor="D6DFF5">
<td colspan="4"><div align="center"><strong>每日报表</strong></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="center"><strong>日 期</strong></div></td>
<td><div align="center"><strong>比例</strong></div></td>
<td><div align="center"><strong>点击率</strong></div></td>
<td><div align="center"><strong>详细推广记录</strong></div></td>
</tr>
<%
While Not Rs.Eof And MyPageSize>0
Sql="Select Sum(Display_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Day where AddDate=#"&Rs("AddDate")&"#"
Set Rs1=Conn.Execute(Sql)
Display_Counter=Rs1(0)
Sql="Select Sum(Click_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Day where AddDate=#"&Rs("AddDate")&"#"
Set Rs1=Conn.Execute(Sql)
Click_Counter=Rs1(0)
Sql="Select Sum(Reg_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Day where AddDate=#"&Rs("AddDate")&"#"
Set Rs1=Conn.Execute(Sql)
Reg_Counter=Rs1(0)
%>
<tr
<%
If Mypagesize Mod 2=0 Then
Response.Write " bgcolor='#ffffff'"
Else
Response.Write " bgcolor='#e8e8e8'"
End If
%>>
<td><div align="center"><%=Rs("AddDate")%></div></td>
<td> <img src=QQCf_Pic/QQCf_RedBar.gif width=<%=Display_Counter/AllDayTotal*350%> height=10><%=Display_Counter%><br> <img src=QQCf_Pic/QQCf_GreenBar.gif width=<%=Click_Counter/AllDayTotal*350%> height=10><%=Click_Counter%><br> <img src=QQCf_Pic/QQCf_BlueBar.gif width=<%=Reg_Counter/AllDayTotal*350%> height=10><%=Reg_Counter%><br> </td>
<td><div align="center"><%=MyRate(Click_Counter,Display_Counter)%>%</div></td>
<td><div align="center"><a href="?Action=lysearch&AddTime=<%=Rs("AddDate")%>">[查看]</a></div></td>
</tr>
<%
Mypagesize=Mypagesize-1
Rs.MoveNext
Wend%>
<tr bgcolor="#FFFFFF">
<td colspan="4"><div align="center"><strong>统计</strong>:广告显示总计<%=TotalShowCount%>次 广告点击总数<%=TotalClickCount%>次 推荐注册用户总数<%=TotalRegCount%>个</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4"><div align="center"><strong>图例</strong>:<img src=QQCf_Pic/QQCf_RedBar.gif width=50 height=10>广告显示次数 <img src=QQCf_Pic/QQCf_GreenBar.gif width=50 height=10>广告点击次数 <img src=QQCf_Pic/QQCf_BlueBar.gif width=50 height=10>推荐注册用户数量</div>
</td>
</tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="35"><div align="right"><a href="?Action=<%=Action%>&Page=1">第一页</a>
<%
If Page>1 Then%>
<a href='?Action=<%=Action%>&Page=<%=Page-1%>'>上一页</a>
<%
End If
%>
<%
If Page<Rs.PageCount Then
%>
<a href='?Action=<%=Action%>&Page=<%=Page+1%>'>下一页</a>
<%
End If
%>
<a href="?Action=<%=Action%>&Page=<%=totalpage%>">最后一页</a> 页次:<font color="#ff0000"><%=page%></font>/<%=totalpage%>页 共<%=totalrs%>条记录 每页显示<%=rs.pagesize%>条</div></td>
<form name="form1" method="post" action="jczx.asp">
<td valign="top">
<Select name="page" size="1" onChange="window.location=form.page.options[form.page.selectedIndex].value">
<%
For I=1 To TotalPage
Response.Write "<option value="&filename&"?action="&action&"&page="& i
If Page=I Then Response.Write " selected"
Response.Write ">转到第"& I &"页</option>"
Next
%>
</select>
</td>
</form>
</tr>
</table>
<%End If%>
<%If Action="hourtj" Then%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<form name="form1" method="post" action="jczx.asp">
<td> <div align="right">请选择你要查询的日期
<Select name="adddate" size="1" onChange="window.location=form.adddate.options[form.adddate.selectedIndex].value">
<option>请选择日期</option>
<%Sql="Select AddDate From WWW_QQCF_COM_CfWztg_AD_Counter_Hour Group By AddDate Order By AddDate Desc"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open Sql,Conn,1,1
While Not Rs.Eof
Response.Write "<option value='"&filename&"?Action="&Action&"&AddDate="&Rs("AddDate")&"'"
If Request("AddDate")=Cstr(Rs("AddDate")) Then Response.Write " selected"
Response.Write ">"&Rs("AddDate")&"</option>"
Rs.MoveNext
Wend
%>
</select>
</div></td>
</form>
</tr>
</table>
<%
AddDate=Request("AddDate")
If AddDate="" Then AddDate=Date()
Sql="Select Sum(Display_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Hour where AddDate=#"&AddDate&"#"
Set Rs=Conn.Execute(Sql)
TotalShowCount=Rs(0)
Sql="Select Sum(Click_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Hour where AddDate=#"&AddDate&"#"
Set Rs=Conn.Execute(Sql)
TotalClickCount=Rs(0)
Sql="Select Sum(Reg_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Hour where AddDate=#"&AddDate&"#"
Set Rs=Conn.Execute(Sql)
TotalRegCount=Rs(0)
Total=TotalShowCount+TotalClickCount+TotalRegCount
If Total=0 Then Total=1
Sql="Select AddHour,AddDate From WWW_QQCF_COM_CfWztg_AD_Counter_Hour Where AddDate=#"&AddDate&"# Group By AddHour,AddDate Order By AddHour Desc"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open Sql,Conn,1,1
%>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="D6DFF5" bgcolor="D6DFF5">
<tr bgcolor="D6DFF5">
<td height="19" colspan="4"><div align="center"><strong><%=AddDate%> 每小时报表</strong></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="center"><strong>小时</strong></div></td>
<td><div align="center"><strong>比例</strong></div></td>
<td><div align="center"><strong>点击率</strong></div></td>
<td><div align="center"><strong>详细推广记录</strong></div></td>
</tr>
<%
While Not Rs.Eof
I=I+1
Sql="Select Sum(Display_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Hour where AddDate=#"&AddDate&"# And AddHour="&Rs("AddHour")
Set Rs1=Conn.Execute(Sql)
Display_Counter=Rs1(0)
Sql="Select Sum(Click_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Hour where AddDate=#"&AddDate&"# And AddHour="&Rs("AddHour")
Set Rs1=Conn.Execute(Sql)
Click_Counter=Rs1(0)
Sql="Select Sum(Reg_Counter) From WWW_QQCF_COM_CfWztg_AD_Counter_Hour where AddDate=#"&AddDate&"# And AddHour="&Rs("AddHour")
Set Rs1=Conn.Execute(Sql)
Reg_Counter=Rs1(0)
%>
<tr
<%
If I Mod 2=0 Then
Response.Write " bgcolor='#ffffff'"
Else
Response.Write " bgcolor='#e8e8e8'"
End If
%>>
<td><div align="center"><%=Rs("AddHour")%>-<%=Rs("AddHour")+1%></div></td>
<td> <img src=QQCf_Pic/QQCf_RedBar.gif width=<%=Display_Counter/Total*350%> height=10><%=Display_Counter%><br> <img src=QQCf_Pic/QQCf_GreenBar.gif width=<%=Click_Counter/Total*500%> height=10><%=Click_Counter%><br> <img src=QQCf_Pic/QQCf_BlueBar.gif width=<%=Reg_Counter/Total*500%> height=10><%=Reg_Counter%><br> </td>
<td><div align="center"><%=MyRate(Click_Counter,Display_Counter)%>%</div></td>
<td><div align="center"><a href="?Action=lysearch&AddDate=<%=Rs("AddDate")%>">[查看]</a></div></td>
</tr>
<%
Rs.MoveNext
Wend
%>
<tr bgcolor="#FFFFFF">
<td colspan="4"><div align="center"><strong>统计</strong>:广告显示总计<%=TotalShowCount%>次 广告点击总数<%=TotalClickCount%>次 推荐注册用户总数<%=TotalRegCount%>个</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4"><div align="center"><strong>图例</strong>:<img src=QQCf_Pic/QQCf_RedBar.gif width=50 height=10>广告显示次数 <img src=QQCf_Pic/QQCf_GreenBar.gif width=50 height=10>广告点击次数 <img src=QQCf_Pic/QQCf_BlueBar.gif width=50 height=10>推荐注册用户数量</div>
</td>
</tr>
</table>
<%End If%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -