<!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=gbk" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--[if IE 6]><script type="text/javascript">try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</script><![endif]-->
<title><?php echo $title;?>-<?php echo $dir_catname;?>-<?php echo $DIRCMS['site_name'];?></title>
<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/base.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/public.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/news.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/galleryview.css" rel="stylesheet" type="text/css">
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/js/tabs.js"></script>
<script language="javascript" src="images/js/comment.func.js" type="text/javascript"></script>
<script language="javascript" src="api/statistics/c.js.php?id=<?php echo $id;?>"></script>
</head>
<body>
<?php include template('header');?>
<div class="page-wrap">
  <div class="crumb-nav">您当前的位置：<?php echo $dir_postion;?></div>
</div>
<div class="page-wrap">
  <div class="width726 fl">
    <div class="ncom column border">
      <h2><strong><?php echo $dir_catname;?></strong></h2>
      <div class="nsbox">
        <div class="detail-t">
          <h1><strong><?php echo $title;?></strong></h1>
          <p class="det-tip"><i>发布日期：<?php echo date('Y-m-d',$inputtime);?></i><i>信息来源: <?php echo $copyfrom;?></i><i>点击: <script language=javascript>document.write(js_clicks);</script> 次</i><i><a href="<?php echo $DIRCMS['site_url'];?>comment/index.php?contentid=<?php echo $id;?>" target="_blank">我要评论(<span class="deep-red"><script language=javascript>document.write(js_comments);</script></span>)</a></i></p>
        </div>
        <div class="dcont f14" id="cont-detail">
		  <?php if($video) { ?>
		  <p style="text-align:center">
			<?php if(is_vedio($video)) { ?>
			<embed src="<?php echo $video;?>" allowFullScreen="true" quality="high" width="500" height="350" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>
			<?php }else{ ?>
			找不到视频源!
			<?php }?>
		  </p>
		  <?php }?>
          <?php echo $content;?>
        </div>
		<div class="pagination" style="margin:8px auto">
		  	<?php echo $content_page;?>
			
		</div>
        <div class="news-pageturn">
            <p><strong>上一篇：</strong><?php echo getpre($id,$catid,60);?></p>
            <p><strong>下一篇：</strong><?php echo getnext($id,$catid,60);?></p>
        </div>
        <div class="ri-info"> <strong class="ri-title f14">相关阅读</strong>
          <ul class="nslist mb15">
            <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,5,0,0,'id','desc',$keywords,0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
            <li><span class="date"><?php echo date('m-d',$r['inputtime']);?></span><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" target="_blank" class="deep-blue"><?php echo sub_string($r['title'],100);?></a></li>
            <?php }unset($_DATA); ?>
          </ul>
		  <p align="right">
			<!-- Baidu Button BEGIN -->
				<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
					<span class="bds_more">分享到：</span>
					<a class="bds_qzone"></a>
					<a class="bds_tsina"></a>
					<a class="bds_tqq"></a>
					<a class="bds_renren"></a>
					<a class="shareCount"></a>
				</div>
			<script type="text/javascript" id="bdshare_js" data="type=tools" ></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?t=" + new Date().getHours();
			</script>
			<!-- Baidu Button END -->
			</p>
        </div>
      </div>
    </div>
    <div class="fill-remark border mt6"> <strong class="fr-title f14">网友评论：</strong>
      <div class="remark-box">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          
        <form action="comment/comment.php" method="post" name="commentform" id="commentform">
		<input type="hidden" name="contentid" value="<?php echo $id;?>" />
		<input type="hidden" name="parentid" id="parentid" value="0" />
		<input type="hidden" name="do_submit" value="1" />
		<input type="hidden" name="authkey" value="<?php echo md5(AUTH_KEY.$catid.$id);?>" />
          <tr>
            <td colspan="6"><div class="txt-area-box fl"><textarea name="comment[content]" id="c_content" class="txt-area">&nbsp;</textarea></div><div class="face-mood-box fr"><p>表情:</p>
            <ul>
              <?php echo facelist('<li>','</li>');?>
              <li><input type="checkbox" name="bstyle" value="1" />字体加粗</li>
            </ul>
            </div></td>
          </tr>
          <tr>
            <td colspan="6" class="gray">验证码：<input type="text" size="4" class="txt" name="chkcode" id="c_chkcode" />
					 <img src="<?php echo $DIRCMS['site_url'];?>api/imcode/checkcode.php" id="img_chkcode" onclick="this.src='<?php echo $DIRCMS[site_url];?>api/imcode/checkcode.php?dc='+Math.random()*5;"  width="65" height="22" style="cursor:pointer;" align="middle" alt="验证码,看不清楚?请点击刷新验证码"/> <input name="" type="submit" value="发表评论" class="btn-o4"/></td>
          </tr>
          <tr>
            <td colspan="6" id="commentmsg" >网友评论仅供网友表达个人看法，并不表明本网站同意其观点或证实其描述</td>
            </tr>
          </form>
        </table>
      </div>
    </div>
  </div>
  <div class="width248 fr ml6">
    <div class="pnR2">
      <div class="site-sch">
        <h2>站内搜索</h2>
        <div class="t-search">
          <form action="search/index.php" method="get" name="mysearchform" id="mysearchform">
	      <input type="hidden" name="modelid" value="all" />
          <input name="k" class="txt" type="text" value="输入关键词..." onfocus="if(this.value=='输入关键词...'){this.value='';}"  onblur="if(this.value==''){this.value='输入关键词...';}">
          <input type="submit" class="btn" value="搜索">
          </form>
        <p class="hot-sw"><em class="orange">热词：</em><?php echo hotkeywords('weight',3);?></p>
        </div>
      </div>
      <div class="ptxt-ns">
        <h2><strong class="fl">图文资讯</strong></h2>
        <div class="pict-s">
          <ul>
            <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,6,0,1,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
            <li><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" target="_blank"><img src="<?php echo $r['thumb'];?>" width="105" height="86" alt="<?php echo $r['title'];?>"><span><?php echo sub_string($r['title'],20);?></span></a></li>
            <?php }unset($_DATA); ?>
          </ul>
        </div>   
      </div>
    </div>
    <div class="rank-tabs column border mt6">
      <h2><strong>阅读排行</strong></h2>
      <div class="bd rank20">
        <ul class="rank">
        <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,20,0,0,'clicks','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
        <?php $no++;?>
        <li class="n<?php echo $no;?>"><i></i><span><?php echo date('m-d',$r['inputtime']);?></span><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],24);?></a></li>
        <?php }unset($_DATA); ?>
        </ul>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<?php include template('footer');?>
</body>
</html>