From fd783bf4f72ec32040d8ee1d0a3ec9e38b75da2a Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 19 Oct 2011 15:09:29 +0000 Subject: [PATCH] remove unused code --- .../default/controllers/ReviewController.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 73f045a7..3b7c760d 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -26,25 +26,6 @@ class ReviewController extends Zend_Controller_Action $sql="select (select count(*) from mdexperts) as experts,(select count(*) from mdstatus where status=0) as draft,(select count(*) from mdstatus where status=1) as accept,(select count(*) from mdstatus where status in (2,3,4)) as inreview,(select count(*) from mdstatus where status=5) as reviewed,(select count(*) from mdreview) as openreview,(select count(distinct(userid)) from mdreview) as openreviewuser"; $this->view->stat=$this->db->fetchRow($sql); } - /* - * 数据浏览 - */ - function browseAction() - { - $md=new MetadataTable(); - $db=$md->getAdapter(); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $limit=10; - $offset=$limit*($page-1); - $state=$db->query('select count(*) from metadata'); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$db->select(); - $select->from('metadata','*')->order('id desc')->limitPage($page,$limit); - $this->view->metadata = $db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$limit); - } function myreviewAction(){