<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Other_PushInfoList, QianboCMS" EnableEventValidation="false" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 href="../Css/layout.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Js/Common.js"></script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="PushInfoList.aspx">广告管理</a> &gt;&gt; 广告位列表
				</td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0" class="border" align="center">
            <tr>
                <td class="wzlist"><a href="SetPushInfo.aspx">添加广告</a> | <a href="SetPushCategory.aspx">添加广告位</a> | <a href="PushInfoList.aspx">广告列表</a> | <a href="PushCategoryList.aspx">广告位列表</a></td>
            </tr>
        </table>
        <table id="rptTable" class="border" cellpadding="0" cellspacing="1" align="center">
            <asp:Repeater ID="rptAdCategory" runat="server" OnItemCommand="rptItemCommand" OnItemDataBound="rptItemDataBound">
                <HeaderTemplate>
                    <tr class="title">
                        <td width="30px">选择</td>
                        <td width="30px">编号</td>
                        <td>名称</td>
                        <td width="180px">所属广告位</td>
                        <td width="30px">类型</td>
                        <td width="90px">过期时间</td>
                        <td width="60px">显示权重</td>
                        <td width="60px">点击次数</td>
                        <td width="90px">常规操作</td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="tdbg" onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                        <td><asp:CheckBox ID="chkBox" runat="server" /></td>
                        <td><asp:Literal ID="LitId" runat="server" Text='<%#Eval("AdId") %>'></asp:Literal></td>
                        <td align="left"><a href="SetPushInfo.aspx?adid=<%#Eval("AdId") %>"><%#Eval("AdName") %></a></td>
                        <td><%#SetCategoryName(Eval("CategoryName"))%></td>
                        <td><asp:Literal ID="LitType" runat="server" Text='<%#Eval("AdType") %>'></asp:Literal></td>
                        <td><%#SetDate(Eval("EndTime"))%></td>
                        <td><%#Eval("Weight") %></td>
                        <td><%#Eval("HitCount") %></td>
                        <td>
							<a href="SetPushInfo.aspx?adid=<%#Eval("AdId") %>">修改</a>
                            <asp:LinkButton ID="lnkbtnDelete" runat="server" OnClientClick="return confirm('是否确定删除此广告？')" CommandArgument='<%#Eval("AdId")+"|"+Eval("CategoryId") %>' CommandName="Delete">删除</asp:LinkButton>
						</td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <table class="border" cellpadding="0" cellspacing="1" align="center">
            <tr>
                <td class="wzlist">
                    <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页" OnPageChanging="Pager_PageChanging" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Never" ShowNavigationToolTip="True" Width="99%" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager>
				</td>
            </tr>
        </table>
        <table class="border" cellpadding="0" cellspacing="1" align="center">
            <tr>
                <td class="wzlist">
                    <input id="chk" type="checkbox" onclick="SelectAll('chk', 'rptTable')" />
                    全选
					<asp:Button ID="DeleteAll" runat="server" Text="删除所选项" CssClass="btn" OnClick="DeleteAll_Click" OnClientClick="return confirm('是否确定删除所选项？');" />
				</td>
            </tr>
        </table>
        <table class="border" cellpadding="0" cellspacing="1" align="center">
            <tr>
                <td class="wzlist">
					<span class="tips">在下列情况下，您需要手动刷新广告位JS：<br />
                    ·批量删除广告<br />
                    ·有已过期广告</span>
				</td>
            </tr>
        </table>
    </form>
</body>
</html>