<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_Album, App_Web_ubyenibr" enableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="rightbody">
        <div class="menutit">
            我的相册
        </div>
        <div class="bodycotent">
            <div class="menutab">
                <div class="menuitem">
                    <a class="chk">相册管理</a>
                    <a href="PhotoUpload.aspx">上传照片</a>
                </div>
                <div class="menusub">
                    <a href="PersonAlbumEdit.aspx">创建新的相册</a> 
                </div>
            </div>
            <div class="body albumlistbody">
                <div class="albumlist">
                    <asp:Repeater ID="rptMain" runat="server" onitemcommand="rptMain_ItemCommand">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <div class="img"><div class="pic"><a href="Photos.aspx?albumid=<%# DataBinder.Eval(Container.DataItem, "albumid")%>"><img src="<%# DataBinder.Eval(Container.DataItem, "picurl").ToString() != "" ? string.Format("/UploadFiles/{0}_200x200.jpg",DataBinder.Eval(Container.DataItem, "picurl").ToString()) : "/images/nopic.gif" %>" align="absmiddle" /></a></div></div>
                            <div class="txt"><%# DataBinder.Eval(Container.DataItem, "albumname")%></div>
                            <div class="btn">共<%# DataBinder.Eval(Container.DataItem, "photocount")%>张 | <a href="PersonAlbumEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem, "albumid")%>">编辑</a> | 
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "albumid")%>' OnClientClick="return confirm('确定要删除该相册吗？');">删除</asp:LinkButton></div>
                        </li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                    </asp:Repeater>
                </div>
                <% if( rptMain.Items.Count == 0 ){ %>
                <div class="albumlistbtm">
                    当前为创建任何相册 <br />
                    <a href="PersonAlbumEdit.aspx">创建新的相册</a> 
                </div>
                <%} %>
            </div>
        </div>
    </div>
</asp:Content>

