<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/



 if(!defined('IN_SITETEAM')) {exit('Access Denied');}?>
<!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=gb2312" />
<title><?=$seo_title?></title>
<?php if(!empty($seo_keywords)){ ?><meta name="keywords" content="<?=$seo_keywords?>" /><?php }?>

<?php if(!empty($seo_description)){ ?><meta name="description" content="<?=$seo_description?>" /><?php }?>

<?php if(!empty($seo_author)){ ?><meta content="<?=$seo_author?>" name="author"><?php }?>

<?php if(!empty($seo_copyright)){ ?><meta content="<?=$seo_copyright?>" name="copyright"><?php }?>
<style type="text/css">
<!--
div {
	margin: 0px;
	padding: 0px;
}
body {
	font-size: 12px;
	color: #333333;
	background-color: #FFFFFF;
	margin-left: 20px;
	margin-top: 20px;
	margin-right: 20px;
	margin-bottom: 20px;
}
a:link {
	color: #333333;
}
a:visited {
	color: #FF0000;
}
a:hover {
	color: #333333;
}
a:active {
	color: #FF0000;
}
h1 {
	font-size: 16px;
}
h2 {
	font-size: 15px;
}
h3 {
	font-size: 13px;
}
h4 {
	font-size: 12px;
}
.mainbox {
	padding: 10px;
	margin-top: 8px;
	margin-right: 0px;
	margin-bottom: 8px;
	margin-left: 0px;
	border: 1px solid #EEEEEE;
}
.footer {
	margin: 0px;
	padding: 0px;
}

.footer li{
	margin: 0px;
	padding: 0px;
	float: left;
	list-style-type: none;
}

img {
	margin: 3px;
	padding: 0px;
	border: 0px solid #666666;
}
-->
</style>
<script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
<script type='text/javascript'>
BAIDU_CLB_addSlot('36932');BAIDU_CLB_addSlot('36933');BAIDU_CLB_addSlot('36934');BAIDU_CLB_enableAllSlots();
</script>
</head>
<body>
<div class="mainbox">
	<h1><a href="<?=$site_home_url?>"><?=$site_title?></a></h1>
	<h2><?=$top_title?></h2>
	<h4><?=$top_description?></h4>
</div>

<div class="mainbox">
	<h3><?=$seo_title?><?=$site_keywords?></h3>
	  <ul>
		  <?php foreach($article_category as $k => $v){?>
		  <li>
		  	<a href="<?=SITE_PATH?>/?<?=$k?>.html"><?=$v['name']?></a>
		  	<?php if(is_array($article_list) && count($article_list)) {?>
				<ul>
					<?php foreach ($article_list as $kk => $vv) {?>
						<?php if($vv['is_first'] == 8){continue;}?>
						<?php if($k == $vv['category']){?><li><a href="<?=SITE_PATH?>/?<?=$vv['category']?>/<?=$vv['key']?>.html" title="<?=$vv['body_title']?>"><?=$vv['body_name']?></a></li><?php }?>
					<?php }?>
				</ul>
			<?php }?>
		  </li>
		  <?php }?>
	  </ul>
</div>

<?php if(empty($sys_product_close) || $sys_product_close != '4'){?>
	<?php if(count($product_category) > 0) foreach($product_category as $k => $v){?>
	<div class="mainbox">
		<h3><a href="<?=SITE_PATH?>/?<?=$site_product_list_url?>/category/<?=$k?>.html"><?=$v['name']?></a></h3>
		  <ul>
			  <?php if(count($product_list) > 1) foreach($product_list as $p){?>
			  <?php if($p['category'] != $k)continue;?>
			  <li><a href="<?=SITE_PATH?>/?<?=$site_product_url?>/<?=$p['category']?>/<?=$p['key']?>.html"><?=$p['name']?>&nbsp;</a></li>
			  <?php }?>
		  </ul>
	</div>
	<?php }?>
<?php }?>

<?php if(isset($article_data) && is_array($article_data) && count($article_data) > 0){?>
	<h3>其它文章</h3>
	<div class="mainbox">
		  <ul style="width:400px">
			  <?php foreach($article_data as $k => $v){?>
			  &nbsp;<a href="<?=SITE_PATH?>/archives/<?=rawurlencode($v['keywords'])?>/<?=date("Y/m/d/H/i", $v['url'])?>/<?=$v['id']?>.html"><?=$v['id']?></a>&nbsp;
			  <?php }?>
		  </ul>
	</div>
<?php }?>
<!-- http://www.siteteam.cn -->
<div class="footer">
      <li style="margin:2px"><script type='text/javascript'>BAIDU_CLB_fillSlot('36932');</script></li>
	  <li style="margin:2px"><script type='text/javascript'>BAIDU_CLB_fillSlot('36933');</script></li>
	  <li style="margin:2px"><script type='text/javascript'>BAIDU_CLB_fillSlot('36934');</script></li>
</div>
</body>
</html>