<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><?php echo $c_title;?></title>
<?php if ($c_keywords != '') { ?>
<meta name="keywords" content="<?php echo $c_keywords;?>" />
<?php } ?>
<?php if ($c_description != '') { ?>
<meta name="description" content="<?php echo $c_description;?>" />
<?php } ?>
<?php include($dir.$t_path.'inc_head.php');?>
</head>
<body>
<?php include($dir.$t_path.'inc_header.php');?>
<?php if ($c_cover != ''){ ?>
<div id="channel_cover">
	<img src="<?php echo $c_cover;?>" alt="<?php echo $c_title;?>">
</div>
<?php } ?>
<div id="content">
	<div class="container">
		<div class="l20">
			<div class="x3">
				<div class="hd1"><?php echo $c_name?> <span><?php echo $c_aname?></span></div>
				<div class="bd1">
					<ul class="channel_list">
						<?php echo $channel_list?>
					</ul>
				</div>
				<?php if ($c_rh == 1) { ?>
				<div class="hd1">推荐<?php echo $c_sname;?></div>
				<div class="bd1">
					<ul class="alist">
					<?php
					$result = sql_query('select id,d_name,d_picture,d_scontent,d_date from cms_detail where d_parent in ('.$c_sub.') and d_rec = 1 order by d_order desc , id desc limit 0 , 10');
					while ($row = sql_fetch_array($result)){
					?>
					<li class="cut"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><?php echo $row['d_name'];?></a></li>
					<?php
					}
					?>
					</ul>
				</div>
				<div class="hd1">热门<?php echo $c_sname;?></div>
				<div class="bd1">
					<ul class="alist">
					<?php
					$result = sql_query('select id,d_name,d_picture,d_scontent,d_date from cms_detail where d_parent in ('.$c_sub.') and d_hot = 1 order by d_order desc , id desc limit 0 , 12');
					while ($row = sql_fetch_array($result)){
					?>
					<li class="cut"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><?php echo $row['d_name'];?></a></li>
					<?php
					}
					?>
					</ul>
				</div>
				<?php } ?>
			</div>
			<div class="x9">
				<div id="current_location">当前位置：<a href="index.php">首页</a> > <?php echo $current_location?></div>
				<div id="channel_content"><?php echo $c_content?></div>
				<?php
				$sql = 'select id,d_name,d_picture,d_scontent,d_date from cms_detail where d_parent in ('.$c_sub.') order by d_order desc , id desc';
				$pager = page_handle('page',$c_page,sql_num_rows(sql_query($sql)));
				$result = sql_query($sql.' limit '.$pager[0].','.$pager[1].'');
				while($row = sql_fetch_array($result)){
				?>
				<div class="alist">
					<div class="l10">
						<div class="x1">
							<div class="date">
								<div class="month_day"><?php echo date('m-d',$row['d_date']) ?></div>
								<div class="year"><?php echo date('Y',$row['d_date']) ?></div>
							</div>
						</div>
						<div class="x11">
							<div class="title"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><?php echo cut_str($row['d_name'],40);?></a></div>
							<div class="content"><?php echo $row['d_scontent'];?></div>
						</div>
					</div>
				</div>
				<?php
				}
				?>
				<div class="page_show"><?php echo (($system_mode == 2 ) ? page_shows($pager[2],$pager[3],$page,2) : page_show($pager[2],$pager[3],$pager[4],2));?> </div>
			</div>
		</div>
	</div>
</div>
<?php include($dir.$t_path.'inc_footer.php');?>
</body>
</html>
