<%@ Page Title="" Language="C#" MasterPageFile="~/Management/SiteManage.Master" AutoEventWireup="true"
    CodeBehind="Proxy.aspx.cs" Inherits="BingoWebsiteCollector.Web.Management.Proxy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="right" style="text-align: center; margin-top: 10px;">
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr>
                <td class="title_edit">
                    <h1 style="float: left">
                        代理服务器设置</h1>
                </td>
            </tr>
            <tr>
                <td class="edit_main">
                    <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                        <tr class="tr1">
                            <td colspan="2">
                                <asp:Label ID="laTitle" runat="server" Text="添加代理服务器"></asp:Label><br />
                                <asp:Label ID="laErrorInfo" runat="server" ForeColor="Red"></asp:Label>
                                <asp:Label ID="laSuccessInfo" runat="server" ForeColor="Green"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    代理服务器地址<font color="red">*</font>：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbAddress" runat="server" Width="80%" Wrap="False" />
                                <validation targetid="<%=tbAddress.ClientID%>" targetname="代理服务器地址" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">
                                <div align="right">
                                    域：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbDomain" runat="server" Wrap="False" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">
                                <div align="right">
                                    登录用户名：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbUserName" runat="server" Wrap="False" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">
                                <div align="right">
                                    登录密码：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbPassword" runat="server" Wrap="False" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    选项：</div>
                            </td>
                            <td align="left">
                                <asp:CheckBox ID="cbIsEnable" CssClass="checkbox" runat="server" Text="是否激活" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:LinkButton ID="lbSubmit" runat="server" Text="【提交】" OnClick="lbSubmit_Click"
                                    OnClientClick="return validateForm()" />
                                &nbsp;<asp:LinkButton ID="lbCancel" runat="server" Text="【取消】" OnClick="lbCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div class="clear">
    </div>
    <div class="right" style="text-align: center; margin-top: 10px;">
        <div class="clear">
        </div>
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr>
                <td class="title_edit">
                    <h1 style="float: left">
                        代理服务器列表</h1>
                </td>
            </tr>
            <tr>
                <td class="edit_main">
                    <asp:GridView ID="gvProxys" runat="server" AutoGenerateColumns="False" GridLines="None"
                        CssClass="table_list" Width="100%" EnableModelValidation="True">
                        <Columns>
                            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" Text="【编辑】" CommandArgument='<%# Bind("ProxyId") %>'
                                        OnClick="lbEdit_Click"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandArgument='<%# Bind("ProxyId") %>'
                                        Text="【删除】" OnClick="lbDelete_Click" OnClientClick="if(confirm('确认删除记录?')){eval(this.attributes['href'].value)}else{return false}"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ProxyId" HeaderText="编号" SortExpression="ProxyId" />
                            <asp:BoundField DataField="IsEnable" HeaderText="是否激活" SortExpression="IsEnable" />
                            <asp:BoundField DataField="Address" HeaderText="代理服务器地址" SortExpression="Address" />
                            <asp:BoundField DataField="Domain" HeaderText="域" SortExpression="Domain" />
                            <asp:BoundField DataField="UserName" HeaderText="用户名" SortExpression="UserName" />
                            <asp:BoundField DataField="Password" HeaderText="密码" SortExpression="Password" />
                            <asp:BoundField DataField="CreatedOn" HeaderText="创建时间" SortExpression="CreatedOn" />
                            <asp:BoundField DataField="UpdatedOn" HeaderText="修改时间" SortExpression="UpdatedOn" />
                        </Columns>
                        <HeaderStyle CssClass="tr1" />
                        <RowStyle CssClass="tr_a" />
                        <AlternatingRowStyle CssClass="tr_b" />
                        <EmptyDataTemplate>
                            没有找到该站点的代理服务器，请先添加！
                        </EmptyDataTemplate>
                        <FooterStyle CssClass="dg_header" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <div class="clear" style="margin-top: 10px;">
    </div>
</asp:Content>
