导航转换为中文。

This commit is contained in:
Li Heng 2014-03-13 11:29:52 +00:00
parent e909aa2bf2
commit bba022b4bb
1 changed files with 38 additions and 38 deletions

View File

@ -2,15 +2,15 @@
<?php $route = 'home/index'; ?>
<ul class="pagination">
<?php if (isset($this->previous)): ?>
<li class="first"><a href="<?php echo $this->url($route, array('page' => $this->first)); ?>">&lt;&lt; First</a></li>
<li class="first"><a href="<?php echo $this->url($route, array('page' => $this->first)); ?>">&lt;&lt; 首页</a></li>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt;&lt; First</a></li>
<li class="prev disabled"><a href="javascript:void(0);">&lt;&lt; 首页</a></li>
<?php endif; ?>
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous)) ?>">&lt; Previous</a></li>
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous)) ?>">&lt; 前一页</a></li>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt; Previous</a></li>
<li class="prev disabled"><a href="javascript:void(0);">&lt; 前一页</a></li>
<?php endif; ?>
<!-- Numbered page links -->
@ -24,16 +24,16 @@
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next)) ?>">Next &gt;</a></li>
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next)) ?>">后一页 &gt;</a></li>
<?php else: ?>
<li class="next disabled"><a href="javascript:void(0);">Next &gt;</a></li>
<li class="next disabled"><a href="javascript:void(0);">后一页 &gt;</a></li>
<?php endif; ?>
<!-- Last page link -->
<?php if (isset($this->next)): ?>
<li class="last"><a href="<?php echo $this->url($route, array('page' => $this->last)); ?>">Last &gt;&gt;</a></li>
<li class="last"><a href="<?php echo $this->url($route, array('page' => $this->last)); ?>">尾页 &gt;&gt;</a></li>
<?php else: ?>
<li class="last disabled"><a href="javascript:void(0);">Last &gt;&gt;</a></li>
<li class="last disabled"><a href="javascript:void(0);">尾页 &gt;&gt;</a></li>
<?php endif; ?>
</ul>
<?php endif; ?>