This commit is contained in:
avene 2018-06-23 21:11:58 +08:00
parent 51515bee3e
commit 728d5f68a5
2 changed files with 9 additions and 8 deletions

View File

@ -41,7 +41,7 @@ class DataController extends Zend_Controller_Action
$state=$this->db->query("select keyword,count(*) from keyword right join normalmetadata on keyword.id=normalmetadata.id where keytype='theme' group by keyword order by count desc limit 27"); $state=$this->db->query("select keyword,count(*) from keyword right join normalmetadata on keyword.id=normalmetadata.id where keytype='theme' group by keyword order by count desc limit 27");
//$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20"); //$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
$k2=$state->fetchAll(); $k2=$state->fetchAll();
$state=$this->db->query("select keyword,count(*) from keyword right join normalmetadata on keyword.id=normalmetadata.id where keytype='discipline' group by keyword order by count desc limit 27"); $state=$this->db->query("select keyword,count(*) from keyword right join normalmetadata on keyword.id=normalmetadata.id where keytype='discipline' group by keyword order by count desc limit 10");
$k3=$state->fetchAll(); $k3=$state->fetchAll();
$state=$this->db->query("select keyword,count(*) from keyword right join normalmetadata on keyword.id=normalmetadata.id where keytype='stratum' group by keyword order by count desc limit 27"); $state=$this->db->query("select keyword,count(*) from keyword right join normalmetadata on keyword.id=normalmetadata.id where keytype='stratum' group by keyword order by count desc limit 27");
$k4=$state->fetchAll(); $k4=$state->fetchAll();

View File

@ -37,8 +37,11 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
<p class="font24 t_big1">DATA</p> <p class="font24 t_big1">DATA</p>
<img src="/static-sanjy-np/img/tie_suo.jpg" width="179" height="14"> <img src="/static-sanjy-np/img/tie_suo.jpg" width="179" height="14">
<ul class="in_list font14"> <ul class="in_list font14">
<li><a href="/data" class="active">全部数据</a></li> <?php $type = 'discipline'; ?>
<li><a href="/data">最新数据</a></li> <?php foreach ($this->keywords[$type] as $cg) : ?>
<li><a href="/data/tag/<?= $cg['keyword'] ?>"><?= $cg['keyword'] ?></a></li>
<?php endforeach; ?>
</ul> </ul>
<p><img src="/static-sanjy-np/img/map_img.jpg" width="183" height="174"></p> <p><img src="/static-sanjy-np/img/map_img.jpg" width="183" height="174"></p>
<div class="in_phone"><p class="y_1 color_3">02164057520</p><span class="y_2">欢迎您来电咨询</span></div> <div class="in_phone"><p class="y_1 color_3">02164057520</p><span class="y_2">欢迎您来电咨询</span></div>
@ -49,7 +52,8 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
<?php foreach ($this->metadata as $md) : ?> <?php foreach ($this->metadata as $md) : ?>
<li> <li>
<div class="newsImgBox"> <div class="newsImgBox">
<a href="/data/<?php echo $md['uuid']; ?>"><img src="/service/thumb/id/<?php echo $md['id']; ?>"></a> <a href="/data/<?php echo $md['uuid']; ?>"><img
src="/service/thumb/id/<?php echo $md['id']; ?>"></a>
</div> </div>
<div class="newRight"> <div class="newRight">
<div class="newTopTitle"> <div class="newTopTitle">
@ -68,10 +72,7 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
<div class="page"> <div class="page">
<div class="pagenavi"> <div class="pagenavi">
<ul class="pagination"> <ul class="pagination">
<li class="disabled"><a href="javascript:;">«</a></li> <li class="pagenavi"><?= $this->paginator; ?></li>
<li class="active"><a href="javascript:void(0);">1</a></li>
<li><a href="javascript:void(0);">2</a></li>
<li class="disabled"><a href="javascript:;">»</a></li>
</ul> </ul>
</div> </div>
</div> </div>