⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qqcf_admin_manage.asp

📁 这是一个用ASP编制而成的网业计数器
💻 ASP
📖 第 1 页 / 共 4 页
字号:
     Response.Write " Selected"    
   End If    
   Response.write ">转到第"& i &"页</option>"    
Next    
%>
          </select> </td>
      </form>
    </tr>
  </table>
  <table border="0" align="center" cellpadding="3" cellspacing="0">
      <tr> 
        <td><div align="center"><strong>搜索</strong><br>
          </div></td>
      </tr>
	      <form name="form2" method="post" action="?action=searchuser">
      <tr>
        <td><div align="center">用户名
<input name="User_Name" type="text" id="User_Name" size="10">
            <input type="submit" name="Submit" value="查找">
          </div></td>
      </tr>
    </form>
  </table>
<%End If%>

<%If Request("Action")="modifyuser" Then%>
<%
ID=Request("ID")
Set Rs=Server.CreateObject("Adodb.RecordSet")
Sql="Select * From WWW_QQCF_COM_CfCount_RegUser Where ID="&ID
Rs.Open Sql,Conn,1,1%>

          
          <table width="500" border="0" cellpadding="2" cellspacing="1" bordercolor="D6DFF5" bgcolor="D6DFF5">
            <form name="form2" method="post" action="?Action=modifyusersave&ID=<%=ID%>">
              <tr bgcolor="D6DFF5"> 
                <td colspan="2"><div align="center"><strong>修改资料</strong> </div></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="150"><div align="right">用户名:</div></td>
                <td><font size="2"><%=Rs("User_Name")%></font></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td valign="top"><div align="right">管理员说明:</div></td>
                <td><textarea name="admindesc" cols="30" rows="6" id="notes"><%=rs("admindesc")%></textarea></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td colspan="2"> <div align="center"> 
                    <input type="submit" name="Submit3" value="修改">
                       
                    <input type="reset" name="Submit523" value="取消" onClick="javascript:history.go(-1)">
                  </div></td>
              </tr>
            </form>
          </table>

  <%end if%>
  <%If Request("Action")="lylist" Then%>
          <table width="730" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="D6DFF5" bgcolor="D6DFF5">
            <form name="form6" method="post" action="?Action=lydel">
              <tr> 
                <td colspan="7" bgcolor="#FFFFFF">选择查询的日期 
                  <Select  name="adddate" size="1" onChange="window.location=form.adddate.options[form.adddate.selectedIndex].value">
                    <%Sql="Select AddDate From WWW_QQCF_COM_CfCount_Ly 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=lylist&AddDate="&Rs("AddDate")&"'"
 If Request("AddDate")=Cstr(Rs("AddDate")) Then Response.Write " selected"
 Response.Write ">"&Rs("AddDate")&"</option>"  
Rs.MoveNext
Wend  
%>
                  </select></td>
              </tr>
              <%
Ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If Ip= "" Then Ip= Request.ServerVariables("REMOTE_ADDR")

Action=Request("Action")
Px=Request("Px")
AddDate=Request("AddDate")

If Px="" Then  Px="Counter"
If AddDate="" Then AddDate=Cstr(Date)

Call PxFilter(Px,"id,ip,lyhead,addtime,counter,lasttime")

If AddDate<>"" Then
 If IsDate(Cdate(AddDate))=False Then Call AlertBack("输入了错误的时间",1)
End if

Sql="Select Sum(Counter) From WWW_QQCF_COM_CfCount_Ly where Datediff(d,AddDate,'"&AddDate&"')=0"
Set Rs=Conn.execute(Sql)
ThisDayTotal=Rs(0)
If ThisDayTotal=0 Then ThisDayTotal=1

Sql="Select * From WWW_QQCF_COM_CfCount_Ly where Datediff(d,AddDate,'"&AddDate&"')=0"

Sql=Sql&" Order By "&Px&" 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=15
 totalrs=rs.RecordCount
 totalpage=rs.pageCount
 mypagesize=rs.pagesize
 rs.absolutepage=page
End If
%>
              <tr> 
                <td colspan="7"><div align="center"><strong><%=AddDate%> 来源统计[可点击标题排序]</strong></div></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=ID"><strong>序号</strong></a></div></td>
                <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=LyHead"><strong>来源网站</strong></a></div></td>
                <td bgcolor="#FFFFFF"><div align="center"><strong><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=Counter">来源数量</a></strong></div></td>
                <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=Counter"><strong>所占此天的比例</strong></a></div></td>
                <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=AddTime"><strong>上站时间</strong></a></div></td>
                <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=Ip"><strong>最后IP地址</strong></a></div></td>
                <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=LastTime"><strong>最后访问时间</strong></a></div></td>
              </tr>
              <%
While Not Rs.Eof And MyPageSize>0
%>
              <tr
<%If MyPageSize Mod 2=0 Then
 Response.Write " bgcolor='#ffffff'"
Else
 Response.Write " bgcolor='#e8e8e8'"
End If
%>> 
                <td class="td_1"><div align="center"><%=Rs.RecordCount-Rs.Pagesize*(page)+mypagesize%></div></td>
                <td class="td_1"><div align="center"> 
                    <%If Rs("LyHead")="-" Then
  Response.Write "直接从浏览器输入"
 Else
  Response.Write "<a href=http://"&Rs("LyHead")&" target='_blank'>"&Rs("LyHead")&"</a>&nbsp;[<a href="&Rs("Ly")&" target='_blank'>详细</a>]"
 End If%>
                  </div></td>
                <td class="td_1"><div align="center"><%=Rs("Counter")%></div></td>
                <td class="td_1"><img src=qqcf_pic/qqcf_redbar.gif width=<%=Rs("Counter")/ThisDayTotal*150%> height=10><%=MyRate(Rs("Counter"),ThisDayTotal)%>%</td>
                <td class="td_1"><div align="center"><%=GetTurnTime(Hour(Rs("AddTime")))&":"&GetTurnTime(Minute(Rs("AddTime")))&":"&GetTurnTime(Second(Rs("AddTime")))%></div></td>
                <td class="td_1"><div align="center"> 
                    <%If Ip=Rs("Ip") Then Response.Write "<font color=ff0000>"%>
                    <%=Rs("Ip")%> 
                    <%If Ip=Rs("Ip") Then Response.Write "</font>"%>
                  </div></td>
                <td class="td_1"><div align="center"><%=GetTurnTime(Hour(Rs("LastTime")))&":"&GetTurnTime(Minute(Rs("LastTime")))&":"&GetTurnTime(Second(Rs("LastTime")))%></div></td>
              </tr>
              <%rs.movenext
mypagesize=mypagesize-1
wend%>
            </form>
          </table>
  <table border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td valign="top"><div align="right"><a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=<%=Px%>&Page=1">第一页</a>
            <%
if page>1 then%>
            <a href='?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=<%=Px%>&Page=<%=Page-1%>'>上一页</a>
            <%
end if
%>
            <%
if page<rs.pagecount   then%>
            <a href='?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=<%=Px%>&Page=<%=Page+1%>'>下一页</a>
            <%
end if
%>
            <a href="?Action=<%=Action%>&AddDate=<%=AddDate%>&Px=<%=Px%>&Page=<%=totalpage%>">最后一页</a> 页次:<font color="#ff0000"><%=page%></font>/<%=totalpage%>页&nbsp;&nbsp;共<%=totalrs%>条记录&nbsp;&nbsp;每页显示<%=rs.pagesize%>条</div></td>
    <form name="form1" method="post" action="jczx.asp">
      <td>
        <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="&filename&"?Action="&Action&"&AddDate="&AddDate&"&Px="&Px&"&Page="&i
   if page=i then     
     response.write " selected"    
   end if    
   response.write ">转到第"&i&"页</option>"    
next    
%>
        </select>
      </td>
    </form>
  </tr>
</table>
<%End If%>

  <%If Request("Action")="onlinelist" Then%>
          <table width="730" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="D6DFF5" bgcolor="D6DFF5">
          <tr> 
            <td colspan="9"><div align="center"><strong>在线人数统计[可点击标题排序] 
                <%
Sql="Select Count(*) From WWW_QQCF_COM_CfCount_Online"
Set Rs=Conn.ExeCute(Sql)
Response.Write "共有人<font color=ff0000>"&Rs(0)&"</font>在线"

Ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If Ip= "" Then Ip= Request.ServerVariables("REMOTE_ADDR")

Action=Request("Action")
Px=Request("Px")
If Px="" Then Px="Online_LastTime"
Call PxFilter(Px,"id,online_ip,ly,online_addtime,currweb,visittotal,readtotal,online_lasttime")

Set Rs= Server.CreateObject("Adodb.RecordSet")
Sql="Select * From WWW_QQCF_COM_CfCount_Online Order By "&Px&" Desc"
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=15
TotalRs=Rs.RecordCount
TotalPage=Rs.PageCount
MyPageSize=Rs.Pagesize
Rs.AbsolutePage=Page
End If

%>
                </strong></div></td>
          </tr>
          <tr> 
            <td width="27" bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&Px=ID"><strong>序号</strong></a></div></td>
            <td width="54" bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&Px=Online_Ip"><strong>IP</strong></a></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><strong><a href="?Action=<%=Action%>&Px=VisitTotal">第几次光临</a></strong></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><strong><a href="?Action=<%=Action%>&Px=Ly">来源页面</a></strong></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&Px=Online_AddTime"><strong>进站时间</strong></a></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><strong><a href="?Action=<%=Action%>&Px=CurrWeb">最后活动页面</a></strong></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&Px=Online_LastTime"><strong>最后活动</strong></a></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><strong>此次停留</strong></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><a href="?Action=<%=Action%>&Px=ReadTotal"><strong>共浏览几页</strong></a></div></td>
          </tr>
          <%while not rs.eof and mypagesize>0%>
          <tr
<%If mypagesize Mod 2=0 Then
 Response.Write " bgcolor='#ffffff'"
Else
 Response.Write " bgcolor='#e8e8e8'"
End If
%>> 
            <td bgcolor="#FFFFFF" class="td_1"><div align="center"><%=Rs.RecordCount-Rs.Pagesize*(page)+mypagesize%></div></td>
            <td bgcolor="#FFFFFF" class="td_1"><div align="center"> 
                <%If Ip=Rs("Online_Ip") Then Response.Write "<font color=ff0000>"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -