调整给我推荐的JSON输出
This commit is contained in:
parent
a40e920c91
commit
e06547890c
|
@ -1056,17 +1056,17 @@ class ServiceController extends Zend_Controller_Action
|
|||
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setItemCountPerPage(5);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('data/pagination_recommend.phtml');
|
||||
$this->config = Zend_Registry::get('config');
|
||||
if ($paginator)
|
||||
{
|
||||
{
|
||||
echo '<div class="paginator">'.$paginator.'</div>';
|
||||
foreach($paginator as $c)
|
||||
{
|
||||
print '<li><a target="_blank" href="/data/'.$c['uuid'].'">'.$c['title']."</a> [下载人数:".$c['downtimes']."]</li>\r\n";
|
||||
}
|
||||
echo '<div class="paginator">'.$paginator.'</div>';
|
||||
print '<li><a target="_blank" href="/data/'.$c['uuid'].'"><span class="title">'.$c['title'].'</span><img src="/service/thumb/uuid/'.$c['uuid'].'" alt="'.$c['title'].'" title="'.$c['title'].'(推荐指数:'.$c['downtimes'].') "/></a></li>';
|
||||
}
|
||||
}
|
||||
}//相关下载
|
||||
|
||||
|
|
Loading…
Reference in New Issue