导航转换为中文。

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

@ -1,39 +1,39 @@
<?php if ($this->pageCount): ?>
<?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>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt;&lt; First</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>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt; Previous</a></li>
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<li><a href="<?= $this->url($route,array('page'=>$page)) ?>"><?= $page; ?></a></li>
<?php else: ?>
<li class="active"><a href="#"><?= $page; ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next)) ?>">Next &gt;</a></li>
<?php else: ?>
<li class="next disabled"><a href="javascript:void(0);">Next &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>
<?php else: ?>
<li class="last disabled"><a href="javascript:void(0);">Last &gt;&gt;</a></li>
<?php endif; ?>
</ul>
<?php if ($this->pageCount): ?>
<?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; 首页</a></li>
<?php else: ?>
<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; 前一页</a></li>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt; 前一页</a></li>
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<li><a href="<?= $this->url($route,array('page'=>$page)) ?>"><?= $page; ?></a></li>
<?php else: ?>
<li class="active"><a href="#"><?= $page; ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<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);">后一页 &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)); ?>">尾页 &gt;&gt;</a></li>
<?php else: ?>
<li class="last disabled"><a href="javascript:void(0);">尾页 &gt;&gt;</a></li>
<?php endif; ?>
</ul>
<?php endif; ?>