修复缩略图浏览问题

This commit is contained in:
wlx 2014-06-18 06:24:53 +00:00
parent efc508c58c
commit 6e9b2c81cc
2 changed files with 3 additions and 2 deletions

View File

@ -1800,11 +1800,11 @@ class DataController extends Zend_Controller_Action
$page=(int)$this->_request->getParam('page');
if (empty($page)) $page=1;
$offset=$this->limit*($page-1);
$state=$this->db->query("select count(*) from normalmetadata");
$state=$this->db->query("select count(*) from $this->submd");
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('normalmetadata as m','m.*')
$select->from($this->submd.' as m','m.*')
->order('m.title desc')->limitPage($page,9);
$this->view->metadata = $this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$this->limit);

View File

@ -7,6 +7,7 @@
<div class="span12" style=" border-bottom:1px dashed #E0E0E0">
<form method="get" action="/search" id="search" class="form-search">
<a class="btn" href="/data/browse"><i class="icon-align-justify"></i>数据列表浏览</a>
<a class="btn" href="/data/thumb"><i class="icon-th"></i>缩略图浏览在线数据清单</a>
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
<a class="btn" href="/data/visual"><i class="icon-th"></i>可视化数据</a>