<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MediaAdsList.aspx.vb" Inherits="Dingtai.Website.MediaAdsList" %>
<%@ Register src="~/App_Data/Controls/PageControl.ascx" tagname="PageControl" 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 id="Head1" runat="server">
    <title>无标题页</title>   
</head>
<body onload="setTableBg();">
    <form id="form1" runat="server">
        <div id="body">
            <div id="title">                
                <h5>您现在的位置：<a href="#">后台管理</a> &gt; 广告管理列表</h5>
            </div>
            <div id="box">
                <div id="an_box">
                    <ul>
                        <li><%--<a href ="AddAds.aspx"><div class="add" alt="新增"  /></a>--%></li>                 
                        <li><%--<a href ="#" ><div class="qx" alt="全选" onclick ="SelectAll();"  /></a>--%> </li>
                        <li><%--<a href ="#" ><div class="fx" alt="反选" onclick ="Inverse();" /></a>--%> </li>
                        <li><%--<a href ="#" ><div class="dels" alt="批量删除"  onclick ="delMedias();" /></a>--%>  &nbsp;</li>
                    </ul>                
                </div>
                <div class="body_box" id="body_box">
                    <asp:Repeater ID="Repeater1" runat="server">
                       <HeaderTemplate >
                            <table id="t" class="table_bg" onclick="clickto()" onmousemove="fmove()" onmouseout="fout()" >
                            <tr class="table_border">
                                <th>选择</th>
                                <th>名 称</th>
                                <%--<th>类 型</th>--%>
                                <th>路径</th>
                                <th>开始时间</th>
                               
                                <th>结束时间</th>
                                <th>播放时长</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                       </HeaderTemplate>
                       <ItemTemplate>                                  
                            <tr class="table_border2">
                                <td align ="center"><input type="checkbox" name="checkboxid"  id="checkboxid" value="<%#Eval("ID") %>" /></td>
                                <td align ="center"><%#Eval("Name")%></td>          
                                <%--<td align ="center"><%#Eval("Type")%></td>--%>
                                <td align ="center"><%#GetSubstring(Convert.ToString(Eval("Path")), 40)%></td>
                                <td align ="center"><%#GetDate(Eval("StartDate"))%></td>                        
                                <td align ="center"><%#GetDate(Eval("EndDate"))%></td> 
                                <td align ="center"><%#Eval("ShowTime")%></td> 
                                <td align="center"><%#IIf(Convert.ToString(Eval("AdStatus")) = "Y", "<font style='color:green;'>已开启</font>", "<font style='color:red;'>已关闭</font>")%></td>
                                <td align="center">
                                    <asp:Label ID="Label1" runat="server" Text="123" Visible ="false" ></asp:Label>
                                    <asp:LinkButton ID="LinkButton2" runat="server">
                                    <a href ="UpdateAds.aspx?id=<%# Eval("ID") %>"><asp:Image ID="Image2" runat="server"  ImageUrl ="/Skins/default/images/box_an9.gif" /></a> 
                                    </asp:LinkButton>
                                    <%--<asp:LinkButton ID="LinkButton3"  CommandName ="myDel" CommandArgument ='<%# Eval("ID") %>' OnClientClick ="return confirm('确定删除吗？')"  runat="server">
                                    <asp:Image ID="Image3" runat="server"  ImageUrl ="/Skins/default/images/box_an6.gif"  />
                                    </asp:LinkButton>--%>  
                                </td>
                            </tr>
                       </ItemTemplate>
                       <FooterTemplate>
                           </table>
                       </FooterTemplate>
                   </asp:Repeater>
                   <uc1:PageControl ID="Page2" runat="server" ShowFirstLast="true" ShowPrevNext="true" 
                    FirstPageText="首 页" LastPageText="末 页" PrevPageText="上一页" NextPageText="下一页" AlwaysShow="true" 
                    ShowCustomInfoSec="left" NumericButtonCount="5" PagingButtonSpacing="25px" 
                    CustomInfoHTML="当前 %CurrentPageIndex% 页 共 %PageCount% 页" />
                </div>
            </div>          
        </div>  
    </form>
</body>
</html>

