From c61d177d187af832265877eda9cdb9d74cac25b6 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 18 Oct 2011 07:20:53 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E6=97=B6=E7=9A=84=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=98=AF=E8=A2=AB=E9=82=80=E8=AF=B7=E7=9A=84=E4=B8=93?= =?UTF-8?q?=E5=AE=B6=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了视图 --- .../default/controllers/ReviewController.php | 17 +++++++++-------- .../default/views/scripts/review/inreview.phtml | 2 +- .../default/views/scripts/review/myreview.phtml | 4 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 9c7af38a..5732e2bc 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -64,7 +64,7 @@ class ReviewController extends Zend_Controller_Action } $wheresql = array(); - $wheresql[]=" mdexp.id='$uid' "; + $wheresql[]=" r.userid='$uid' "; if(!empty($keyword) && !empty($search)) { @@ -80,8 +80,8 @@ class ReviewController extends Zend_Controller_Action $wheresql = join(' and ',$wheresql); - $sql = "select mdexp.id,mdexp.uuid,md.title from mdexpertreview mdexp - left join metadata md on md.uuid=mdexp.uuid + $sql = "select r.id,md.title,r.uuid from mdreview r + left join metadata md on md.uuid=r.uuid where $wheresql"; $rs = $this->db->query($sql); @@ -396,11 +396,7 @@ class ReviewController extends Zend_Controller_Action } try{ - - $sql = "select id from mdexperts where id='$userid'"; - $rs = $this->db->query($sql); - $row = $rs->fetch(); - + $data = array( 'userid' => $userid, 'uuid' => $uuid, @@ -411,6 +407,11 @@ class ReviewController extends Zend_Controller_Action 'conclusion' => $conclusion ); + + $sql = "select id from mdexpertreview where id='$userid' and uuid='$uuid'"; + $rs = $this->db->query($sql); + $row = $rs->fetch(); + if($row['id']!='') { $data['is_expert'] = 'true'; diff --git a/application/default/views/scripts/review/inreview.phtml b/application/default/views/scripts/review/inreview.phtml index 4cf0c2f7..dea9472f 100644 --- a/application/default/views/scripts/review/inreview.phtml +++ b/application/default/views/scripts/review/inreview.phtml @@ -44,7 +44,7 @@ setTimeout("document.getElementsByClassName('box-info').remove(0)",5000); foreach ($this->paginator as $item): ?> - + diff --git a/application/default/views/scripts/review/myreview.phtml b/application/default/views/scripts/review/myreview.phtml index 239c2a6a..8538e432 100644 --- a/application/default/views/scripts/review/myreview.phtml +++ b/application/default/views/scripts/review/myreview.phtml @@ -28,7 +28,7 @@ setTimeout("document.getElementsByClassName('box-info').remove(0)",5000);
-
+ @@ -46,7 +46,7 @@ setTimeout("document.getElementsByClassName('box-info').remove(0)",5000);
- 提交评审意见 + 查看评审页