<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="Flash.aspx.cs" Inherits="SocoShop.Web.Admin.Flash" %>
<%@ Import Namespace="SocoShop.Business" %>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Register Assembly="SkyCES.EntLib" Namespace="SkyCES.EntLib" TagPrefix="SkyCES" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>Flash列表</div>
<ul class="listHead">	
	<li style="width:5%">ID</li>
    <li style="width:25%; text-align:left;text-indent:8px;">标题</li>    
    <li style="width:40%;">说明</li>    
    <li style="width:10%">宽 X 高</li>		
    <li style="width:10%">调用代码</li>	  
    <li style="width:10%">管理</li>
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>
		<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">				
			<li style="width:5%"><%# Eval("ID")%></li>
            <li style="width:25%; text-align:left;text-indent:8px;"><%# Eval("Title")%></li>  
            <li style="width:40%"><%# Eval("Introduce")%></li>          
            <li style="width:10%"><%# Eval("Width")%> X <%# Eval("Height")%></li>
            <li style="width:10%"><a href="javascript:CopyText('<%# ShopCommon.GetFlashFile(Eval("ID").ToString()) %>')"><strong><font color="blue">点击获取</font></strong></a></li>	    
            <li style="width:10%">
                <a href="javascript:popPageOnly('FlashPhoto.aspx?FlashID=<%# Eval("ID")%>',800,600,'Flash图片管理','FlashPhoto<%# Eval("ID") %>')"><img src="Style/Images/list.gif" alt="Flash图片管理" title="Flash图片管理" /></a>  
                <a href="javascript:pop('FlashAdd.aspx?ID=<%# Eval("ID") %>',600,300,'Flash修改','FlashAdd<%# Eval("ID") %>')"><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a> 
            </li>	
		</ul>
	</ItemTemplate>
</asp:Repeater>
<div class="listPage">
    <SkyCES:CommonPager ID="MyPager" runat="server" />
</div>
<div class="action">
    <input type="button"  value=" 添 加 " class="button"  onclick="pop('FlashAdd.aspx',600,300,' Flash添加','FlashAdd')"/>
</div>
<script language="javascript" type="text/javascript">    
    function CopyText(fileName)
    {
	    var isMinIE4 = (document.all) ? 1 : 0;
	    var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;
	    if ( isMinIE5 )
	    {
	        var js="<script language=\"javascript\" src=\"" + fileName + "\" type=\"text/javascript\"><\/script>";
		    window.clipboardData.setData("Text", js);
		    alert("复制成功！请粘贴到您所需要的位置中。\n内容如下：\n" + js);
		    return;
	    }	    
    }
</script>
</asp:Content>