<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.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>
<script language="javascript" type="text/javascript" src="../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../js/public.js"></script>
<script language="javascript" type="text/javascript" src="../js/friend.js"></script>
<link href="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body onload="online();">
<!--头部-->
<%=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="msg-warn nl" style="margin:0px 0px 8px 15px;" id="ErrDiv" runat="server" visible="false"></div>
                <div class="body_frame"> 
                   <div class="body_frame_otherinfo">
                        
                   </div> 
                 <!--主题内容中-->    
                <div class="body_sec_left">
                    <div class="myInfobase">
                        <div class="head img">
                            <div><a href="album/headalbum.aspx?r[0]=<%=this.UserID %>&r[1]=0"><img src="<%=isHeadPic %>" alt="点击进去头像相册" style="width:48px;height:48px;" /></a></div>
                            <div><a href="space/UserHeadPhoto.aspx">修改头像</a></div> 
                        </div>
                        <div class="info">
                            <div class="bold font14"><% = this.UserName %> </div>
                            <div id="newmood_index" runat="server"></div> 
                            <div class="line-none"></div> 
                           <div><span class="normal tshow">已有<%=Click %>人访问你的空间 &nbsp; 目前积分：<%=integral%> &nbsp; <% = JuSNS.Config.UiConfig.gName %>数：<%=integralyb%> &nbsp; <span class="c999"><a href="javascript:void(0);" onclick="showPoint();" title="查看积分，金币">查看帐户</a></span></span></div> 
                        </div>
                    </div>
                    <div class="c"></div>
                    <!--请求，通知，邀请-->
                    <div class="request">
                       <span class="rcorner-s1"><span class="rcorner-s1-l"></span></span>
                       <span class="rcorner-s1-bottom"><span class="rcorner-s1-bottom-l"></span></span>
                        <ul class="icon-list" id="messageBox" runat="server">
						</ul>
				    </div>
                    <div class="adscss-indexmiddle"><script type="text/javascript" src="../js/ads/indexmiddle.js"></script></div>
                    
                    <div id="showAlbumDivVisiable" runat="server">
                        <div class="contentindex hdtitle-index padding10 s98">
                            <div class="nl bold"><a href="javascript:void(0);">好友照片</a> &nbsp; <a href="album/albumadd.aspx">上传照片</a></div>
                            <div class="nr" style="text-align:right;"><a href="album/photos.aspx">进入相册</a> <span style="cursor:pointer;" id="Span5"><img alt="隐藏" onclick="showWindowS(this,'s_PhotosList')" src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/s_window.gif" /></span></div>
                        </div>
                        <div id="s_PhotosList">
                        <div class="spline"></div>
                         <asp:Repeater ID="PhotosList" runat="server">
                            <HeaderTemplate>
                                   <div class="AlbumList image">
                                    <ul>
                                </HeaderTemplate>
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "d") %>
                            </ItemTemplate>
                            <FooterTemplate>
                              </ul>
                             </div> 
                            </FooterTemplate>
                        </asp:Repeater>
                        </div>
                     </div>        
                                         
                    <div class="myinfolist">
                        <div class="contentindex hdtitle-index padding10 s98 nl"><span class="nl bold"><a href="javascript:void(0);">同城网友</a></span> <span class="nr"><a href="network">找和我同地区的人</a> <span style="cursor:pointer;" id="Span1"><img alt="隐藏" onclick="showWindowS(this,'cityFriend')" src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/s_window.gif" /></span></span></div>
                        <!--显示条件：有头像图片的同城市网友，如果开启了性别匹配，则显示异性同城网友-->
                        <div class="friendlistmiddle"  id="cityFriend" runat="server" style="display:block;"></div>
                        <div class="spline"></div>
                        
                        <div class="contentindex hdtitle-index padding10 s98 nl">
                            <span class="nl bold"><a href="javascript:void(0);"  onmouseover="showSetMenu('dynuser_div');"  onmouseout="delayhidemenu('dynuser_div')">朋友动态<img src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/l.gif" align="absmiddle" /></a></span>
                            <div  onmouseover="clearhidemenu()"  onmouseout="delayhidemenu('dynuser_div')" class="divstyle-dyn" style="display:none;" id="dynuser_div">
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="onloadlogs('0day');">今天</a> </li>
                                    <li><a href="javascript:void(0);" onclick="onloadlogs('1day');">昨天</a> </li>
                                    <li><a href="javascript:void(0);" onclick="onloadlogs('3day');">前天</a> </li>
                                    <li><a href="javascript:void(0);" onclick="onloadlogs('7day');">最近7天</a> </li>
                                    <li><a href="javascript:void(0);" onclick="onloadlogs('30day');">最近一月</a> </li>
                                    <li><a href="javascript:void(0);" onclick="onloadlogs('90day');">最近三月</a> </li>
                               </ul> 
                            </div>
                            <span class="nr">分类查看：<a href="javascript:void(0);" onclick="onloadlogs('logs');">日志</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('album');">相册</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('mood');">心情</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('share');">分享</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('group');">群组</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('movie');">电影</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('info');">资料</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('friend');">加好友</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('app');">应用</a> 
                            <a href="javascript:void(0);" onclick="onloadlogs('all');">全部</a>
                             <span style="cursor:pointer;" id="Span2"><img alt="隐藏" onclick="showWindowS(this,'dnynews')" src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/s_window.gif" /></span>
                            </span>
                        </div>
                        
                        <div id="dnynews" runat="server" style="display:block;">
                            
                        </div>
                        <div class="spline"></div>
                        
                        <div id="GiftVisiable" runat="server">
                            <div class="contentindex hdtitle-index padding10 s98 nl"><span class="nl bold"><a href="gift/box.aspx?r=in">收到的礼物</a></span> <span class="nr"><a href="gift/box.aspx?r=in">所有礼物</a> <span style="cursor:pointer;" id="Span3"><img alt="隐藏" onclick="showWindowS(this,'s_gift')" src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/s_window.gif" /></span></span></div>
                            <div class="spline"></div>
                           <div id="s_gift"> 
                            <asp:Repeater ID="glistc" runat="server">
                                <HeaderTemplate>
                                <div class="dnygift">
                                        <ul>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                            <%# DataBinder.Eval(Container.DataItem, "GColum")%>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                      </ul>
                                     </div> 
                                </FooterTemplate>
                            </asp:Repeater>
                           </div> 
                         </div>                       

                    </div>
                </div>
                
                <!--中间分隔-->
                <div class="line_mid">
                  <div class="line_01"></div>
                  <div class="line_02" id="midline"></div>
                  <div class="line_03"></div>
                </div>
                <!--中间分隔结束-->         
                       
                <!--主题内容右--> 
                <div class="body_sec_right">
                     <!--打招呼开始-->
                     <div id="titlePoke" runat="server">
                         <div class="contentindex hdtitle-index padding10 s95 nl" style="margin-top:-8px;"><div class="nl bold">他们给你打招呼</div><div class="nr">&nbsp;</div></div>
                         <div class="spline"></div> 
                         <div class="spline"></div> 
                         <div id="showPokeDivVisiable" runat="server" class="poke-index"></div>
                     </div>
                     <!--最近过生日-->
                     <div id="birthdayIDVisiable" runat="server">
                        <div class="contentindex hdtitle-index padding10 s95 nl" style="margin-top:-8px;"><div class="nl bold">最近过生日的好友</div><div class="nr">&nbsp;</div></div>
                        <div class="blist" runat="server" id="BirthdayContent"></div>
                     </div>
                     
                    <div id="newReg" runat="server">
                        <div class="contentindex hdtitle-index padding10 s95 nl" style="margin-top:-8px;_margin-top:0px;"><div class="nl bold">他们刚加入了<%=JuSNS.Config.UiConfig.SiteName %></div></div>
                         <div class="spline"></div> 
                        <div class="friendvisitor" id="nUserRegList" runat="server"></div> 
                    </div>
                    
                                                              
                    <div id="showVisitorDivVisiable" runat="server">
                    <div class="contentindex hdtitle-index padding10 s95 nl" style="margin-top:-8px;"><div class="nl bold">最近来访者</div><div class="nr" style="text-align:right;"><a href="friend/in.aspx">所有访客</a></div></div>
                    
                    <asp:Repeater ID="VisitInList" runat="server">
                        <HeaderTemplate>
                               <div class="friendvisitor">
                                <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                    <%# DataBinder.Eval(Container.DataItem, "VColum")%>
                            </ItemTemplate>
                            <FooterTemplate>
                              </ul>
                             </div> 
                        </FooterTemplate>
                    </asp:Repeater>
                  
                    <div class="spline"></div>
                    </div>
                    
                    <div class="contentindex hdtitle-index padding10 s95 nl"><div class="nl bold">你可能认识他(她)们</div><div class="nr" style="text-align:right;"><a href="friend/myrelationperson.aspx">所有</a></div></div>
                    
                    <asp:Repeater ID="SFriendList" runat="server">
                        <HeaderTemplate>
                               <div class="friendvisitor">
                                <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                    <%# DataBinder.Eval(Container.DataItem, "SFColum")%>
                            </ItemTemplate>
                            <FooterTemplate>
                              </ul>
                             </div> 
                        </FooterTemplate>
                    </asp:Repeater>
                             
                     
                    <div class="spline"></div>
                     <div class="lwcss1"><a href="friend/invite.aspx"><img src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/ico/s/inv.gif" align="absmiddle" />邀请你的好友加入<%=JuSNS.Config.UiConfig.SiteName %></a></div>
                     <div class="lwcss"><a href="ram"><img src="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/ico/s/ram.gif" align="absmiddle" />随便看看结识新朋友</a></div>
                    
                </div>   
           </div>  
           <!--底部-->
             <div class="divbottom">
              <%=this.GetHtmlFoot()%>
              </div>
        </div>
   </div>
</div>
</body>
</html>
<script type="text/javascript">
    function NoShowMessage(s,divd)
    {
    	var  options={  
				   method:'get',  
				   parameters:"&setcookies="+s,
				   onComplete:function(transport)
					{  
						var returnvalue=transport.responseText;
						document.getElementById(divd).style.display="none";
					}  
			   }; 
	    new  Ajax.Request(RootDir+'/inc/ajax/index/SetShow.aspx?no-cache='+Math.random(),options);        
	 } 
    function clearv()
   {
        document.getElementById("key").value='';
   } 
   function online()
   {
        var onlineID=document.getElementById("onlinediv");
        if(onlineID!=null)
        {
            onlineNumber('onlinediv');
        }
   }
      
   function showWindowS(obj,d)
   {
       var div=document.getElementById(d);       
       if(div)
       {
           var isopen=obj.getAttribute("isopen");
           if(isopen==null||isopen=="")
            isopen="true";
           if(eval(isopen))
           {
                div.style.display="none";
                obj.setAttribute("isopen","false");
                obj.setAttribute("alt","展开");
                obj.src=obj.src.replace("s_window","b_window"); 
           }
           else
           {
                div.style.display="block";
                obj.setAttribute("isopen","true");
                obj.setAttribute("alt","隐藏");
                obj.src=obj.src.replace("b_window","s_window");
           }
       }
   }
</script>