<%@ page language="C#" autoeventwireup="true" inherits="manage_Qmail_SubscribeTypeList, App_Web_aunhunhk" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server">
    <title>订阅管理</title>
    <link href="../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../App_Themes/AdminDefaultTheme/main.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="r_navigation">
            
            <span>后台管理</span> &gt;&gt; <span>附件管理</span> &gt;&gt; <span>邮件订阅 </span>&gt;&gt;
            <span>订阅管理</span>
        </div>
        <div class="clearbox">
        </div>
        <div>
        <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
                <tr class="tdbg">
                    <td align="center" class="spacingtitle">
                        订阅管理</td>
                </tr>
                <tr class="tdbg">
        <td>
        添加订阅类别：<asp:TextBox ID="txtTepy" runat="server" class="l_input"></asp:TextBox><asp:Button ID="Button1"
                        runat="server" Text="添  加" OnClick="Button1_Click" class="C_input" />
        </td>
        </tr>
        <tr class="tdbg">
        <td>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="ID">
                <Columns>
                    <asp:TemplateField HeaderText="编号">
                        <HeaderStyle Width="80px" />
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="订阅类别名称">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SubscribeName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <HeaderStyle Width="160px" />
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("SubscribeName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="调用代码">
                        <ItemTemplate>
                        <%#GetCode( DataBinder.Eval(Container.DataItem,"ID").ToString()) %>                 
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="邮址列表" HeaderStyle-Width="55px" ItemStyle-HorizontalAlign="Center" >
                        <ItemTemplate>
                            <a href="MailListManage.aspx?typeid=<%#DataBinder.Eval(Container.DataItem,"ID") %>" title='<%#DataBinder.Eval(Container.DataItem,"SubscribeName")+"的邮址列表" %>'>邮址列表</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowEditButton="True" ItemStyle-HorizontalAlign="Center" >
                        <HeaderStyle Width="60px" />
                    </asp:CommandField>
                    <asp:CommandField ShowDeleteButton="True" ItemStyle-HorizontalAlign="Center" >
                        <HeaderStyle Width="40px" />
                    </asp:CommandField>
                </Columns>
            </asp:GridView>
        </td>
        </tr>
        <tr class="tdbg">
        <td align="center">
                    共<asp:Label ID="Allnum" runat="server" Text=""></asp:Label>&nbsp;
                    <asp:Label ID="Toppage" runat="server" Text=""></asp:Label>
                    <asp:Label ID="Nextpage" runat="server" Text=""></asp:Label>
                    <asp:Label ID="Downpage" runat="server" Text=""></asp:Label>
                    <asp:Label ID="Endpage" runat="server" Text=""></asp:Label>
                    页次：<asp:Label ID="Nowpage" runat="server" Text=""></asp:Label>/<asp:Label ID="PageSize"
                        runat="server" Text=""></asp:Label>页
                    <asp:Label ID="pagess" runat="server" Text=""></asp:Label>个/页 转到第<asp:DropDownList
                        ID="DropDownList1" runat="server" AutoPostBack="True">
                    </asp:DropDownList>页</td>
        </tr>
        </table>
        </div>
    </form>
</body>
</html>