<%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_pass, oyaya" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    管理密码
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">   
      <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
        <tr>
            <td class="top_table_td1">  </td>
            <td class="top_table_td2"> 帐号管理</td>
            <td class="top_table_td3" width="651">
            </td>
        </tr>
        <tr>
            <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 608px">
                    <tr>
                        <td style="width: 217px;" height="30">
                            帐号：<asp:TextBox ID="TextBox1" runat="server"  Width="153px" CssClass="TextBox" ValidationGroup="aa"></asp:TextBox></td>
                        <td style="text-align: left; height: 30px;">
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="请输入帐号？" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="width: 217px; height: 30px">
                            密码：<asp:TextBox ID="TextBox2" runat="server" CssClass="TextBox" TextMode="Password" ValidationGroup="aa"></asp:TextBox></td>
                        <td style="height: 30px; text-align: left">
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                                ErrorMessage="请输入密码？" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: left; padding-left: 20px; border-bottom: #cadcea 1px solid;">
                <br />
                <table border="0" cellpadding="0" cellspacing="0" style="width: 237px">
                    <tr>
                        <td style="width: 73px; height: 25px;">
                <asp:Button ID="Button1" runat="server" Text="添加帐号" CssClass="Button" OnClick="Button1_Click" ValidationGroup="aa"  /></td>
                        <td style="width: 100px; height: 25px;">
                </td>
                    </tr>
                </table>
                <br />
                </td>
        </tr>
    <tr>
        <td colspan="3">
            <asp:DataList ID="DataList1" runat="server" OnCancelCommand="DataList1_CancelCommand" OnEditCommand="DataList1_EditCommand" OnItemCommand="DataList1_ItemCommand" OnUpdateCommand="DataList1_UpdateCommand">
                <ItemTemplate>
                        <table style="border-bottom: #cadcea 1px solid; width: 748px;">
                            <tr>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; width: 80px; padding-left:20px;">
                                ID：<asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 160px;" >
                                帐号：<asp:Label ID="Label2" runat="server" Text='<%# Eval("usersname") %>'></asp:Label></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >密码：******</td>
                                <td style="width: 120px">
                                <asp:Button ID="Button3" runat="server" Text="修改" CommandName="edit" CausesValidation="False" CssClass="Button" />&nbsp;
                                  <asp:Button ID="Button2" runat="server" CausesValidation="False" CssClass="Button"  Text="删除" CommandName="Delete" /></td>
                            </tr>
                        </table>
                  </ItemTemplate>
                  <EditItemTemplate>
                        <table border="0" cellpadding="0" cellspacing="0"　style="width: 100%;">
                            <tr>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 80px;" >
                                    ID:<asp:Label ID="Label5" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 210px;" >
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("usersname") %>' CssClass="TextBox"></asp:TextBox></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >
                                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Eval("password") %>' CssClass="TextBox"></asp:TextBox></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 130px;" >
                                    &nbsp;<asp:Button ID="Button4" runat="server" CommandName="update" Text="更新" CausesValidation="False" CssClass="Button" />&nbsp;
                                    <asp:Button ID="Button5" runat="server" CommandName="cancel" Text="取消" CausesValidation="False" CssClass="Button" /></td>
                            </tr>
                        </table>
                    </EditItemTemplate>
            </asp:DataList></td>
    </tr>
    </table>
</asp:Content>

