Authored by tmq

还原

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