<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Time_identification.aspx.vb" Inherits="gogo_mechanism.Time_identification" %>
<%@ 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>
    <!-- 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-plus"></i> 名称<asp:TextBox ID="mc" 
                       runat="server" style="width:100px;" Width="100px"></asp:TextBox>
                   地址匹配符<asp:TextBox ID="matchurl" runat="server" Width="190px"></asp:TextBox>
                   （*代表匹配任意字符） 时间前识符<asp:TextBox ID="str1" runat="server" style="width:150px;" 
                       TextMode="MultiLine" Width="150px"></asp:TextBox>
                   时间后识别符<asp:TextBox ID="str2" runat="server" style="width:150px;" 
                       TextMode="MultiLine" Width="150px"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                       ControlToValidate="mc" ErrorMessage="名称不能为空"></asp:RequiredFieldValidator>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                       ControlToValidate="matchurl" ErrorMessage="地址不能为空"></asp:RequiredFieldValidator>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                       ControlToValidate="str1" ErrorMessage="前识别符不能为空"></asp:RequiredFieldValidator>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                       ControlToValidate="str2" ErrorMessage="后识别符不能为空"></asp:RequiredFieldValidator>
               </div>         
<div class="btn-toolbar">
    <asp:Button ID="Button4" runat="server" Text="添加定义" class="btn btn-primary"/>
    <asp:Button ID="Button1" runat="server" CausesValidation="False" Text="当页全选" class="btn"/>
    <asp:Button ID="Button2" runat="server" CausesValidation="False" Text="取消选择" class="btn"/>
    <asp:Button ID="Button3" runat="server" CausesValidation="False" Text="删除选中" class="btn btn-danger"/>
</div>
<div class="btn-group"></div>
<div class="well">
<asp:GridView ID="GridView1" runat="server"  AutoGenerateColumns="False" 
        GridLines="None" PageSize="15" Width="100%" CssClass="table">
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True" />
                                        <asp:TemplateField HeaderText="名称">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="mc2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.mc") %>' Width="150px" style="width:150px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.mc") %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                          <asp:TemplateField HeaderText="地址匹配符">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="matchurl2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.matchurl") %>' Width="150px" style="width:150px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.matchurl")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                      <asp:TemplateField HeaderText="时间前识别符">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="str12" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.str1") %>' Width="150px" style="width:150px;" TextMode="MultiLine"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                             <asp:TextBox ID="str12a" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.str1") %>' Width="150px" style="width:150px;" TextMode="MultiLine"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                     <asp:TemplateField HeaderText="时间后识别符">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="str22" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.str2") %>' Width="150px" style="width:150px;" TextMode="MultiLine"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                             <asp:TextBox ID="str22a" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.str2") %>' Width="150px" style="width:150px;" TextMode="MultiLine"></asp:TextBox>
                                                                                         </ItemTemplate>
                                        </asp:TemplateField>
                                          <asp:TemplateField HeaderText="最近匹配时间">
                                            <ItemTemplate>
                                                <%# ctime(DataBinder.Eval(Container, "DataItem.Ltime"), 24)%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                                            <EditItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                    CommandName="Update" Text="更新"></asp:LinkButton>
                                                &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                                    CommandName="Cancel" Text="取消"></asp:LinkButton>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                    CommandName="Edit" Text="编辑"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
        <PagerStyle CssClass="pagerclass" />
        <EmptyDataTemplate>
            暂无记录！
        </EmptyDataTemplate>
        </asp:GridView>
</div>
                  
            </div>
        </div>
    </div>
    </form>
</body>
</html>