汇交计划中添加了项目序号
This commit is contained in:
parent
06af5b2657
commit
491fb84d86
|
@ -724,6 +724,9 @@ class HeiheController extends DataController
|
||||||
$this->view->user_email = $user_email = $user->email;
|
$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')
|
if(empty($ac) || $ac == "index" || $ac == 'my')
|
||||||
{
|
{
|
||||||
$this->_helper->viewRenderer('project-index');
|
$this->_helper->viewRenderer('project-index');
|
||||||
|
@ -777,11 +780,11 @@ class HeiheController extends DataController
|
||||||
|
|
||||||
$paginator = Zend_Paginator::factory($rows);
|
$paginator = Zend_Paginator::factory($rows);
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
$paginator->setItemCountPerPage(15);
|
$paginator->setItemCountPerPage($this->view->pagelimit);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
|
|
||||||
}//ac == index
|
}//ac == index
|
||||||
|
|
||||||
if($ac == "submitting")
|
if($ac == "submitting")
|
||||||
|
|
|
@ -27,9 +27,9 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
<ul>
|
<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/">所有项目</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/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/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/unsubmit">未提交</a></li>
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/heihe/projects/ac/submit">已提交</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php if(!empty($this->searchLink)){ ?>
|
<?php if(!empty($this->searchLink)){ ?>
|
||||||
|
@ -44,12 +44,17 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
<?php
|
<?php
|
||||||
if (count($this->paginator)):
|
if (count($this->paginator)):
|
||||||
echo "<ul>";
|
echo "<ul>";
|
||||||
$autoindex=0;
|
if(empty($this->page))
|
||||||
|
{
|
||||||
|
$autoindex=0;
|
||||||
|
}else{
|
||||||
|
$autoindex= ($this->page-1) * $this->pagelimit;
|
||||||
|
}
|
||||||
foreach ($this->paginator as $item):
|
foreach ($this->paginator as $item):
|
||||||
$autoindex++;
|
$autoindex++;
|
||||||
?>
|
?>
|
||||||
<li>
|
<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>
|
<p>
|
||||||
编号:<label><?= $item['code'];?></label> |
|
编号:<label><?= $item['code'];?></label> |
|
||||||
负责人:<?= $item['name'];?> |
|
负责人:<?= $item['name'];?> |
|
||||||
|
|
Loading…
Reference in New Issue