<%@ page language="C#" autoeventwireup="true" inherits="Admin_User_Manage_User, Huibo.Net" enableviewstatemac="false" enableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>查看修改商品</title>
    <link href="../style/StyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="../style/workplace-merge.css" rel="stylesheet" />
    <link href="../style/index-new-merge.css" rel="stylesheet" />

    <script type="text/javascript" src="../JS/JScriptUser.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="Admin_ID" Value="" runat="server" />
        <asp:HiddenField ID="Admin_Menu" Value="" runat="server" />
        <input id="menuid" type="hidden" value="" />
        <iframe id="fraMenu" scrolling="no" frameborder="0" style="position: absolute; width: 555px;
            height: 370px; display: none;"></iframe>
        <div id="divMenu" style="position: absolute; width: 555px; display: none;">
            <div id="divTop" style="width: 100%; height: 25px; background: white; border: 1px blue solid;">
                <div style="padding: 5px; float: left; width: 480px; height: 25px; cursor: default;"
                    onmousedown="drag_start(event);" onmousemove="drag_move(event);" onmouseup="drag_stop(event);">
                    <div style="color: red; font-weight: bold; display: inline">
                        &#x40A;
                    </div>
                    <div id="divTitle" style="display: inline">
                    </div>
                </div>
                <div style="float: right; color: blue; white-space: nowrap;">
                    <div style="float: right; padding: 5px; cursor: pointer; width: 23px;" title="Close"
                        onclick="MenuClose()">
                        &#x2573;</div>
                    <div style="float: right; padding: 5px; cursor: pointer; width: 23px;" title="Maximize"
                        onclick="MenuMaxz()">
                    </div>
                    <div style="float: right; padding: 5px; cursor: pointer; width: 23px;" title="Minimize"
                        onclick="MenuMinz()">
                    </div>
                </div>
            </div>
            <div id="divBody" style="padding: 5px; display: block; background: white; border: 1px blue solid;
                border-top: 0px;">
                <div name="frmMenu" id="frmMenu" style="margin: 0px; height: 300px; overflow-y: scroll;
                    overflow-x: hidden;">
                    <input type="hidden" name="id" value="0" />
                    <div style="padding: 5px; width: 520px;">
                        管理员&nbsp;<div id="divAdmin" style="font-weight: bold; display: inline;">
                        </div>
                        &nbsp;的详细权限：</div>
                    <asp:Repeater ID="Mea" runat="server" OnItemDataBound="Mea_ItemDataBound">
                        <ItemTemplate>
                            <div style="padding: 5px; width: 520px; border-top: 1px blue solid;">
                                <div style="padding: 5px; float: left; width: 128px; white-space: nowrap; color: red;">
                                    <input type="checkbox" onclick="SaveMenu()" name="menu" id="menu_<%#Eval("M_ID") %>"
                                        value="<%#Eval("M_ID") %>" /><b><%#Eval("M_Name") %></b>
                                </div>
                                <asp:Repeater ID="Meau" runat="server">
                                    <ItemTemplate>
                                        <div style="padding: 5px; float: left; width: 128px; white-space: nowrap;">
                                            <input type="checkbox" name="menu" onclick="SaveMenu()" id="menu_<%#Eval("M_ID") %>"
                                                value="<%#Eval("M_ID") %>" /><%#Eval("M_Name") %>
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div style="padding: 5px; float: left; width: 128px; white-space: nowrap;">
                                    <input type="button" value="全选" onclick="MenuCheck('<%#Eval("N_ID") %>')" />
                                    <input type="button" value="清除" onclick="MenuClear('<%#Eval("N_ID") %>')" />
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div style="padding: 5px; height: 20px; text-align: center; border-top: 1px blue solid;">
                    <input type="button" style="float: left; margin-left: 70px;" value="全部选择" onclick="MenuCheck()" />
                    <input type="button" style="float: left;" value="全部清除" onclick="MenuClear()" />
                    <input type="button" style="float: left; " value="保存修改" id="SaveAll"
                        onclick="SaveButton()" />
                    <asp:Button ID="MenuSave" Style="float: left; display: none;" runat="server" Text="保存修改" OnClick="MenuSave_Click" />
                    <input type="button" style="float: left;" value="取消修改" onclick="MenuClose()" />
                </div>
            </div>
            <div style="height: 20px;">
            </div>
        </div>
        <%--上边是权限弹出窗口代码--%>
        <asp:HiddenField ID="Shortcuts_ID" Value="" runat="server" />
        <asp:HiddenField ID="Shortcuts_Menu" Value="" runat="server" />
        <input type="hidden" id="ShortID" value="" />
        <iframe id="Shortcuts" scrolling="no" frameborder="0" style="position: absolute;
            width: 555px; height: 370px; display: none;"></iframe>
        <div id="ShortcutsMenu" style="position: absolute; width: 555px; display: none;">
            <div id="ShortcutsTop" style="width: 100%; height: 25px; background: white; border: 1px blue solid;">
                <div style="padding: 5px; float: left; width: 480px; height: 25px; cursor: default;"
                    onmousedown="drag_start(event);" onmousemove="drag_move(event);" onmouseup="drag_stop(event);">
                    <div style="color: red; font-weight: bold; display: inline">
                        &#x40A;
                    </div>
                    <div id="ShortcutsTitle" style="display: inline">
                    </div>
                </div>
                <div style="float: left; color: blue; height: 25px; white-space: nowrap;">
                    <div style="float: right; padding: 5px; cursor: pointer; width: 23px;" title="Close"
                        onclick="ShortcutsClose()">
                        &#x2573;</div>
                    <div style="float: left; padding: 5px; cursor: pointer; width: 23px;" title="Maximize">
                    </div>
                    <div style="float: left; padding: 5px; cursor: pointer; width: 23px;" title="Minimize">
                    </div>
                </div>
            </div>
            <div id="ShortcutsBody" style="padding: 5px; display: block; background: white; border: 1px blue solid;
                border-top: 0px;">
                <div name="frmMenu" id="Div2" style="margin: 0px; height: 300px; overflow-y: scroll;
                    overflow-x: hidden;">
                    <input type="hidden" name="Shortcutsid" value="0" />
                    <div style="padding: 5px; width: 520px;">
                        管理员&nbsp;<div id="divShortcuts" style="font-weight: bold; display: inline;">
                        </div>
                        &nbsp;的快捷入口：</div>
                    <asp:Repeater ID="ShortcutsRepeater" runat="server">
                        <ItemTemplate>
                            <div style="padding: 5px; float: left; width: 128px; white-space: nowrap;">
                                <input type="checkbox" name="Shortcuts" onclick="ShortcutsSaveMenu()" id="Shortcuts_<%#Eval("M_ID") %>"
                                    value="<%#Eval("M_ID") %>" /><%#Eval("M_Name") %>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div style="padding: 5px; height: 20px; text-align: center; border-top: 1px blue solid;">
                    <input type="button" style="float: left; margin-left: 70px;" value="全部选择" onclick="ShortcutsMenuCheck()" />
                    <input type="button" style="float: left;" value="全部清除" onclick="ShortcutsMenuClear()" />
                    <input type="button" style="float: left;" value="保存修改" id="Button1"
                        onclick="ShortcutsSaveButton()" />
                    <asp:Button ID="Button2" Style="float: left; display:none;" runat="server" Text="保存修改" OnClick="ShortcutsSave_Click" />
                    <input type="button" style="float: left;" value="取消修改" onclick="ShortcutsClose()" />
                </div>
            </div>
            <div style="height: 20px;">
            </div>
        </div>
        <%--上边是快接入口弹出窗口代码--%>
        <div style="width: 99%; text-align: center;">
            <div class="mod-wp-win">
                <div class="win-head-wrap">
                    <div class="win-head" id="mod-info-center-head">
                        <p>
                            用户管理</p>
                    </div>
                </div>
                <div class="mod-info-center clr">
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#6A7F9A">
                        <tr>
                            <td bgcolor="#FFFFFF" align="center">
                                <div class="DLBoder">
                                    <asp:DataList ID="ManageUser" runat="server" Width="100%" 
                                        OnDeleteCommand="ManageUser_DeleteCommand" OnUpdateCommand="ManageUser_UpdateCommand">
                                        <HeaderTemplate>
                                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr style="height: 25px;">
                                                    <td class="DLBodertd" style="width: 15%;">
                                                        用户名
                                                    </td>
                                                    <td class="DLBodertd" style="width: 15%;">
                                                        密码
                                                    </td>
                                                    <td class="DLBodertd" style="width: 15%;">
                                                        详细权限
                                                    </td>
                                                    <td class="DLBodertd" style="width: 15%;">
                                                        快捷入口
                                                    </td>
                                                    <%--<td class="DLBodertd" style="width: 15%;">
                                                        权限
                                                    </td>--%>
                                                    <td class="DLBodertd" style="width: 15%;">
                                                        会员级别
                                                    </td>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td class="DLBodertd">
                                                    <asp:TextBox ID="ManageUser" Text='<%# DataBinder.Eval(Container, "DataItem.admins")%>'
                                                        runat="server" Width="100px"></asp:TextBox>
                                                    <input name="admin" id="admin<%# DataBinder.Eval(Container, "DataItem.id")%>" type="hidden"
                                                        value="<%# DataBinder.Eval(Container, "DataItem.admins")%>">
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:TextBox ID="Pwd" TextMode="Password" Text='<%# DataBinder.Eval(Container, "DataItem.password")%>'
                                                        Width="100px" runat="server"></asp:TextBox>
                                                </td>
                                                <td class="DLBodertd">
                                                    <input type="button" value="设 置" onclick="MenuShow(<%# DataBinder.Eval(Container, "DataItem.id")%>,<%=Numbers %>);" />
                                                </td>
                                                <td class="DLBodertd">
                                                    <input type="button" value="设 置" onclick="ShortcutsShow(<%# DataBinder.Eval(Container, "DataItem.id")%>,<%=Numbers++ %>);" />
                                                </td>
                                                <%--<td class="DLBodertd">--%>
                                                    <input type="hidden" name="menus" id="menu<%# DataBinder.Eval(Container, "DataItem.id")%>"
                                                        value="<%# DataBinder.Eval(Container, "DataItem.menu")%>" />
                                                    <input type="hidden" name="Shortcutss" id="Shortcuts<%# DataBinder.Eval(Container, "DataItem.id")%>"
                                                        value="<%# DataBinder.Eval(Container, "DataItem.Shortcuts")%>" />
                                                    <asp:HiddenField ID="ShortMenu" Value='<%# DataBinder.Eval(Container, "DataItem.Shortcuts")%>' runat="server" />
                                                    <asp:HiddenField ID="MangeMenu" Value='<%# DataBinder.Eval(Container, "DataItem.menu")%>'
                                                        runat="server" />
                                                    <%--<asp:RadioButton ID="Rank1" Text="管理" runat="server" />
                                                    <asp:RadioButton ID="Rank2" Text="添加" runat="server" />
                                                    <asp:RadioButton ID="Rank3" Text="查看" runat="server" />--%>
                                                <%--</td>--%>
                                                <td class="DLBodertd">
                                                    <asp:Button ID="Update" runat="server" CommandName="update" Text="更新" Height="22px"
                                                        Width="50px" />
                                                    <asp:Button ID="Delete" CommandName="Delete" runat="server" Height="22px" Width="50px"
                                                        Text="删除" />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:DataList>
                                </div>
                                <div style="height: 30px;">
                                </div>
                                <%--<div class="DLBoder">
                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                                        <tr style="height: 25px;">
                                            <td class="DLBodertd" style="width: 15%;">
                                                用户名
                                            </td>
                                            <td class="DLBodertd" style="width: 15%;">
                                                密码
                                            </td>
                                            <td class="DLBodertd" style="width: 15%;">
                                                详细权限
                                            </td>
                                             <td class="DLBodertd" style="width: 15%;">
                                                快捷入口
                                            </td>
                                            <td class="DLBodertd" style="width: 15%;">
                                                权限
                                            </td>
                                            <td class="DLBodertd" style="width: 15%;">
                                                会员级别
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="DLBodertd" align="center">
                                                <asp:TextBox ID="ManageU" Width="100px" runat="server"></asp:TextBox>
                                            </td>
                                            <td class="DLBodertd" align="center">
                                                <asp:TextBox ID="Pwd" Width="100px" runat="server" TextMode="Password"></asp:TextBox>
                                            </td>
                                            <td class="DLBodertd" align="center">
                                                <input type="button" value="设 置" onclick="MenuShow(0,0);" />
                                            </td>
                                            <td class="DLBodertd" align="center">
                                                <input type="button" value="设 置" onclick="ShortcutsShow(0,0);" />
                                            </td>
                                            <td class="DLBodertd" align="center">
                                                <input type="hidden" name="menu2" id="menu0" value="" />
                                                <input type="hidden" name="Shortcuts2" id="Shortcuts0" value="" />
                                                <asp:HiddenField ID="ManageUser_ctl00_ShortMenu" Value="" runat="server" />
                                                <asp:HiddenField ID="ManageUser_ctl00_MangeMenu" Value="" runat="server" />
                                                <asp:RadioButton ID="Rank1" Text="管理" runat="server" />
                                                <asp:RadioButton ID="Rank2" Checked="true" Text="添加" runat="server" />
                                                <asp:RadioButton ID="Rank3" Text="查看" runat="server" />
                                            </td>
                                            <td class="DLBodertd" align="center">
                                                <asp:Button ID="ManageAdd" runat="server" Text="添加" Height="22px" Width="70px" OnClick="ManageAdd_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>--%>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
