成果发表
+ +-
+ paginator as $item): ?>
+
- + link)) : + echo ' 下载'; + endif; + ?> + + +
diff --git a/application/default/controllers/AboutController.php b/application/default/controllers/AboutController.php index e7e5efa7..ae92127e 100755 --- a/application/default/controllers/AboutController.php +++ b/application/default/controllers/AboutController.php @@ -75,15 +75,16 @@ class AboutController extends Zend_Controller_Action $sth = $this->db->prepare($sql); $sth->execute(array($siteid)); $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - - + } elseif ($ac=='patent' || $ac=='report') { + $archives=new Archive($this->db); + $rows=$archives->getArchive($ac); + $this->_helper->viewRenderer($ac); + } + $paginator = Zend_Paginator::factory($rows); + $paginator->setCurrentPageNumber($this->_getParam('page')); + $paginator->setItemCountPerPage(10); + $paginator->setView($this->view); + Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); + $this->view->paginator=$paginator; } } \ No newline at end of file diff --git a/application/default/views/scripts/about/patent.phtml b/application/default/views/scripts/about/patent.phtml new file mode 100644 index 00000000..01d8e9df --- /dev/null +++ b/application/default/views/scripts/about/patent.phtml @@ -0,0 +1,41 @@ +headTitle($this->config->title->site); +$this->headTitle('成果发表'); +$this->headTitle()->setSeparator(' - '); +$this->headLink()->appendStylesheet('/css/about.css'); +$this->breadcrumb('首页'); +$this->breadcrumb('关于本站'); +$this->breadcrumb('成果发表'); +$this->breadcrumb('专利与著作权'); +$this->breadcrumb()->setSeparator(' > '); +?> +
+