<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AlbumEdit.aspx.cs" Inherits="JuSNS.Web.user.Album.AlbumEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title runat="server" id="ptitle">编辑相册</title>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<script src="../../js/EventLoad.js" type="text/javascript" language="javascript"></script>
<script src="../../js/albumoperator.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    
    OperatorObject="Album.Album";
    
    function chkform(form)
    {
        if(form.title.value.length<1)
        {
            document.getElementById("ErrMSG_js").innerHTML="相册的名称不能为空";
            document.getElementById("ErrMSG_js").style.display="block";
            document.getElementById("MSG").style.display="none";
            return false;
        }
        return true;
    }
    </script>
</head>
<body>
 <!--头部-->
<%=this.GetHtmlShort()%> 
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                    <div class="body_frame_otherinfo nl">
	                        <div class="title">
                                <div class="l"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/album.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">编辑相册：<%=ABI.Title%></span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>

            		       
                            <div class="nav-menu">
                                <ul>
                                 <li><a href="../album/?r[0]=<%=UserID %>">我的相册</a></li>
                                 <li class="current"><a href="javascript:;">编辑相册</a></li>
                                 <li><a href="../album/?a=all">好友最新相册</a></li>
                                 <li><a href="../album/quan.aspx?a=all">最近被圈好友</a></li>
                                 <li><a href="../album/?a=userall" title="所有人的相册">随便看看</a></li>
                                 <li><a href="../album/albumadd.aspx" title="上传照片"><span class="lanbai">上传照片</span></a></li>
                                 </ul>
                            </div>      
                           
                           <div class="body_sec_all">
                                <div class="spline"></div>
                               <div id="header" class="content">
                                    <div>
                                        <ul>
                                             <li  class="inline"><a href="AlbumEdit.aspx?r=<%=R%>">编辑相册信息</a></li>
                                            <%if (ABI.ImagesCount > 0)
                                              {%><li class="inline"><a href="PhotoEdit.aspx?r=<%=R%>">编辑照片</a></li><%}%>
                                            <%if (ABI.ImagesCount > 0)
                                              {%><li class="inline">&nbsp;<a href="PhotoAdd.aspx?r=<%=R%>&u=<%=this.UserID%>">上传更多照片</a></li>
                                              <%}else{ %>
                                              <li class="inline">&nbsp;<a href="PhotoAdd.aspx?r=<%=R%>&u=<%=this.UserID%>">上传照片</a></li>
                                              <%} %>
                                             <li class="inline reshow bold"><a href="javascript:void(0)" rel="../../inc/Ajax/album/AlbumOperator.aspx?action=del&r=<%=R%>" rev="Delete" id="del-album">删除相册</a></li> 
                                            <li  class="inline"><a href="Photos.aspx?r[0]=<%=this.UserID%>&amp;r[1]=<%=R%>">返回相册</a></li>
                                            
                                        </ul>
                                        <div class="pstr">
                                            本相册有<%=ABI.ImagesCount%> 张照片</div>
                                    </div>
                                </div>
                                <div id="MSG" runat="Server" visible="false"></div>
                                <div class="msg-error" id="ErrMSG_js" style="display:none;"></div>
                                <div id="wrap" class="pstr">
                                        <form id="Form1" action="AlbumEdit.aspx?r=<%=R%>" method="post" runat="server" onsubmit="return chkform(this);">
                                                        <div class="content"><label class="f-label">相册名：</label>
                                                                <input type="text" class="f-text" name="title" value="<%=ABI.Title%>" />
                                                         </div>
                                                       <div class="content"><label class="f-label">描述</label>
                                                            <textarea name="desc" class="f-text" style="height:200px;width:500px;"><%=ABI.Description%></textarea>
                                                        </div>
                                                        <div class="content"><label class="f-label">可见度</label>
                                                            <asp:DropDownList ID="attr" runat="server"></asp:DropDownList>
                                                         </div>
                                                        <div class="content"><label class="f-label">&nbsp;</label>
                                                            <input type="submit" class="f-button" value="保存编辑" />
                                                            <input type="button" class="f-button f-alt" value="返回相册" onclick="window.location='index.aspx?r%5B0%5D=<%=this.UserID %>&r%5B1%5D=<%=R %>'" />
                                                       </div>
                                        </form>
                                </div>
                                
                           </div>
                           
                           </div>
                           </div>
                       <!--底部-->
                     <div class="divbottom">
                      <%=this.GetHtmlFoot()%>
                      </div>                               
                           
               </div>
       </div>
</div>
</body>
</html>
