<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeBehind="BatchSetCategoryCache.aspx.cs"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Contents.BatchSetCategoryCache" Title="批量设置节点缓存" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="Server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="Server">
    <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">
        <tr class="tdbg">
            <td style="width: 40%" class="tdbgleft">
                <strong>选择批量设置的节点：</strong>
            </td>
            <td style="width: 60%">
                <table>
                    <tr>
                        <td>
                            <span style="color: Red">提示：</span>可以按住“Shift”<br />
                            或“Ctrl”键进行多个节点的选择
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:ListBox ID="LstNodes" runat="server" DataTextField="NodeName" DataValueField="NodeId"
                                SelectionMode="Multiple" Height="282px" Width="250px"></asp:ListBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <input id="BtnSelectAll" onclick="SelectAll()" type="button" class="inputbutton"
                                value="  选定所有节点  " />
                            <input id="BtnCancelAll" onclick="UnSelectAll()" type="button" class="inputbutton"
                                value="取消选定所有节点" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr class="tdbg">
            <td style="width: 260px" class="tdbgleft">
                <strong>动态页缓存：</strong>
            </td>
            <td>
                <span onclick="javascript:SetNeedCache();" id="SetNeedCache">
                    <asp:CheckBox ID="ChkNeedCache" runat="server" />缓存本节点的内容</span>
            </td>
        </tr>
        <tr class="tdbg">
            <td style="width: 260px" class="tdbgleft">
                <strong>设置缓存更新时间为：</strong>
            </td>
            <td>
                <asp:TextBox ID="TxtCacheTime" runat="server" Columns="5"></asp:TextBox>分钟
                <asp:RangeValidator ID="ValgCacheTime" runat="server" ControlToValidate="TxtCacheTime"
                    ErrorMessage="请输入有效实数" MinimumValue="0" MaximumValue="2147483647" Type="Double"
                    SetFocusOnError="True"></asp:RangeValidator>
            </td>
        </tr>
    </table>
    <br />
    <center>
        <asp:Button ID="EBtnSubmit" Text="保存设置结果" OnClick="EBtnSubmit_Click" runat="server" />
        <asp:Button ID="BtnCancel" runat="server" Text="返回" OnClick="BtnCancel_Click" />
    </center>
</asp:Content>
