<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_PhotoEdit, 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() {
        $(".imglarge img").each(function() {
            setImg(this, 640, 480);
        });
    }); 
</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">上传照片</a>
                    <a class="chk">编辑照片</a>
                </div>
                <div class="menusub">
                    <a href="Album.aspx">查看我的相册列表</a> 
                </div>
            </div>
            <div class="body">
                <div class="descr"></div>
                <div class="list inputs">
                    <div class="imglarge">
                        <a><img src="/uploadfiles/<%= photoDetails.photourl %>_640x480.jpg" /></a>
                    </div>
            		<div class="surface">
                        <asp:LinkButton ID="btnSetSurface" runat="server" onclick="btnSetSurface_Click" OnClientClick="return confirm('确实要设置为封面吗？');">设为封面</asp:LinkButton>
            		</div>
                    <table width="100%" cellpadding="5" cellspacing="0" border="0">
		                <tr><td width="100">&nbsp;&nbsp;所属相册</td><td>
		                    <asp:DropDownList ID="ddlPhotoAlbums" runat="server" Width="150" DataTextField="albumname" DataValueField="albumid">
                    </asp:DropDownList>&nbsp;&nbsp; <a href="PersonAlbumEdit.aspx">[创建相册]</a>
		                </td></tr>
		                <tr><td width="100">&nbsp;&nbsp;相片描述</td><td>
		                <asp:TextBox ID="txtdescr" runat="server" Width="300" TextMode="MultiLine" Height="50" MaxLength="20"></asp:TextBox></td></tr>
            		</table>
                </div>
                <div class="submits">
                    <asp:LinkButton ID="LinkButton2" runat="server" class="okbtn" OnClick="btnOK_Click" >修改</asp:LinkButton>
                    <asp:LinkButton ID="LinkButton1" runat="server" class="okbtn" OnClick="btnDelete_Click" OnClientClick="return confirm('确定要删除吗？');">删除</asp:LinkButton>
                    <a href="Photos.aspx?albumid=<%= photoDetails.albumid %>" class="okbtn">取消</a> 
                </div>
            </div>
        </div>
    </div>
</asp:Content>

