<%@ page language="C#" autoeventwireup="true" inherits="system_dj, 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="ac" runat="server" Height="50px" Width="100%" Visible="false">
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <table border="0" cellpadding="3" cellspacing="1"  class="stable" align="center" style="width: 37%">
                <tr>
                    <td colspan="2" style=" text-align:center;height: 30px; font-weight:bold;">
                        <asp:Literal ID="acbt" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style=" text-align:right; ">
                        等级名称：</td>
                    <td style="width: 184px">
                        <asp:TextBox ID="mc" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style=" text-align: right">
                        价格：</td>
                    <td>
                        <asp:TextBox ID="jg" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="text-align:right; ">
                        空间大小：</td>
                    <td >
                        <asp:TextBox ID="dx" runat="server"></asp:TextBox>M</td>
                </tr>
                <tr>
                    <td colspan="2" style=" text-align:center">
                        <asp:Button ID="add" runat="server" Text="添加" Width="89px" OnClick="add_Click" /> <asp:Button ID="edit" runat="server" Text="修改" Width="89px" OnClick="edit_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="gl" runat="server" Height="50px" Width="100%" Visible="false">
            <asp:GridView ID="GridView1" runat="server"  OnPageIndexChanging="GridView1_PageIndexChanging"  AllowPaging="True" AllowSorting="True" Width="100%"
                AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None"
                BorderWidth="1px" CellPadding="4" PageSize="15">
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <Columns>
                    <asp:BoundField DataField="mc" HeaderText="等级名称" />
                    <asp:TemplateField HeaderText="大小"><ItemTemplate><%#Eval("dx") %>M</ItemTemplate></asp:TemplateField>
                    <asp:BoundField DataField="jg" HeaderText="价格" />
                    <asp:TemplateField HeaderText="删除"><ItemTemplate><a href="dj.aspx?action=del&id=<%#Eval("id") %>" onclick="return confirm('删除将不可恢复，你真的要删除吗？')">删除</a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="修改"><ItemTemplate><a href="dj.aspx?action=edit&id=<%#Eval("id") %>" >修改</a></ItemTemplate></asp:TemplateField>
                </Columns>
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            </asp:GridView>
            <asp:Literal ID="tj" runat="server"></asp:Literal>
        </asp:Panel>
    
    </div>
    </form>
</body>
</html>
