<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<neq name="ts['site']['page_title']" value="">
    {$ts['site']['page_title']} <neq name="ts['app']['app_alias']" value="">- {$ts['app']['app_alias']}&nbsp;</neq>- {$ts['site']['site_name']} <neq name="ts['site']['site_slogan']" value="">- {$ts['site']['site_slogan']}</neq>
<else/>
 	<?php if(APP_NAME == 'home' && MODULE_NAME == 'Look' && ACTION_NAME == 'detail'){ ?> {$data.type_data.g_title} - <?php }?>	
	<?php if(APP_NAME == 'home' && MODULE_NAME == 'Space' && ACTION_NAME == 'detail'){ ?> {$mini.content|getShort=20} - <?php }?>
	<?php if(APP_NAME == 'home' && MODULE_NAME == 'Book' && ACTION_NAME == 'detail'){ ?> {$mini.content|getShort=20} - <?php }?>
    {$ts['site']['site_name']} <neq name="ts['site']['site_slogan']" value="">- {$ts['site']['site_slogan']}</neq>
</neq>
</title>
<link rel="shortcut icon" href="__THEME__/favicon.ico" />
<meta name="keywords" content="{$ts['site']['site_header_keywords']}" />
<meta name="description" content="{$ts['site']['site_header_description']}" />
<script>
	var _UID_   = '{$uid}';
	var _MID_   = '{$uid}';
	var _ROOT_  = '__ROOT__';
	var _THEME_ = '__THEME__';
	var _PUBLIC_ = '__PUBLIC__';
</script>
<!-- 全局风格CSS -->
<link href="__THEME__/main.css?<?php echo date('Ymd', time()); ?>" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/tbox/box.css" rel="stylesheet" type="text/css" />
<!-- 核心JS加载 -->
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/usercard.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/box.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/scrolltopcontrol.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.jgrow.min.js"></script>
<!--[if IE 6]>
		<script src="__PUBLIC__/js/DD_belatedPNG_0.0.8a-min.js" type="text/javascript"></script>  
		<script type="text/javascript">
			DD_belatedPNG.fix('.piece1_home_ft,.piece_h,.piece_ht,.piece_b,.piece_hd,.piece_rs,.piece_rt,.user_app .user_app_list li a img,.right img,.user_app .celerity_menu a.on,.medal_list .li img,.top_tags_ft,.top_tags_ft2,.user_app .celerity_menu a,.info_show .my_btn,.info_show .my_btn_right,.iwc_ct .bd ,.iwc_ct .lb,.iwc_ct .rb');
		</script>
	<![endif]--> 

<!-- 编辑器样式文件 -->
<link href="__PUBLIC__/js/editor/editor/theme/base-min.css" rel="stylesheet"/>
<!--[if lt IE 8]>
<link href="__PUBLIC__/js/editor/editor/theme/cool/editor-pkg-sprite-min.css" rel="stylesheet"/>
<![endif]-->
<!--[if gte IE 8]><!-->
<link href="__PUBLIC__/js/editor/editor/theme/cool/editor-pkg-min-datauri.css" rel="stylesheet"/>
<!--<![endif]-->

</head>
<body class="body_bg">
<div class="div_body">
<div class="header_bg">
 <div class="header"><!-- 头部 begin -->
    <div class="logo"><a href="{:U('home/Welcome')}" >&nbsp;</a></div>
	<div class="sina_guanzhu"><iframe width="136" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" frameborder="No" border="0" src="http://widget.weibo.com/relationship/followbutton.php?width=136&height=24&uid=2314716822&style=2&btn=red&dpc=1"></iframe></div>
	<session name="userInfo">
	<div class="info_show fr">
            <ul class="my_btn">
                <li>
					<p>
						<a class="mb_bd mb_name gc" href="{:U('home/Space/index',array('uid'=>$mid))}">
						<img src="{$mid|getUserface='s'}" class="mb_avt r3">
						 {$mid|getUserName}</a>
					</p>
                </li>
                                <li>
                    <p class="split"><a href="{:U('home/User')}" class="libg dongtai">动态</a></p>
                </li> 
                
                <li>
                    <p class="split"><a href="{:U('home/Space/note',array('type'=>'5','uid'=>$mid))}" class="libg myalbum">宝贝</a></p>
                </li>
                
                <li>
                    <p class="split"><a href="{:U('home/Space/note',array('type'=>'fav','uid'=>$mid))}" class="libg myfavs">喜欢</a></p>
                </li>  
                
                
            </ul>
            <i class="my_btn_right"></i>
            
                        <div class="my_shotcuts fl">
                <a class="setting" href="{:U('home/Account')}">设置</a>
				<a href="{:U('home/Account/invite')}">邀请</a>
                <a href="{:U('home/User/findfriend')}">找人</a>
				<volist name="ts['ucenter']['app']" id="uc_app">
	  	<php> if($uc_app['appid'] == $ts['ucenter']['current_appid'])continue; </php>
	  	<a href="<?php echo $uc_app['url']; ?>" target="_blank"><?php echo $uc_app['name']; ?></a>
	  </volist>
	  <span id="header_dropdown_message">
	  <a href="{:U('home/message/index')}" class='ico_arrow fb14'>消息</a>
	  <span  id='count_total_div' style='display:<elt name="userCount['total']" value="0">none</elt>'>
          		<a href="{:U('home/Message/notify')}" id='count_total' >{$userCount['total']}</a>
          	</span>
          </neq>
          <div class="dropmenu"> 
            <a href="{:U('home/message/index')}">
              短消息
              <span class="cRed fB" id="count_message"><gt name="userCount['message']" value="0">({$userCount.message})</gt></span>
            </a> 
			<a href="{:U('home/message/notify')}">
			        系统通知
              <span class="cRed fB" id="count_notify"><gt name="userCount['notify']" value="0">({$userCount.notify})</gt></span>
            </a>
            <a href="{:U('home/message/appmessage')}">
              应用消息
              <span class="cRed fB" id="count_appmessage"><gt name="userCount['appmessage']" value="0">({$userCount.appmessage})</gt></span>
            </a> 
			<a href="{:U('home/user/atme')}">
			        @提到我的
              <span class="cRed fB" id='count_atme'><gt name="userCount['atme']" value="0">({$userCount.atme})</gt></span>
            </a> 
			<a href="{:U('home/user/comments')}">
			        我的评论
              <span class="cRed fB" id='count_comment'><gt name="userCount['comment']" value="0">({$userCount.comment})</gt></span>
            </a>
          </div>
          	
		  </span>
                <a href="{:U('home/Public/logout')}">退出</a>
            </div>
        </div>
	  </session>
	  <nosession name="userInfo">
	  <div class="info_show fr">
	  <ul id="show_login" class="login_methods">
                <li class="fl">
                    <a class="regist" href="{:U('home/Public/register')}">注册</a>
                    <a class="mylogin" href="{:U('home/Public/login')}">登录</a>
					
                </li>
				<li class="other_login fl">
                    <a class="login_bg weibo_login" href="{:U('home/Public/tryOtherLogin',array('type'=>sina))}">新浪微博</a>
                    <a class="login_bg tencent_login" href="{:U('home/Public/tryOtherLogin',array('type'=>qq))}">腾讯微博</a>
                    <a class="login_bg douban_login" href="{:U('home/Public/tryOtherLogin',array('type'=>douban))}">豆瓣</a>
                </li>
				
                
            </ul>
	   </div>
	   </nosession>
    <div class="topsearch">
	<div class="s_menu">
		<a href="{:U('home/Welcome')}" >首页</a> | <span id="header_dropdown_guangchang"><a href="{:U('home/Square/index')}">微博广场<img src="__THEME__/images/arrow_bottom.png"></a><div class="dropmenu"> 
		
		<a href="{:U('home/Square/hot_topics')}">热门话题</a><a href="{:U('home/square/star')}">名人堂</a>
			
		</div></span> | <a href="{:U('home/Look/index')}">逛街啦！</a>

<php>
foreach (model('App')->Node() as $arr){
	</php>
	<a class="c_menu" href="{:U('home/Look/index',array('tag'=>urlencode($arr['node_name'])))}"><php>echo $arr['node_name']</php></a>
	<php>
}
</php> | <a href="{:U('home/Dapei')}">搭配秀</a><a class="c_menu" href="{:U('home/Shaihuo')}">晒货</a><a class="c_menu" href="{:U('home/Style')}">潮Style</a><a class="c_menu" href="{:U('home/Daren')}">达人Show</a>
<span id="header_dropdown_app"><a href="{:U('group/Index/index')}">微群<img src="__THEME__/images/arrow_bottom.png"></a><div class="dropmenu"> 
		
		<php>if (model('App')->isAppNameActive('photo')) {</php><a href="{:U('photo/Index/index')}">相册</a><php>}</php>
		<php>if (model('App')->isAppNameActive('blog')) {</php><a href="{:U('blog/Index/index')}">日志</a><php>}</php>
		<php>if (model('App')->isAppNameActive('event')) {</php><a href="{:U('event/Index/index')}">活动</a><php>}</php>
		<php>if (model('App')->isAppNameActive('vote')) {</php><a href="{:U('vote/Index/index')}">投票</a><php>}</php>
			
		</div></span>
	</div>
	
	
<form action="{:U('home/user/search')}" id="quick_search_form" method="post">
    <div class="soso"><label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜宝贝/名字/标签</label><input type="text" class="so_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/><input name="" type="button" onclick="$('#quick_search_form').submit()" class="so_btn hand"/></div>
	<script>
	if($('#_header_search_text').val()=='')
		$('#_header_search_label').show();
	else
		$('#_header_search_label').hide();
	</script>
</form>

      
    </div>
  </div>
</div>

<div id="head_bottom"></div>
<script>
$(document).ready(function(){
	$("#header_dropdown_friend").hover(
		function(){ $(this).addClass("hover"); },
		function(){ $(this).removeClass("hover"); }
	);
	$("#header_dropdown_app").hover(
	    function(){ $(this).addClass("hover"); },
	    function(){ $(this).removeClass("hover"); }
	);
	$("#header_dropdown_message").hover(
	    function(){ $(this).addClass("hover"); },
	    function(){ $(this).removeClass("hover"); }
    );
	$("#header_dropdown_guangchang").hover(
	    function(){ $(this).addClass("hover"); },
	    function(){ $(this).removeClass("hover"); }
    );
	
	<php>if($mid > 0) {</php>
		ui.countNew();
		setInterval("ui.countNew()",100000);
	<php>}</php>
});
</script>