<%@ page language="C#" autoeventwireup="true" inherits="admin_alladmin, aoshuosoft" %>

<!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="admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="addedit" runat="server" Height="50px" Width="100%" Visible="false">
         <table class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td class="bt" colspan="2" style="text-align: center; height: 35px;">
                        <asp:Literal ID="actionbt" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td >
                        用户名：</td>
                    <td >
                        <asp:TextBox ID="name" runat="server"></asp:TextBox>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td >
                        密码：</td>
                    <td >
                        <asp:TextBox ID="password" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:Literal ID="explain" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td >
                        确认密码：</td>
                    <td >
                        <asp:TextBox ID="passwordtwo" runat="server" TextMode="Password"></asp:TextBox></td>
                </tr>
                <tr>
                    <td >
                        权限分配：</td>
                    <td >  
                        <asp:CheckBox ID="configure" runat="server" Text="常规设置" />
                        <asp:CheckBox ID="news" runat="server" Text="新闻管理" />
                        <asp:CheckBox ID="product" runat="server" Text="产品管理"/>
                        <asp:CheckBox ID="down" runat="server" Text="下载管理" />
                        <asp:CheckBox ID="job" runat="server" Text="招聘管理" />
                        <asp:CheckBox ID="buy" runat="server" Text="采购订单管理"/>
                        <asp:CheckBox ID="leaveword" runat="server" Text="留言管理"/>
                        <asp:CheckBox ID="message" runat="server" Text="短信息管理" />&nbsp;
                        <br />
                        <asp:CheckBox ID="user" runat="server" Text="用户管理" />
                        <asp:CheckBox ID="admingl" runat="server" Text="管理员管理"  />
                        <asp:CheckBox ID="mail" runat="server" Text="邮件管理"  />
                        <asp:CheckBox ID="templet" runat="server" Text="模板管理" />
                        <asp:CheckBox ID="data" runat="server" Text="数据调用管理"/>
                        <asp:CheckBox ID="flash" runat="server" Text="Flash幻灯片管理" />
                        <asp:CheckBox ID="tag" runat="server" Text="标签管理" />
                      
                        </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="add" runat="server" Text="添 加" Width="80px" OnClick="add_Click" />
                        <asp:Button ID="edit" runat="server" Text="修 改" Width="80px" OnClick="edit_Click"  /></td>
                </tr>
            </table>           
        </asp:Panel>
        <asp:Panel ID="alladmin" runat="server" Height="50px" Width="100%" Visible="false">
            <asp:GridView OnPageIndexChanging="GridView1_PageIndexChanging" ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None">
                <Columns>
                    <asp:TemplateField HeaderText="用户名"><ItemTemplate><a href="alladmin.aspx?action=edit&id=<%#Eval("id") %>"><%#Eval("name") %></a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑"><ItemTemplate><a href="alladmin.aspx?action=edit&id=<%#Eval("id") %>">编辑</a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="删除"><ItemTemplate><a href="alladmin.aspx?action=del&id=<%#Eval("id") %>" onclick="return confirm('删除将不可恢复，您真的要删除吗？')">删除</a></ItemTemplate></asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:Literal ID="tj" runat="server"></asp:Literal></asp:Panel>
        <asp:Panel ID="editpassword" runat="server" Height="50px" Width="100%" Visible="false">
            <table class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td class="bt" style="text-align: center; height: 35px;" colspan="2">
                        修改密码</td>
                </tr>
                <tr>
                    <td>
                        用户名：</td>
                    <td>
                        <asp:TextBox ID="editname" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        新密码：</td>
                    <td>
                        <asp:TextBox ID="newpassword" runat="server" TextMode="Password"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        再次输入新密码：</td>
                    <td>
                        <asp:TextBox ID="newpasswordtwo" runat="server" TextMode="Password"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="editpasswordtwo" runat="server" Text="修 改" Width="80px" OnClick="editpasswordtwo_Click" /></td>
                </tr>
            </table>
        </asp:Panel>       
    </div>
    </form>
</body>
</html>
