<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Contents.MobileBatchSet"   Codebehind="MobileBatchSet.aspx.cs" 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: 40%" class="tdbgleft">
                <strong>是否启用手机端：</strong>
            </td>
            <td style="width: 60%">
                <asp:RadioButtonList ID="RbtnlEnablePhone" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="True">是</asp:ListItem>
                    <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td style="width: 40%" class="tdbgleft">
                <strong>是否启用平板端：</strong>
            </td>
            <td style="width: 60%">
                <asp:RadioButtonList ID="RbtnlEnablePad" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="True">是</asp:ListItem>
                    <asp:ListItem Value="False" Selected="True">否</asp:ListItem>
                </asp:RadioButtonList>
            </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>
    <script type="text/javascript">
        function SelectAll() {
            for (var i = 0; i < document.getElementById('<%=LstNodes.ClientID%>').length; i++) {
                document.getElementById('<%=LstNodes.ClientID%>').options[i].selected = true;
            }
        }

        function UnSelectAll() {
            for (var i = 0; i < document.getElementById('<%=LstNodes.ClientID%>').length; i++) {
                document.getElementById('<%=LstNodes.ClientID%>').options[i].selected = false;
            }
        }
    </script>
</asp:Content>
