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

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<%@ 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 id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="adzonelist.aspx">广告位列表</a> >> 
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
    <table class="dh3" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td style="padding-left: 10px">
                <a href="SetAd.aspx?ParentId=<%=Request.QueryString["ParentId"] %>">添加广告</a>
            </td>
        </tr>
    </table>
    <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
        <tr class="title">
            <td width="4%" class="t1">
                ID
            </td>
            <td width="25%">
                广告名称
            </td>
            <td width="10%">
                展现方式
            </td>
            <td width="8%">
                时间限制
            </td>
            <td width="10%">
                展现次数
            </td>
            <td width="8%">
                权重
            </td>
            <td width="10%">
                审核状态
            </td>
            <td width="10%">
                添加日期
            </td>
            <td width="15%">
                操作
            </td>
        </tr>
        <asp:Repeater ID="RepAdZone" runat="server" OnItemCommand="RepAdZone_ItemCommand">
            <ItemTemplate>
                <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                    <td align="center" class="t1">
                    <%#Eval("ID")%>
                    </td>
                    <td align="center">
                        <%#Eval("Name")%>
                    </td>
                    <td align="center">
                        <%#GetShowType(Eval("ShowType","{0}"))%>
                    </td>
                    <td align="center">
                        <%# Function.GetStyleTrue(Eval("IsTimeLimit", "{0}"))%>
                    </td>
                    <td align="center">
                        <%#Eval("ShowNum")%>
                    </td>
                    <td align="center">
                        <%#Eval("Priority")%>
                    </td>
                    <td align="center">
                        <%#GetAuditing(Eval("Auditing","{0}"))%>
                    </td>
                    <td align="center">
                        <%# Eval("AddTime","{0:yyyy-MM-dd}")%>
                    </td>
                    <td align="center">
                        <a href="SetAd.aspx?ParentId=<%=Request.QueryString["ParentId"] %>&Id=<%#Eval("Id") %>">编辑</a> ┊
                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Del" CommandArgument='<%# Eval("Id") %>'
                            OnClientClick="return confirm('确定移除该条记录吗?')">移除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table cellpadding="0" cellspacing="1" class="dh2" align="center" width="99%">
        <tr>
            <td>
                <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                    LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                    showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                    Width="99%">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
