汇交计划中添加了项目序号

This commit is contained in:
Li Jianxuan 2013-04-23 03:14:40 +00:00
parent 06af5b2657
commit 491fb84d86
2 changed files with 13 additions and 5 deletions

View File

@ -724,6 +724,9 @@ class HeiheController extends DataController
$this->view->user_email = $user_email = $user->email;
}
$this->view->page = $this->_getParam('page');
$this->view->pagelimit = 15;
if(empty($ac) || $ac == "index" || $ac == 'my')
{
$this->_helper->viewRenderer('project-index');
@ -777,7 +780,7 @@ class HeiheController extends DataController
$paginator = Zend_Paginator::factory($rows);
$paginator->setCurrentPageNumber($this->_getParam('page'));
$paginator->setItemCountPerPage(15);
$paginator->setItemCountPerPage($this->view->pagelimit);
$paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
$this->view->paginator=$paginator;

View File

@ -27,9 +27,9 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
<ul>
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/">所有项目</a></li>
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/ac/my">我负责的</a></li>
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/ac/submit">已提交</a></li>
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/ac/submitting">专家未审核</a></li>
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/ac/unsubmit">未提交</a></li>
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/ac/submit">已提交</a></li>
</ul>
</div>
<?php if(!empty($this->searchLink)){ ?>
@ -44,12 +44,17 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
<?php
if (count($this->paginator)):
echo "<ul>";
$autoindex=0;
if(empty($this->page))
{
$autoindex=0;
}else{
$autoindex= ($this->page-1) * $this->pagelimit;
}
foreach ($this->paginator as $item):
$autoindex++;
?>
<li>
<h2 style="font-weight:bold;line-height:32px;"><?= $item['id'];?>. <?php echo $item['title'];?></h2>
<h2 style="font-weight:bold;line-height:32px;"><?= $autoindex ;?>. <?php echo $item['title'];?></h2>
<p>
编号:<label><?= $item['code'];?></label> |
负责人:<?= $item['name'];?> |