<?php $this->load->view('head')?>

<div class="nav20"></div>
<div class="index_box1 content">
     <div class="l1">
<div class="layui-carousel" id="news_gun">
  <div carousel-item>
   <?php foreach($this->p->get_list_img(5,'news',13) as $v){ ?>
       <div><a target="_blank" href="<?=base_url()?><?=$my_routes[$v['catid']]?>/<?=$v['id']?>.html"><img src="<?=$v['image']?>" alt="<?=$v['title']?>"/></a></div>
 <?php }?>
  </div>
</div>
<div class="gun_down_list">
<ul>
 <?php $nn=1; foreach($this->p->get_list_img(7,'news',13) as $v){ if($nn>5){ ?>
  <li><a href="<?=base_url()?><?=$my_routes[$v['catid']]?>/<?=$v['id']?>.html" title="<?=$v['title']?>"><img src="<?=$v['image']?>" alt="<?=$v['title']?>"><em><?=$v['title']?></em></a></li>
 <?php }$nn++;}?>

</ul>
</div>
 
     </div>
    
     <div class="l3">
 
					<div class="headr_news_top_bg">
      <div class="headr_news_top">
      <?php  foreach($this->p->get_list(1,'news',13) as $k){ ?>
       <h2><a href="<?=base_url()?><?=$my_routes[$k['catid']]?>/<?=$k['id']?>.html" target="_blank"><?=$k['title']?></a></h2>
        <p><?=$k['des']?></p>
     <?php $nn++; }?>
      </div>
				</div>
     <div class="nav5"></div>
    
      <ul class="news_lists1"> <?php $nn=1; foreach($this->p->get_list(13,'news',13) as $k){if($nn>1){ ?>
        <li class="a<?=$nn?>">
         <a href="<?=base_url()?><?=$my_routes[$k['catid']]?>/<?=$k['id']?>.html" target="_blank"><?=$k['title']?></a>
         <i class="time "><?=date('Y-m-d',$k['uptime'])?></i>
        </li>
     <?php } $nn++; }?>
      </ul>
     </div>
</div>
<div class="nav10"></div>
<!--栏目新闻循环开始-->
<?php $n=1; $nn=1; foreach ($cat as $v){ if($v['id']!=13){?>
<?php if($n % 3==1){?>
<div class="nav1"></div>
<div class="a1200_a120 content">
   <?php $aa=$this->p->get_poster_one(1,$nn);echo '<a href="'.$aa['url'].'" target="_blank" rel="nofollow"><img src="'.$aa['image'].'" alt="'.$aa['name'].'"></a>'; $nn++?></div>
<div class="nav1"></div>
<div class="index_box2 content">
<?php }?>
<div class="box<?=$n?>">
     <div class="box1_top"><a href="/<?=$my_routes[$v['id']]?>/" title="<?=$v['catname']?>"><?=$v['catname']?></a> <span><a href="/<?=$my_routes[$v['id']]?>/">+ 更多</a></span></div>
     <?php foreach($this->p->get_list_img(1,'news',$v['id']) as $k){ ?>
          <div class="news_box">
							<div class="fl">
								<a href="<?=base_url()?><?=$my_routes[$k['catid']]?>/<?=$k['id']?>.html">
									<img class="thumb" src="<?=$k['image']?>" alt="<?=$k['title']?>" title="<?=$k['title']?>">
								</a>
							</div>
							<div class="fr"><a href="<?=base_url()?><?=$my_routes[$k['catid']]?>/<?=$k['id']?>.html"><?=$k['title']?></a>
							<div class="des"><?=$k['des']?></div>
						</div>
             </div> 
     <?php }?>
      <ul class="news_lists2">
          <?php foreach($this->p->get_list(8,'news',$v['id']) as $t){ ?>
          <li><a href="<?=base_url()?><?=$my_routes[$t['catid']]?>/<?=$t['id']?>.html" target="_blank"><?=$t['title']?></a><i class="time "><?=date('Y-m-d H:i:s',$t['uptime'])?> </i></li>
     <?php }?>
      </ul>
  </div>
  <?php if($n % 3==0){ echo '</div>';} ?>

<?php $n++;}}?> 
<!--栏目新闻循环结束-->

<div class="nav1"></div>

<script>
layui.use('carousel', function(){
  var carousel = layui.carousel;
  //建造实例
  carousel.render({
    elem: '#news_gun'
    ,width: '100%' //设置容器宽度
	,height:'350px'
    ,arrow: 'always' //始终显示箭头

  });
});
</script>
<?php $this->load->view('foot')?>