<!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];?></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 language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/js/jquery.galleryview-1.1.js"></script>
<script type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/js/jquery.timers-1.1.2.js"></script>
<script type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/js/tabs.js"></script>
<!--[if IE 6]>
    <script src="js/iepng.js" type="text/javascript"></script>
   <script type="text/javascript">
    EvPNG.fix('img');
 </script>
<![endif]-->
<!--[if IE 6]>
    <script src="js/iepng.js" type="text/javascript"></script>
   <script type="text/javascript">
    EvPNG.fix('img');
 </script>
<![endif]-->
<script type="text/javascript">
	$(document).ready(function(){
		$('#photos').galleryView({
			panel_width: 332,
			panel_height: 376,
			frame_width: 45,
			frame_height: 45
		});
	});
</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="width340 fl">
    <div class="flash-slide">
      <div class="flash-slide-1">
        <!--  <img src="images/flash-slide-1.png" /> -->
        <span><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/huandeng.png" width="49" height="85" /></span> </div>
      <div class="flash-slide-2">
        <div id="photos" class="galleryview" style="border:none;">
		 <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,5,6,0,1,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
		 <div class="panel"> <a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> target="_blank"><img src="<?php echo $r['thumb'];?>" width="332" height="370"/></a>
            <div class="panel-overlay">
              <h2><?php echo sub_string($r['title'],30);?></h2>
              <p>更新日期：<?php echo date('Y-m-d',$r['updatetime']);?></p>
            </div>
          </div>
          <?php }unset($_DATA); ?>
          <ul class="filmstrip">
		  	<?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,5,6,0,1,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
			<li><img src="<?php echo $r['thumb'];?>" width="45" height="45" alt="<?php echo $r['title'];?>" /></li>
			<?php }unset($_DATA); ?>
          </ul>
          
        </div>
      </div>
      <div class="flash-slide-3">
        <!-- <img src="images/flash-slide-3.png" width="299" height="2" /> -->
      </div>
    </div>
  </div>
  <div class="width380 ml6 fl">
    <div class="newsp-box">
      <h2 class="news-th2">新闻资讯</h2>
      <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,2,0,0,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
      <div class="main-new">
        <h3><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" class="deep-blue" target="_blank"><?php echo sub_string($r['title'],30);?></a></h3>
        <p><?php echo sub_string($r['description'],100,'...');?></p>
      </div>
      <?php }unset($_DATA); ?>
      <ul class="newsplist">
        <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,8,2,0,'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"><?php echo sub_string($r['title'],40);?></a></li>
        <?php }unset($_DATA); ?>
      </ul>
    </div>
  </div>
  <div class="rangeR1 ml6 fr">
    <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="atten-ns">
      <h2><strong class="fl">本地关注</strong></h2>
      <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,2,0,1,'clicks','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
      <div class="asd-m">
        <div class="as-img"><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="68" height="58" alt="<?php echo $r['title'];?>"></a></div>
        <div class="as-txt">
          <h3><strong><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></strong></h3>
          <p><?php echo sub_string($r['description'],60);?></p>
        </div>
        <div class="clear"></div>
      </div>
      <?php }unset($_DATA); ?>
      
      <div class="asd-lt">
        <ul>
          <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,7,2,0,'clicks','desc','',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"><?php echo sub_string($r['title'],40);?></a></li>
          <?php }unset($_DATA); ?>
        </ul>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<div class="page-wrap mt6">
  <div class="width726 fl">
    <div class="newpre column border fl">
      <h2><strong class="fl">热图推荐</strong></h2>
      <div class="pic-w01">
        <ul>
          <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,8,0,1,'clicks','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="136" height="114" 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="width248 ml6 fr">
    <div class="hnws column border">
      <h2><strong>热点资讯</strong></h2>
      <ul class="rank">
        <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,12,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 class="clear"></div>
</div>
<div class="page-wrap mt6">
  <div class="advert-03-l fl"><script language="javascript" src="<?php echo $DIRCMS['site_url'];?>adv/api/adv.js.php?id=15&siteid=<?php echo $DIRCMS['site_id'];?>"></script></div>
  <div class="advert-03-r fr ml6"><script language="javascript" src="<?php echo $DIRCMS['site_url'];?>adv/api/adv.js.php?id=16&siteid=<?php echo $DIRCMS['site_id'];?>"></script></div>
  <div class="clear"></div>
</div>
<div class="page-wrap mt6">
  <div class="width726 fl">
    <?php $_DATA=get_category_data(0,0,0,$catid,array (
  0 => 1,
),'son',10);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
	<?php $no++;$i=$no;?>
    <div <?php if($i%2) { ?>class="sortinfo-box01 column border fl"<?php }else{ ?>class="sortinfo-box02 column border fr"<?php }?> style="margin-bottom:8px;">
      <h2><strong class="fl"><?php echo $r['catname'];?></strong><span class="more"><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?>>更多>></a></span></h2>
       <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,1,0,1,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
        <div class="si-major">
          <div class="sim-img"><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="86" height="56" /></a></div>
          <div <?php if($i%2) { ?>class="sim-txt-w222"<?php }else{ ?>class="sim-txt-w262"<?php }?>>
            <h3><strong><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'],30);?></a></strong></h3>
            <p><?php echo sub_string($r['description'],72,'...');?></p>
          </div>
          <div class="clear"></div>
        </div>
        <?php }unset($_DATA); ?>
        <div class="sinfo-list">
          <ul>
            <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,7,0,0,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
            <li><span class="fl"><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'],34);?></a></span><span class="date"><?php echo date('m-d',$r['inputtime']);?></span></li>
            <?php }unset($_DATA); ?>
          </ul>
        </div>
    </div>
   <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
    
    <div class="clear"></div>
  </div>
  <div class="width248 ml6 fr">
    <div class="rank-tabs border">
      <div class="tabs-tit">
        <ul>
          <li class="current"><a href="<?php echo caturl($dir_catid);?>"><strong>今日最受关注</strong></a></li>
          <li><a href="<?php echo caturl($dir_catid);?>"><strong>本周排行榜</strong></a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="bd rank20">
        <ul class="rank">
          <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,20,0,0,'comments','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 class="clear"></div>
      <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>