导航转换为中文。
This commit is contained in:
parent
e909aa2bf2
commit
bba022b4bb
|
@ -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)); ?>"><< First</a></li>
|
||||
<?php else: ?>
|
||||
<li class="prev disabled"><a href="javascript:void(0);"><< 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)) ?>">< Previous</a></li>
|
||||
<?php else: ?>
|
||||
<li class="prev disabled"><a href="javascript:void(0);">< 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 ></a></li>
|
||||
<?php else: ?>
|
||||
<li class="next disabled"><a href="javascript:void(0);">Next ></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 >></a></li>
|
||||
<?php else: ?>
|
||||
<li class="last disabled"><a href="javascript:void(0);">Last >></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)); ?>"><< 首页</a></li>
|
||||
<?php else: ?>
|
||||
<li class="prev disabled"><a href="javascript:void(0);"><< 首页</a></li>
|
||||
<?php endif; ?>
|
||||
<!-- Previous page link -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous)) ?>">< 前一页</a></li>
|
||||
<?php else: ?>
|
||||
<li class="prev disabled"><a href="javascript:void(0);">< 前一页</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)) ?>">后一页 ></a></li>
|
||||
<?php else: ?>
|
||||
<li class="next disabled"><a href="javascript:void(0);">后一页 ></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)); ?>">尾页 >></a></li>
|
||||
<?php else: ?>
|
||||
<li class="last disabled"><a href="javascript:void(0);">尾页 >></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue