<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.Course.KS_CosVideoAdvertiseManage" Codebehind="KS.CosVideoAdvertiseManage.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
<asp:Panel ID="listPanel" runat="server" Width="100%">
 <div id="manage_top" class="menu_top_fixed">
         <ul class="titleTab">
          <%if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx0", true))
                  { %>
          <li><a href="KS.CosConfig.aspx">系统设置</a></li>
             <%}
               if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx1",true)){ %>
          <div onmouseover="jQuery('#topcd').show();" onmouseout="jQuery('#topcd').hide();" class="liwrap">
                   <li><a href="KS.CosCategory.aspx?type=0">分类设置</a></li>
                   <div id="topcd" class="topcd" style="display:none">
                      <a href="KS.CosCategory.aspx?type=0">网授分类</a>
                      <a href="KS.CosCategory.aspx?type=1">面授分类</a>
                   </div>
           </div>
            <%}
                if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx2", true))
                { %>
          <li><a href="KS.CosLiveConfig.aspx">直播道具</a></li>
             <%}
                 if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx3", true))
                 { %>
          <li><a href="KS.CosFaceType.aspx">面授班型</a></li>
              <%}
                  if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx4", true))
                  { %>
                <div onmouseover="jQuery('#topvideo').show();" onmouseout="jQuery('#topvideo').hide();" class="liwrap">
                   <li><a href="KS.CosAPIConfg.aspx">视频接口</a></li>
                   <div id="topvideo" class="topcd" style="display:none">
                      <a href="KS.CosAPIConfg.aspx">点播接口</a>
                      <a href="KS.CosLiveAPIConfig.aspx">直播接口</a>
                   </div>
             </div>
              <%} %>
            <li class="curr"><a href="KS.CosVideoAdvertiseManage.aspx">设置视频广告</a></li>
       </ul>
 </div>  
<div class="menu_top_fixed_height"></div> 
<div class="content-area">         
	<div class="myTitle">
    	视频广告管理<span class="fr"><asp:LinkButton ID="addboard" runat="server" OnClick="addboard_Click" CssClass="mr20 button button_on">添加广告</asp:LinkButton></span>
   </div>
   <div class="quickSearch clearfix">
        <div class="quickSelect">
          
        </div>  
        <div class="SearchBox fl">
            <asp:DropDownList ID="DrpTJ" runat="server" style="margin-right:8px;">
                <asp:ListItem Value="1" Selected="True">广告名称</asp:ListItem>
              
            </asp:DropDownList>
            <asp:TextBox ID="TxtKeyWord" runat="server" CssClass="textbox" />
            <asp:Button ID="BtnSearch" runat="server" Text="开始搜索" CssClass="button" OnClick="BtnSearch_Click" />
        </div>
   </div>
    <KS:KSGV ID="list" cssclass="CTable" runat="server" EmptyDataText="还没有添加任何的视频广告!" GridLines="None" Width="99%" AutoGenerateColumns="False" PagerType="CustomNumeric"  >
       <Columns>
            
        <asp:TemplateField HeaderText="播放器类型">
              <itemstyle  horizontalalign="Center"/>
              <itemtemplate>
                 <%#Eval("VideoType").ToString()=="5"?"保利威视":"" %>
              </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="状态">
              <itemstyle horizontalalign="Center"/>
              <itemtemplate>
                 <%#Eval("status").ToString()=="10"?"已上线":Eval("status").ToString()=="1"?"待上线":"已下线" %>
              </itemtemplate>
            </asp:TemplateField>                
           <asp:TemplateField HeaderText="广告名称">
                <ItemStyle/>
                <ItemTemplate>
                 <%#Eval("title") %>
                </ItemTemplate>
            </asp:TemplateField>
          
             <asp:TemplateField HeaderText="广告类型">
              <itemstyle width="30px" horizontalalign="Center"/>
              <itemtemplate>
                 <%#Eval("AdvertiseType").ToString()=="1"?"片头":Eval("AdvertiseType").ToString()=="2"?"暂停":"片尾" %>
              </itemtemplate>
            </asp:TemplateField>  
          
            <asp:BoundField DataField="size" DataFormatString="{0} 秒" HeaderText="广告时长">
                <itemstyle horizontalalign="Center" width="50px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="广告时间">
                <ItemStyle horizontalalign="Center"/>
                <ItemTemplate>
                 <%#Utils.StrToDateTime(Eval("startDate").ToString()).ToString("yyyy-MM-dd") %>-<%#Utils.StrToDateTime(Eval("endDate").ToString()).ToString("yyyy-MM-dd") %>
                </ItemTemplate>
            </asp:TemplateField>
           
             <asp:TemplateField HeaderText="修改">
                <ItemStyle horizontalalign="Center"/>
                <ItemTemplate>
              <a href="KS.CosVideoAdvertiseAdd.aspx?action=modify&id=<%#Eval("id")%>">修改</a>
                </ItemTemplate>
            </asp:TemplateField>
           <asp:TemplateField HeaderText="删除">
                <ItemStyle horizontalalign="Center"/>
                <ItemTemplate>
              <a href="KS.CosVideoAdvertiseManage.aspx?action=delete&ids=<%#Eval("id")%>">删除</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
    </KS:KSGV>


    <asp:Panel ID="Panel1" runat="server" Height="30px">
      <div class="listedit">
       
      
      </div>
	</asp:Panel>

    <asp:Label ID="LabPage" runat="server"></asp:Label>

     

        <script type="text/javascript">
            showtips('<span class="state"><strong>说明：本接口只支持保利威视基础版本以上的套餐，其他接口请等待开发。</strong><br /></span>');
		</script>
    </div>
</asp:Panel>


 
</asp:Content>

