<%@ page language="C#" autoeventwireup="true" inherits="system_user, 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 rel="stylesheet" href="skin.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="all" runat="server" Height="50px" Width="100%" Visible="false">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" Width="100%" AutoGenerateColumns="False"
            CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20" DataKeyNames="name">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
            <asp:TemplateField><HeaderTemplate><asp:CheckBox ID="chkAll" runat="server" AutoPostBack="True" OnCheckedChanged="chkAll_CheckedChanged" /></HeaderTemplate><ItemTemplate><asp:CheckBox ID="chkItem" runat="server" /></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="用户名称"><ItemTemplate><a href="user.aspx?name=<%#Eval("name") %>"><%#Eval("name") %></a></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="浏览网站"><ItemTemplate><a href="url.aspx?name=<%#Eval("name") %>" target="_blank">浏览网站</a></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="注册时间"><ItemTemplate><%#Eval("time") %></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="到期时间"><ItemTemplate><%#Eval("dqtime") %></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="删除用户"><ItemTemplate><a href="user.aspx?action=del&mc=<%#Eval("name") %>" onclick=" return confirm('删除将不可恢复，您真的要删除吗？')">删除用户</a></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="删除用户并同时删除目录"><ItemTemplate><a href="user.aspx?action=delfile&mc=<%#Eval("name") %>" onclick=" return confirm('用户的模板文件及上传文件将会被全部删除并不可恢复！您真的要删除吗？')">删除用户并同时删除目录</a></ItemTemplate></asp:TemplateField>
            </Columns>
            <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:Button ID="btscuser" runat="server" Text="删除用户" Visible="false" OnClick="btscuser_Click" />
            <asp:Button ID="btscqbuser" runat="server" Text="删除用户并同时删除目录" Visible="false" OnClick="btscqbuser_Click" />
        </asp:Panel>
        <asp:Panel ID="xx" runat="server" Height="50px" Width="100%" Visible="false">
            <table border="0" class="table" style=" font-size:12px;" cellpadding="3" cellspacing="1" align="center" width="100%">
                <tr>
                    <td colspan="2" style=" font-size:12px; font-weight:bold; text-align:center; height: 29px;">
                        用户信息</td>
                </tr>  
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        注册时间：</td>
                    <td >
                        <asp:Literal ID="time" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        到期时间：</td>
                    <td >
                        <asp:TextBox ID="dqtime" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        剩余使用天数：</td>
                    <td >
                        <asp:Literal ID="syts" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        空间大小：</td>
                    <td>
                        <asp:TextBox ID="kj" runat="server"></asp:TextBox>M</td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        用户状态：</td>
                    <td >
                        <asp:DropDownList ID="sf" runat="server">
                            <asp:ListItem Value="no">试用</asp:ListItem>
                            <asp:ListItem Value="yes">商业</asp:ListItem>
                            <asp:ListItem Value="mf">免费</asp:ListItem>
                        </asp:DropDownList>
                        </td>
                </tr>   
                   
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        分配的二级域名：</td>
                    <td >
                        <asp:Literal ID="url" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        自助绑定的域名：</td>
                    <td >
                        <asp:Literal ID="zzurl" runat="server"></asp:Literal></td>
                </tr>                
                <tr>
                    <td style="width: 20%; text-align: right">
                        首页定向：</td>
                    <td>
                        <asp:RadioButton ID="kq" runat="server" GroupName="0"  Text="开启" /><asp:RadioButton
                            ID="gb" runat="server" Checked="True" GroupName="0"  Text="关闭" /></td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        定向地址：</td>
                    <td>
                        <asp:TextBox ID="urltwo" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        用户名称：</td>
                    <td >
                        <asp:TextBox ID="username" runat="server" ForeColor="#FF0033"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="text-align: right; width: 20%;">
                        密码：</td>
                    <td >
                        <asp:TextBox ID="pasone" runat="server"></asp:TextBox>
                        不修改密码请留空</td>
                </tr>
                <tr>
                    <td style="text-align: right; width: 20%;">
                        确认密码：</td>
                    <td >
                        <asp:TextBox ID="pastwo" runat="server"></asp:TextBox>
                        不修改密码请留空</td>
                </tr>
                <tr>
                    <td style="text-align: right; width: 20%;">
                        找回密码问题：</td>
                    <td >
                        <asp:TextBox ID="zh" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="text-align: right; width: 20%;">
                        找回密码答案：</td>
                    <td >
                        <asp:TextBox ID="da" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        真实姓名：</td>
                    <td >
                        <asp:TextBox ID="zsxm" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        性别：</td>
                    <td >
                        <asp:DropDownList ID="xb" runat="server">
                            <asp:ListItem>男</asp:ListItem>
                            <asp:ListItem>女</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        联系电话：</td>
                    <td >
                        <asp:TextBox ID="dh" runat="server"></asp:TextBox></td>
                </tr>                
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        联系QQ：</td>
                    <td >
                        <asp:TextBox ID="qq" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        电子邮件：</td>
                    <td >
                        <asp:TextBox ID="mail" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align:right; width: 20%;">
                        联系地址：</td>
                    <td >
                        <asp:TextBox ID="dz" runat="server" Width="280px"></asp:TextBox></td>
                </tr>                
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:CheckBox ID="folder" runat="server"  Text="删除目录(选择此项后此用户的模板文件及上传文件将会被全部删除，并且不可恢复！)" Visible="false" ForeColor="#FF0000" /></td>
                </tr>
                <tr>
                    <td style="text-align: center;text-align:center;" colspan="2" >
                        <asp:Button ID="dksc" runat="server" Text="打开删除按钮" Width="125px" OnClick="dksc_Click" />
                        <asp:Button ID="save" runat="server" Text="保存" Width="125px" OnClick="save_Click" />
                         <asp:Button ID="scab" runat="server" Text="删除"  Visible="false" Width="125px" OnClick="scab_Click" />
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="cx" runat="server" Height="50px" Width="100%" Visible="false">
            <table border="0" class="table" cellpadding="3" cellspacing="1" align="center" style="font-size:12px;" >
                <tr>
                    <td colspan="2" style=" text-align:center; font-size:12px; font-weight:bold; height: 34px;">
                        查询用户</td>
                </tr>
                <tr>
                    <td >
                        输入用户名：</td>
                    <td >
                        <asp:TextBox ID="cxuser" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2" style=" text-align:center">
                        <asp:Button ID="kscx" runat="server" Text="查询" Width="120px" OnClick="kscx_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Literal ID="tj" runat="server" ></asp:Literal>    </div>
    </form>
</body>
</html>
