提交 8201ca85 编写于 作者: T Terry

apphtml5评论的toolbar分页

上级 c3ff6e87
......@@ -27,6 +27,7 @@ class CategoryController extends AppfrontController
// 分类页面。
public function actionIndex()
{
echo date('Y-m-d H:i:s');
$data = $this->getBlock()->getLastData();
if(is_array($data)){
return $this->render($this->action->id, $data);
......
......@@ -23,7 +23,7 @@ class Lists
public $filterBySpu = true;
public $filterOrderBy = 'review_date';
public $_page = 'p';
public $numPerPage = 20;
public $numPerPage = 10;
public $pageNum;
/**
* 为了可以使用rewriteMap,use 引入的文件统一采用下面的方式,通过Yii::mapGet()得到className和Object
......@@ -48,6 +48,7 @@ class Lists
protected function getProductPage($countTotal)
{
if ($countTotal <= $this->numPerPage) {
echo "$countTotal <= $this->numPerPage";
return '';
}
$config = [
......
......@@ -1042,8 +1042,11 @@ ul#billing_address_list li input , ul#billing_address_list li select{
text-decoration: line-through;
}
.pageToolbar {margin: 10px auto;
width: 80%;}
.pageToolbar label{font-size:0.6rem;float:left;}
.pageToolbar .tb_rg{float:left;}
......
......@@ -117,8 +117,10 @@
<?php if($pageToolBar): ?>
<div class="pageToolbar">
<label class="title"><?= Yii::$service->page->translate->__('Page:');?></label><?= $pageToolBar ?>
</div>
<label class=""><?= Yii::$service->page->translate->__('Page:');?></label>
<?= $pageToolBar ?>
<div class="clear"></div>
</div>
<?php endif; ?>
</div>
</div>
......
......@@ -58,8 +58,10 @@
</tbody>
</table>
<?php if($pageToolBar): ?>
<div class="pageToolbar">
<label class="title"><?= Yii::$service->page->translate->__('Page:');?></label><?= $pageToolBar ?>
<div class="pageToolbar customer_order">
<label class=""><?= Yii::$service->page->translate->__('Page:');?></label>
<?= $pageToolBar ?>
<div class="clear"></div>
</div>
<?php endif; ?>
</div>
......
......@@ -70,7 +70,9 @@ use fecshop\app\apphtml5\helper\Format;
</table>
<?php if($pageToolBar): ?>
<div class="pageToolbar">
<label class="title"><?= Yii::$service->page->translate->__('Page:');?></label><?= $pageToolBar ?>
<label class=""><?= Yii::$service->page->translate->__('Page:');?></label>
<?= $pageToolBar ?>
<div class="clear"></div>
</div>
<?php endif; ?>
</div>
......
......@@ -9,17 +9,17 @@
?>
<div class="tb_rg">
<?php if($prevPage): ?>
<a href="<?= $prevPage['url']['url'] ?>"><</a>
<a external href="<?= $prevPage['url']['url'] ?>"><</a>
<?php else: ?>
<span><</span>
<?php endif; ?>
<?php if($firstSpaceShow): ?>
<a href="<?= $firstSpaceShow['url']['url'] ?>"><?= $firstSpaceShow['p'] ?></a>
<a external href="<?= $firstSpaceShow['url']['url'] ?>"><?= $firstSpaceShow['p'] ?></a>
<?php endif; ?>
<?= $hiddenFrontStr ?>
<?php if(!empty($frontPage )): ?>
<?php foreach($frontPage as $page): ?>
<a href="<?= $page['url']['url'] ?>"><?= $page['p'] ?></a>
<a external href="<?= $page['url']['url'] ?>"><?= $page['p'] ?></a>
<?php endforeach; ?>
<?php endif; ?>
......@@ -29,16 +29,16 @@
<?php if(!empty($behindPage )): ?>
<?php foreach($behindPage as $page): ?>
<a href="<?= $page['url']['url'] ?>"><?= $page['p'] ?></a>
<a external href="<?= $page['url']['url'] ?>"><?= $page['p'] ?></a>
<?php endforeach; ?>
<?php endif; ?>
<?= $hiddenBehindStr ?>
<?php if($lastSpaceShow): ?>
<a href="<?= $lastSpaceShow['url']['url'] ?>"><?= $lastSpaceShow['p'] ?></a>
<a external href="<?= $lastSpaceShow['url']['url'] ?>"><?= $lastSpaceShow['p'] ?></a>
<?php endif; ?>
<?php if($nextPage): ?>
<a href="<?= $nextPage['url']['url'] ?>">></a>
<a external href="<?= $nextPage['url']['url'] ?>">></a>
<?php else: ?>
<span>></span>
<?php endif; ?>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册