<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="query_webpage.aspx.vb" Inherits="gogo_mechanism.query_webpage" EnableEventValidation="false" %>
<%@ Import namespace="gogo_mechanism"%>
<html>
	<head id="head1"  runat="server">
    <title><%=pagename %></title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">
    <link href="site_css2.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="js/DatePicker/WdatePicker.js" language="javascript"></script>
    <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
    <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="lib/bootstrap/js/bootstrap.js" type="text/javascript"></script>
             <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
         <script language="javascript">
             function ResetButton() {
                 var btn = document.getElementById("Button1");
                 if (btn.disabled == true) {
                     btn.disabled = false;
                 }
             }
             function disableBtn(btn) {
                 btn.value = '系统正在执行操作...';
                 btn.disabled = 'disabled';
                 __doPostBack("Button1", "OnClick");
                 //doPostBack can now fire serverside event even if button is disabled  
             }
  
			</script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
</head>
  <body class=""> 
     <!--<![endif]-->
    <form id="Form1" runat="server">
    <div class="content">
        
        <div class="header">
<div class="stats">
    <p class="stat">数量 <span class="number"><asp:label id="Label1" runat="server"></asp:label></span></p>
</div>
            <h1 class="page-title"><%=pagename %></h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="info.aspx">系统首页</a> <span class="divider">/</span></li>
            <li class="active"><%=pagename %></li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
               <div class="search-toolbar">
                                  <i class="icon-search"></i> 标题<asp:TextBox ID="ctitle" 
                                      runat="server" Width="100px"></asp:TextBox>
                                  &nbsp;源码<asp:TextBox ID="html" runat="server" Width="100px"></asp:TextBox>
                                  &nbsp;地址<asp:TextBox ID="url" runat="server" Width="100px"></asp:TextBox>
                                  &nbsp;域名<asp:TextBox ID="host" runat="server" Width="100px"></asp:TextBox>
                                  &nbsp;父地址<asp:TextBox ID="purl" runat="server" Width="100px"></asp:TextBox>
                                  
                                
                                  IP范围<asp:TextBox ID="ip1" runat="server" Width="100px"></asp:TextBox>
                                  -<asp:TextBox ID="ip2" runat="server" Width="100px"></asp:TextBox>
                                  &nbsp;任务标识<asp:TextBox ID="taskbs" runat="server" Width="100px"></asp:TextBox>
                                  &nbsp;返回数据数<asp:DropDownList ID="maxdata" runat="server">
                                      <asp:ListItem>100</asp:ListItem>
                                      <asp:ListItem>200</asp:ListItem>
                                      <asp:ListItem>500</asp:ListItem>
                                      <asp:ListItem>1000</asp:ListItem>
                                      <asp:ListItem>5000</asp:ListItem>
                                  </asp:DropDownList>
                                  
                                
               </div>         
<div class="btn-toolbar">
 <asp:Button ID="Button1" runat="server" AccessKey="s" OnClientClick="disableBtn(this);" Text="查询(ALT+S)" class="btn"/>
    &nbsp;<asp:Button ID="Button2" runat="server" AccessKey="C" CausesValidation="False" Text="重填(ALT+C)" class="btn"/>
</div>
<div class="btn-group"></div>
<div class="well">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"  AutoGenerateColumns="False" GridLines="None" PageSize="15" Width="100%" CssClass="table">
          <Columns>
                                       <asp:TemplateField HeaderText="网页标题">
                                           <ItemTemplate>
                                               <a title="<%# DataBinder.Eval(Container, "DataItem.title")%>" href="view_webpage.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id")%>" target="_blank"><%# Focusinfo(cutstr2(CleanHtml(DataBinder.Eval(Container, "DataItem.title")), Session("zs"), "标题信息缺失"), ctitle.Text, " ", "FF0000", False)%></a>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                             <asp:BoundField DataField="contenttype" HeaderText="编码协议" />

                                               <asp:TemplateField HeaderText="网页地址">
                                            <ItemTemplate>
                                               <a href="<%# DataBinder.Eval(Container, "DataItem.url")%>" target="_blank"> <%#cutstr(DataBinder.Eval(Container, "DataItem.url"), 50)%></a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                              <asp:TemplateField HeaderText="IP地址">
                                            <ItemTemplate>
                                                <%# IntToIp4(DataBinder.Eval(Container, "DataItem.ip"))%>
                                            </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="收录时间">
                                            <ItemTemplate>
                                                <%# c_date_d(DataBinder.Eval(Container, "DataItem.addtime"))%>
                                            </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="操作">
                                            <ItemTemplate>
                                             <a href="webpageinfo.aspx?how=download&id=<%# DataBinder.Eval(Container, "DataItem.id")%>" target="_blank">下载</a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
        <PagerStyle CssClass="pagerclass" />
        <EmptyDataTemplate>
            暂无匹配网页数据！
        </EmptyDataTemplate>
        </asp:GridView>
</div>
                  
            </div>
        </div>
    </div>
    </form>
</body>
</html>