<?php defined('APP_NAME') || exit('Access Denied');  function kp_block_list_flag($conf) { global $run; $flag = _int($conf, 'flag'); $cid = isset($conf['cid']) ? intval($conf['cid']) : (isset($_GET['cid']) ? intval($_GET['cid']) : 0); $mid = _int($conf, 'mid', 2); $dateformat = empty($conf['dateformat']) ? 'Y-m-d H:i:s' : $conf['dateformat']; $titlenum = _int($conf, 'titlenum'); $intronum = _int($conf, 'intronum'); $orderby = isset($conf['orderby']) && in_array($conf['orderby'], array('id', 'dateline', 'lasttime', 'sells', 'price')) ? $conf['orderby'] : 'id'; $orderway = isset($conf['orderway']) && $conf['orderway'] == 1 ? 1 : -1; $start = _int($conf, 'start'); $limit = _int($conf, 'limit', 10); if($cid == 0) { $table_arr = &$run->_cfg['table_arr']; $table = isset($table_arr[$mid]) ? $table_arr[$mid] : 'products'; $where = array('flag' => $flag); }else{ $cate_arr = $run->category->get_cache($cid); $table = &$cate_arr['table']; if(!empty($cate_arr['son_cids']) && is_array($cate_arr['son_cids'])) { $where = array('flag' => $flag, 'cid' => array("IN" => $cate_arr['son_cids'])); }else{ $where = array('flag' => $flag, 'cid' => $cid); } } $run->cms_content_flag->table = 'cms_'.$table.'_flag'; $key_arr = $run->cms_content_flag->find_fetch($where, array('id' => $orderway), $start, $limit); $keys = array(); foreach($key_arr as $v) { $keys[] = $v['id']; } $run->cms_content->table = 'cms_'.$table; $list_arr = $run->cms_content->mget($keys); $list_arr = _array_multisort($list_arr, $orderby); foreach($list_arr as &$v) { $run->cms_content->format($v, $mid, $dateformat, $titlenum, $intronum); $v['cate_arr'] = $run->category->get_place($v['cid']); } return array('list'=> $list_arr); }
 function kp_block_order($conf) { global $run, $_show; $limit = empty($conf['limit']) ? 20 : max(1, (int)$conf['limit']); $titlenum = _int($conf, 'titlenum'); $dateformat = empty($conf['dateformat']) ? 'Y-m-d H:i:s' : $conf['dateformat']; $humandate = isset($conf['humandate']) ? ($conf['humandate'] == 1 ? 1 : 0) : 1; $orderway = isset($conf['orderway']) && $conf['orderway'] == 1 ? 1 : -1; $list_arr = $run->cms_content_book->find_fetch(array(), array('id' => $orderway), 0, $limit); foreach($list_arr as &$v) { $run->cms_content_book->formatbook($v, false, $humandate ,$titlenum); $user = $run->user->get($v['uid']); $v['user'] = other::hidecard(2,$user['username']); } return array('list' => $list_arr); }
 function kp_block_list($conf) { global $run; $cid = isset($conf['cid']) ? intval($conf['cid']) : (isset($_GET['cid']) ? intval($_GET['cid']) : 0); $mid = _int($conf, 'mid', 2); $dateformat = empty($conf['dateformat']) ? 'Y-m-d H:i:s' : $conf['dateformat']; $titlenum = _int($conf, 'titlenum'); $intronum = _int($conf, 'intronum'); $orderby = isset($conf['orderby']) && in_array($conf['orderby'], array('id', 'dateline', 'lasttime', 'sells', 'price')) ? $conf['orderby'] : 'id'; $orderway = isset($conf['orderway']) && $conf['orderway'] == 1 ? 1 : -1; $start = _int($conf, 'start'); $ext = _int($conf, 'ext'); $limit = _int($conf, 'limit', 10); $where = array(); $where['status'] = 0; if($cid == 0) { $cate_name = 'No Title'; $cate_url = 'javascript:;'; $table_arr = &$run->_cfg['table_arr']; $table = isset($table_arr[$mid]) ? $table_arr[$mid] : 'products'; }else{ $cate_arr = $run->category->get_cache($cid); if(empty($cate_arr)) return; $cate_name = $cate_arr['name']; $cate_url = $run->category->category_url($cid, $cate_arr['alias']); $table = &$cate_arr['table']; if(!empty($cate_arr['son_cids']) && is_array($cate_arr['son_cids'])) { $where['cid'] = array("IN" => $cate_arr['son_cids']); }else{ $where['cid'] = $cid; } } $run->cms_content->table = 'cms_'.$table; $list_arr = $run->cms_content->find_fetch($where, array($orderby => $orderway), $start, $limit); foreach($list_arr as &$v) { $run->cms_content->format($v, $mid, $dateformat, $titlenum, $intronum , $ext); $v['cate_arr'] = $run->category->get_place($v['cid']); } return array('cate_name'=> $cate_name, 'cate_url'=> $cate_url, 'list'=> $list_arr); }
 function kp_block_listeach($conf) { global $run; $cid = isset($conf['cid']) ? intval($conf['cid']) : (isset($_GET['cid']) ? intval($_GET['cid']) : 0); $mid = _int($conf, 'mid', 2); $dateformat = empty($conf['dateformat']) ? 'Y-m-d H:i:s' : $conf['dateformat']; $titlenum = _int($conf, 'titlenum'); $intronum = _int($conf, 'intronum'); $orderby = isset($conf['orderby']) && in_array($conf['orderby'], array('id', 'dateline', 'lasttime', 'sells', 'price')) ? $conf['orderby'] : 'id'; $orderway = isset($conf['orderway']) && $conf['orderway'] == 1 ? 1 : -1; $limit = _int($conf, 'limit', 10); if($cid == 0) { $cid_arr = $run->category->get_cids_by_mid($mid); $table_arr = &$run->_cfg['table_arr']; $table = isset($table_arr[$mid]) ? $table_arr[$mid] : 'products'; }else{ $_var = $run->category->get_cache($cid); if(isset($_var['son_list'])) { $cid_arr = $_var['son_list']; $table = $_var['table']; }else{ return array(); } } $run->cms_content->table = 'cms_'.$table; $ret = array(); foreach($cid_arr as $_cid => $cids) { $cate_arr = $run->category->get_cache($_cid); $ret[$_cid]['cate_name'] = $cate_arr['name']; $ret[$_cid]['cate_url'] = $run->category->category_url($cate_arr['cid'], $cate_arr['alias']); if(!$cids) continue; if(is_array($cids)) { $where = array('cid' => array("IN" => $cids)); }else{ $where = array('cid' => $_cid); } $where['status'] = 0; $ret[$_cid]['list'] = $run->cms_content->find_fetch($where, array($orderby => $orderway), 0, $limit); foreach($ret[$_cid]['list'] as &$v) { $run->cms_content->format($v, $mid, $dateformat, $titlenum, $intronum); } } return $ret; }
 function kp_block_links($conf) { global $run; $arr = $run->kv->xget('pp_links'); return $arr; }
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo(isset($pp['titles']) ? $pp['titles'] : ''); ?> - <?php echo(isset($pp['webname']) ? $pp['webname'] : ''); ?></title>
<meta name="keywords" content="<?php echo(isset($pp['seo_keywords']) ? $pp['seo_keywords'] : ''); ?>" />
<meta name="description" content="<?php echo(isset($pp['seo_description']) ? $pp['seo_description'] : ''); ?>" />
<link rel="stylesheet" href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/css/bootstrap.min.css" />
<link rel="stylesheet" href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/css/me.css" />
<link rel="stylesheet" href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/icomoon/style.css" />
<script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/js/jquery.js"></script>
<script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/js/bootstrap.min.js"></script>
<script>var webdir = '<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>' , weburl = '<?php echo(isset($pp['weburl']) ? $pp['weburl'] : ''); ?>', memurl = '<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>member';</script>
<script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/js/layer/layer.js"></script>
<script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/js/all.js"></script>
<!--[if lt IE 9]>
  <script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/js/html5.js"></script>
  <script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container bg-white">
	<div class="row">
		<div class="col-sm-6 hidden-xs">
			<a class="nopadding" href="<?php echo(isset($pp['weburl']) ? $pp['weburl'] : ''); ?>"><img src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/img/logo2.png" alt="<?php echo(isset($pp['webname']) ? $pp['webname'] : ''); ?>"/></a>
		</div>
		<div class="col-xs-12 col-sm-6 text-right" id="memnav">
			<?php if (!empty($user)) { ?>
			<a href="javascript:;">您好，<strong><?php echo(isset($user['username']) ? $user['username'] : ''); ?></strong> </a>
			<a href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>member/"><span class="icon-users"></span>管理中心</a>
			<a href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>member/index.php?u=public-logout"><span class="icon-switch"></span> 退出</a>
			<?php }else{ ?>
			<a href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>member/index.php?u=public-register" rel="nofollow"><span class="icon-pencil"></span> 注册</a>
			<a href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>member/index.php?u=public-login" rel="nofollow"><span class="icon-users"></span> 登录</a>
			<?php if (!empty($pp['qq_login']['off'])) { ?><a href="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>member/index.php?u=qq-login" rel="nofollow" target="_blank"><span class="icon-qq"></span> QQ登陆</a><?php } ?>
			<?php } ?>
		</div>
	</div>
</div>
<nav class="navbar mr0 mb0 bg-header" id="navbar">
	<div class="container">
		<div class="navbar-header visible-xs">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topnav" aria-expanded="false"><span class="sr-only">Toggle navigation</span> <span class="icon-circle-down"></span></button>
			<a class="navbar-brand nopadding" href="<?php echo(isset($pp['weburl']) ? $pp['weburl'] : ''); ?>"><img src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/img/logo.png" alt="<?php echo(isset($pp['webname']) ? $pp['webname'] : ''); ?>"/></a>
		</div>
		<div class="collapse navbar-collapse" id="topnav">
			<ul class="nav navbar-nav" id="navbar-nav">
				<li class="<?php if (empty($pp_var['topcid'])) { ?>active<?php } ?>"><a href="<?php echo(isset($pp['weburl']) ? $pp['weburl'] : ''); ?>"><span class="icon-home"></span> 网站首页</a></li>
				<?php if (!empty($pp_nav)) { ?>
				<?php if(isset($pp_nav) && is_array($pp_nav)) { foreach($pp_nav as &$v) { ?>
				<?php if (!empty($v['son'])) { ?>
				<li class="dropdown <?php if ($pp_var['topcid'] == $v['cid'] && empty($v['is_remote'])) { ?>active<?php } ?>" >
					<a data-target="#" href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo(isset($v['name']) ? $v['name'] : ''); ?> <span class="caret"></span></a>
					<ul class="dropdown-menu">
						<?php if(isset($v['son']) && is_array($v['son'])) { foreach($v['son'] as &$v2) { ?><li><a href="<?php echo(isset($v2['url']) ? $v2['url'] : ''); ?>" target="<?php echo(isset($v2['target']) ? $v2['target'] : ''); ?>"><?php echo(isset($v2['name']) ? $v2['name'] : ''); ?></a><li><?php }} ?>
					</ul>
				</li>
				<?php }else{ ?>
				<li class="<?php if (($pp_var['topcid'] == $v['cid'] || $pp_var['cid']==$v['cid']) && empty($v['is_remote'])) { ?>active<?php } ?>"><a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" target="<?php echo(isset($v['target']) ? $v['target'] : ''); ?>"><?php echo(isset($v['name']) ? $v['name'] : ''); ?></a></li>
				<?php } ?>
				<?php }} ?>
				<?php } ?>
			</ul>
			<form role="search" class="navbar-form navbar-right search hidden-xs" method="GET" action="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>index.php" id="search_form">
				<div class="input-group">
					<input class="form-control" id="search_keyword" type="text" name="keyword" value="<?php echo(isset($keyword) ? $keyword : ''); ?>" aria-describedby="submitso" />
					<input type="hidden" name="mid" value="2" />
					<input type="hidden" name="u" value="search-index" />
					<span class="input-group-btn"><button class="btn btn-default" type="submit"><i class="icon-search"></i></button></span>
				</div>
			</form>
		</div>
	</div>
</nav>
<div class="container mt20">
<div class="row" style="padding-bottom:0">
	<div class="col-md-3">
		<div class="panel panel-default" id="index_toplist">
			<div class="panel-heading">推荐资源下载</div>
			<ul class="list-group">
			<?php $data = kp_block_list_flag(array (
  'flag' => '1',
  'cid' => '0',
  'mid' => '2',
  'limit' => '6',
  'titlenum' => '28',
)); ?>
				<?php if(isset($data['list']) && is_array($data['list'])) { foreach($data['list'] as &$v) { ?>
				<li class="list-group-item"><a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" title="<?php echo(isset($v['subject']) ? $v['subject'] : ''); ?>"><?php echo(isset($v['subject']) ? $v['subject'] : ''); ?></a><p class="list-group-item-text smgray"><?php echo(isset($v['cate_arr'][1]['name']) ? $v['cate_arr'][1]['name'] : ''); ?> | <?php echo(isset($v['date']) ? $v['date'] : ''); ?></p></li>
				<?php }} ?>
			<?php unset($data); ?>
			</ul>
		</div>
	</div>
	<div class="col-md-6">
	<?php $data = kp_block_list_flag(array (
  'flag' => '5',
  'cid' => '0',
  'mid' => '2',
  'limit' => '3',
  'titlenum' => '28',
)); ?>
	<div class="panel panel-default">
		<div class="panel-body pa_pic">
			<div id="homeflash" class="carousel slide" data-ride="carousel">
				<div class="carousel-inner" style="max-height:360px;overflow:hidden;">
					<?php $n=0; ?>
					<?php if(isset($data['list']) && is_array($data['list'])) { foreach($data['list'] as &$v) { ?>
					<div class="item <?php if ($n==0) { ?> active<?php } ?>">
						<a class="pic" href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>"><img src="<?php echo(isset($v['bigpic']) ? $v['bigpic'] : ''); ?>" class="img-responsive center-block" style="width:555px;" alt="<?php echo(isset($v['subject']) ? $v['subject'] : ''); ?>"></a>
						<div class="carousel-caption"><?php echo(isset($v['subject']) ? $v['subject'] : ''); ?></div>
					</div>
					<?php $n++; ?>
					<?php }} ?>
				</div>
				<a class="left carousel-control" href="#homeflash" role="button" data-slide="prev">
					<span class="icon-circle-left" aria-hidden="true"></span>
					<span class="sr-only">Previous</span>
				</a>
				<a class="right carousel-control" href="#homeflash" role="button" data-slide="next">
					<span class="icon-circle-right" aria-hidden="true"></span>
					<span class="sr-only">Next</span>
				</a>
			</div>
	<?php unset($data); ?>
		</div>
	</div>
	</div>
	<div class="col-md-3 hidden-xs">
		<div class="panel panel-danger">
			<div class="panel-heading">最新成交</div>
			<?php $data = kp_block_order(array (
  'limit' => '10',
  'humandate' => '1',
  'titlenum' => '20',
  'tips' => '调用订单',
)); ?>
			<ul class="list-group" id="home_order">
				<?php if(isset($data['list']) && is_array($data['list'])) { foreach($data['list'] as &$v) { ?>
				<li class="list-group-item">
					<p class="list-group-item-text smgray"><i class="icon-user text-muted"></i> <?php echo(isset($v['user']) ? $v['user'] : ''); ?> <i style="padding:5px;"></i><?php echo(isset($v['date']) ? $v['date'] : ''); ?>购买了：</p>
					<p class="list-group-item-text"><a class="text-muted" href="<?php echo(isset($v['data']['url']) ? $v['data']['url'] : ''); ?>" target="_blank"><?php echo(isset($v['data']['subject']) ? $v['data']['subject'] : ''); ?> <small>[&yen;<?php echo $v['totalprice']-0; ?>]</small></a></p>
				 </li>
				<?php }} ?>
			</ul>
			<?php unset($data); ?>
		</div>
		<div class="panel panel-default">
			<?php $data = kp_block_list(array (
  'cid' => '11',
  'mid' => '3',
  'limit' => '4',
  'titlenum' => '30',
  'tips' => '调用公告',
)); ?>
			<div class="panel-heading">站内公告<a href="<?php echo(isset($data['cate_url']) ? $data['cate_url'] : ''); ?>" class="pull-right">更多</a></div>
			<ul class="list-group">
			<?php if(isset($data['list']) && is_array($data['list'])) { foreach($data['list'] as &$v) { ?>
				<li class="list-group-item"><a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" class="text-red"><?php echo(isset($v['subject']) ? $v['subject'] : ''); ?></a></li>
			<?php }} ?>
			</ul>
			<?php unset($data); ?>
		</div>
	</div>
</div>
<script src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/js/bootstrapNews.js"></script>
<script type="text/javascript">
$(function(){
    $("#home_order").bootstrapNews({
        newsPerPage: 2,
        autoplay: true,
        pauseOnHover: true,
		navigation: false,
    });
});
</script>
<p><?php echo(isset($pp_block['home_top']) ? $pp_block['home_top'] : ''); ?></p>
</div>
<?php $data = kp_block_listeach(array (
  'cid' => '10',
  'limit' => '8',
)); ?>
<?php if(isset($data) && is_array($data)) { foreach($data as &$lv) { ?>
<div class="container mt20">
<div class="row item_list">
	<div class="col-sm-12">
		<div class="big-tit">
			<h2><?php echo(isset($lv['cate_name']) ? $lv['cate_name'] : ''); ?></h2>
		</div>
	</div>
	<?php if(isset($lv['list']) && is_array($lv['list'])) { foreach($lv['list'] as &$v) { ?>
	<div class="col-sm-3">
		<div class="panel panel-default">
			<div class="panel-body pa_pic">
				<a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>"><img class="img-responsive center-block" src="<?php echo(isset($pp['webdir']) ? $pp['webdir'] : ''); ?>static/default/img/grey.gif" data-original="<?php echo(isset($v['pic']) ? $v['pic'] : ''); ?>" alt="<?php echo(isset($v['subject']) ? $v['subject'] : ''); ?>" /></a>
				<?php if ($v['iszk']) { ?><i class="po_pic tuan_pic"></i><?php } ?>
			</div>
			<div class="panel-footer">
				<h4 class="title"><a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>"><?php echo(isset($v['subject']) ? $v['subject'] : ''); ?></a></h4>
				<div class="clearfix">
					<div class="pull-left price">
					<?php if ($v['price']>0) { ?>
						<span class="s2">￥</span><span class="s1"><?php echo $v['price']-0; ?></span><?php if (!empty($gdata['price'])) { ?><del class="small smgray hidden-xs"><?php echo $v['old_price']-0; ?></del><?php } ?>
					<?php }else{ ?>
						<span class="s1">free</span>
					<?php } ?>
					</div>
					<div class="pull-right smgray text-right">
						<i class="icon-heart text-gray"></i> <?php echo(isset($v['views']) ? $v['views'] : ''); ?> 人喜欢<br />
						<i class="icon-bubble text-gray"></i> <?php echo(isset($v['comments']) ? $v['comments'] : ''); ?> 条评论
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php }} ?>
</div>
<p class="text-center more clearfix"><a href="<?php echo(isset($lv['cate_url']) ? $lv['cate_url'] : ''); ?>"> 查看更多“<?php echo(isset($lv['cate_name']) ? $lv['cate_name'] : ''); ?>”相关内容 </a></p>
</div>
<?php }} ?>
<?php unset($data); ?>
<div class="container mt20">
<p><?php echo(isset($pp_block['home_center']) ? $pp_block['home_center'] : ''); ?></p>
<div class="row">
	<div class="col-sm-6">
		<div class="panel panel-default mb0">
		<?php $data = kp_block_list(array (
  'cid' => '17',
  'mid' => '3',
  'limit' => '5',
  'titlenum' => '22',
  'intronum' => '60',
)); ?>
			<div class="panel-heading"><?php echo(isset($data['cate_name']) ? $data['cate_name'] : ''); ?><a href="<?php echo(isset($data['cate_url']) ? $data['cate_url'] : ''); ?>" class="pull-right">更多</a></div>
			<div class="list-group">
			<?php if(isset($data['list']) && is_array($data['list'])) { foreach($data['list'] as &$v) { ?>
				<a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" class="list-group-item" title="<?php echo(isset($v['title']) ? $v['title'] : ''); ?>&#10;发表于:<?php echo(isset($v['date']) ? $v['date'] : ''); ?>">
					<p class="list-group-item-heading"><?php echo(isset($v['subject']) ? $v['subject'] : ''); ?></p>
					<span class="smgray"><?php echo(isset($v['intro']) ? $v['intro'] : ''); ?></span>
				</a>
			<?php }} ?>
			</div>
		<?php unset($data); ?>
		</div>
	</div>
	<div class="col-sm-6">
		<div class="panel panel-default mb0">
		<?php $data = kp_block_list(array (
  'cid' => '14',
  'mid' => '3',
  'limit' => '5',
  'titlenum' => '22',
  'intronum' => '60',
)); ?>
			<div class="panel-heading"><?php echo(isset($data['cate_name']) ? $data['cate_name'] : ''); ?><a href="<?php echo(isset($data['cate_url']) ? $data['cate_url'] : ''); ?>" class="pull-right">更多</a></div>
			<div class="list-group">
			<?php if(isset($data['list']) && is_array($data['list'])) { foreach($data['list'] as &$v) { ?>
				<a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" class="list-group-item" title="<?php echo(isset($v['title']) ? $v['title'] : ''); ?>&#10;发表于:<?php echo(isset($v['date']) ? $v['date'] : ''); ?>">
					<p class="list-group-item-heading"><?php echo(isset($v['subject']) ? $v['subject'] : ''); ?></p>
					<span class="smgray"><?php echo(isset($v['intro']) ? $v['intro'] : ''); ?></span>
				</a>
			<?php }} ?>
			</div>
		<?php unset($data); ?>
		</div>
	</div>
</div>
</div>

<?php if (!empty($ishome)) { ?>
<?php $data = kp_block_links(array (
)); ?>
<div class="container mt20">
	<div class="panel panel-default mb0">
		<div class="panel-heading">友情链接(申请联系：<?php echo(isset($pp['qq']) ? $pp['qq'] : ''); ?>)</div>
		<ul class="panel-body">
		<?php if(isset($data) && is_array($data)) { foreach($data as &$v) { ?>
			<a href="<?php echo(isset($v['url']) ? $v['url'] : ''); ?>" target="_blank"><?php echo(isset($v['name']) ? $v['name'] : ''); ?></a>
		<?php }} ?>
		</ul>
	</div>
</div>
<?php unset($data); ?>
<?php } ?>
<div class="all bg-footer pad20 mt20" id="footer">
	<div class="container">
	<div class="row">
		<div class="col-md-6">
			<p>Powered by <a href="<?php echo(isset($pp['weburl']) ? $pp['weburl'] : ''); ?>"><?php echo(isset($pp['webname']) ? $pp['webname'] : ''); ?></a></p>
			<p>Copyright &copy; <?php echo date('Y'); ?> <?php echo(isset($pp['webdomain']) ? $pp['webdomain'] : ''); ?> All Rights Reserved <?php echo(isset($pp['tongji']) ? $pp['tongji'] : ''); ?></p>
		</div>
		<div class="col-md-6 text-right hidden-xs">
			<p><?php echo(isset($pp['beian']) ? $pp['beian'] : ''); ?></p>
			<p><?php  echo '页面耗时'.runtime().'秒, 内存占用'.runmem().', 访问数据库'.$_ENV['_sqlnum'].'次';  ?></p>
		</div>
	</div>
	</div>
</div>
<p id="back-to-top"><a href="#top"><span></span></a></p>
</body>
</html>