Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     Language::read('store_sns,member_sns');
     $store_id = intval($_GET['sid']);
     if ($store_id > 0) {
         $model = Model();
         //检查店铺状态
         $store_info = $this->getStoreInfo($store_id);
         //得到店铺等级信息
         $store_grade_info = $model->table('store_grade')->where(array('sg_id' => $store_info['grade_id']))->find();
         $store_info['grade_name'] = $store_grade_info['sg_name'];
         $store_info['grade_goodslimit'] = $store_grade_info['sg_goods_limit'];
         //得到店铺商品数量
         $goods_count = $model->table('goods')->where(array('store_id' => $store_info['store_id'], 'goods_show' => '1'))->count();
         $store_info['goods_count'] = $goods_count;
         //处理地区信息
         $area_array = array();
         $area_array = explode("\t", $store_info["area_info"]);
         $map_city = Language::get('store_sns_city');
         $city = '';
         if (strpos($area_array[0], $map_city) !== false) {
             $city = $area_array[0];
         } else {
             $city = $area_array[1];
         }
         $store_info['city'] = $city;
     }
     Tpl::output('max_recordnum', MAX_RECORDNUM);
     Tpl::setDir('store');
     Tpl::setLayout('store_sns_layout');
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     //读取语言包
     Language::read('store_goods_index');
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     //读取语言包
     Language::read('bundling');
 }