Пример #1
0
 function _initialize()
 {
     parent::_initialize();
     // 使用提示
     $param['shop_id'] = $this->shop_id;
     $param['publicid'] = get_token_appinfo('', 'id');
     $normal_tips = '点击选中下面模板即可实时切换模板,请慎重点击。选择后可点击<a target="_blank" href="' . addons_url('Shop://Wap/index', $param) . '">这里</a>进行预览';
     $this->assign('normal_tips', $normal_tips);
 }
Пример #2
0
 function _initialize()
 {
     $this->model = $this->getModel('shop');
     parent::_initialize();
     $controller = strtolower(_CONTROLLER);
     // $res ['title'] = '商店管理';
     // $res ['url'] = addons_url ( 'Shop://Shop/lists' );
     // $res ['class'] = ($controller == 'shop' && _ACTION == "lists") ? 'current' : '';
     // $nav [] = $res;
     $res['title'] = '我的店铺';
     $res['url'] = addons_url('Shop://Shop/summary');
     $res['class'] = $controller == 'shop' && _ACTION == "summary" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '基本信息';
     $res['url'] = addons_url('Shop://Shop/edit');
     $res['class'] = $controller == 'shop' && _ACTION == "edit" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '幻灯片';
     $res['url'] = addons_url('Shop://Slideshow/lists');
     $res['class'] = $controller == 'slideshow' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '商品分组';
     $res['url'] = addons_url('Shop://Category/lists');
     $res['class'] = $controller == 'category' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '商品管理';
     $res['url'] = addons_url('Shop://Goods/lists');
     $res['class'] = $controller == 'goods' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '订单管理';
     $res['url'] = addons_url('Shop://Order/lists');
     $res['class'] = $controller == 'order' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '模板管理';
     $res['url'] = addons_url('Shop://Template/lists');
     $res['class'] = $controller == 'template' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '支付配置';
     $res['url'] = addons_url('Payment://Payment/lists');
     $res['class'] = $controller == 'payment' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     //$nav = array ();
     $this->assign('nav', $nav);
 }
Пример #3
0
 function _initialize()
 {
     $this->model = $this->getModel('shop_footer');
     parent::_initialize();
 }
 function _initialize()
 {
     $this->model = $this->getModel('shop_slideshow');
     parent::_initialize();
 }
Пример #5
0
 public function _initialize()
 {
     $this->model = $this->getModel('shop_user');
     parent::_initialize();
 }
Пример #6
0
 function _initialize()
 {
     $this->model = $this->getModel('common_category');
     parent::_initialize();
 }
Пример #7
0
 function _initialize()
 {
     $this->model = $this->getModel('shop_product');
     parent::_initialize();
 }
 function _initialize()
 {
     $this->model = $this->getModel('shop_goods_category');
     parent::_initialize();
 }