<!doctype html>
<html>
<head>
<meta charset="<?php echo htmlspecialchars(Wekit::V('charset'), ENT_QUOTES, 'UTF-8');?>" />
<title><?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','seo','title'), ENT_QUOTES, 'UTF-8');?></title>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="<?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','seo','description'), ENT_QUOTES, 'UTF-8');?>" />
<meta name="keywords" content="<?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','seo','keywords'), ENT_QUOTES, 'UTF-8');?>" />
<link rel="stylesheet" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/css'.Wekit::getGlobal('theme','debug'); ?>/common.css?v=<?php echo htmlspecialchars(NEXT_RELEASE, ENT_QUOTES, 'UTF-8');?>" />
<link rel="stylesheet" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/css'.Wekit::getGlobal('theme','debug'); ?>/sidebar.css?v=<?php echo htmlspecialchars(NEXT_RELEASE, ENT_QUOTES, 'UTF-8');?>" />
<?php echo Wekit::C('site', 'css.tag');?>
<script>
//全局变量 Global Variables
var GV = {
JS_ROOT : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/js'; ?>/',										//js目录
JS_VERSION : '<?php echo htmlspecialchars(NEXT_RELEASE, ENT_QUOTES, 'UTF-8');?>',											//js版本号(不能带空格)
JS_EXTRES : '<?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','url','extres'), ENT_QUOTES, 'UTF-8');?>',
TOKEN : '<?php echo htmlspecialchars(Wind::getComponent('windToken')->saveToken('csrf_token'), ENT_QUOTES, 'UTF-8');?>',	//token $.ajaxSetup data
U_CENTER : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space'; ?>',		//用户空间(参数 : uid)
<?php 
$loginUser = Wekit::getLoginUser();
if ($loginUser->isExists()) {
?>
//登录后
U_NAME : '<?php echo htmlspecialchars($loginUser->username, ENT_QUOTES, 'UTF-8');?>',										//登录用户名
U_AVATAR : '<?php echo htmlspecialchars(Pw::getAvatar($loginUser->uid), ENT_QUOTES, 'UTF-8');?>',							//登录用户头像
<?php 
}
?>
U_AVATAR_DEF : '<?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','url','images'), ENT_QUOTES, 'UTF-8');?>/face/face_small.jpg',					//默认小头像
U_ID : parseInt('<?php echo htmlspecialchars($loginUser->uid, ENT_QUOTES, 'UTF-8');?>'),									//uid
REGION_CONFIG : '',														//地区数据
CREDIT_REWARD_JUDGE : '<?php echo $loginUser->showCreditNotice();?>',			//是否积分奖励，空值:false, 1:true
URL : {
LOGIN : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=login'; ?>',										//登录地址
QUICK_LOGIN : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=login&a=fast'; ?>',								//快速登录
IMAGE_RES: '<?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','url','images'), ENT_QUOTES, 'UTF-8');?>',										//图片目录
CHECK_IMG : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=login&a=showverify'; ?>',							//验证码图片url，global.js引用
VARIFY : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=verify&a=get'; ?>',									//验证码html
VARIFY_CHECK : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=verify&a=check'; ?>',							//验证码html
HEAD_MSG : {
LIST : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=message&c=notice&a=minilist'; ?>'							//头部消息_列表
},
USER_CARD : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&c=card'; ?>',								//小名片(参数 : uid)
LIKE_FORWARDING : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?c=post&a=doreply'; ?>',							//喜欢转发(参数 : fid)
REGION : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=misc&c=webData&a=area'; ?>',									//地区数据
SCHOOL : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=misc&c=webData&a=school'; ?>',								//学校数据
EMOTIONS : "<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=emotion&type=bbs'; ?>",					//表情数据
CRON_AJAX : '<?php echo htmlspecialchars($runCron, ENT_QUOTES, 'UTF-8');?>',											//计划任务 后端输出执行
FORUM_LIST : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?c=forum&a=list'; ?>',								//版块列表数据
CREDIT_REWARD_DATA : '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&a=showcredit'; ?>',					//积分奖励 数据
AT_URL: '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?c=remind'; ?>',									//@好友列表接口
TOPIC_TYPIC: '<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?c=forum&a=topictype'; ?>'							//主题分类
}
};
</script>
<script src="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/js'; ?>/wind.js?v=<?php echo htmlspecialchars(NEXT_RELEASE, ENT_QUOTES, 'UTF-8');?>"></script>
<?php
PwHook::display(array(PwSimpleHook::getInstance("head"), "runDo"), array(), "", $__viewer);
?>
<link href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/infloorFree/css'.Wekit::getGlobal('theme','debug'); ?>/corelist.css?v=<?php echo htmlspecialchars(NEXT_RELEASE, ENT_QUOTES, 'UTF-8');?>" rel="stylesheet" />
</head>
<body>
<style type="text/css">
</style><?php  
    			$__design_pageid = 3;
    			Wind::import("SRV:design.bo.PwDesignPageBo");
    			$__design = new PwDesignPageBo();
    			$__design_data = $__design->getDataByModules(array(15,22,5,23,18,14,19,10,3,20,21,7,8,9,));
    			
  
			$loginUser = Wekit::getLoginUser();
	   	 	$designPermission = $loginUser->getPermission('design_allow_manage.push');
	    	if ($designPermission > 0){?><form method="post" action=""><button class="design_mode_edit" type="submit">模块管理</button><input type="hidden" name="design" value="1"><input type="hidden" name="csrf_token" value="<?php echo WindSecurity::escapeHTML(Wind::getComponent('windToken')->saveToken('csrf_token')); ?>"/></form><?php  } 
 if ($site_info_notice = Wekit::C('site','info.notice')) {?>
<style>.header_wrap{top:29px;}body{padding-top:75px;}</style><div id="notice"><?php echo htmlspecialchars($site_info_notice, ENT_QUOTES, 'UTF-8');?></div>
<?php }?>
<!--[if IE 6]>
<script src="http://letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
<!--[if IE]> 
<link rel="stylesheet" type="text/css" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/css'.Wekit::getGlobal('theme','debug'); ?>/ie.css" />
<![endif]-->
<!--====s头部====-->
<header class="w_header">
<div id="J_header" class="b_row cc mc w980">

<!--s头部项目-->
<div class="header_index fl pr" >
<button class="header_btn"  id="J_header_index_btn" onclick="window.open('<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/',''; ?>','_self')"   title="回到首页">
<em></em>
</button>
</div>


<div class="header_nav fl pr" >
<button type="button" class="header_btn"  id="J_header_nav_btn"  title="导航">
<em></em>
</button>
</div>

<div class="header_search fl pr" role="search">
<form action="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=search&c=s'; ?>" method="post" target="_blank">
<input type="text" id="s" aria-label="搜索关键词" accesskey="s" placeholder="搜索你喜欢的"  name="keyword"/>
<button type="submit" aria-label="搜索" title="搜索" >搜索</button>
<input type="hidden" name="csrf_token" value="<?php echo WindSecurity::escapeHTML(Wind::getComponent('windToken')->saveToken('csrf_token')); ?>"/><input type="hidden" name="csrf_token" value="<?php echo WindSecurity::escapeHTML(Wind::getComponent('windToken')->saveToken('csrf_token')); ?>"/></form>
</div>

<div class="header_logo">
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/',''; ?>"  title="点击回到首页">
<?php  if($__css = Wekit::C('site', 'css.logo')) { ?>
<!--后台logo上传-->
<img src="<?php echo htmlspecialchars(Pw::getPath($__css), ENT_QUOTES, 'UTF-8');?>" alt="<?php echo htmlspecialchars(Wekit::C('site','info.name'), ENT_QUOTES, 'UTF-8');?>">
<?php  } else { ?>
<img src="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/images'; ?>/logo.png" alt="<?php echo htmlspecialchars(Wekit::C('site','info.name'), ENT_QUOTES, 'UTF-8');?>" >
<?php  } ?>
</a>
</div>


<?php  if (!$loginUser->isExists()) { ?>
<div class="header_login fr">
<a rel="nofollow" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=login'; ?>"  class="header_btn header_login_run" >登录</a><a rel="nofollow" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=register'; ?>" class="header_btn header_login_reg" >注册</a>
</div>
<?php  } else { ?>
<div class="header_login fr">

<div class="header_login_post fl">
<button  type="button" class="header_btn" title="发布主题" onclick="window.open('/index.php?c=post&fid=2','_self')" >
<em></em>
</button>
</div>

<div class="header_login_info fl cc"   id="J_head_user_a"  title="个人信息"  tabindex="-1" >	
<div class="header_login_usernameLink">
<img class="header_login_photo J_avatar"  data-type="small" src="<?php echo htmlspecialchars(Pw::getAvatar($loginUser->uid,'small'), ENT_QUOTES, 'UTF-8');?>" />
<span class="header_login_name J_user_card_show "  data-uid="<?php echo htmlspecialchars($loginUser->uid, ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars(Pw::substrs($loginUser->username,13), ENT_QUOTES, 'UTF-8');?></span>
</div>
</div>

<div class="header_login_msg fl pr"  >
<button  type="button" class="header_btn" id="J_head_msg_btn"  title="消息">
<em></em>
</button>

<?php 
$messageCount = $loginUser->info['notices'] + $loginUser->info['messages'];
$messageClass = $messageCount ? 'block' : 'hidden';
?>
<em class="core_num J_hm_num <?php echo htmlspecialchars($messageClass, ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars($messageCount, ENT_QUOTES, 'UTF-8');?></em>

<?php  if ($loginUser->info['message_tone'] > 0 && $messageCount > 0) { ?>
<audio autoplay="autoplay">
<source src="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/infloorFree/images'; ?>/message/msg.wav" type="audio/wav" />
<source src="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/infloorFree/images'; ?>/message/msg.mp3" type="audio/mp3" />
<div style='overflow:hidden;width:0;float:left'><embed src='<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/infloorFree/images'; ?>/message/msg.wav' width='0' height='0' AutoStart='true' type='application/x-mplayer2'></embed></div>
</audio>
<?php  } ?>

</div>

</div>
<?php  } ?>

<!--e头部项目-->


<!--s头部弹窗集合-->
<div id="J_header_nav_pop"  class="header_pop_position header_nav_pop"  style="display:none;">
<span class="header_pop_arrow"></span>
<div class="header_nav_pop_content" >
<ul class="cc" ><?php  $nav = Wekit::load('SRV:nav.bo.PwNavBo');
$nav->setRouter();
$currentId =  '';
$main = $child = array();
if ($nav->isForum()) $nav->setForum($pwforum->foruminfo['parentid'], $fid, $tid);
$main = $nav->getNavFromConfig('main', true);
foreach($main as $key=>$value){
if ($value['current']) {
$current = 'current';
$currentId = $key;
} else {
$current = '';
}
$value['child'] && $child[$key] = $value['child'];
?>
<li class="<?php echo htmlspecialchars($current, ENT_QUOTES, 'UTF-8');?>"><?php echo $value['name'];?></li>
<?php  } ?></ul>		
</div>

<div class="header_nav_pop_bottom">
<ul><?php 
$nav = Wekit::load('SRV:nav.bo.PwNavBo');
$bottom = $nav->getNavFromConfig('bottom');
foreach($bottom as $key=>$value){
?>
<li><?php echo $value['name'];?></li>
<?php  } ?></ul>	
</div>

</div>    

<?php  if ($loginUser->isExists()) { 
 	
if ($pwforum && $pwforum->isForum()) {
		$_tmpfid = $pwforum->fid;
		$_tmpcid = $pwforum->getCateId();
	} else {
		$_tmpfid = 0;
		$_tmpcid = $pwforum ? $pwforum->getCateId() : '0';
}
?>

<div id="J_head_forum_pop" tabindex="0" class="pop_select_forum" style="display:none;" aria-label="快速发帖菜单,按ESC键关闭菜单">
<a id="J_head_forum_close" href="#" class="pop_close" role="button">关闭窗口</a>
<div class="core_arrow_top" style="left:137px;"><em></em><span></span></div>
<div class="hd">发帖到其他版块</div>
<div id="J_head_forum_ct" class="ct cc" data-fid="<?php echo htmlspecialchars($_tmpfid, ENT_QUOTES, 'UTF-8');?>" data-cid="<?php echo htmlspecialchars($_tmpcid, ENT_QUOTES, 'UTF-8');?>">
<div class="pop_loading"></div>
</div>
<div class="ft">
<div class="associate">
发帖到：<span id="J_post_to_forum"></span>
</div>
<div class="tac">
<button type="button" class="btn btn_submit disabled" disabled="disabled" id="J_head_forum_sub" data-url="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?c=post'; ?>">确定</button>
</div>
</div>
</div>
		
<div id="J_header_info_pop" class="header_pop_position header_login_info_pop" style="display:none;">
<div class="my_menu" >
<ul class="ct">
<?php  $nav = Wekit::load('SRV:nav.bo.PwNavBo');
$myNav = $nav->getNavFromConfig('my');
foreach($myNav as $key=>$value){
?>
<li><?php echo $value['name'];?></li>
<?php  } 
 if ($_panelManage) { 
 } if (Pw::getstatus($loginUser->info['status'], PwUser::STATUS_ALLOW_LOGIN_ADMIN) || Pw::inArray(3, $loginUser->groups)) {?>
<li><a href="<?php echo htmlspecialchars(Wind::getComponent('router')->getRoute('pw')->checkUrl('admin.php'), ENT_QUOTES, 'UTF-8');?>" target="_blank" rel="nofollow"><em class="icon_admin"></em>系统后台</a></li>
<?php  } ?>


</ul>
<ul class="ft cc">
<li><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=profile'; ?>"><em class="icon_profile"></em>个人设置</a></li>
<?php
PwHook::display(array(PwSimpleHook::getInstance("header_my"), "runDo"), array(), "", $__viewer);
?>
<li><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=login&a=logout'; ?>" rel="nofollow"><em class="icon_quit"></em>退出</a></li>
</ul>
</div>
</div>

<div id="J_head_msg_pop" tabindex="0"  class="header_pop_position" style="display:none;">
<span class="header_pop_arrow"></span>
<div id="J_head_msg" class="header_pop_content header_login_msg_pop"><div class="pop_loading"></div></div>
</div>
<?php  } ?>
<!--e头部弹窗集合-->


</div>
</header>
<!--====e头部====-->

<!--====s主体====-->
<div class="tac"> </div>
<div class="w_main mc pt30">
<div id="cloudwind_forum_top"></div>
<div class="b_row cc" >
<!--==s左栏==-->
<div class="b_row_l w735 fl" id="corelist" >
 

<!--s网站介绍-->
<div class="webintro bdr3 shadow pr cc">

<img src="<?php echo Wind::getComponent('response')->getData('G', 'url', 'themes').'/site/'.Wekit::C('site', 'theme.site.default').'/images'; ?>/common/face.jpg" class="top_face pa"  width="120px"  height="120px" >

<div class="webinfo fl" >
<div class="webtitle yahei">楼中楼<span>让交流更近更快一步</span></div>
<div class="webdata">
<span class="numlabel" >会员数：</span><span class="num orange"><?php echo htmlspecialchars($bbsinfo['totalmember'], ENT_QUOTES, 'UTF-8');?></span>
<span class="numlabel" >帖子数：</span><span class="num orange"><?php echo htmlspecialchars($article, ENT_QUOTES, 'UTF-8');?></span>
</div>
<div class="webadmin"><span class="adminlabel" >管理员：<?php if(is_array($__design_data['J_mod_14'])){
						$__data=$__design_data['J_mod_14'];
					}else{
						$display=Wekit::load('design.srv.display.PwDesignDisplay');
						$__data=$display->getModuleData(14);
					};foreach($__data AS $__k=>$__v){?>
<a class="people J_user_card_show" data-uid="<?php echo WindSecurity::escapeHTML($__v['uid']);?>" href="<?php echo WindSecurity::escapeHTML($__v['url']);?>" target="_blank"><?php if($__v['__style']){?><span style="<?php echo WindSecurity::escapeHTML($__v['__style']);?>"><?php echo WindSecurity::escapeHTML($__v['username']);?></span><?php }else{
 echo WindSecurity::escapeHTML($__v['username']);
 }?></a>
<?php }?>
</span></div>
<div class="intromain tips"><span class="tips_icon_help">楼中楼是什么样的网站？<a href="#" target="_blank" >点击查看>></a></span></div>
</div>

<div class="weblog fl">
<div class="logtittle yahei">网站动态：</div>
<ul class="logitem ">
<li class="cc"><em class="bdr3">1</em><span class="title"><a href="/read.php?tid=1&fid=2"  target="_blank" >这里是楼中楼的公告>></a></span><span class="date">03-25</span></li>
<li class="cc"><em class="bdr3">2</em><span class="title">今日新增<span class="orange" style="padding:0 3px;"><?php echo htmlspecialchars($todayposts, ENT_QUOTES, 'UTF-8');?></span>个帖子</span><span class="date"><?php echo htmlspecialchars(Pw::time2str(Pw::getTime(),'m-d'), ENT_QUOTES, 'UTF-8');?></span></li>
<li class="cc last"><em class="bdr3">3</em><span class="title">欢迎新会员：<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&username=', rawurlencode($bbsinfo['newmember']); ?>" target="_blank"><span class="orange" style="padding:0 3px;"><?php echo htmlspecialchars($bbsinfo['newmember'], ENT_QUOTES, 'UTF-8');?></span></a></span><span class="date"><?php echo htmlspecialchars(Pw::time2str(Pw::getTime(),'m-d'), ENT_QUOTES, 'UTF-8');?></span></li>
</ul>
</div>

</div>
<!--e网站介绍-->


<!--s热点推荐-->
<div class="hotrecommend bdr3 shadow pr">
<ul class="cc">
  <?php if(is_array($__design_data['J_mod_3'])){
						$__data=$__design_data['J_mod_3'];
					}else{
						$display=Wekit::load('design.srv.display.PwDesignDisplay');
						$__data=$display->getModuleData(3);
					};foreach($__data AS $__k=>$__v){?>
    <li>
      <a href="<?php echo WindSecurity::escapeHTML($__v['url']);?>" target="_blank"><img src="<?php echo WindSecurity::escapeHTML($__v['thumb']);?>" alt="<?php echo WindSecurity::escapeHTML($__v['title']);?>" width="223" height="200"><em><strong><?php if($__v['__style']){?><span style="<?php echo WindSecurity::escapeHTML($__v['__style']);?>"><?php echo WindSecurity::escapeHTML($__v['title']);?></span><?php }else{
 echo WindSecurity::escapeHTML($__v['title']);
 }?></strong><span></span></em></a>
    </li>
  <?php }?>
  </ul>

</div>
<!--e热点推荐-->

<!--s内容筛选与设置-->
<div class="b_s ctsetbar pr cc" id="ctsetbar">
<ul class="ctset_list">
<li><a href="javascript:void(0)" class="cur" rel="nofollow">帖子交流</a></li>
<li class="line2"></li>
<li><a href="/index.php?m=space"  target="_blank"    class="J_qlogin_trigger">我的空间</a></li>	
<li class="line2"></li>
<li><a href="/index.php?m=my&c=article" target="_blank" class="J_qlogin_trigger">我的帖子</a></li>
<li class="line2"></li>
<li><a href="/index.php?m=like&c=mylike" target="_blank" class="J_qlogin_trigger">我的喜欢</a></li>
<li class="line2"></li>
<li><a href="/index.php?m=my&c=follow" target="_blank" class="J_qlogin_trigger">我的关注</a></li>			
</ul>
<div class="line pa">&nbsp;</div>
<!-- <div class="styleset fr" ><a href="/digest" >切换列表样式</a></div>-->
<div class="content_filter">
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?style=tieba'; ?>#ctsetbar" class="J_list_tieba <?php echo htmlspecialchars(Pw::getCookie('list_style') == '' || $style == 'tieba' ? 'current' : '', ENT_QUOTES, 'UTF-8');?>" >贴吧列表</a><span>|</span><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?style=light'; ?>#ctsetbar" class="J_list_ligth <?php echo htmlspecialchars(Pw::getCookie('list_style') == 'light' || $style== 'light' ? 'current' : '', ENT_QUOTES, 'UTF-8');?>"  >轻博列表</a></div>
</div>
<!--e内容筛选与设置-->

<!--s核心列表-->
<?php  if ($threaddb) { ?>

<!--核心列表变量说明
标题：<?php echo htmlspecialchars(Pw::substrs($value['subject'],$numofthreadtitle), ENT_QUOTES, 'UTF-8');?>  //限制字数的标题
链接：<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>   //tid是关键
时间：# echo Pw::time2str($value['created_time'], 'Y-m-d');#   # echo Pw::time2str($value['lastpost_time'], 'm-d H:i');# 
图片：<?php echo htmlspecialchars(Pw::getPath($thumb,0), ENT_QUOTES, 'UTF-8');?> //参数0为原图，1为500px，2为200px getPath要在foreach中
摘要：<?php echo htmlspecialchars(Pw::substrs(Pw::stripWindCode($threadContent[$value['tid']]['content'],true),120), ENT_QUOTES, 'UTF-8');?>
标签：<?php echo htmlspecialchars($threadContent[$value['tid']]['tags'], ENT_QUOTES, 'UTF-8');?>
数据：回复<?php echo htmlspecialchars($value['replies'], ENT_QUOTES, 'UTF-8');?>  浏览<?php echo htmlspecialchars($value['hits'], ENT_QUOTES, 'UTF-8');?>
作者：1）名字：<?php echo htmlspecialchars($value['created_username'], ENT_QUOTES, 'UTF-8');?> 2)空间：<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($value['created_userid']); ?> 3）头像：<?php echo htmlspecialchars(Pw::getAvatar($value['created_userid'], 'middle'), ENT_QUOTES, 'UTF-8');?>  4）名片：J_user_card_show 
-->


<?php  if (Pw::getCookie('list_style') == 'light' || $style == 'light') { ?>
<div class="corelist">
<div id="timeline" class="vertical"></div>
<?php 
$threadtids = array();
foreach ($threaddb as $value) {
$threadtids[] = $value['tid'];
}

 $__tpl_data = call_user_func_array(
								array(Wekit::load("SRV:forum.PwThread"), 
								"fetchThread"), 
								array($threadtids,2)); 
  $threadContent = $__tpl_data; 
 $__tpl_data = call_user_func_array(
								array(Wekit::load("SRV:attach.PwThreadAttach"), 
								"fetchAttachByTidsAndPid"), 
								array($threadtids)); 
 
$threadthumb = array();
foreach ($__tpl_data as $value) {
if ($value['ifthumb']) $threadthumb[$value['tid']][] = $value['path'];
}

  foreach ($threaddb as $key => $value) { ?>
<div class="corelist_item cc">
<div class="corelist_item_avatar bdr3 fl">
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($value['created_userid']); ?>"  class="J_user_card_show"  data-uid="<?php echo htmlspecialchars($value['created_userid'], ENT_QUOTES, 'UTF-8');?>" target="_blank" rel="nofollow" ><img  data-type="middle"  class="J_avatar bdr3t" src="<?php echo htmlspecialchars(Pw::getAvatar($value['created_userid'], 'middle'), ENT_QUOTES, 'UTF-8');?>" ></a>
<div class="corelist_item_author bdr3b"><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($value['created_userid']); ?>"  target="_blank"  title="主题作者"><?php echo htmlspecialchars($value['created_username'], ENT_QUOTES, 'UTF-8');?></a></div>
<div class="post_arrow"></div>
</div>
<div class="corelist_item_main fr pr bdr3">
<div class="corelist_item_arrow"></div>
<a class="openlink icon_base" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>"  target="_blank"  title="打开帖子" >打开帖子</a>
<div class="corelist_item_content">
<div class="title yahei">
<?php  if ($threadContent[$value['tid']]['tags'] != null){ 
   $reaTags = explode(',', $threadContent[$value['tid']]['tags']); $i = 1;  
  foreach ((array)$reaTags as $tag) { if($i > 1)break; $i ++;  ?>
<a  class="J_read_tag_item tag_item bdr3 pr"data-url="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=tag&a=card&name=', rawurlencode($tag); ?>" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=tag&a=view&name=', rawurlencode($tag); ?>" title="话题标签" target="_blank" ><?php echo htmlspecialchars($tag, ENT_QUOTES, 'UTF-8');?><span class="triangle pa" ></span></a>
<?php  } 
  } ?>
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>"  target="_blank" ><?php echo htmlspecialchars(Pw::substrs($value['subject'],$numofthreadtitle), ENT_QUOTES, 'UTF-8');?></a><?php if ($value['digest']) {?><i class="icon_base digest_big" title="精华"></i><?php }
 if ($value['topped']) {?><i class="icon_base topped_big" title="置顶"></i><?php }?>
</div>

<div class="desc">
<p><?php echo htmlspecialchars(Pw::substrs(Pw::stripWindCode($threadContent[$value['tid']]['content'],true),150), ENT_QUOTES, 'UTF-8');?></p>
</div>

<?php  if (is_array($threadthumb[$value['tid']])){ ?>
<div class="pic">
<?php 
foreach ($threadthumb[$value['tid']] as $k=>$thumb) {if(1 == $k)break;
?>

<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>"  target="_blank" ><img src="<?php echo htmlspecialchars(Pw::getPath($thumb,0), ENT_QUOTES, 'UTF-8');?>" /></a>

<?php  } ?>
</div>
<?php  } ?>

</div>


<div class="corelist_item_bottom bdr3b pr">
<div class="topicinfo pa">
<span class="lastpost_time " title="最后回复时间"><?php  echo Pw::time2str($value['lastpost_time'], 'auto');?></span>
<span class="split">|</span>
<span class="replies" title="该帖子被回复<?php echo htmlspecialchars($value['replies'], ENT_QUOTES, 'UTF-8');?>次"><?php echo htmlspecialchars($value['replies'], ENT_QUOTES, 'UTF-8');?>次回复</span>
</div>
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>" target="_blank" class="btn pa btn_submit enter">进入帖子</a>

</div>

</div>

</div>
<?php  } ?>
</div>

<!--s发帖提示-->
<a class="shadow bdr3 mb20 btn postoo pr J_qlogin_trigger" href="#" ><span class="icon_base ico_postoo">发帖图标</span>精华我也有，SO我也发一篇！</a>	
<!--e发帖提示-->

<!--s分页-->
<div class="J_page_wrap cc corelist_page" data-key="true">
<?php $__tplPageCount=(int)$count;
$__tplPagePer=(int)$perpage;
$__tplPageTotal=(int)$totalpage;
$__tplPageCurrent=(int)$page;
if($__tplPageCount > 0 && $__tplPagePer > 0){
$__tmp = ceil($__tplPageCount / $__tplPagePer);
($__tplPageTotal !== 0 &&  $__tplPageTotal < $__tmp) || $__tplPageTotal = $__tmp;}
$__tplPageCurrent > $__tplPageTotal && $__tplPageCurrent = $__tplPageTotal;
if ($__tplPageTotal > 1) {
 
$_page_min = max(1, $__tplPageCurrent-3);
$_page_max = min($__tplPageTotal, $__tplPageCurrent+3);
?>
<div class="pages">
<?php  if ($__tplPageCurrent > $_page_min) { 
	$_page_i = $__tplPageCurrent-1;
?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>" class="pages_pre J_pages_pre" title="上一页">&laquo;&nbsp;</a>
	<?php  if ($_page_min > 1) { 
		$_page_i = 1;		
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>">1...</a>
	<?php  } 
  for ($_page_i = $_page_min; $_page_i < $__tplPageCurrent; $_page_i++) { 
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars($_page_i, ENT_QUOTES, 'UTF-8');?></a>
	<?php  } 
  } ?>
	<strong><?php echo htmlspecialchars($__tplPageCurrent, ENT_QUOTES, 'UTF-8');?></strong>
<?php  if ($__tplPageCurrent < $_page_max) { 
  for ($_page_i = $__tplPageCurrent+1; $_page_i <= $_page_max; $_page_i++) { 
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars($_page_i, ENT_QUOTES, 'UTF-8');?></a>
	<?php  } 
  if ($_page_max < $__tplPageTotal) { 
		$_page_i = $__tplPageTotal;
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>">...<?php echo htmlspecialchars($__tplPageTotal, ENT_QUOTES, 'UTF-8');?></a>
	<?php  }
		$_page_i = $__tplPageCurrent+1;
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>" class="pages_next J_pages_next" title="下一页" >&nbsp;&raquo;</a>
<?php  } ?>
</div>
<?php } ?>
</div>
<!--e分页-->


<?php  }else { 

//获取视频swf函数
function getmediaswf($threadct) {
$service = Wekit::load('config.PwConfig');
$config = $service->getValues('mediaurl');
$content = $threadct;
preg_match("/\[flash(=(\d+?)\,(\d+?)(\,(0|1))?)?\]([^\[\<\r\n\"']+?)\[\/flash\]/is",$content,$arr);
$content = $arr[0]; //获取第一个flash标签
$content = preg_replace('/\[(.*?)flash(.*?)\]/i','',$content);//去除flash标签

if(substr(strrchr($content, '.'), 1) == 'swf' ){
return $content;
}

if ($config[lock] == '1') {
if ($config[youku] == '1') {
//youku
$content = preg_replace("/http:\/\/v.youku.com\/v_show\/id_(.*?).html/i","http://player.youku.com/player.php/sid/\${1}/v.swf",$content);
}
if ($config[tudou] == '1') {
//tudou
$content = preg_replace("/http:\/\/www.tudou.com\/programs\/view\/([\w\-]+)\/?(.*?)/i","http://www.tudou.com/v/\${1}/&resourceId=0_04_05_99/v.swf",$content);
$content = preg_replace('/http:\/\/www.tudou.com\/albumplay\/(.*?)\/(.*?).html(.*?)/i',"http://www.tudou.com/a/\${1}/&resourceId=0_04_05_99/v.swf",$content);
$content = preg_replace('/http:\/\/www.tudou.com\/listplay\/(.*?)\/(.*?).html(.*?)/i',"http://www.tudou.com/l/\${1}/&resourceId=0_04_05_99/v.swf",$content);
}
if ($config[_56] == '1') {
//56
$content = preg_replace('/http:\/\/www.56.com\/u(.*?)\/v_(.*?).html(.*?)/i',"http://player.56.com/v_\${2}.swf",$content);
$content = preg_replace('/http:\/\/www.56.com\/w(.*?)\/play_album\-aid\-\d+_vid\-(.*?).html(.*?)/i',"http://player.56.com/v_\${2}.swf",$content);
}
if ($config[ku6] == '1') {
//ku6
$content = preg_replace('/http:\/\/v.ku6.com\/show\/(.*?).html(.*?)/i',"http://player.ku6.com/refer/\${1}/v.swf",$content);
$content = preg_replace('/http:\/\/v.ku6.com\/special\/show_(.*?)\/(.*?).html(.*?)/i',"http://player.ku6.com/refer/\${2}/v.swf",$content);
}
if ($config[yinyuetai] == '1') {
//yinyuetai
$content = preg_replace('/http:\/\/v.yinyuetai.com\/video\/(\d+)\/?(.*?)/i',"http://player.yinyuetai.com/video/player/\${1}/v_0.swf",$content);
$content = preg_replace('/http:\/\/v.yinyuetai.com\/playlist\/(\d+)\/?(.*?)/i',"http://player.yinyuetai.com/playlist/player/\${1}/v_0.swf",$content);
}
}	
if ($content === false) return '发生错误';
return $content;
}
?>


<div class="corelist_tieba b_s">
<?php 
$threadtids = array();
foreach ($threaddb as $value) {
$threadtids[] = $value['tid'];
}

 $__tpl_data = call_user_func_array(
								array(Wekit::load("SRV:forum.PwThread"), 
								"fetchThread"), 
								array($threadtids,2)); 
  $threadContent = $__tpl_data; 
 $__tpl_data = call_user_func_array(
								array(Wekit::load("SRV:attach.PwThreadAttach"), 
								"fetchAttachByTidsAndPid"), 
								array($threadtids)); 
 
$threadthumb = array();
foreach ($__tpl_data as $value) {
if ($value['ifthumb']) $threadthumb[$value['tid']][] = $value['path'];
}
?>
<ul class="threadlist" id="J_posts_list">									
<?php  foreach ($threaddb as $key => $value) { ?>


<li class="tieba_item">
<div class="t_con cc">	
<div class="threadlist_li_left j_threadlist_li_left">
<div title="<?php echo htmlspecialchars($value['replies'], ENT_QUOTES, 'UTF-8');?>个回复" class="threadlist_rep_num j_rp_num"><?php echo htmlspecialchars($value['replies'], ENT_QUOTES, 'UTF-8');?></div>
</div>

<div class="threadlist_li_right">

<div class="threadlist_lz cc">

<div class="threadlist_text threadlist_title" >


<?php  if ($threadContent[$value['tid']]['tags'] != null){ 
   $reaTags = explode(',', $threadContent[$value['tid']]['tags']); $i = 1;  
  foreach ((array)$reaTags as $tag) { if($i > 1)break; $i ++;  ?>
<a data-url="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=tag&a=card&name=', rawurlencode($tag); ?>" title="话题标签"  target="_blank"  class="J_read_tag_item tag_item bdr3 fl" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=tag&a=view&name=', rawurlencode($tag); ?>"><?php echo htmlspecialchars($tag, ENT_QUOTES, 'UTF-8');?></a>
<div class="tag_card J_tag_card" style="display:none;"><div class="pop_loading"></div></div>
<?php  } 
  } ?>


<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>" class="st" target="_blank" style="<?php echo htmlspecialchars($value['highlight_style'], ENT_QUOTES, 'UTF-8');?>" title="<?php echo htmlspecialchars($value['subject'], ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars(Pw::substrs($value['subject'],$numofthreadtitle), ENT_QUOTES, 'UTF-8');?></a>
<?php if ($value['digest']) {?><i class="icon_base digest_small" title="精华"></i><?php }
 if ($value['topped']) {?><i class="icon_base topped_small" title="置顶"></i><?php }
 if ($value['special'] == "poll") {?><i class="icon_base poll_small" title="投票"></i><?php }?>


</div>

<div class="threadlist_author" title="主题作者">

<span class="tb_icon_author "><a class="J_user_card_show"  data-uid="<?php echo htmlspecialchars($value['created_userid'], ENT_QUOTES, 'UTF-8');?>" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($value['created_userid']); ?>" target="_blank" ><?php echo htmlspecialchars($value['created_username'], ENT_QUOTES, 'UTF-8');?></a></span>

</div>

</div>


<div class="threadlist_detail cc" >	

<div class="threadlist_text">


<div class="threadlist_abs threadlist_abs_onlyline"><?php echo htmlspecialchars(Pw::substrs(Pw::stripWindCode(preg_replace("/\[flash(=(\d+?)\,(\d+?)(\,(0|1))?)?\]([^\[\<\r\n\"']+?)\[\/flash\]/is","[视频]",preg_replace("/\[mp3(=(0|1)?)?\]([^\[\<\r\n\"']+?)\[\/mp3\]/is","[音乐]",$threadContent[$value['tid']]['content'])),true),40), ENT_QUOTES, 'UTF-8');?>
</div>
 																				
<?php  if (is_array($threadthumb[$value['tid']]) || preg_match("/\[flash(=(\d+?)\,(\d+?)(\,(0|1))?)?\]([^\[\<\r\n\"']+?)\[\/flash\]/is",$threadContent[$value['tid']]['content']) ){ ?>
<div class="threadlist_img" >

<ul class="small_wrap">
<?php 
foreach ((array)$threadthumb[$value['tid']] as $k=>$thumb ) {
if(3 == $k) break;
?>
<li><img   class="<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>"  src="<?php echo htmlspecialchars(Pw::getPath($thumb,2), ENT_QUOTES, 'UTF-8');?>"  /></li>
<?php  } 
  if (preg_match("/\[flash(=(\d+?)\,(\d+?)(\,(0|1))?)?\]([^\[\<\r\n\"']+?)\[\/flash\]/is",$threadContent[$value['tid']]['content'])){ ?>
<li ><span class="video_thumb icon_base" >视频图标</span></li> 
<?php  } ?>

</ul>
<?php  if (preg_match("/\[flash(=(\d+?)\,(\d+?)(\,(0|1))?)?\]([^\[\<\r\n\"']+?)\[\/flash\]/is",$threadContent[$value['tid']]['content'])){ ?>
<div class="video_wrap" style="display:none" >
<div class="picturecontrol">
<a class="icon_close">收起</a>
<span>|</span>
<a class="icon_pop">弹出</a>
</div>
<div class="video_content">
<embed src="<?php echo getmediaswf($threadContent[$value['tid']]['content']) ?>" allowfullscreen="true" quality="high" width="520" height="400" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash">

</div>	
</div> 
<?php  } ?>

<div class="big_wrap" style="display:none">

<div class="picturecontrol">
<a class="icon_close">收起</a>
<span>|</span>
<a class="icon_viewlarge">查看大图</a>
<span>|</span>
<a class="icon_turnleft">左转</a>
<span>|</span>
<a class="icon_turnright">右转</a>
</div>
	
<?php 
foreach ($threadthumb[$value['tid']] as $k=>$thumb) {
if(3 == $k) break;
?>
<div class="switchitem <?php echo $k;?>"  data-num="<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>"  style="display:none" >
<div class="big_img" ><img src="<?php echo htmlspecialchars(Pw::getPath($thumb,0), ENT_QUOTES, 'UTF-8');?>" ></div>
<div class="goprevious<?php  if(0 == $k) echo " hidden" ?>"></div>
<div class="gonext<?php  if(2 == $k) echo " hidden" ?>"  ></div>
</div>
<?php  } ?> 

<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','read.php?tid=', rawurlencode($value['tid']),'&fid=', rawurlencode($value['fid']); ?>"  class="pa btn btn_submit enter_pb" target="_blank" >进入帖子</a>	
</div>	

	
</div>
<?php  } ?> 

</div>

<div class="threadlist_author" >
<span class="tb_icon_author_rely j_replyer" title="最后回复人" ><a class="J_user_card_show" data-uid="<?php echo htmlspecialchars($value['lastpost_userid'], ENT_QUOTES, 'UTF-8');?>" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($value['lastpost_userid']); ?>" target="_blank"><?php echo htmlspecialchars($value['lastpost_username'], ENT_QUOTES, 'UTF-8');?></a> <span class="threadlist_reply_date j_reply_data" title="最后回复时间"><?php  echo Pw::time2str($value['lastpost_time'], 'auto');?></span></span>           

</div>
</div>

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

<?php  $tpc_topped = isset($value['issort']); 
  } ?>
</ul>

<!--s分页-->
<div class="J_page_wrap cc corelist_tieba_page" data-key="true">
<?php $__tplPageCount=(int)$count;
$__tplPagePer=(int)$perpage;
$__tplPageTotal=(int)$totalpage;
$__tplPageCurrent=(int)$page;
if($__tplPageCount > 0 && $__tplPagePer > 0){
$__tmp = ceil($__tplPageCount / $__tplPagePer);
($__tplPageTotal !== 0 &&  $__tplPageTotal < $__tmp) || $__tplPageTotal = $__tmp;}
$__tplPageCurrent > $__tplPageTotal && $__tplPageCurrent = $__tplPageTotal;
if ($__tplPageTotal > 1) {
 
$_page_min = max(1, $__tplPageCurrent-3);
$_page_max = min($__tplPageTotal, $__tplPageCurrent+3);
?>
<div class="pages">
<?php  if ($__tplPageCurrent > $_page_min) { 
	$_page_i = $__tplPageCurrent-1;
?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>" class="pages_pre J_pages_pre" title="上一页">&laquo;&nbsp;</a>
	<?php  if ($_page_min > 1) { 
		$_page_i = 1;		
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>">1...</a>
	<?php  } 
  for ($_page_i = $_page_min; $_page_i < $__tplPageCurrent; $_page_i++) { 
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars($_page_i, ENT_QUOTES, 'UTF-8');?></a>
	<?php  } 
  } ?>
	<strong><?php echo htmlspecialchars($__tplPageCurrent, ENT_QUOTES, 'UTF-8');?></strong>
<?php  if ($__tplPageCurrent < $_page_max) { 
  for ($_page_i = $__tplPageCurrent+1; $_page_i <= $_page_max; $_page_i++) { 
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars($_page_i, ENT_QUOTES, 'UTF-8');?></a>
	<?php  } 
  if ($_page_max < $__tplPageTotal) { 
		$_page_i = $__tplPageTotal;
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>">...<?php echo htmlspecialchars($__tplPageTotal, ENT_QUOTES, 'UTF-8');?></a>
	<?php  }
		$_page_i = $__tplPageCurrent+1;
	?>
	<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?page=', rawurlencode($_page_i); 
 echo htmlspecialchars($urlargs ? '&' . http_build_query($urlargs) : '', ENT_QUOTES, 'UTF-8');?>" class="pages_next J_pages_next" title="下一页" >&nbsp;&raquo;</a>
<?php  } ?>
</div>
<?php } ?>

<a class="bdr3 btn postoo postoo_s fr J_qlogin_trigger"  href="#" ><span class="icon_base ico_postoo">发帖图标</span>发主题</a>
</div>
<!--e分页-->

</div>

<?php  } 
  } else { ?>
<div class="b_s">	
<div class="not_content">
啊哦，本站暂没有任何内容哦！
</div>
</div>
<?php  } ?>
<!--e核心列表-->




<!--s底部内容推荐-->
<div class="b_s lurecommend">
<div class="tt yahei b pr"><span class="icon_base icon">诱惑小图标</span>诱惑推荐</div>
<div class="ct cc">
<div class="fl ttimg">
<ul class="cc">
  <?php if(is_array($__design_data['J_mod_7'])){
						$__data=$__design_data['J_mod_7'];
					}else{
						$display=Wekit::load('design.srv.display.PwDesignDisplay');
						$__data=$display->getModuleData(7);
					};foreach($__data AS $__k=>$__v){?>
    <li>
      <a href="<?php echo WindSecurity::escapeHTML($__v['url']);?>" target="_blank"><img src="<?php echo WindSecurity::escapeHTML($__v['thumb']);?>" alt="<?php echo WindSecurity::escapeHTML($__v['title']);?>" width="130" height="130"></a>
      <a href="<?php echo WindSecurity::escapeHTML($__v['url']);?>" target="_blank" class="ttimgtt" ><?php if($__v['__style']){?><span style="<?php echo WindSecurity::escapeHTML($__v['__style']);?>"><?php echo WindSecurity::escapeHTML($__v['title']);?></span><?php }else{
 echo WindSecurity::escapeHTML($__v['title']);
 }?></a>
    </li>
  <?php }?>
  </ul>

</div>
<div class="fl ttlist">
<div class="tmode_list tmode_list_light">
<ul>
<?php if(is_array($__design_data['J_mod_8'])){
						$__data=$__design_data['J_mod_8'];
					}else{
						$display=Wekit::load('design.srv.display.PwDesignDisplay');
						$__data=$display->getModuleData(8);
					};foreach($__data AS $__k=>$__v){?>
	<li><a href="<?php echo WindSecurity::escapeHTML($__v['url']);?>" target="_blank"><?php if($__v['__style']){?><span style="<?php echo WindSecurity::escapeHTML($__v['__style']);?>"><?php echo WindSecurity::escapeHTML($__v['title']);?></span><?php }else{
 echo WindSecurity::escapeHTML($__v['title']);
 }?></a></li>
<?php }?>
</ul>
</div>
<div class="ad"><div class="reserve" style="margin-left: 2px;
margin-top: 11px;
height: 150px;
width: 260px;
line-height: 152px;
background: #4893CD;
color: #ffffff;
text-align: center;
text-shadow:1px 1px 1px rgba(0,0,0,.3);
font-size: 30px;">260*150</div></div>
</div>
</div>
</div>
<!--e底部内容推荐-->


<div class="b_s friendlink">
	<div class="box_title pr">友情链接<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=link'; ?>" class="J_link_apply pa" style="right:10px;top:7px;">申请链接</a></div>
<div class="ct"><?php $__tpl_data = call_user_func_array(
								array(Wekit::load("SRV:link.srv.PwLinkService"), 
								"getLinksByType"), 
								array('分类一')); 
  if ($__tpl_data) { ?>
	<section class="links_list">
		<?php  if ($__tpl_data['logo']) { 
  foreach ($__tpl_data['logo'] as $link) { 
			  	
		?>
		<dl>
			<dt><a href="<?php echo htmlspecialchars($link['url'], ENT_QUOTES, 'UTF-8');?>"><img src="<?php echo htmlspecialchars($link['logo'], ENT_QUOTES, 'UTF-8');?>" width="88" height="31" alt="<?php echo htmlspecialchars($link['name'], ENT_QUOTES, 'UTF-8');?>" title="<?php echo htmlspecialchars($link['name'], ENT_QUOTES, 'UTF-8');?>"></a></dt>
			<dd>
				<a href="<?php echo htmlspecialchars($link['url'], ENT_QUOTES, 'UTF-8');?>"><?php echo htmlspecialchars($link['name'], ENT_QUOTES, 'UTF-8');?></a><br />
				<?php echo htmlspecialchars($link['descrip'], ENT_QUOTES, 'UTF-8');?>
			</dd>
		</dl>
		<?php  } 
  } 
  if ($__tpl_data['text']) { ?>
		<ul class="cc">
			<?php  foreach ($__tpl_data['text'] as $link) { 
				  
			?>
			<li><a href="<?php echo htmlspecialchars($link['url'], ENT_QUOTES, 'UTF-8');?>" target="_blank"><?php echo htmlspecialchars($link['name'], ENT_QUOTES, 'UTF-8');?></a></li>
			<?php  } ?>
		</ul>
		<?php  } ?>
	</section>
<?php  } 
  ?></div>
</div>


 


</div>
<!--==e左栏==-->

<!--==s右栏==-->
<div class="b_row_r w230 fr" id="sidebar" >
<!-- s用户登录与信息 -->
<?php  if (!$loginUser->isExists()) { 
  Wind::import('APPS:u.service.helper.PwUserHelper'); 
  $_loginWay = PwUserHelper::getLoginMessage(); ?>
<div class="box_wrap sidebar_login">
<form id="J_login_form" action="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=login&a=dologin'; ?>" method="post">
<dl>
<dt id="J_sidebar_login_dt" class="cc">
<i class="icon_username" title="请输入<?php echo htmlspecialchars($_loginWay, ENT_QUOTES, 'UTF-8');?>"></i><label for="J_username">用户名</label><input required type="text" class="input" id="J_username" name="username" placeholder="<?php echo htmlspecialchars($_loginWay, ENT_QUOTES, 'UTF-8');?>">
<i class="icon_password" title="请输入密码"></i><label for="J_password">密　码</label><input required type="password" class="input" id="J_password" name="password" placeholder="密码">
</dt>
<dd class="associate"><a class="sendpwd" rel="nofollow" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=findPwd'; ?>">找回密码</a><label for="head_checkbox" title="下次自动登录"><input type="checkbox" id="head_checkbox" name="rememberme" value="31536000"  checked="checked" >自动登录</label></dd>
<dd class="operate"><button type="submit" id="J_sidebar_login" class="btn btn_big btn_submit">登录</button><a class="btn btn_big btn_error" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=u&c=register'; ?>" rel="nofollow">立即注册</a></dd>
</dl>
<input type="hidden" name="csrf_token" value="<?php echo WindSecurity::escapeHTML(Wind::getComponent('windToken')->saveToken('csrf_token')); ?>"/><input type="hidden" name="csrf_token" value="<?php echo WindSecurity::escapeHTML(Wind::getComponent('windToken')->saveToken('csrf_token')); ?>"/></form>
</div>
<?php  } else { 
  $_group = $loginUser->getGroupInfo(); ?>
<div class="box_wrap user_info pr">
<dl class="cc">

<!--n头像-->
<dt id="J_ava_ie6">
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($loginUser->uid); ?>"><img class="J_avatar" src="<?php echo htmlspecialchars(Pw::getAvatar($loginUser->uid), ENT_QUOTES, 'UTF-8');?>" data-type="middle" width="72" height="72" alt="<?php echo htmlspecialchars($loginUser->username, ENT_QUOTES, 'UTF-8');?>" /></a>
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=profile&c=avatar&_left=avatar'; ?>"><b></b><span>修改头像</span></a>
</dt>


<dd>

<!--n名字-->	
<div class="name">
<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&uid=', rawurlencode($loginUser->uid); ?>" class="username" title="点击进入空间"><?php echo htmlspecialchars(Pw::substrs($loginUser->username,13), ENT_QUOTES, 'UTF-8');?><i></i></a>
</div>

<!--n资料-->
<div class="profile">
<?php echo htmlspecialchars($loginUser->info['gender'] == 1 ? '女' : '男', ENT_QUOTES, 'UTF-8');
  if ($loginUser->info['byear'] == 0) { ?>，<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=profile'; ?>" >设岁</a><?php  } else { ?>，<?php echo htmlspecialchars($loginUser->getBarthday(), ENT_QUOTES, 'UTF-8');?>岁<?php  } 
  if ($loginUser->info['hometown'] == 0) { ?>，<a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=profile'; ?>" >设家</a><?php  } else { ?>，<?php echo htmlspecialchars($loginUser->getArea(), ENT_QUOTES, 'UTF-8');
  } ?>
</div>

<!--n等级-->
<div class="d_badge level" title="头衔<?php if ($loginUser->info['groupid'] == 3  || $loginUser->info['groupid'] == 5 || $loginUser->info['groupid'] == 4 ) {?>19<?php  } else { 
 echo htmlspecialchars($loginUser->info['memberid']-7, ENT_QUOTES, 'UTF-8');
  } ?>级，经验值<?php echo htmlspecialchars($loginUser->info['credit2'], ENT_QUOTES, 'UTF-8');?>，点击进入等级说明页"  onclick="window.open('/index.php?m=special&id=2','_blank')">
<div class="d_badge_title"><?php echo htmlspecialchars($_group['name'], ENT_QUOTES, 'UTF-8');?></div>
<?php  if ($loginUser->info['groupid'] == 3 || $loginUser->info['groupid'] == 4 || $loginUser->info['groupid'] == 5 ) { ?>
<div class="d_badge_lv lv_t3">19</div>
<?php  } elseif($loginUser->info['memberid']-7 > 9){ ?>
<div class="d_badge_lv lv_t2"><?php echo htmlspecialchars($loginUser->info['memberid']-7, ENT_QUOTES, 'UTF-8');?></div>
<?php  } else { ?>
<div class="d_badge_lv lv_t1"><?php echo htmlspecialchars($loginUser->info['memberid']-7, ENT_QUOTES, 'UTF-8');?></div>
<?php  } ?>
</div>


<!--n设置-->
<a class="set" href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=profile'; ?>" title="更改资料" >设置</a>

</dd>
</dl>

<!--n数值、粉丝、关注等-->
<div class="num">
<ul class="cc">
<li><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=my&c=follow'; ?>"><span><?php echo htmlspecialchars($loginUser->info['follows'], ENT_QUOTES, 'UTF-8');?></span><em>关注</em></a></li>
<li><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=my&c=fans'; ?>"><span><?php echo htmlspecialchars($loginUser->info['fans'], ENT_QUOTES, 'UTF-8');?></span><em>粉丝</em></a></li>
<li><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=my&c=article'; ?>"><span><?php echo htmlspecialchars($loginUser->info['postnum'], ENT_QUOTES, 'UTF-8');?></span><em>帖子</em></a></li>
<li class="tail"><a href="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=profile&c=credit'; ?>"><span><?php echo htmlspecialchars($loginUser->info['credit2'], ENT_QUOTES, 'UTF-8');?></span><em>经验</em></a></li>
</ul>
</div>


</div>
<?php  } ?>
<!-- e用户登录与信息 -->

<div class="fixbox">
<!--s广告-->
<div class="taobaoAD bdr3 shadow">
<div style="line-height:230px;text-shadow: 1px 1px 1px rgba(0,0,0,.3);
font-size: 30px;
color: #fff;
text-align: center;">230*230</div>
</div>
<!--e广告-->


<!--s签到-->
<?php  
$punchService = Wekit::load('space.srv.PwPunchService');
list($punchOpen,$punchFriendOpen) = $punchService->getPunchConfig();
if ($punchOpen) {
list($punchStatus,$punchButton,$punchData) = $punchService->getPunch();
$punchStatus = $punchStatus ? '' : 'punch_widget_disabled';
list($monthDay,$weekDay) = $punchService->formatWeekDay(Pw::getTime());
?>
<div class="cc punch_widget_wrap">
<div id="J_punch_main_tip" class="fl dn">
<?php  if ($punchData) { ?>
<div class="tips">
<div class="core_arrow_top"><em></em><span></span></div>
<?php echo htmlspecialchars($punchData['username'], ENT_QUOTES, 'UTF-8');?>已帮你领取<span class="red"><?php echo htmlspecialchars($punchData['cNum'], ENT_QUOTES, 'UTF-8');?></span><?php echo htmlspecialchars($punchData['cUnit'], ENT_QUOTES, 'UTF-8');
 echo htmlspecialchars($punchData['cType'], ENT_QUOTES, 'UTF-8');?>
</div>
<?php  } ?>
</div>
<div class="punch_widget <?php echo htmlspecialchars($punchStatus, ENT_QUOTES, 'UTF-8');?> shadow bdr3" id="J_punch_widget">
<div class="date"><?php echo htmlspecialchars($monthDay, ENT_QUOTES, 'UTF-8');?><span><?php echo htmlspecialchars($weekDay, ENT_QUOTES, 'UTF-8');?></span></div>
<div class="cont"><a data-tips="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&c=punch&a=punchtip'; ?>" data-uri="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&c=punch&a=punch'; ?>" href="#" id="J_punch_mine" tabindex="-1" target="_blank"><?php echo htmlspecialchars($punchButton, ENT_QUOTES, 'UTF-8');?></a></div>
<?php  if ($punchFriendOpen) { ?>
<a data-uri="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=space&c=punch&a=friend'; ?>" href="#" id="J_punch_friend" class="help_ta" tabindex="-1" target="_blank">帮Ta打卡</a>
<?php  } ?>
</div>
</div>
<?php  } ?>
<!--e签到-->

<!--s帖子推荐-->
<div class="threadtop5 b_s">
<div class="box_title">本周热门</div>
<div class="ct">
<ul>
<?php if(is_array($__design_data['J_mod_5'])){
						$__data=$__design_data['J_mod_5'];
					}else{
						$display=Wekit::load('design.srv.display.PwDesignDisplay');
						$__data=$display->getModuleData(5);
					};foreach($__data AS $__k=>$__v){?>
<li class="cc">
<div class="t_left">
<?php if($__k == 0){?>
<i class="rank_num rank_num01"></i>
<?php }
 if($__k == 1){?>
<i class="rank_num rank_num02"></i>
<?php }
 if($__k == 2){?>
<i class="rank_num rank_num03"></i>
<?php }
 if($__k == 3){?>
<i class="rank_num rank_num04"></i>
<?php }
 if($__k == 4){?>
<i class="rank_num rank_num05"></i>
<?php }?>  
</div>
<div class="t_right">                        	
<a class="t_title" href="<?php echo WindSecurity::escapeHTML($__v['url']);?>" target="_blank" target="_blank"><?php if($__v['__style']){?><span style="<?php echo WindSecurity::escapeHTML($__v['__style']);?>"><?php echo WindSecurity::escapeHTML($__v['title']);?></span><?php }else{
 echo WindSecurity::escapeHTML($__v['title']);
 }?></a>
<p title="回复数：<?php echo WindSecurity::escapeHTML($__v['replies']);?>" class="tb_icon icon_baNum"><?php echo WindSecurity::escapeHTML($__v['replies']);?>次回复</p>
</div>
  <?php if(is_int($__k/2)){?>
<i class="rank_up"></i>
<?php }
 if(!is_int($__k/2)){?>  
<i class="rank_down"></i>
<?php }?>  
</li>
<?php }?>
</ul>
</div>
</div>
<!--e帖子推荐-->

<!--s关注与手机版-->
<div class="sidebar_attention bdr3 shadow">
<ul class="cc">
<li class="first"><a  href="#"  target="_blank" rel="nofollow" class="sina"><span>新浪微博</span></a></li>
<li><a href="#"  target="_blank" rel="nofollow" class="tieba"><span>百度贴吧</span></a></li>
<li class="last"><a href="/index.php?m=special&id=3" target="_blank" rel="nofollow" class="mobile"><span>手机浏览</span></a></li>	
</ul>	
</div>
<!--e关注与手机版-->

</div>


</div>
<!--==e右栏==-->


</div>



<div id="cloudwind_forum_bottom"></div>
</div>
</div>




<!--====e主体====-->

<!--====s底部====-->
<div class="w_footer" id="bottom">

<div class="b_row footerbar cc">

<!--s版权声明-->
<div class="fl">
<p>Powered by <a href="http://www.phpwind.net" target="_blank" rel="nofollow">phpwind</a> & Theme by <a href="http://www.yileit.com" target="_blank" rel="nofollow">Yileit inFloor</a> <?php echo htmlspecialchars(Wekit::C('site','info.icp'), ENT_QUOTES, 'UTF-8');
 echo Wekit::C('site','statisticscode');?></p>
</div>
<!--e版权声明-->

<!--s底部导航-->
<div class="fr footernav">
<ul class="cc">
<?php 
$nav = Wekit::load('SRV:nav.bo.PwNavBo');
$bottom = $nav->getNavFromConfig('bottom');
foreach($bottom as $key=>$value){
?>
<li><?php echo $value['name'];?></li>
<?php  } ?>
</ul>	
</div>	
<!--e底部导航-->

</div>

 
 
 
<div id="cloudwind_common_bottom"></div>
<?php
PwHook::display(array(PwSimpleHook::getInstance("footer"), "runDo"), array(), "", $__viewer);
?>
<!--==s浮动工具条==-->
<div class="floatbar">
<ul>
<li><a href="#" rel="nofollow"  data-referer="true"  class="float_post J_qlogin_trigger" >发帖</a></li>
<li class="pr share_whole"><a href="javascript:void(0)" rel="nofollow" role="button" class="float_share" >分享</a>
<div class="sharebox" style="display: none;">
<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" data="{&quot;pic&quot;:&quot;&quot;,&quot;text&quot;:&quot;<?php echo htmlspecialchars(Wind::getComponent('response')->getData('G','seo','description'), ENT_QUOTES, 'UTF-8');?>&quot;}">
<a class="bds_tsina" title="分享到新浪微博" href="#">新浪微博</a>
<a class="bds_tqq" title="分享到腾讯微博" href="#">腾讯微博</a>
<a class="bds_tieba" title="分享到百度贴吧" >百度贴吧</a>
<a class="bds_renren" title="分享到人人网" href="#">人人网</a>
<a class="bds_qzone" title="分享到QQ空间" href="#">QQ空间</a>
<a class="bds_copy">复制网址</a>
</div>
</div>
</li>
<li><a href="#" rel="nofollow" role="button" class="float_kbtip" >按键说明</a></li>
<li><a href="#top" rel="nofollow" role="button" id="back_top" tabindex="-1">返回顶部</a></li>
</div>

<!--s工具条元素弹窗-->
<!--n按键说明-->
<div class="kbtip" style="display:none">
<h3 id="keyboard-tips-title">键盘快捷键说明</h3>
<div class="keyboard-img"></div>
<ul class="key cc">
<li class="cc"><strong class="blue">W</strong><span class="fl"> - 上一条/楼</span></li>
<li class="cc"><strong class="blue">S</strong><span class="fl"> - 下一条/楼</span></li>
<li class="cc"><strong class="red">A</strong><span class="fl"> - 上一页</span></li>
<li class="cc"><strong class="red">D</strong><span class="fl"> - 下一页</span></li>
<li class="cc"><strong class="green">P</strong><span class="fl"> - 发表帖子</span></li>
<li class="cc"><strong class="green">R</strong><span class="fl"> - 回复帖子</span></li>
<li class="cc"><strong class="yellow">T</strong><span class="fl"> - 回到顶部</span></li>
<li class="cc"><strong class="yellow">H</strong><span class="fl"> - 回到首页</span></li>
</ul>
<p style="margin-top: 34px;color: silver;font-size: 14px;">点击屏幕任意区域或者按Esc即可关闭本窗口</p>
</div>

<!--n分享-->
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6814018" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>

<!--e工具条元素弹窗-->

<!--==e浮动工具条==-->
</div>


<!--====e底部====-->




<script>
Wind.use('jquery', 'global',function(){

});
</script>

</body>
</html>