<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AlbumView.aspx.cs" Inherits="JuSNS.Web.user.Album.AlbumView" %>
<!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 id="ptitle" runat="server">相册浏览</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" charset="gb2312" type="text/javascript" language="javascript"></script>
<script src="../../js/albumoperator.js" type="text/javascript"></script>
<script src="../../js/friend.js" charset="gb2312" type="text/javascript" language="javascript"></script>
<script language="javascript" type="text/javascript">
 OperatorObject="Album.Album";
</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 nl">
                                <div class="nl">
                                        <div id="imghead" class="imgb nl" runat="server"></div>
                                        <div class="nl padding10">
                                            <div id="h2title" runat="server"> </div>
                                            <div id="returnaction" runat="server"></div>
                                       </div> 
                                </div>
                                <div class="nr alignright padding10">
                                    <a href="javascript:window.history.back();" title="返回上一页">返回上一页</a>
                                </div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                 <li><a href="../album/?r[0]=<%=GetUserID() %>" onclick="return postblog()">我的相册</a></li>
                                 <li class="current"><a href="javascript:;">浏览相册</a></li>
                                 <li><a href="../album/?a=all" onclick="return postblog()">好友最新相册</a></li>
                                 <li><a href="../album/quan.aspx?a=all" onclick="return postblog()">最近被圈好友</a></li>
                                 <li><a href="../album/?a=userall" title="所有人的相册">随便看看</a></li>
                                 <li><a href="../album/PhotoAdd.aspx?r=<%=Request.QueryString["r[1]"] %>" title="上传照片" onclick="return postblog()"><span class="lanbai">上传照片</span></a></li>
                                 </ul>
                            </div>        
                     </div>   
                     <div id="toc" runat="server" class="content"></div>
                     <div class="msg-succ" id="SuccessMSG" runat="server">修改成功</div>
                     <div class="body_sec_all">
                                <div id="awrap" runat="server"></div>
                                <!--正文-->
                                <div id="wrap" runat="server" class="content">
                                    <asp:DataList ID="albumviewer" CssClass="photo-list" runat="server">
                                        <ItemTemplate>
                                            <%# DataBinder.Eval(Container.DataItem, "d1") %>
                                        </ItemTemplate>
                                    </asp:DataList>
                                    <div class="pagination" runat="server" id="DivPage"></div>
                                    <%if (PhotoCount > 0)
                                      { %>
                                    <div class="pstr">
                                            <% if (Quan == string.Empty)
                                               { %>
                                            <div class="pstr">
                                                <span class="bold blue">相册描述：</span><%=AbInf.Title %>
                                            </div>
                                            <div class="pstr">
                                                相册中还没有圈人记录 (<a href="../../help?r=photo" target="_blank">如何圈人？</a>)
                                            </div>
                                                <%}else{ %>
                                                <%=Quan %>
                                                <%} %>

                                        <div class="pstr nr">
                                            <span class="share"><a href="javascript:void(0)" rel="share" rev="Share" value="3,<%=AbInf.AlbumID%>,'<%=AbInf.Title%>','','',<%=this.UserID%>">分享</a></span>
                                        </div>
                                    </div>
                                    <%}
                                      else
                                      { %>
                                    <div class="pstr reshow">
                                            本相册还没有照片，现在就<a href="PhotoAdd.aspx?r=<%=r[1]%>&u=<%=this.GetUserID()%>">上传照片</a>。
                                           </div> 
                                        <%} %>
                                    </div>                                
                                <!--正文结束-->
                                
                     </div>
                     
                     </div>
                   <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>                      
               </div>
         </div>
</div>
</body>
</html>
<script type="text/javascript">
   function postblog()
   {
        var uid='<%=GetUserID() %>';
        if(uid=="0")
        {
            alert("请先登录！");return false;
        }
        else
        {
            return true;
        }
   }

</script>
