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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript" src="/js/utils.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $(".photolist img").each(function() {
            setImg(this, 100, 100);
        });
    }); 
</script>
</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 href="Album.aspx">我的相册</a>
                    <a href="PhotoUpload.aspx?albumid=<%= AlbumDetails.albumid %>">上传照片</a>
                    <a class="chk">我的照片</a>
                </div>
                <div class="menusub">
                    <a href="#">我的相册</a> > <a href="#"><%= AlbumDetails.albumname%></a>
                </div>
            </div>
            <div class="body photolistbody">
                <div class="photolist">
                    <asp:Repeater ID="rptMain" runat="server" onitemcommand="rptMain_ItemCommand">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <div class="pic"><a href="PhotoEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem, "photoid")%>"><img src="/uploadfiles/<%# DataBinder.Eval(Container.DataItem, "photourl") %>_200x200.jpg" align="absmiddle" /></a></div>
                            <div class="txt"><%# DataBinder.Eval(Container.DataItem, "descr")%></div>
                            <div class="btn">浏览<%# DataBinder.Eval(Container.DataItem, "browsecount")%> | <a href="PhotoEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem, "photoid")%>">编辑</a> | 
                                <asp:LinkButton ID="btnDelete" runat="server" OnClientClick="return confirm('确定要删除吗？')" CommandName="delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "photoid")%>'>删除</asp:LinkButton>
                                </div>
                        </li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                    </asp:Repeater>
                </div>
                <% if( rptMain.Items.Count == 0 ){ %>
                <div class="albumlistbtm">
                    该相册下没有任何照片 <br />
                    <a href="PhotoUpload.aspx?albumid=<%= AlbumDetails.albumid %>">上传照片</a> 
                </div>
                <%} %>
            </div>
        </div>
    </div>
</asp:Content>

