<%@ Page Language="vb" AutoEventWireup="true"  EnableEventValidation="true"  CodeBehind="ImageList.aspx.vb" Inherits="Dingtai.Website.ImageList" %>

<!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 href="/html/Skins_User/default/css/all.css" rel="stylesheet" type="text/css" />
</head>
<body id="bodyimagelist" >
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Timer ID="Timer1" runat="server" Interval="1000" Enabled="false">
        </asp:Timer>
    <div class="ImageList">
    <asp:TextBox ID="txtID" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtType" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtIsHD" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtIndex" runat="server" Visible="false"></asp:TextBox>
    <div class="imagetitle" style="margin-left:10px; font-size:17px; color:#4a8f2d;">视频 <span id="title" style=" font-weight:bold;"><%=Media.Name%></span>  的图片管理器</div>
      <div class="imagecontext"  style="margin-left:10px; font-size:13px; margin-top:5px; ">
        <label class="imagetimespan">开始截图时间(该视频最大截图时间为<%=Max%>秒):</label>
       <asp:TextBox ID="txtTime" runat="server" Style="width:20px;"></asp:TextBox>
        <asp:Button ID="btnPrint" runat="server" Text="截图" />
    </div>
        
    <asp:Repeater ID="Repeater1" runat="server" >
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li><img src='<%# Dingtai.BLL.Media.Provider.Medias.GetImgUrl(FileServer.Domain, GetDataItem() ,"","") %>' />
            <asp:Button ID="btnSet" runat="server"  Text="设为封面"  CommandName="Set" CommandArgument="<%#GetDataItem() %>"/> <asp:Button ID="btnDel" runat="server" Text="删除" CommandName="Del"  CommandArgument="<%#GetDataItem() %>"/> </li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>        
    </asp:Repeater>
    </div>    
    
    </form>
</body>
</html>
