<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_Bar_List.aspx.cs" Inherits="YCHR.Web.admin.Adv.YC_Bar_List" %>
<!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>
<link rel="stylesheet" type="text/css" href="../images/style.css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/function.js"></script>
</head>
<body style="padding:10px;">
<form id="form1" runat="server">
  <div class="navigation"><span class="add"><a href="YC_bar_Add.aspx?apid=<%=this.apid %>">增加广告</a></span><b>您当前的位置：管理中心 &gt; 系统管理 &gt; 广告列表</b></div>
  <div class="spClear"></div>
  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" >
    <tr>
      <td height=25  ><b>&nbsp; 管理选项：</b><a href="YC_Adv_List.aspx">广告管理首页</a> |&nbsp; <a href="YC_bar_Add.aspx?apid=<%=this.apid %>&action=add">新加广告</a>&nbsp;&nbsp; [<a href="javascript:location.reload()">刷新页面</a>]</td>
    </tr>
    <tr>
      <td height=25  ><b>&nbsp; 所属广告位：</b>
        <asp:Label ID="lblAdTitle" runat="server"></asp:Label></td>
    </tr>
  </table>
  <div class="spClear"></div>
  <asp:Repeater ID="rptList" runat="server" >
    <HeaderTemplate>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
      <tr>
        <th width="6%">选择</th>
        <th width="25%">广告名称</th>
        <th width="12%">开始时间</th>
        <th width="12%">到期时间</th>
        <th width="10%">链接</th>
        <th width="8%">状态</th>
        <th width="18%">发布时间</th>
        <th width="9%">管理操作</th>
      </tr>
    </HeaderTemplate>
    <ItemTemplate>
      <tr>
        <td align="center"><asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" />
          <asp:Label ID="lb_id" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Label></td>
        <td align="center"><%#Eval("advsname")%><img title="<%#Eval("advsname")%>"  src="<%#Eval("AdvsUrl") %>" class="imgad" /></td>
        <td align="center"><%#string.Format("{0:yyyy-MM-dd}", Eval("STime"))%></td>
        <td align="center"><%#string.Format("{0:yyyy-MM-dd}", Eval("ETime"))%></td>
        <td align="center"><a target="_blank" href="<%#Eval("LinkUrl") %>">广告链接</a></td>
        <td align="center"><%#GetAdState(Eval("IsLock").ToString(), Eval("ETime").ToString())%></td>
        <td align="center"><%#string.Format("{0:g}",Eval("AddTime"))%></td>
        <td align="center"><span><a href="YC_bar_Add.aspx?barid=<%#Eval("ID") %>&action=edit">编辑</a></span></td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      </table>
    </FooterTemplate>
  </asp:Repeater>
  <div class="spClear"></div>
  <div style="line-height:30px;height:30px;">
    <div id="Pagination" class="right flickr"></div>
    <div class="left"> <span class="btn_all" onclick="checkAll(this);">全选</span> <span class="btn_bg">
      <asp:LinkButton ID="lbtnDel" runat="server" 
                    OnClientClick="return confirm( '确定要删除这些记录吗？ ');" 
                    onclick="lbtnDel_Click">删 除</asp:LinkButton>
      &nbsp;<a href="YC_Adv_List.aspx">返回广告位</a> </span> </div>
  </div>
</form>
</body>
</html>
