<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.Album.index" %>
<!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/friend.js" charset="gb2312" type="text/javascript" language="javascript"></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">
	                        <div class="title">
                                <div class="l"><img src="../../template/<%=JuSNS.Config.UiConfig.SkinStyle %>/images/site/album.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor"><% if (Request.QueryString["f"] == "1"){%>随便看看：相册<%}else{ %><%=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 id="tbcontrol" runat="server">
                            <%if (Request.QueryString["f"] == "1")
                              {%>
                                 <li><a href="../ram/net.aspx">随便看看</a></li>
                                 <li><a href="../ram">同城</a></li>
                                 <li><a href="../network?s=ram&f=0">同地区</a></li>
                                 <li><a href="../ram/day.aspx">日记</a></li>
                                 <li><a href="../ram/blog.aspx">日志</a></li>
                                 <li class="current"><a href="../ram/photo.aspx">相册</a></li>
                                 <li><a href="../ram/share.aspx">分享</a></li>
                                 <li><a href="../ram/group.aspx">群组</a></li>
                                 <li><a href="../ram/vodie.aspx">电影</a></li>
                                 <li><a href="../ask/?r=all&f=1">问答</a></li>
                           <%}
                             else
                             { %>  
                                 <li><a href="../album/photos.aspx"<%=checkstr %>>好友最新照片</a></li>
                                 <li class="current"  id="tb2" runat="server"><a href="../album/?a=all"<%=checkstr %>>好友最新相册</a></li>
                                 <li id="tb1" runat="server"><a href="../album/?r[0]=<%=this.GetUserID() %>"<%=checkstr %>>我的相册</a></li>
                                 <li  id="tb3" runat="server"><a href="../album/quan.aspx?a=all"<%=checkstr %>>最近被圈好友</a></li>
                                 <li  id="tb4" runat="server"><a href="../album/?a=userall" title="所有人的相册">随便看看</a></li>
                                 <li><a href="../album/albumadd.aspx" title="上传照片"<%=checkstr %>><span class="lanbai">上传照片</span></a></li>
                                 <%} %>
                                 </ul>
                            </div>        
                     </div>   
                     
                     <div class="body_sec_all">
                            <div  class="recordnumber" runat="server" id="noAlbum1"> 没有相册<span class="pipe"> | </span><a onclick="return postblog()" href="albumadd.aspx">创建新相册</a></div>
                            <div id="UpNewPhoto" runat="server"><a onclick="return postblog()" href="albumadd.aspx" class="shortcut-link">上传新照片</a></div>
                           <div class="content">
                                
                            <div id="MyAlbum" runat="server">
                                <asp:Repeater ID="MyAlbumList" runat="server">
                                    <ItemTemplate>
                                        <%# DataBinder.Eval(Container.DataItem, "d") %>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div id="DivPage1" runat="server"  class="pagination">
                                </div>
                            </div>
                            <div id="FriendAlbum" runat="server">
                                <asp:Repeater ID="DataList1" runat="server">
                                    <ItemTemplate>
                                        <%# DataBinder.Eval(Container.DataItem, "d") %>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div id="DivPage" runat="server" class="pagination">
                                </div>
                            </div>
                           
                            <div id="ALLAlbum" runat="server">
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <ItemTemplate>
                                        <%# DataBinder.Eval(Container.DataItem, "d") %>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div id="DivPage2" runat="server" class="pagination">
                                </div>
                            </div> 
                            
                            <div class="content-reshow" runat="server" id="noAlbum2">
                                <div class="pstr">
                                    你的好友还没有创建相册。</div>
                                <div class="pstr">
                                    你可以<a href="AlbumAdd.aspx">上传新照片</a>或者<a href="../Search">寻找更多好友</a>。
                                </div>
                            </div>
                                                        
                           </div> 
                     </div>
                     </div>
                   <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>                       
              </div>
        </div>
</div>
</body>
</html>
<script type="text/javascript">
function unlogin()
{
    alert("需要登录后才能查看！");
} 
   function postblog()
   {
        var uid='<%=GetUserID() %>';
        if(uid=="0")
        {
        alert("需要登录后才能发表日志！");return false;
        }
        else
        {
            return true;
        }
   }

</script>