Exemplo n.º 1
0
 public function index()
 {
     //取出商品列表
     $smarty = get_smarty();
     $this->_show($smarty);
     $goods_list = AdminGoodsM::getSaleGoodsList();
     $smarty->assign('goods_list', $goods_list);
     $smarty->display('goods/goods_list.html');
 }
Exemplo n.º 2
0
 public function sale($cate_id = null)
 {
     //检查登录
     $this->_login();
     $smarty = get_smarty();
     $this->_goodsleft($smarty);
     //获取没有出售中的商品
     $list = AdminGoodsM::getSaleGoodsList($cate_id);
     $smarty->assign('list', $list);
     //分类名
     $cate_info = CateM::getCateInfoByCateId($cate_id);
     $cate_name = $cate_info['cate_name'];
     $smarty->assign('cate_id', $cate_id);
     $smarty->assign('cate_name', $cate_name);
     $smarty->assign('act', 'sale');
     $smarty->display('admin/goods/goods_list.html');
 }