<!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><?php echo F('web_page_title');?></title>
<?php TPL::plugin('include/css_link');?>
<link href="<?php echo W_BASE_URL ?>css/default/pub.css" rel="stylesheet" type="text/css" />
<?php TPL::plugin('include/js_link');?>
</head>
<body id="search">
	<div id="wrap">
		<div class="wrap-in">
			<?php TPL::plugin('include/header');?>
			<div id="container">
				<div class="extra">
					<!-- 站点导航 开始 -->
					<?php Xpipe::pagelet('common.siteNav'); ?>
					<!-- 站点导航 结束 -->
				</div>
				<div class="content">
					<div class="main-wrap">
						<div class="main">
                        	<div class="main-bd">
                                <!-- 搜索 开始 -->
								<?php Xpipe::pagelet('common.searchMod'); ?>
                                <!-- 搜索 结束 -->
                                <!-- 用户列表 开始 -->
                                <?php Xpipe::pagelet('user.userSearchPreview', isset($users)?$users:NULL ); ?>
                                <!-- 用户列表 结束 -->
                    			<div class="tab-box">
									<div class="tab-s2">
										<a href="<?php echo URL('search.weibo', array('k' => V('r:k', ''), 'base_app' => V('r:wb_base_app', '0'))); ?>" class="show-all">查看全部</a>
										<span <?php echo V('r:wb_base_app', '0') == 0 ? 'class="current"' : ''; ?>><span><a href="<?php echo URL('search', array('k' => V('r:k', ''), 'wb_base_app' => 0, 'us_base_app' => V('r:us_base_app', '0'))); ?>">来自新浪</a></span></span>
										<span <?php echo V('r:wb_base_app', '0') == 1 ? 'class="current"' : ''; ?>><span><a href="<?php echo URL('search', array('k' => V('r:k', ''), 'wb_base_app' => 1, 'us_base_app' => V('r:us_base_app', '0'))); ?>">本站</a></span></span>
									</div>
								</div>
			                    <?php if (!isset($list) || empty($list)) {?>
			                    <div class="search-result">
			                        <div class="icon-alert all-bg"></div>
			                        <p><strong>找不到符合条件的微博，请输入其他关键字再试</strong></p>
			                    </div>
			                    <?php } else {?>
			                    <!-- 微博列表 开始-->
			                    <div class="feed-list" id="xwb_weibo_list">
								<?php Xpipe::pagelet('weibo.weiboOnly', array('list'=>$list) ); ?>
			                    <?php TPL::module('page', array('list'=> isset($list) ? $list : array(), 'limit'=> isset($each_page)? $each_page : 5));?>
			                    </div>
			                    <!-- 微博列表 结束-->
			                    <?php }?>
                            </div>
						</div>
						<div class="aside">
							<!-- top10 开始-->
							<?php Xpipe::pagelet('common.sideComponents', array('type'=>1) );?>
							<!-- top10 结束-->
							<!-- 关注的话题 -->
							<?php Xpipe::pagelet('common.subjectFollowed',USER::uid()); ?>
							<!-- 关注的话题 -->	
						</div>
					</div>
				</div>
			</div>
			<!-- 尾部 开始 -->
            <?php TPL::module('footer');?>
			<!-- 尾部 结束 -->
		</div>
	</div>
	<?php TPL::module('gotop');?>
</body>
</html>