<%@ Page Language="C#" MasterPageFile="~/Admin/WebUI/AdminPageTemplate.Master"  AutoEventWireup="true" CodeBehind="AddSilverAlbumImage.aspx.cs" Inherits="EnjooSite.Web.Admin.SilverAlbumManager.AddSilverAlbumImage" %>

<asp:Content ID="UserProfileContent" ContentPlaceHolderID="UserProfileContentPlace" runat="server">
    <asp:ScriptManagerProxy id="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/Admin/ajaxHelper_SilverAlbum.js" />
            <asp:ScriptReference Path="~/Common/Scripts/swfupload/swfupload_2.2b.js" />
            <asp:ScriptReference Path="~/Common/Scripts/swfobject/swfobject_2.1.js" />
            <asp:ScriptReference Path="~/Common/Scripts/jQueryUI/jquery-ui-sortable_dialog-1.5.3.packed.js" />
            <asp:ScriptReference Path="~/Scripts/jQuery/jTemplates/jquery-jtemplates-0.7.5.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
</asp:Content>

<asp:Content ID="LocationContent" ContentPlaceHolderID="ContentLocationContentPlace" runat="server">
    <ul class="vList content_location clearfix">
        <li>
            <b><%= UIText.GetSafeText("Label_Location_Text")%></b>
        </li>
        <li>
            <a href='<%= UrlHelper.GetAdminCenterUrl() %>' title='<%= UIText.GetSafeText("Label_AdminCenter_Text") %>'><span><%= UIText.GetSafeText("Label_AdminCenter_Text") %></span></a>
        </li>
        <li class="vSeparate">
            <span>»</span>
        </li>
        <li>
            <label><%= UIText.GetSafeText("Label_AlbumManager_Text")%></label>
        </li>
    </ul>
</asp:Content>

<asp:Content ID="ContentActionsContent" ContentPlaceHolderID="ContentActionsContentPlace" runat="server">
    <ul class="vList clearfix menuButtons" id="silverAlbumActions">
        <li>
            <a href="#" title='<%= UIText.GetSafeText("Button_Save_Text") %>' class="save">
                <span><%= UIText.GetSafeText("Button_Save_Text")%></span>
            </a>
        </li>
        <li class="separate">
            <span></span>
        </li>
        <li>
            <a href="#" title='<%= UIText.GetSafeText("Button_AddSilverAlbum_Text") %>' class="add_silveralbum">
                <span><%= UIText.GetSafeText("Button_AddSilverAlbum_Text")%></span>
            </a>
        </li>
        <li>
            <a href="#" title='<%= UIText.GetSafeText("Button_AddSilverImage_Text") %>' class="add_silverimage">
                <span><div id="swfUploadPlaceHolder"><%= UIText.GetSafeText("Button_AddSilverImage_Text")%></div></span>
            </a>
        </li>
        <li class="separate">
            <span></span>
        </li>
        <li>
            <a href="#" title='<%= UIText.GetSafeText("Button_Delete_Text") %>' class="delete">
                <span><%= UIText.GetSafeText("Button_Delete_Text")%></span>
            </a>
        </li>
    </ul>
</asp:Content>

<asp:Content ID="content" ContentPlaceHolderID="pageContent" runat="server">
    <div id="silverAlbumBox" class="grid_6 alpha" style="margin:0;width:470px;">
        <div class="ajaxLoading"></div>
        
        <div class="hSpace_10"></div>
    
        <div class="swf_container" style="margin:0 auto;">
            <div id="silverAlbumSwf_Block"></div>
            <div id="silverAlbumSwf_Block_Content"></div>
            <div id="silverAlbumSwfContainer"><div id="enjooSite_silverAlbum"></div></div>
        </div>
        
        <div class="hSpace_10"></div>
        
        <div class="silver_images_sortable_container">
            <span style="margin:0 0 0 5px;">图像列表(鼠标拖动调整顺序并自动保存)</span>
            <div class="clearfix"></div>
            <ul id="silverAlbumImagesContainer" class="vList clearfix"></ul>
        </div>
        
    </div>
    <div class="grid_4 omega" style="margin:0;width:310px;">
    
        <div class="enjoosite_tabs">
            <div class="enjoosite_tabs_bottomline"></div>
            <ul class="enjoosite_tabs_tab_container vList clearfix" id="silverAlbumFramesAndEffectsTabs">
                <li class="enjoosite_tabs_tab current"><a href="#" title="" commandArguments="silverAlbumFrameContainer"><span>炫彩边框</span></a></li>
                <li class="enjoosite_tabs_tab"><a href="#" title="" commandArguments="silverAlbumEffectsContainer"><span>动感特效</span></a></li>
                <li class="enjoosite_tabs_tab"><a href="#" title="" commandArguments="silverAlbumMusicContainer"><span>背景音乐</span></a></li>
            </ul>
        </div>
        
        <div class="enjoosite_tab_content" id="silverAlbumFrameContainer">
            <ul class="vList clearfix">
                <li><label>分类</label></li>
                <li><a href="#" commandArguments="1"><span>场景</span></a></li>
                <li><a href="#" commandArguments="24"><span>点缀</span></a></li>
                <li><a href="#" commandArguments="47"><span>搞笑</span></a></li>
                <li><a href="#" commandArguments="70"><span>爱情</span></a></li>
                <li><a href="#" commandArguments="93"><span>动漫</span></a></li>
                <li><a href="#" commandArguments="116"><span>喜庆</span></a></li>
            </ul>
            <ul class="vList thumb_list_50 clearfix" id="frameList"></ul>
        </div>
        
        <div class="enjoosite_tab_content" id="silverAlbumEffectsContainer">
            <ul class="vList clearfix">
                <li><label>分类</label></li>
                <li><a href="#" commandArguments="1"><span>时尚</span></a></li>
                <li><a href="#" commandArguments="24"><span>友情</span></a></li>
                <li><a href="#" commandArguments="47"><span>动漫</span></a></li>
                <li><a href="#" commandArguments="70"><span>MM</span></a></li>
                <li><a href="#" commandArguments="93"><span>非主流</span></a></li>
                <li><a href="#" commandArguments="116"><span>亲友</span></a></li>
                <li><a href="#" commandArguments="139"><span>娱乐</span></a></li>
            </ul>
            <ul class="vList thumb_list_50 clearfix" id="effectsList"></ul>
        </div>  
        
        <div class="enjoosite_tab_content" id="silverAlbumMusicContainer">    
            <div class="hSpace_10"></div>        
            <ul class="vList clearfix">
                <li><input type="text" id="silverAlbumMusicTextBox" /></li>
                <li><a href="#" commandArguments="setSilverAlbumMusic"><span>设置背景音乐</span></a></li>
            </ul>
            <div class="hSpace_10"></div>
            
            <ul class="hList">
                <li>请输入mp3音乐文件完整地址</li>
                <li>&nbsp;</li>
                <li>如：http://www.music.com/music.mp3</li>
                <li>&nbsp;</li>
                <li><a href="http://mp3.baidu.com" title="网络地址容易失效，请慎重选择!" target="_blank">搜索我喜欢的音乐</a></li>
            </ul>
        </div>  
    
        <div class="hSpace_10"></div>
        
    </div>
    
    <div id="addSilverImage_Location_Container"></div>
    
    <% if (Request["SilverAlbumId"] != null)
       {
           if (EnjooSite.Framework.Text.StringHelper.IsNumeric(Request["SilverAlbumId"]))
           {  %>
            <script type="text/javascript">
                __currentSilverAlbumId = <%= Request["SilverAlbumId"] %> ;
                buildSilverAlbum({<%= GetSilverAlbum( Request["SilverAlbumId"]) %>});
                rebuildSilverAlbumImageList(<%= GetSilverImages( Request["SilverAlbumId"]) %> );
            </script>
    <%      }
        } %>
</asp:Content>