<%
'乘风多用户计数器
'作者QQ：178575
'作者EMail：yliangcf@163.com
'作者网站：http://www.qqcf.com
'详细简介：http://www.qqcf.com/cfcount.htm
'上面有程序在线演示，安装演示，使用疑难解答，最新版本下载等内容
'因为这些内容可能时常更新，没有放在程序里，请自己上网站上查看
%>
<%If SysCode="" Then Response.End%>

<%
AddDate=ChkStr(Request("AddDate"),3)

If AddDate="" Then  AddDate=Date()
%>

<table class="tb_1">
<tr> 
<td colspan="3"><select  name="adddate" id="adddate" onchange="window.location='?Action=<%=Action%>&adddate='+document.getElementById('adddate').options[document.getElementById('adddate').selectedIndex].value">
<option value="">请选择日期</option>
<%Sql="Select AddDate From CFCount_Search_Day Where UserName='"&UserName&"' 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='"&Rs("AddDate")&"'"
 If Cstr(AddDate)=Cstr(Rs("AddDate")) Then Response.Write " selected"
 Response.Write ">"&Rs("AddDate")&"</option>"  
Rs.MoveNext
Wend  
%>
</select>
</td>
</tr>
</table>


<table class="tb_1">
<tr class="tr_1">
<td colspan="3">搜索引擎统计 <br>
</td>
</tr>
<tr class="tr_2"> 
<td>搜索引擎英文标识</td>
<td>PV数量</td>
<td>IP数量</td>
</tr>
<%
Sql="Select * From CFCount_Search_Day Where Datediff('d',AddDate,'"&AddDate&"')=0 Order By IpCounter Desc"
Set Rs=Conn.Execute(Sql)
%>
<%While Not Rs.Eof%>
<tr class="tr_2"> 
<td><%=Rs("SiteFlag")%></td>
<td><%=Rs("MyCounter")%></td>
<td><%=Rs("IpCounter")%></td>
</tr>
<%Rs.MoveNext
Wend%>
</table>