diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index b437d849..bea94e5d 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -91,7 +91,12 @@ class Admin_ReviewController extends Zend_Controller_Action } else { - $sql = "update mdstatus set status='$status' where id in ($id)"; + if($status==1) + {$sql = "update mdstatus set status='$status',ts_received='".date('Y-m-d H:i:s')."' where id in ($id)"; } + else if($status==5) + {$sql = "update mdstatus set status='$status',ts_finished='".date('Y-m-d H:i:s')."' where id in ($id)";} + else + {$sql = "update mdstatus set status='$status' where id in ($id)";} try{ if($this->db->exec($sql)>0) { @@ -174,6 +179,34 @@ class Admin_ReviewController extends Zend_Controller_Action if($show>0) { + $sql = "select m.*,md.*,u.realname from mdstatus m + left join metadata md on md.uuid=m.uuid + left join users u on u.id=m.userid + where m.id=$show + "; + + $rs = $this->db->query($sql); + $rows = $rs->fetch(); + + $sql = "select exp.*,u.* from mdexpertreview exp + left join users u on u.id=exp.id + where exp.uuid='{$rows['uuid']}'"; + $rs = $this->db->query($sql); + $exps = $rs->fetchAll(); + + $expname = array(); + + foreach ($exps as $k=>$v) + { + if($v['id']!='') + {$expname[] = ''.$v['realname'].'';} + } + if(count($expname>0)) + {$rows['exps'] = join(',',$expname);} + + $rows['status'] = $this->rewiterstatus($rows['status']); + + $this->view->info = $rows; $this->_helper->viewRenderer('inreviewshow'); @@ -181,9 +214,17 @@ class Admin_ReviewController extends Zend_Controller_Action }//查看详细 else { - $sql = "select m.id,md.title,m.status from mdstatus m + + $searchjoin = ""; + if(!empty($search) && !empty($keyword)) + { + $searchjoin = " and md.title like '%$keyword%'"; + $this->view->keyword = $keyword; + } + + $sql = "select m.id,md.title,m.status,m.uuid from mdstatus m left join metadata md on md.uuid=m.uuid - where m.status in (2,3,4)"; + where m.status in (2,3,4) $searchjoin"; $rs = $this->db->query($sql); $rows = $rs->fetchAll(); diff --git a/application/admin/views/scripts/review/inreview.phtml b/application/admin/views/scripts/review/inreview.phtml index f283b55c..11171b70 100644 --- a/application/admin/views/scripts/review/inreview.phtml +++ b/application/admin/views/scripts/review/inreview.phtml @@ -23,12 +23,20 @@
- + + - - + @@ -37,10 +45,9 @@ paginator as $item): ?> > - - + diff --git a/application/admin/views/scripts/review/inreviewshow.phtml b/application/admin/views/scripts/review/inreviewshow.phtml new file mode 100644 index 00000000..e9cf8815 --- /dev/null +++ b/application/admin/views/scripts/review/inreviewshow.phtml @@ -0,0 +1,41 @@ +headTitle($this->config->title->site); + $this->headTitle('后台管理'); + $this->headTitle()->setSeparator(' - '); + $this->headLink()->appendStylesheet('/css/admin.css'); + $this->breadcrumb('首页'); + $this->breadcrumb('后台首页'); + $this->breadcrumb('元数据评审'); + $this->breadcrumb()->setSeparator(' > '); +?> +
+
+partial('review/left.phtml'); ?> +
+
+msg or $this->messages) :?> +
+msg) : ?> +

msg; ?>

+messages): foreach($this->messages as $msg): ?> +

+ +
+ + +
    +
  • 元数据:《 info['title']; ?>
  • +
  • 作者:info['author'];?>
  • +
  • 评审状态:info['status'];?>
  • +
  • 评审专家:info['exps'];?>
  • +
  • 纳入评审时间:info['ts_created'];?>
  • +
  • 开始评审时间:info['ts_received'];?>
  • +
  • 结束评审时间:info['ts_finished'];?>
  • +
  • 管理员:info['realname'];?>
  • +
  • +
  • +
  • +
+ +
+
\ No newline at end of file
ID标题标题 状态 操作
查看详细查看详细