<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="AddMaster.aspx.cs" Inherits="AddMaster" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> 

    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
        <tr>
            <td>
                <img src="images/r_1.gif" alt="" /></td>
            <td width="100%" background="images/r_0.gif">
            </td>
            <td style="width: 7px">
                <img src="images/r_2.gif" alt="" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                
                    <div>
                        <center>
                             <asp:Panel ID="P3" HorizontalAlign="Center" runat="server" Width="98%">
                                <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
                                    <tr>
                                        <td height="25" class="category">
                                            <span style="color: #ff0000">系统管理员列表</span></td>
                                    </tr>
                                </table>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="height: 20px">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                     CellPadding="4" Font-Names="Verdana" Font-Size="Small" ForeColor="#333333" GridLines="None"
                                     OnPageIndexChanging="GridView1_OnPageIndexChanged" PageSize="4" ShowFooter="True"
                                     Width="98%" OnRowCommand="GridView1_RowCommand" DataKeyNames="userId" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing">
                                     <PagerSettings FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" />
                                     <RowStyle BackColor="#EFF3FB" />
                                     <Columns>
                                         <asp:BoundField DataField="userId" HeaderText="管理员编号">
                                             <HeaderStyle HorizontalAlign="Left" Width="100px" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="username" HeaderText="管理员账号">
                                             <HeaderStyle HorizontalAlign="Left" Width="100px" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="userEmail" HeaderText="电子邮箱">
                                             <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="userPhone" HeaderText="联系方式">
                                             <HeaderStyle Width="100px" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="QQ" HeaderText="Q  Q" />
                                         <asp:ButtonField CommandName="Insert" HeaderText="添加" Text="添加" />
                                         <asp:ButtonField CommandName="Edit" HeaderText="编辑" Text="编辑" />
                                         <asp:TemplateField HeaderText="删除">
                                             <ItemTemplate>
                                                 <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" OnClientClick="return confirm('您真的要删除该记录吗？');">删除</asp:LinkButton>
                                             </ItemTemplate>
                                         </asp:TemplateField>
                                     </Columns>
                                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                     <EditRowStyle BackColor="#2461BF" />
                                     <AlternatingRowStyle BackColor="White" />
                                 </asp:GridView>
                            </asp:Panel>
                            <asp:Panel ID="P2" HorizontalAlign="Center" runat="server" Height="350px" Width="98%">
                                <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
                                    <tr>
                                        <td height="25" class="category">
                                            <span style="color: #ff0000">添加系统管理员</span></td>
                                    </tr>
                                </table>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="height: 20px">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <table width="400" border="0" align="center" cellpadding="1" cellspacing="1" class="tabn">
                                    <tr>
                                        <td width="132" align="center" bgcolor="#F6F6F6">
                                            管理员帐号：</td>
                                        <td height="25" bgcolor="#F6F6F6" style="width: 268px" align="left">
                                            <asp:TextBox ID="txtUid" runat="server"></asp:TextBox><span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填项"
                                                ControlToValidate="txtUid"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                            密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 码：</td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txt_Pwd" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_Pwd"
                                                ErrorMessage="必填项" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#e7e7e7">
                                            确认密码：</td>
                                        <td align="left" bgcolor="#e7e7e7" height="25" style="width: 268px">
                                            <span style="color: #ff0000">
                                                <asp:TextBox ID="txtRePwd" runat="server" TextMode="Password" Width="127px"></asp:TextBox>*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtRePwd"
                                                Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_Pwd"
                                                ControlToValidate="txtRePwd" Display="Dynamic" ErrorMessage="密码不一致"></asp:CompareValidator></td>
                                    </tr>
                                     <tr>
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                            电子邮箱：</td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtEmail" runat="server" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEmail"
                                                ErrorMessage="必填项" Display="Dynamic"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                                Display="Dynamic" ErrorMessage="邮箱格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                                    </tr>
                                     <tr>
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                            联系方式：</td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtPhone" runat="server" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtPhone"
                                                ErrorMessage="必填项" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                    </tr>
                                     <tr>
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                            QQ 号码：</td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtQQ" runat="server" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtQQ"
                                                ErrorMessage="必填项" Display="Dynamic"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#F6F6F6" colspan="2" height="25">
                                            &nbsp;<asp:Button ID="Button1" runat="server" Text="添　　加" Width="103px" OnClick="Button1_Click"
                                                onmousemove='showBtnOver(this)' onmouseout='showBtnOut(this)' CssClass="submitMiniGreen" />
                                            <asp:Button ID="Button4" runat="server" Text="取   消"
                                                onmousemove='showBtnOver(this)' onmouseout='showBtnOut(this)' CssClass="submitMiniGreen" OnClick="Button4_Click" CausesValidation="False" /></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#E7E7E7">
                                            &nbsp;</td>
                                        <td height="25" bgcolor="#E7E7E7" style="width: 268px">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="P1" HorizontalAlign="Center" runat="server" Width="100%">
                                <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
                                    <tr>
                                        <td height="25" class="category">
                                            <span style="color: #ff0000">修改系统管理员</span></td>
                                    </tr>
                                </table>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <table width="400" border="0" align="center" cellpadding="1" cellspacing="1" class="tabn">
                                    <tr>
                                        <td width="132" align="center" bgcolor="#F6F6F6">
                                           <span style="color: #ff0000"> 管理员帐号：</span></td>
                                        <td height="25" bgcolor="#F6F6F6" style="width: 268px" align="left">                                           
                                           <asp:Label ID="txtEditUid" runat="server" Text="" Width="134px"></asp:Label></td>
                                    </tr>
                                    <tr style="color: #1a438e">
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                           <span style="color: #ff0000"> 密 &nbsp; &nbsp; &nbsp; 码</span>：</td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtEditPwd" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtEditPwd"
                                                Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr style="color: #1a438e">
                                        <td align="center" bgcolor="#e7e7e7" style="height: 30px">
                                           <span style="color: #ff0000"> 确认密码：</span></td>
                                        <td align="left" bgcolor="#e7e7e7" style="width: 268px; height: 30px;">
                                            <span style="color: #ff0000">
                                                <asp:TextBox ID="txtEditRePwd" runat="server" TextMode="Password" Width="127px"></asp:TextBox>*</span><span
                                                    style="color: #ff0000"> </span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtEditRePwd"
                                                Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txtEditPwd"
                                                ControlToValidate="txtEditRePwd" Display="Dynamic" ErrorMessage="密码不一致"></asp:CompareValidator></td>
                                    </tr>
                                    <tr style="color: #1a438e">
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                           <span style="color: #ff0000">电子邮箱：</span></td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtEditEmail" runat="server" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtEditEmail"
                                                Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
                                                Display="Dynamic" ErrorMessage="邮箱格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                           <span style="color: #ff0000"> 联系方式：</span></td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtEditPhone" runat="server" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txtEditPhone"
                                                Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#E7E7E7" style="height: 27px">
                                           <span style="color: #ff0000"> QQ 号码</span>：</td>
                                        <td align="left" bgcolor="#E7E7E7" style="width: 268px; height: 27px;">
                                            <asp:TextBox ID="txtEditQQ" runat="server" Width="127px"></asp:TextBox>
                                            <span style="color: Red"">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtEditQQ"
                                                Display="Dynamic" ErrorMessage="必填项"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#F6F6F6" colspan="2" height="25">
                                            &nbsp;<asp:Button ID="Button2" runat="server" Text="修　　改" OnClick="Button2_Click"
                                                onmousemove='showBtnOver(this)' onmouseout='showBtnOut(this)' CssClass="submitMiniGreen" />
                                            <asp:Button ID="Button3" runat="server" Text="取   消"
                                                onmousemove='showBtnOver(this)' onmouseout='showBtnOut(this)' CssClass="submitMiniGreen" OnClick="Button3_Click" CausesValidation="False" />&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#E7E7E7">
                                            &nbsp;</td>
                                        <td height="25" bgcolor="#E7E7E7" style="width: 268px">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </center>
                    </div>
                
            </td>
            <td style="width: 7px">
            </td>
        </tr>
        <tr>
            <td>
                <img src="images/r_4.gif" alt="" /></td>
            <td>
            </td>
            <td style="width: 7px">
                <img src="images/r_3.gif" alt="" /></td>
        </tr>
    </table>    
</asp:Content>
