Exemple #1
0
 public function grid()
 {
     $this->menuTitle = '店铺列表';
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pagesize', 20);
     $shopParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $shopList = $this->shopObj->select($shopParam);
     //获取店铺类型
     $shopTypeObj = new shopTypeModel();
     $shopTypeList = $shopTypeObj->getAllShopType();
     $pageObj = new page();
     $pageStr = $pageObj->showpage($shopList['count'], $page, $pageSize);
     $data = array('shopList' => $shopList, 'shopTypeList' => $shopTypeList, 'pageStr' => $pageStr);
     $this->setView($data);
 }