<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ProxyServer_config.aspx.vb" Inherits="gogo_mechanism.ProxyServer_config" %>
<%@ 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-search"></i> 
                   <asp:CheckBox ID="px" runat="server" AutoPostBack="True" Checked="True" 
                       Text="按连通率降序" />
&nbsp;<i class="icon-plus"></i> 地址<asp:TextBox 
                       ID="dz" runat="server" Width="220px">http://</asp:TextBox>
                   端口<asp:TextBox ID="dk" runat="server" Width="40px"></asp:TextBox>
                   用户名<asp:TextBox ID="yhm" runat="server" Width="60px"></asp:TextBox>
                   密码<asp:TextBox ID="mm" runat="server" Width="60px"></asp:TextBox>
                   备注<asp:TextBox ID="bz" runat="server" Width="120px"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                       ControlToValidate="dz" ErrorMessage="地址不能为空"></asp:RequiredFieldValidator>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                       ControlToValidate="dk" ErrorMessage="端口不能为空"></asp:RequiredFieldValidator>
                   <asp:RegularExpressionValidator ID="ddsjre3" runat="server" 
                       ControlToValidate="dk" ErrorMessage="端口必须为非负整数" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
               </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="dz2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.dz") %>' Width="220px" style="width:220px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.dz")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                          <asp:TemplateField HeaderText="端口">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="dk2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.dk") %>' Width="40px" style="width:40px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.dk")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    <asp:TemplateField HeaderText="用户名">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="yhm2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.yhm") %>' Width="60px" style="width:60px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.yhm")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="密码">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="mm2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.mm") %>' Width="60px" style="width:60px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.mm")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="备注">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="bz2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.bz") %>' Width="120px" style="width:120px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                              <%# DataBinder.Eval(Container, "DataItem.bz")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="平均响应时间">
                                           <ItemTemplate>
                                              <%# dbcount("select isnull(avg(hs),0) from gogo_ProxyServerTest where psid=" & DataBinder.Eval(Container, "DataItem.id"))%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="ltl" HeaderText="连通率"  ReadOnly="True" 
                                            DataFormatString="{0}%" />
                                        <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>

