<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master/User.Master" CodeBehind="MyAlbum.aspx.vb" Inherits="Dingtai.Website.MyAlbum" 
    title="无标题页" %>
<%@ Register src="~/App_Data/Controls/PageControl.ascx" tagname="PageControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="body_left">
<div class="body_left_top"></div>
<div id="body_left_conter">
<div id="upload_title" style="color:#FFF;">我的专辑管理 <a href="MyAlbumAdd.aspx"  style="color:#FFF;margin-left:10px;">添加专辑</a> <a href="MyAlbum.aspx"  style="color:#FFF;margin-left:10px;">普通专辑</a> <a href="/template/sitemap.html"  style="color:#FFF;margin-left:10px;">高清专辑</a>
  <div class="back"> <a href="javascript:history.back(-1)">返回上页</a></div>
</div>

<div class="MyVideos">
 <asp:Repeater ID="Repeater1" runat="server">
  <HeaderTemplate>
<ul class="MyVideos_content">
 </HeaderTemplate>
<ItemTemplate>
<li>
<p class="img"><a href ="#" onclick ="window.open('<%#Dingtai.Output.Items.Cache_New.GetAlbumPath(Eval("ID").toString(),false,0,1) %>')"><img src="<%#  Eval("ImageUrl") %>" width="102" height="75"></a></p>
<p class="box"><a href ="#" onclick ="window.open('<%#Dingtai.Output.Items.Cache_New.GetAlbumPath(Eval("ID").toString(),false,0,1) %>')"><b><%#Eval("Name")%></b></a> <br>
频道：<b style="margin-right:157px;"><%#getChanNameByID(Eval("ChannelID").ToString())%></b>标签：<b><%#Eval("Tag")%></b><br>
<span style="margin-right:125px;">上传时间：<%#Eval("CreateDate", "{0:yyyy-MM-dd}").ToString()%></span><span style="margin-right:31px;">人气：<%#Eval("TotalView")%></span><br>
<span  class="jieshao">简介：<%#Eval("Detail")%></span>
<span class="box_an">
<a href="MyAlbumUpdate.aspx?id=<%#Eval("ID") %>&ishd=<%= isHd %>" class="an1">修改专辑</a>
<a href="#" class="an5" onclick="delAmlById('<%#Eval("ID") %>','<%= isHd %>');">删除</a></span>
</p>
  </li>
</ItemTemplate>
<FooterTemplate>  
</ul>
</FooterTemplate>  
</asp:Repeater>
  <div class="info_page">
                <uc1:PageControl ID="page2" runat="server" ShowFirstLast="true" ShowPrevNext="true"       
                    PrevPageText="上一页" NextPageText="下一页" AlwaysShow="true"  ShowCustomInfoSec="left" 
                    NumericButtonCount="15" PagingButtonSpacing="10px" PageSize="4"
                    CustomInfoClass="" InputBoxHeight="" SubmitButtonClass="" ShowInputBoxB="Never" />
            </div>
</div>
</div>
<div class="body_left_bottom"></div>
</div>
<script type="text/javascript" language="javascript">
        
    //删除
    function delAmlById(id,ishd){
        if (id == "") {
            alert("无参数传递!");
            return;
        }
        
        if (!confirm("确认删除此专辑?"))
        {
            return;
        }
        var ret = MyAlbum.DelAlm(id,false)
         if (ret.value == true)
        {
            alert("操作成功！");
            refreshPage();  
        }else 
        {
            alert("请删除该专辑下视频，再进行此操作！");
        }
    }
    
    function refreshPage()
    {
         location.reload();
    }
</script>
</asp:Content>
