<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_Adv_List.aspx.cs" Inherits="YCHR.Web.admin.Ad.YC_Adv_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>
<script type="text/javascript" src="../js/jquery-1.4.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="../images/style.css" />
<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_Adv_Add.aspx">增加广告位</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 class="pl20"><b>管理选项：</b><a href="YC_Adv_List.aspx">广告管理首页</a> | <a href="YC_Adv_add.aspx">添加广告位</a> | [<a href="javascript:location.reload()">刷新页面</a>]</td>
    </tr>
    <tr>
      <td height=25 class="pl20"><b>广告搜索：
        <asp:DropDownList ID="ddlProperty" 
        runat="server" AutoPostBack="True" CssClass="select" 
        onselectedindexchanged="ddlProperty_SelectedIndexChanged">
          <asp:ListItem Value="">所有类别</asp:ListItem>
          <asp:ListItem Value="1">文字</asp:ListItem>
          <asp:ListItem Value="2">图片</asp:ListItem>
          <asp:ListItem Value="3">幻灯片</asp:ListItem>
          <asp:ListItem Value="4">动画</asp:ListItem>
          <asp:ListItem Value="5">视频</asp:ListItem>
          <asp:ListItem Value="6">代码</asp:ListItem>
        </asp:DropDownList>
        </b>&nbsp;
        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox>
        &nbsp;
        <asp:Button ID="btnSelect" runat="server" Text="查询" 
                onclick="btnSelect_Click" CssClass="submit" /></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="8%">类型</th>
        <th width="8%">数量</th>
        <th width="15%">价格</th>
        <th width="10%">尺寸</th>
        <th width="10%">链接目标</th>
        <th width="18%">管理操作</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"><a title="管理该广告位下的广告列表" href="YC_Bar_List.aspx?apid=<%#Eval("ID") %>"><%#Eval("adname")%></a></td>
        <td align="center"><%#GetTypeName(Eval("AdType").ToString())%></td>
        <td align="center"><%#Eval("AdNum").ToString()%></td>
        <td align="center"><%#Convert.ToDouble(Eval("AdPrice")).ToString("#.##")%> 元/月</td>
        <td align="center"><%#Eval("AdWidth").ToString()%>×<%#Eval("AdHeight").ToString()%></td>
        <td align="center"><%#Eval("AdTarget")%></td>
        <td align="center"><span><a href="YC_Bar_List.aspx?apid=<%#Eval("ID") %>">广告管理</a>&nbsp;<a href="YC_Bar_View.aspx?apid=<%#Eval("ID") %>&advtype=<%#Eval("AdType") %>">调用代码</a>&nbsp;<a href="YC_Adv_add.aspx?apid=<%#Eval("ID") %>">编辑</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>
      </span> </div>
  </div>
</form>
</body>
</html>