<!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 $head[title];?><?php if($page!=1) { ?>(<?php echo $page;?>)<?php }?></title>
<meta name="keywords" content="<?php echo $head[keywords];?>" />
<meta name="description" content="<?php echo $head[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 type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/js/jquery.js"></script>
<script type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/js/tabs.js"></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="nlicont">
        
        <ul class="nslist">
          <?php $dir_page="";$_DATA=call_user_func('get_list_tag_data',$catid,35,'id','desc',0,$page,all);foreach($_DATA as $no => $r)if(is_array($r)){?>
          <li><span class="date"><?php echo date('Y-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'],100);?></a></li>
          <?php if($no%5==0 && $no!=0) { ?><div mb15></div><?php }?>
		  <?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
        </ul>
        <div class="pagination">
            <?php $_DATA=listpage($catid,5,$page);@extract($_DATA); ?>
            当前是 <strong><?php echo $page;?></strong> 页<?php echo $index;?> <?php echo $pre;?> <?php echo $pagelist;?> <?php echo $next;?> <?php echo $end;?> 共 <strong><?php echo $totalcount;?></strong> 条 <strong><?php echo $pageno;?></strong> 页
            <?php unset($_DATA); ?>
          </div>
      </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">
	      <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>