<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Admin_adminuseredit, App_Web_gqabgzwv" enableEventValidation="false" %>
<%@ Register Assembly="Validators" Namespace="Sample.Web.UI.Compatibility" TagPrefix="cc1" %>
<!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 runat="server">
    <title>管理员设置</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width:auto;">
                <table width="100%" height="94" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="right" background="images/shezhi1.jpg"><table width="671" height="94" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" background="images/shezhi.jpg"><table width="162" height="19" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td align="right" class="biaoti18">管理员设置</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center"><hr />
                               <img src="images/bu.gif" width="12" height="12">　
                                <asp:LinkButton ID="lkbtnAddNew" runat="server" OnClick="lkbtnAddNew_Click">添加新的分类</asp:LinkButton></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                    ForeColor="#333333" GridLines="None" Width="500px" OnRowDeleting="GridView1_RowDeleting" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" DataKeyNames="AdminUserID">
                                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <Columns>
                                        <asp:BoundField DataField="AdminUserName" HeaderText="用户名">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:CommandField ShowSelectButton="True">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:CommandField>
                                        <asp:CommandField ShowDeleteButton="True" />
                                    </Columns>
                                      <RowStyle BackColor="#D9EBFF" ForeColor="#333333" />
                                    <SelectedRowStyle BackColor="#637991" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#637991" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#4a6b84" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="500" border="0" cellpadding="2" cellspacing="1" bgcolor="#d9ebff">
                                    <tr>
                                        <td align="right" bgcolor="#FFFFFF">
                                        用户名：
                                        </td>
                                        <td bgcolor="#FFFFFF">
                                            <asp:TextBox ID="tbxAdminUserName" runat="server"></asp:TextBox>
                                            <cc1:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxAdminUserName"
                                                Display="None" ErrorMessage="用户名不能为空" SetFocusOnError="True" ValidationGroup="adminuser"></cc1:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#FFFFFF">
                                        密码：
                                        </td>
                                        <td bgcolor="#FFFFFF">
                                            <asp:TextBox ID="tbxAdminUserPwd" runat="server" TextMode="Password"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#FFFFFF">
                                        确认密码：
                                        </td>
                                        <td bgcolor="#FFFFFF">
                                            <asp:TextBox ID="tbxConfirmPwd" runat="server" TextMode="Password"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#FFFFFF">
                                        </td>
                                        <td bgcolor="#FFFFFF">
                                            <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" ValidationGroup="adminuser" />
                                            <asp:Button ID="btnUpdate" runat="server" Text="修改" OnClick="btnUpdate_Click" ValidationGroup="adminuser" />
                                            <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
                                            <asp:HiddenField ID="hideAdminUserID" runat="server" />
                                        
                                        </td>
                                    </tr>
                                    
                                </table>
                                <asp:Panel ID="Panel1" runat="server" Width="100%" Visible="false">
                                    <table width="500" border="0" cellpadding="0"  cellspacing="1" bgcolor="#d9ebff">
                                        <tr>
                                            <td align="center" bgcolor="#FFFFFF">
                                                已分配权限
                                            </td>
                                            <td bgcolor="#FFFFFF">
                                            </td>
                                            <td align="center" bgcolor="#FFFFFF">
                                                未分配权限
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" bgcolor="#FFFFFF">
                                                <asp:ListBox ID="ListBox1" runat="server" Width="150px" Height="150px" SelectionMode="Multiple"></asp:ListBox></td>
                                            <td align="center" bgcolor="#FFFFFF">
                                                <asp:Button ID="btnAddRights" runat="server" Text="<<" OnClick="btnAddRights_Click" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btnDelRights" runat="server" Text=">>" OnClick="btnDelRights_Click" /></td>
                                            <td align="center" bgcolor="#FFFFFF">
                                                <asp:ListBox ID="ListBox2" runat="server" Width="150px" Height="150px" SelectionMode="Multiple"></asp:ListBox></td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#FFFFFF"></td>
                                            <td align="center" bgcolor="#FFFFFF">
                                                <asp:Button ID="Button1" runat="server" Text="保存" Width="70px" OnClick="Button1_Click" /></td>
                                            <td bgcolor="#FFFFFF"></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                                    TargetControlID="RequiredFieldValidator1">
                                </ajaxToolkit:ValidatorCalloutExtender>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
