Authored by tmq

还原

@@ -2,18 +2,16 @@ @@ -2,18 +2,16 @@
2 <?php $this->_block('main');?> 2 <?php $this->_block('main');?>
3 <div class="bd"> 3 <div class="bd">
4 <div class="news-wrap"> 4 <div class="news-wrap">
5 - <div class="nav" style="margin-top:40px;width:916px;margin-left:196px;"> 5 + <div class="content-tab news-tab">
6 <ul class="clearfix"> 6 <ul class="clearfix">
7 <?php 7 <?php
8 array_unshift($this->view->tags, array('tag' => '', 'num'=> $this->view->total)); 8 array_unshift($this->view->tags, array('tag' => '', 'num'=> $this->view->total));
9 foreach ($this->view->tags as $tag): 9 foreach ($this->view->tags as $tag):
10 if(empty($tag['num'])) continue; 10 if(empty($tag['num'])) continue;
11 ?> 11 ?>
12 - <li <?php echo ($this->view->current_tag == $tag['tag']) ?'class="current"':''?> style="text-align:center;width:180px"> 12 + <li <?php echo ($this->view->current_tag == $tag['tag']) ?'class="current"':''?>>
13 <a href="<?php echo url('news/index',array('tag' => $tag['tag']))?>"> 13 <a href="<?php echo url('news/index',array('tag' => $tag['tag']))?>">
14 - <em><?php echo sprintf("%s(%s)", $tag['tag'] == '' ? '全部资讯': $tag['tag'], $tag['num']); ?></em>  
15 - <span><?php echo sprintf("%s(%s)", $tag['tag'] == '' ? '全部资讯': $tag['tag'], $tag['num']); ?></span>  
16 - <i></i> 14 + <?php echo sprintf("%s(%s)", $tag['tag'] == '' ? '全部资讯': $tag['tag'], $tag['num']); ?>
17 </a> 15 </a>
18 </li> 16 </li>
19 <?php endforeach;?> 17 <?php endforeach;?>