Пример #1
0
 function My_deliveryApp()
 {
     parent::__construct();
     $this->_delivery_mod =& m('delivery_template');
     $this->_region_mod =& m('region');
     $this->_store_id = intval($this->visitor->get('manage_store'));
 }
Пример #2
0
 function Seller_orderApp()
 {
     parent::__construct();
     $this->_order_mod =& m('order');
     $this->_member_mod =& m('member');
     $this->_goodsspec_mod =& m('goodsspec');
 }
Пример #3
0
 function My_storeApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_store_mod =& m('store');
     $this->_uploadedfile_mod =& m('uploadedfile');
 }
Пример #4
0
 function KmenusinfoApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_kmenus_mod =& m('kmenus');
     $this->_kmenusinfo_mod =& m('kmenusinfo');
 }
Пример #5
0
 function CouponApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_store_mod =& m('store');
     $this->_coupon_mod =& m('coupon');
     $this->_couponsn_mod =& m('couponsn');
 }
Пример #6
0
 function Seller_groupbuyApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_goods_mod =& m('goods');
     $this->_store_mod =& m('store');
     $this->_groupbuy_mod =& m('groupbuy');
 }
Пример #7
0
 function My_waiterApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_member_mod =& m('member');
     $this->_waiter_mod =& m('waiter');
     $this->_waiterpriv_mod =& m('waiterpriv');
 }
 function Seller_promotionApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_goods_mod =& bm('goods', array('_store_id' => $this->_store_id));
     $this->_spec_mod =& m('goodsspec');
     $this->_promotion_mod =& m('promotion');
 }
Пример #9
0
 function My_goodsApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_goods_mod =& bm('goods', array('_store_id' => $this->_store_id));
     $this->_spec_mod =& m('goodsspec');
     $this->_image_mod =& m('goodsimage');
     $this->_uploadedfile_mod =& m('uploadedfile');
 }
Пример #10
0
 function TransApp()
 {
     parent::__construct();
     $this->_trans_mod =& m('trans');
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_user_id = intval($this->visitor->get('user_id'));
     $options = array('apply_type' => $this->_trans_mod->get_options_type(), 'enabled' => $this->_trans_mod->get_options_enabled());
     $this->assign('options', $options);
 }
Пример #11
0
 function My_goodsApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_goods_mod =& bm('goods', array('_store_id' => $this->_store_id));
     $this->_spec_mod =& m('goodsspec');
     $this->_image_mod =& m('goodsimage');
     $this->_uploadedfile_mod =& m('uploadedfile');
     $this->_brand_mod =& m('brand');
     $this->_gradegoods_mod =& m('gradegoods');
     //by cengnlaeng
     $this->_region_mod =& m('region');
 }
Пример #12
0
 function ComuploadApp()
 {
     parent::__construct();
     if (isset($_REQUEST['id'])) {
         $this->id = intval($_REQUEST['id']);
     }
     if (isset($_REQUEST['belong'])) {
         $this->belong = intval($_REQUEST['belong']);
     }
     /* 实例 */
     if (isset($_GET['instance'])) {
         $this->instance = $_GET['instance'];
     }
     $this->store_id = $this->visitor->get('manage_store');
 }
Пример #13
0
 function SwfuploadApp()
 {
     /* 建立会话 */
     if (isset($_POST["ECM_ID"]) && isset($_POST['HTTP_USER_AGENT'])) {
         $_COOKIE['ECM_ID'] = $_POST["ECM_ID"];
         $_SERVER['HTTP_USER_AGENT'] = $_POST['HTTP_USER_AGENT'];
     } else {
         $this->json_error('no_post_params_authorize');
         exit;
     }
     parent::__construct();
     /* 初始化 */
     /* 归属 */
     if (isset($_POST['belong'])) {
         $this->belong = $_POST['belong'];
     } else {
         $this->json_error('no_post_param_belong');
         exit;
     }
     /* 定位 */
     if (isset($_POST['item_id'])) {
         $this->item_id = $_POST['item_id'];
     } else {
         $this->json_error('no_post_param_item_id');
         exit;
     }
     /* 实例 */
     if (isset($_GET['instance'])) {
         $this->instance = $_GET['instance'];
     }
     $this->store_id = $this->visitor->get('manage_store');
     switch ($this->belong) {
         case BELONG_ARTICLE:
             $this->save_path = 'data/files/store_' . $this->store_id . '/article';
             break;
         case BELONG_STORE:
             $this->save_path = 'data/files/store_' . $this->store_id . '/other';
             break;
         case BELONG_GOODS:
             $this->save_path = 'data/files/store_' . $this->store_id . '/goods_' . time() % 200;
             break;
     }
     $this->mod_uploadedfile =& m('uploadedfile');
     $this->mod_goods =& m('goods');
     $this->mod_goods_image =& m('goodsimage');
 }
Пример #14
0
 function My_goodsApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
     $this->_goods_mod =& bm('goods', array('_store_id' => $this->_store_id));
     $this->_spec_mod =& m('goodsspec');
     $this->_image_mod =& m('goodsimage');
     $this->_uploadedfile_mod =& m('uploadedfile');
     $this->_brand_mod =& m('brand');
     $this->_gcategory_mod =& m('gcategory');
     $this->_attribute_mod =& m('attribute');
     $this->_attribute_value_mod =& m('attribute_value');
     $this->_goods_attr_mod =& m('goods_attr');
     $this->_goods_prop_mod =& m('props');
     $this->_goods_prop_value_mod =& m('prop_value');
     $this->_goods_pvs_mod =& m('goods_pvs');
 }
Пример #15
0
 function MsgApp()
 {
     parent::__construct();
     $this->msginit();
 }
Пример #16
0
 function My_partnerApp()
 {
     parent::__construct();
     $this->_store_id = intval($this->visitor->get('manage_store'));
 }
Пример #17
0
 function My_qaApp()
 {
     parent::__construct();
     $this->my_qa_mod =& m('goodsqa');
 }
Пример #18
0
 function My_categoryApp()
 {
     parent::__construct();
     $this->_gcategory_mod =& bm('gcategory', array('_store_id' => $this->visitor->get('manage_store')));
 }
Пример #19
0
 function My_navigationApp()
 {
     parent::__construct();
     $this->_uploadedfile_mod =& m('uploadedfile');
 }