<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="<?php echo $keywords;?>" />
<meta name="description" content="<?php echo $description;?>" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/share.css" type="text/css" rel="stylesheet" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/show.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="images/js/comment.func.js" type="text/javascript"></script>
<script language="javascript" src="images/js/dig.func.js" type="text/javascript"></script>
<title><?php echo $title;?>-<?php echo $DIRCMS['site_name'];?></title>
<style type="text/css" >
#content_div img 
{ 
	vertical-align: middle;
	max-width:580px;   /* FF IE7 */
	width:expression(this.width > 580 && this.width > this.height ? 580 : true);
	overflow:hidden;
}
</style>
</head>

<body>
	<!-- 头部开始 -->
	<?php include template('head');?>
	<!-- 头部结束 -->
	<!-- 正文开始 -->
	<div class="ads_960"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=14"></script></div>
	<div class="position"><?php echo $dir_postion;?></div>
	<div class="show">
		<div class="show_left">
			<div class="show_left_wrap">
				<div class="show_left_wrap_title"><?php echo $title;?></div>
				<div class="show_left_wrap_copyfrom"><?php if($copyfrom) { ?>来源：<?php echo $copyfrom;?> <?php }?> 点击：<span id="clicks">0</span> 次　<?php echo date('Y-m-d',$updatetime);?>　<font color="#cc0000"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=4"></script></font></div>
				
				<!-- 摘要 -->
				<div class="show_left_wrap_desc"><b>[导读]</b><?php echo $description;?></div>
				
				<!-- 内容 -->
				<div class="show_left_wrap_content" id="content_div">
				<?php echo $content;?>
				</div>
				
				<!-- 内容分页 -->
				<div class="show_page"><?php echo $pagestring;?></div>
				
				<!-- 在线投票 -->
				<?php if($vote) { ?>
				<div class="show_left_wrap_content">
				  <?php if(post=="post"){postvote($vote);}else{viewvote($vote);}?>
				</div>
				<?php }?>
				<div class="show_left_wrap_content" style="text-align:right"><?php if($author) { ?><b>责任编辑：</b><?php echo $author;?><?php }?><br /><script type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/images/share.js"></script></div>
				
				<!-- 顶一下 -->
				<div class="content_dig"><table width="35%" cellpadding="0" cellspacing="0"><tr><td class="dig_td" id="dig_up_num" align="right"><a href="javascript:digup(<?php echo $id;?>);"><span id="digups">0</span><br />顶一下</a></td><td class="back_td" id="dig_down_num" align="left"><a href="javascript:digdown(<?php echo $id;?>);"><span id="digdowns">0</span><br />踩一下</a></td></tr></table></div>
				
				<div class="pre">
				<ul>
					<li>上一篇：<?php echo getpre($id,30);?></li>
					<li>下一篇：<?php echo getnext($id,30);?></li>
				</ul>
				</div>
				<div class="show_left_wrap_xiangguan">
					<strong>相关推荐</strong>：
					<ul>
<?php $dir_page="";$_DATA=get_tag_data($catid,'0','5',0,0,'0','id DESC',$keywords,'0');foreach($_DATA as $no => $r)if(is_array($r)){?>
<li>·<a href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],50);?></a>  <span style="color:#999; font-size:12px">(<?php echo date("Y-m-d H:i:s",$r['updatetime']);?>)</span></li>
<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
					</ul>
				</div>
				<div class="show_ads_600px"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=6"></script></div>
				
				<div class="show_left_wrap_pinglun">
				<?php if($iscomment) { ?>
				<b>我来说两句</b>
					<div class="show_left_wrap_pinglun_list">
						<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."comment` WHERE `".DB_PRE."comment`.`status`=1 AND `".DB_PRE."comment`.`contentid`=".intval($id)." ORDER BY `".DB_PRE."comment`.`support` DESC,`".DB_PRE."comment`.`id` DESC",20,0,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
						<div class="show_left_wrap_pinglun_list_user"><span style="float:left">网友 [<?php echo $r['username'];?>]：</span><span style="float:right; color:#666"><?php echo date('Y-m-d H:i:s',$r['addtime']);?></span></div>
						<div class="comment_left_wrap_pinglun_list_content"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/<?php echo $r['score'];?>.gif" /><?php echo $r['content'];?></div>
						<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>
					</div>					
					<form action="comment/" method="post" name="commentform" id="commentform">
					<input type="hidden" name="contentid" value="<?php echo $id;?>" />
					<input type="hidden" name="catid" value="<?php echo $catid;?>" />
					<input type="hidden" name="do_submit" value="1" />
					<input type="hidden" name="authkey" value="<?php echo md5(AUTH_KEY.$catid.$id);?>" />
						<div style="clear:both">
							<div style="text-align:right"><a href="<?php echo $DIRCMS['site_url'];?>comment/index.php?contentid=<?php echo $id;?>" target="_blank">共 <span style="color:#ff0000" id="comments_box">0</span> 条评论，点击查看</a> &nbsp;</div>
							<div><strong>表 情</strong>：<input type="radio" style="border:0px"  name="score" value="1" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/1.gif" />&nbsp;<input type="radio" style="border:0px"  name="score" value="2"/><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/2.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="3" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/3.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="4" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/4.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="5" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/5.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="6" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/6.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="7" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/7.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="8" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/8.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="9" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/9.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="10" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/10.gif" /> </div>
						</div>
						<textarea class="text_pinglun" name="comment[content]" id="c_content"></textarea>
						<span style="float:left"><strong>验证码</strong>：<input type="text" name="chkcode" id="c_chkcode" class="checkcode" />
						 <img src="<?php echo $DIRCMS['site_url'];?>checkcode.php" onclick="this.src='<?php echo $DIRCMS[site_url];?>checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" align="middle" alt="验证码,看不清楚?请点击刷新验证码"/><br />
						</span><span style="float:right; color:#666"><input type="submit" class="bt_pinglun" value="" /></span>
						<br />
						<span id="commentmsg" style="color:#FF3300"></span>
					</form>
				<?php }else{ ?>
				<u>评论已关闭!</u>
				<?php }?>
				</div>
				
			</div>
		</div>
		<div class="show_right">
			<div class="show_ads">
				<script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=7"></script>
			</div>
			<div class="show_right_content">
				<div class="bar_c">点击排行</div>
				<ul>
<?php $dir_page="";$_DATA=get_tag_data($catid,'0','10',0,0,'0','clicks DESC',0,'0');foreach($_DATA as $no => $r)if(is_array($r)){?>
<li><a href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],30);?></a></li>
<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
				</ul>
			</div>
			<div class="show_right_content">
				<div class="bar_c">评论排行</div>
				<ul>
<?php $dir_page="";$_DATA=get_tag_data($catid,'0','10',0,0,'0','comments DESC',0,'0');foreach($_DATA as $no => $r)if(is_array($r)){?>
<li><a href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],30);?></a></li>
<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
				</ul>
			</div>
		</div>
	</div>
	<!-- 正文结束 -->
	<!-- 底部开始 -->
	<?php include template('footer');?>
	<!-- 底部结束 -->
	<script language="javascript" src="c.js.php?id=<?php echo $id;?>"></script>
</body>
</html>