实现成果发表中期刊部分内容。
This commit is contained in:
parent
6293d03434
commit
9c89218791
|
@ -10,6 +10,7 @@ class AboutController extends Zend_Controller_Action
|
|||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->db=Zend_Registry::get('db');
|
||||
}
|
||||
function contactAction()
|
||||
{
|
||||
|
@ -66,7 +67,23 @@ class AboutController extends Zend_Controller_Action
|
|||
}
|
||||
function publicationAction()
|
||||
{
|
||||
$ac = $this->_request->getParam("ac");
|
||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where ";
|
||||
if(empty($ac))
|
||||
{
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where mr.uuid=?";
|
||||
$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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -22,5 +22,19 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['title']; ?>
|
||||
<?php if (!empty($ref->link)) :
|
||||
echo ' <a href="'.$ref->link.'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue