添加状态说明

This commit is contained in:
wlx 2011-10-27 14:49:00 +00:00
parent 89ebea2f19
commit 00de4a3567
2 changed files with 10 additions and 7 deletions

View File

@ -66,7 +66,7 @@ class ReviewController extends Zend_Controller_Action
foreach($rows as $k=>$v)
{
$rows[$k]['status']=$this->rewiterstatus($v['status']);
$rows[$k]['status']=$this->rewritestatus($v['status']);
}
$paginator = Zend_Paginator::factory($rows);
@ -202,7 +202,7 @@ class ReviewController extends Zend_Controller_Action
foreach($rows as $k=>$v)
{
$rows[$k]['status']=$this->rewiterstatus($v['status']);
$rows[$k]['status']=$this->rewritestatus($v['status']);
}
$paginator = Zend_Paginator::factory($rows);
@ -265,13 +265,13 @@ class ReviewController extends Zend_Controller_Action
}//已完成评审的元数据
function rewiterstatus($status){
function rewritestatus($status){
if($status==-1)
{return "取消评审";}
else if($status==0)
{return "初始状态";}
{return "投稿元数据";}
else if($status==1)
{return "受元数据评审";}
{return "收元数据";}
else if($status==2)
{return "专家评审中";}
else if($status==3)
@ -500,7 +500,10 @@ class ReviewController extends Zend_Controller_Action
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
$this->view->page=new Pagination($sum,$page,$this->limit);
$this->view->key=$key;
$this->view->offset=$offset+1;
foreach($this->view->metadata as $k=>$v)
{
$this->view->metadata[$k]['statustext']=$this->rewritestatus($v['status']);
}
}
}
}

View File

@ -25,7 +25,7 @@ $this->headScript()->appendFile('/js/pubfunc.js');
?>
<div class="thumbmd">
<div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?>
<?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a>
<?php endif; ?>