<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SubscriptionNewsList.aspx.cs"
    Inherits="Admin_Subscription_SubscriptionNewsList" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理商机快递</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <script type="text/javascript">
        function SelectAll()
        {
            // 找到所有的 input 元素
            var ctllist = document.getElementsByTagName("input");
            var objcheckbox= document.getElementById("CheckBox2");     
            for( var i = 0; i< ctllist.length; i++)
            {
                if(ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0 )
                {   
                    if(objcheckbox.checked==true)     
                         ctllist[i].checked = true;
                    else
                         ctllist[i].checked = false;
                }
          
             }
         }
    </script>

</head>
<body>
    <form id="form1" runat="server">
      	<div class="itemtitle">
            <h3>
                操作提示</h3>
        </div>
        <div class="itemtitle_tect">
            <ul>
                <li>通过供应信息管理，您可以进行编辑信息审核、推荐、修改和删除等操作；</li>
            </ul>
        </div>
        <div class="clr">
        </div>
		<div class="partition"> 
            <div class="Option">
                <span><strong>快捷操作</strong></span>
				<span><a href="SubscriptionProductList.aspx">订阅供求信息管理</a></span>
				<span class="pl"><a href="SubscriptionNewsList.aspx">订阅商业资讯管理</a></span>
            </div>
		</div>
			<div class="talbe_border">
            <asp:DataList ID="dlstSubscription" runat="server" OnDeleteCommand="dlstSubscription_DeleteCommand" Width="100%" OnItemDataBound="dlstSubscription_ItemDataBound">
			<HeaderTemplate>
			   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="talbe_th header">
				<tr>
				 <th class="th20 tou"></th>    
				 <th class="left2">订阅内容</th>
				 <th class="th80">会员</th>
				 <th class="th80">操作</th>
				</tr>
			   </table>
			</HeaderTemplate>
			<ItemTemplate>
				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="talbe_td">
					<tr>
						<td style=" width:24px;">
							<asp:CheckBox ID="CheckBox1" runat="server" />
							<asp:Label ID="lblUserId" runat="server" Text='<%# Eval("UserID") %>' Visible="false"></asp:Label>
							<%-- <asp:Label ID="lblType" Text='<%# Eval("Name") %>' runat="server" Visible="false"></asp:Label>--%>
							<asp:Label ID="lblEmail" Text='<%# Eval("Email") %>' runat="server" Visible="false"></asp:Label>
						</td>
						<td class="left4">
							<asp:Label ID="lblTypeInfo" runat="server" Text='<%# Eval("UserID") %>'></asp:Label>
						</td>
						<td style=" width:119px;">
							<asp:Label ID="lblLoginName" Text='<%# Eval("LoginName") %>' runat="server"></asp:Label>
						</td>
						<td style=" width:119px;">
							<asp:LinkButton ID="lbtnDelete" runat="server" CommandArgument='<%# Eval("UserID") %>' OnCommand="lbtnDelete_Command">删除</asp:LinkButton>
						</td>
					</tr>
				</table>
			</ItemTemplate>
		</asp:DataList>
			<div class="Paging">
            <p>
			<uc1:PageNo ID="PageNo1" runat="server" />
            <asp:Label ID="lblMessage" Visible="false" ForeColor="red" runat="server"></asp:Label>
			</p>
			<input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />全选<asp:Button
				ID="btnSend" runat="server" Font-Size="9pt" Text="批量发送" OnClick="btnSend_Click" CssClass="i_button" />
			<asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="批量删除" CssClass="i_button" />
            </div>
        </div>
    </form>
</body>
</html>
