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);
- 提交评审意见 + 查看评审页