update data detail page
This commit is contained in:
parent
fc5a43097d
commit
e954b7ed9c
|
@ -63,7 +63,6 @@ class DataController extends Zend_Controller_Action
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('normalmetadata','*')->joinLeft('mdstat','normalmetadata.uuid=mdstat.uuid', ['viewed','downloaded'])->where('datatype=0')->order('title')->limitPage($page,$limit);
|
$select->from('normalmetadata','*')->joinLeft('mdstat','normalmetadata.uuid=mdstat.uuid', ['viewed','downloaded'])->where('datatype=0')->order('title')->limitPage($page,$limit);
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
|
||||||
|
|
||||||
view::addPaginator($select, $this);
|
view::addPaginator($select, $this);
|
||||||
//服务
|
//服务
|
||||||
|
|
|
@ -49,7 +49,7 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
|
||||||
</div>
|
</div>
|
||||||
<div class="main inner-left col-md-9" style="padding-right:0 ;">
|
<div class="main inner-left col-md-9" style="padding-right:0 ;">
|
||||||
<ul class="newUlList">
|
<ul class="newUlList">
|
||||||
<?php foreach ($this->metadata as $md) : ?>
|
<?php foreach ($this->paginator as $md) : ?>
|
||||||
<li>
|
<li>
|
||||||
<div class="newsImgBox">
|
<div class="newsImgBox">
|
||||||
<a href="/data/<?php echo $md['uuid']; ?>"><img
|
<a href="/data/<?php echo $md['uuid']; ?>"><img
|
||||||
|
|
Loading…
Reference in New Issue