diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 1d0b83e7..1fe5ef7e 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -580,21 +580,27 @@ class Admin_ReviewController extends Zend_Controller_Action function myreviewAction(){ include_once("data/Review.php"); + include_once("data/Source.php"); include_once("helper/view.php"); $search=$this->_request->getParam('search'); - $keyword = $this->_request->getParam('keyword'); + $filter['keyword'] = $this->_request->getParam('keyword'); + $filter['code'] = $this->_request->getParam('code'); $review = new Review($this->db); - if(!empty($search) && !empty($keyword)) + if(!empty($search) && !empty($filter)) { - $rows = $review->adminReviews($keyword); - $this->view->keyword = $keyword; + $rows = $review->adminReviews($filter); + $this->view->keyword = $filter['keyword']; + $this->view->code = $filter['code']; }else{ $rows = $review->adminReviews(); } + + $source = new Source($this->db); + $this->view->source = $source->Fetch(); - view::addPaginator($rows,$this->view,$this->_request); + view::addPaginator($rows,$this,NULL,15); return true; }//我管理的元数据 diff --git a/application/admin/views/scripts/review/myreview.phtml b/application/admin/views/scripts/review/myreview.phtml index fec2fa9d..86d32cea 100644 --- a/application/admin/views/scripts/review/myreview.phtml +++ b/application/admin/views/scripts/review/myreview.phtml @@ -26,12 +26,26 @@ table thead tr th {background:#EBF2F6;color:#444;} -
- ++ | |
+
+ escape($md['citation']); ?>
+ + + + + |
+ | |
+
+ escape($md['citation']); ?>
+ + + + + |
+ | |
+
+ escape($md['citation']); ?>
+ + + + + |
+ | |
+
+ escape($md['citation']); ?>
+ + + + + |
+ | |
+
+ escape($md['citation']); ?>
+ + + + + |
datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用
escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
(下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
@@ -38,7 +38,7 @@ if ($md->title_en) echo '
'.$this->escape($md->title_en);?>
datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
数据的引用authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; - echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.$md->publish_year.'. doi:'.$md->doi.']'; + echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
ref) : ?>datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用
escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
(下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
@@ -47,7 +47,7 @@ if ($md->title_en) echo '
'.$this->escape($md->title_en);?>
datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
数据的引用authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; - echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.$md->publish_year.'. doi:'.$md->doi.']'; + echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)
ref) : ?>