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

📄 tj_search.aspx

📁 阿江酷站统计系统ASP.Net版,可以直接使用。和现有的网站合并就可以了。提供详细的IP分析。
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="tj_search.aspx.cs" AutoEventWireup="false" Inherits="counter.tj_search" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title><%=dv[0].Row["programname"].ToString()%>-自定义统计</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="style.css" type="text/css" rel="stylesheet">
  </HEAD>
	<body vLink="#000000" leftMargin="0" topMargin="5" rightMargin="0" MS_POSITIONING="GridLayout">
		<!--#include file="inc_top.aspx"--><br>
		<table cellSpacing="0" width="500" align="center">
			<tr>
				<td>
					<p style="MARGIN-TOP: 5px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 15px; LINE-HEIGHT: 100%"><asp:Label id="showtitle" Runat="server"></asp:Label></p>
				</td>
			</tr>
		</table>
		<br>
		<FORM id="tj_search_form" method="post" runat="server">
			<asp:panel id="search_form_panel" Runat="server" Wrap="True" Visible="False">
<TABLE cellSpacing=0 cellPadding=0 width=500 align=center border=0>
  <TR>
    <TD colSpan=3><IMG src="images/photoup.gif"></TD></TR>
  <TR height=30>
    <TD class=backs width=1></TD>
    <TD class=backq width=498>&nbsp; <IMG src="images/tb_title.gif" 
      align=absMiddle> &nbsp;∷∷∷ 自定义统计项目 ∷∷∷<BR>
      <TABLE cellSpacing=0 cellPadding=0 width=470 align=center border=0>
        <TR height=9>
          <TD></TD></TR>
        <TR>
          <TD>
            <P>时 间 段: 
<asp:DropDownList id=onyear runat="server" CssClass="input">
												<asp:ListItem Value="" Selected="True">不限制</asp:ListItem>
												<asp:ListItem Value="2004">2004</asp:ListItem>
												<asp:ListItem Value="2005">2005</asp:ListItem>
												<asp:ListItem Value="2006">2006</asp:ListItem>
												<asp:ListItem Value="2007">2007</asp:ListItem>
												<asp:ListItem Value="2008">2008</asp:ListItem>
											</asp:DropDownList>年 
<asp:DropDownList id=onmonth runat="server" CssClass="input">
												<asp:ListItem Value="" Selected="True">无</asp:ListItem>
											</asp:DropDownList>月 
<asp:DropDownList id=onday runat="server" CssClass="input">
												<asp:ListItem Value="" Selected="True">无</asp:ListItem>
											</asp:DropDownList>日 ~ 
<asp:DropDownList id=offyear runat="server" CssClass="input">
												<asp:ListItem Value="" Selected="True">不限制</asp:ListItem>
												<asp:ListItem Value="2004">2004</asp:ListItem>
												<asp:ListItem Value="2005">2005</asp:ListItem>
												<asp:ListItem Value="2006">2006</asp:ListItem>
												<asp:ListItem Value="2007">2007</asp:ListItem>
												<asp:ListItem Value="2008">2008</asp:ListItem>
											</asp:DropDownList>年 
<asp:DropDownList id=offmonth runat="server" CssClass="input">
												<asp:ListItem Value="" Selected="True">无</asp:ListItem>
											</asp:DropDownList>月 
<asp:DropDownList id=offday runat="server" CssClass="input">
												<asp:ListItem Value="" Selected="True">无</asp:ListItem>
											</asp:DropDownList>日<BR>IP地址: 
<asp:TextBox id=vip Runat="server" CssClass="input" Width="104px"></asp:TextBox><BR>来自地区: 
<asp:TextBox id=vwhere Runat="server" CssClass="input" Width="151px"></asp:TextBox><BR>客 
            户 端: 
<asp:DropDownList id=vOS1 runat="server" CssClass="input">
												<asp:ListItem Selected="True" Value="">操作系统</asp:ListItem>
											</asp:DropDownList>
<asp:TextBox id=vOS2 runat="server" CssClass="input" Width="88px"></asp:TextBox>
<asp:DropDownList id=vsoft1 runat="server" CssClass="input">
												<asp:ListItem Selected="True" Value="">浏览器</asp:ListItem>
											</asp:DropDownList>
<asp:TextBox id=vsoft2 runat="server" CssClass="input" Width="88px"></asp:TextBox><BR>来自网页: 
<asp:TextBox id=vcome runat="server" CssClass="input" Width="315px"></asp:TextBox><BR>被访网页: 
<asp:TextBox id=vpage runat="server" CssClass="input" Width="315px"></asp:TextBox><BR>
            <TABLE cellSpacing=0 cellPadding=0 width=0 align=left border=0>
              <TR>
                <TD vAlign=top>输出类型:</TD>
                <TD>
<asp:CheckBoxList id=outtype runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
															<asp:ListItem Value="showhour">小时</asp:ListItem>
															<asp:ListItem Value="shwoday">日</asp:ListItem>
															<asp:ListItem Value="showweek">周</asp:ListItem>
															<asp:ListItem Value="showmonth">月</asp:ListItem>
															<asp:ListItem Value="showyear">年</asp:ListItem>
															<asp:ListItem Value="showip">IP</asp:ListItem>
															<asp:ListItem Value="showwhere">地区</asp:ListItem>
															<asp:ListItem Value="showsoft">浏览器</asp:ListItem>
															<asp:ListItem Value="showos">操作系统</asp:ListItem>
															<asp:ListItem Value="showcome">来路</asp:ListItem>
															<asp:ListItem Value="showpage">页面</asp:ListItem>
															<asp:ListItem Value="showall">详细</asp:ListItem>
														</asp:CheckBoxList></TD></TR></TABLE><BR><FONT 
            face=宋体><BR></FONT></P>
            <P></P></TD></TR>
        <TR>
          <TD align=right>
<asp:HyperLink id=seehelp runat="server" NavigateUrl="help.aspx?id=001">查看帮助</asp:HyperLink>&nbsp;&nbsp;<A 
            href="javascript:tj_search_form.submit();">查看结果</A> 
<asp:Button id=searchsub runat="server" CssClass="backc2" Text=" "></asp:Button></TD></TR></TABLE></TD>
    <TD class=backs width=1></TD></TR>
  <TR>
    <TD colSpan=4><IMG 
src="images/photodown.gif"></TD></TR></TABLE><BR>
			</asp:panel>
			<%
//根据查询条件输出相应的内容
if(strouttype.IndexOf("小时")>=0)
{
	string strstatname="24小时访问分析";
	int inttuwidth=15;
	string strthewhich="vhour";
	int inttuhow=24;
	string strunit="时";

	Response.Write(StatHeng(strstatname,inttuwidth,strthewhich,inttuhow,strunit,strwherestr));
}

if(strouttype.IndexOf("日")>=0)
{
	string strstatname="日访问分析";
	int inttuwidth=13;
	string strthewhich="vday";
	int inttuhow=32;
	string strunit="日";

	Response.Write(StatHeng(strstatname,inttuwidth,strthewhich,inttuhow,strunit,strwherestr));
}

if(strouttype.IndexOf("周")>=0)
{
	string strstatname="周访问分析";
	int inttuwidth=40;
	string strthewhich="vweek";
	int inttuhow=7;
	string strunit="";

	Response.Write(StatHeng(strstatname,inttuwidth,strthewhich,inttuhow,strunit,strwherestr));
}

if(strouttype.IndexOf("月")>=0)
{
	string strstatname="月访问分析";
	int inttuwidth=20;
	string strthewhich="vmonth";
	int inttuhow=13;
	string strunit="月";

	Response.Write(StatHeng(strstatname,inttuwidth,strthewhich,inttuhow,strunit,strwherestr));
}

if(strouttype.IndexOf("年")>=0)
{
	string statname="年访问分析";
	int leftwidth=50;
	string tuwhich="vyear";
	bool linkflag=false;
	Response.Write(StatShu(statname,leftwidth,tuwhich,strwherestr,linkflag));
}

if(strouttype.IndexOf("IP")>=0)
{
	string statname="IP分析";
	int leftwidth=50;
	string tuwhich="vip";
	bool linkflag=false;
	Response.Write(StatShu(statname,leftwidth,tuwhich,strwherestr,linkflag));
}

if(strouttype.IndexOf("地区")>=0)
{
	string statname="地区访问分析";
	int leftwidth=100;
	string tuwhich="vwhere";
	bool linkflag=false;
	Response.Write(StatShu(statname,leftwidth,tuwhich,strwherestr,linkflag));
}

if(strouttype.IndexOf("浏览器")>=0)
{
	string strstatname="不同浏览器用户访问分析";
	int inttuwidth=50;
	string strthewhich="vsoft";
	int inttuhow=7;
	string strunit="";

	Response.Write(StatHeng(strstatname,inttuwidth,strthewhich,inttuhow,strunit,strwherestr));
}

if(strouttype.IndexOf("操作系统")>=0)
{
	string strstatname="不同操作系统用户访问分析";
	int inttuwidth=50;
	string strthewhich="vOS";
	int inttuhow=8;
	string strunit="";

	Response.Write(StatHeng(strstatname,inttuwidth,strthewhich,inttuhow,strunit,strwherestr));
}

if(strouttype.IndexOf("来路")>=0)
{
	string statname="来路分析";
	int leftwidth=220;
	string tuwhich="vcome";
	bool linkflag=true;
	Response.Write(StatShu(statname,leftwidth,tuwhich,strwherestr,linkflag));
}

if(strouttype.IndexOf("页面")>=0)
{
	string statname="页面点击分析";
	int leftwidth=220;
	string tuwhich="vpage";
	bool linkflag=true;
	Response.Write(StatShu(statname,leftwidth,tuwhich,strwherestr,linkflag));
}

%>
</FORM>
<%
if(strouttype.IndexOf("详细")>=0)
{
%>
  <form id="goto_showall" action="tj_all.aspx" method=post id=form1 name=form1>
<table width="500" cellspacing="0" align="center" cellpadding="0" border="0">
  <tr><td colspan="3"><img src="images/photoup.gif"></td></tr>
  <tr height="30">
    <td width="1" class="backs"></td>
    <td width="498"class="backq">
		&nbsp; <img src="images/tb_title.gif" align=absmiddle><font style="font-size:16px">&nbsp;</font>∷∷∷ 查看详细记录 ∷∷∷<br>
		<p class="p1">因为详细记录需要翻页,不能和以上记录放在同一页,请点击下面的继续按钮查看相应内容。
	<p class="p1" style='margin-top: 0;' align="right">
	<a href='javascript:goto_showall.submit();'>继续</a>
	<input type="hidden" name="wherestr" value="<%=strwherestr%>">
	<input type="submit" value=" " name="save" class="backc2"><font style="font-size:16px">&nbsp;</font>&nbsp;
	</td>
    <td width="1" class="backs"></td>
  </tr>
  <tr><td colspan="4"><img src="images/photodown.gif"></td></tr>
</table>
  </form>
<br>
<%
}

if(((Session["master"].ToString() == "master" || int.Parse(Session["whatcan"].ToString()) >=6)) && strouttype!="")
{
%>
  <form id="save_search" action="tj_save.aspx" method=post>
<table width="500" cellspacing="0" align="center" cellpadding="0" border="0">
  <tr><td colspan="3"><img src="images/photoup.gif"></td></tr>
  <tr height="30">
    <td width="1" class="backs"></td>
    <td width="498"class="backq">
		&nbsp; <img src="images/tb_save.gif" align=absmiddle><font style="font-size:16px">&nbsp;</font>∷∷∷ 保存这次检索条件 ∷∷∷<br>

	<p class="p1"><font class="fonts"><b>检索条件</b></font>&nbsp;
	 <%
	 if(strwherestr=="")
	 {
	 %>
	 没有检索条件
	 <%
	 }
	 else
	 {
		Response.Write(strwherestr);
	 }
	 %>。
	<p class="p1" style='margin-bottom: 0;margin-top: 0;'><font class="fonts"><b>查询项目</b></font>&nbsp; <%=strouttype%>。
	<p class="p1" style='line-height: 100%;margin-bottom: 0;margin-top: 0;'><font class="fonts"><b>取个名字</b></font>&nbsp; <input name="wherename" size="16" class="input" value="<%=strwherename%>">&nbsp;
	<INPUT type="radio" name="overwrite" value="0"
	<%
	if(strwherename=="")
	{
		Response.Write(needchecked);
	 }
	%>
	> 同名时提示&nbsp;
	<INPUT type="radio" name="overwrite" value="1"
	<%
	if(strwherename!="")
	{
		Response.Write(needchecked);
	 }
	%>
	> 同名时覆盖
	<p class="p1" style='line-height: 100%;margin-bottom: 0;margin-top: 0;'><font class="fonts"><b>加个介绍</b></font>&nbsp; <input name="content" size="50" class="input" value="<%=strcontent%>">
	<p class="p1" style='margin-top: 0;' align="right">
	<a href="help.asp?id=002">帮助</a>
	<a href='javascript:save_search.submit();'>保存</a>
	<input type="hidden" name="wherestr" value="<%=strwherestr%>"><input type="hidden" name="outtype" value="<%=strouttype%>"><input type="submit" value=" " name="save" class="backc2"><font style="font-size:16px">&nbsp;</font>&nbsp;

	</td>
    <td width="1" class="backs"></td>
  </tr>
  <tr><td colspan="4"><img src="images/photodown.gif"></td></tr>
</table>
  </form>
<br>
<%
}

if(strouttype=="") show_search_save();
%>
		<!--#include file="inc_bottom.aspx"-->
		<P></P>
	</body>
</HTML>

⌨️ 快捷键说明

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