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

<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">
                        <asp:Literal ID="ltEdit" runat="server" Text="编辑" Visible="false"></asp:Literal><asp:Literal
                            ID="ltAdd" runat="server" Text="添加"></asp:Literal>排除规则</h1>
                </td>
            </tr>
            <tr>
                <td class="edit_main">
                    <asp:HiddenField ID="hfId" runat="server" />
                    <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                        <tr class="tr1">
                            <td colspan="2">
                                此功能是设置哪些页面不需要自动更新，比如说某个页面，你认为没有必要自动更新，则可以将添加到下面的列表！</td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    规则名称：</div>
                            </td>
                            <td align="left">
                                <asp:CheckBox ID="cbIsActive" CssClass="checkbox" runat="server" onclick="$('#matchUrlParameter').toggle()"
                                    Text="选中表示启用" Checked="True" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    源网址：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbFilePath" runat="server" Width="95%" Wrap="False" />
                                <br />
                                此处是模糊匹配，输入原网页地址的完整地址或部分地址（需包含http://），则规则生效！
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="errorInfo" runat="server" Text="Label"></asp:Label>
                                <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 class="clear" style="margin-top: 10px;">
        </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="gvNotUpdatePages" runat="server" GridLines="None" CssClass="table_list"
                        Width="100%" EnableModelValidation="True" AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" Text="【编辑】" CommandArgument='<%# Bind("Id") %>'
                                        OnClick="lbEdit_Click"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandArgument='<%# Bind("Id") %>'
                                        Text="【删除】" OnClick="lbDelete_Click" OnClientClick="if(confirm('确认删除记录?')){eval(this.attributes['href'].value)}else{return false}"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Id" HeaderText="规则编号" SortExpression="Id" />
                            <asp:BoundField DataField="SiteId" HeaderText="站点编号" SortExpression="SiteId" />
                            <asp:TemplateField HeaderText="源网址" SortExpression="FilePath">
                                <ItemTemplate>
                                    <asp:TextBox ID="tbFilePath" runat="server" Text='<%# Bind("FilePath") %>' 
                                        ReadOnly="true" Width="500px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CheckBoxField DataField="IsActive" HeaderText="是否启用" SortExpression="IsActive" />
                            <asp:BoundField DataField="CreatedOn" HeaderText="创建时间" SortExpression="CreatedOn" />
                        </Columns>
                        <HeaderStyle CssClass="tr1" />
                        <RowStyle CssClass="tr_a" />
                        <AlternatingRowStyle CssClass="tr_b" />
                        <EmptyDataTemplate>
                            没有数据，请先添加！
                        </EmptyDataTemplate>
                        <FooterStyle CssClass="dg_header" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <div class="clear" style="margin-top: 10px;">
        </div>
    </div>
</asp:Content>
