function __construct($app) { parent::__construct($app); $this->title = $this->app->getConf('site.goods_title'); $this->keywords = $this->app->getConf('site.goods_meta_key_words'); $this->desc = $this->app->getConf('site.goods_meta_desc'); }
public function __construct(&$app) { parent::__construct($app); $this->app = $app; $this->_response->set_header('Cache-Control', 'no-store'); $this->set_tmpl('list'); }
function __construct($app) { parent::__construct($app); $this->app = $app; $this->_response->set_header('Cache-Control', 'no-store'); $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'wap_product', 'act' => 'get_goods_spec')); }
public function __construct(&$app) { $this->app = $app; parent::__construct($app); $this->mComment = $this->app->model('member_comment'); $this->verify_member(); $this->member = $this->get_current_member(); }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); vmc::singleton('base_session')->start(); $this->user_obj = vmc::singleton('b2c_user_object'); $this->passport_obj = vmc::singleton('b2c_user_passport'); }
public function __construct(&$app) { parent::__construct($app); $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->title = __('订单中心'); $this->objMath = kernel::single("ectools_math"); }
public function __construct($app) { parent::__construct($app); $this->goods_stage = vmc::singleton('b2c_goods_stage'); if ($this->app->member_id = vmc::singleton('b2c_user_object')->get_member_id()) { $this->goods_stage->set_member($this->app->member_id); } }
function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); kernel::single('base_session')->start(); $this->userObject = kernel::single('b2c_user_object'); $this->userPassport = kernel::single('b2c_user_passport'); }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; }
public function __construct(&$app) { parent::__construct($app); $this->set_tmpl('cart'); $this->mCart = $this->app->model('cart'); $this->_response->set_header('Cache-Control', 'no-store'); //$this->arr_member_info = $this->get_current_member(); $this->member_status = $this->check_login(); $this->objMath = kernel::single("ectools_math"); }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); $this->verify_member(); //$this->app->member_id 已赋值 $this->cart_stage = vmc::singleton('b2c_cart_stage'); $this->cart_stage->set_member_id($this->app->member_id); $this->set_tmpl('checkout'); }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; $this->objMath = kernel::single("ectools_math"); }
function __construct($app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('b2c')->_('搜索') . '_' . $shopname; $this->keywords = app::get('b2c')->_('搜索_') . '_' . $shopname; $this->description = app::get('b2c')->_('搜索_') . '_' . $shopname; } }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); $this->verify_member(); $this->action = $this->_request->get_act_name(); $this->set_tmpl('member'); //刷新经验值和会员等级 //vmc::singleton('b2c_member_exp')->renew($this->member['member_id']); }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); $this->verify_member(); //$this->app->member_id 已赋值 $this->cart_stage = vmc::singleton('b2c_cart_stage'); $this->cart_stage->set_member_id($this->app->member_id); $this->logger = vmc::singleton('b2c_order_log'); $this->mOrders = $this->app->model('orders'); }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); vmc::singleton('base_session')->start(); $this->blank_url = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_cart', 'act' => 'blank')); $this->cart_stage = vmc::singleton('b2c_cart_stage'); if ($this->app->member_id = vmc::singleton('b2c_user_object')->get_member_id()) { $this->pagedata['member_id'] = $this->app->member_id; $this->cart_stage->set_member_id($this->app->member_id); } }
function __construct($app) { parent::__construct($app); $shopname = $app->getConf('system.shopname'); $this->shopname = $shopname; $this->set_tmpl('brandlist'); if (isset($shopname)) { $this->title = app::get('b2c')->_('品牌页') . '_' . $shopname; $this->keywords = app::get('b2c')->_('品牌页') . '_' . $shopname; $this->description = app::get('b2c')->_('品牌页') . '_' . $shopname; } }
public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); $this->shopname = $shopname; if (isset($shopname)) { $this->title = app::get('b2c')->_('商品分类') . '_' . $shopname; $this->keywords = app::get('b2c')->_('商品分类_') . '_' . $shopname; $this->description = app::get('b2c')->_('商品分类_') . '_' . $shopname; } $this->_response->set_header('Cache-Control', 'no-store'); }
public function __construct(&$app) { parent::__construct($app); $shopname = $app->getConf('system.shopname'); $this->shopname = $shopname; if (isset($shopname)) { $this->title = app::get('b2c')->_('商品分类') . '_' . $shopname; $this->keywords = app::get('b2c')->_('商品分类_') . '_' . $shopname; $this->description = app::get('b2c')->_('商品分类_') . '_' . $shopname; } $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_product', 'act' => 'get_goods_spec')); }
public function __construct(&$app) { parent::__construct($app); #$shopname = app::get('site')->getConf('site.name'); #if(isset($sysconfig)){ # $this->title = app::get('b2c')->_('订单').'_'.$shopname; # $this->keywords = app::get('b2c')->_('订单_').'_'.$shopname; # $this->description = app::get('b2c')->_('订单_').'_'.$shopname; #} $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->title = app::get('b2c')->_('订单中心'); $this->objMath = kernel::single("ectools_math"); }
function __construct($app) { parent::__construct($app); if ($this->app->getConf('system.message.open') != 'on') { $this->splash('failed', kernel::base_url(1), app::get('b2c')->_('未开启商店留言功能!')); } $shopname = $app->getConf('system.shopname'); $this->shopname = $shopname; if (isset($shopname)) { $this->title = app::get('b2c')->_('商品页') . '_' . $shopname; $this->keywords = app::get('b2c')->_('商品页_') . '_' . $shopname; $this->description = app::get('b2c')->_('商品页_') . '_' . $shopname; } }
function __construct(&$app) { parent::__construct($app); $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->title = __('会员中心'); $this->verify_member(); $this->pagesize = 10; $this->action = $this->_request->get_act_name(); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; $this->load_info(); }
function __construct($app) { parent::__construct($app); $this->shopname = app::get('site')->getConf('site.name'); if (isset($this->shopname)) { $this->title = app::get('b2c')->_('商品页') . '_' . $this->shopname; $this->keywords = app::get('b2c')->_('商品页') . '_' . $this->shopname; $this->description = app::get('b2c')->_('商品页') . '_' . $this->shopname; } $cur = app::get('ectools')->model('currency'); //货币格式输出 $ret = $cur->getFormat(); $ret = array('decimals' => $this->app->getConf('system.money.decimals'), 'dec_point' => $this->app->getConf('system.money.dec_point'), 'thousands_sep' => $this->app->getConf('system.money.thousands_sep'), 'fonttend_decimal_type' => $this->app->getConf('system.money.operation.carryset'), 'fonttend_decimal_remain' => $this->app->getConf('system.money.decimals'), 'sign' => $ret['sign']); $this->pagedata['money_format'] = json_encode($ret); }
public function __construct(&$app) { parent::__construct($app); $shopname = $app->getConf('system.shopname'); if (isset($shopname)) { $this->title = app::get('b2c')->_('购物车') . '_' . $shopname; $this->keywords = app::get('b2c')->_('购物车_') . '_' . $shopname; $this->description = app::get('b2c')->_('购物车_') . '_' . $shopname; } $this->set_tmpl('cart'); $this->mCart = $this->app->model('cart'); $this->set_no_store(); kernel::single('base_session')->start(); $this->member_status = $this->check_login(); $this->objMath = kernel::single("ectools_math"); $this->pagedata['res_url'] = $this->app->res_url; $this->mCart->unset_data(); }
function __construct($app) { parent::__construct($app); $shopname = $app->getConf('system.shopname'); if (isset($shopname)) { $this->title = app::get('b2c')->_('商品页') . '_' . $shopname; $this->keywords = app::get('b2c')->_('商品页') . '_' . $shopname; $this->description = app::get('b2c')->_('商品页') . '_' . $shopname; } $this->custom_view = ""; if (isset($_POST['view']) && $_POST['view']) { $default_theme = kernel::single('site_theme_base')->get_default(); $o_themes = app::get('site')->model('themes')->getList('*', array('theme' => $default_theme)); //$theme_dir = THEME_DIR."/".$o_themes[0]['theme']; $theme_dir = $o_themes[0]['theme']; $this->custom_view = $theme_dir . "/" . $_POST['view']; } $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_product', 'act' => 'get_goods_spec')); }
function __construct($app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); $this->shopname = app::get('site')->getConf('site.name'); if (isset($this->shopname)) { $this->title = app::get('microshop')->_('微店') . '_' . $this->shopname; $this->keywords = app::get('microshop')->_('微店') . '_' . $this->shopname; $this->description = app::get('microshop')->_('微店') . '_' . $this->shopname; } $cur = app::get('ectools')->model('currency'); //货币格式输出 $ret = $cur->getFormat(); $ret = array('decimals' => app::get('b2c')->getConf('system.money.decimals'), 'dec_point' => app::get('b2c')->getConf('system.money.dec_point'), 'thousands_sep' => app::get('b2c')->getConf('system.money.thousands_sep'), 'fonttend_decimal_type' => app::get('b2c')->getConf('system.money.operation.carryset'), 'fonttend_decimal_remain' => app::get('b2c')->getConf('system.money.decimals'), 'sign' => $ret['sign']); $this->pagedata['money_format'] = json_encode($ret); $this->pagedata['headers'][] = '<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" />'; $this->pagedata['headers'][] = '<meta content="telephone=no" name="format-detection" />'; $this->pagedata['headers'][] = '<meta name="apple-mobile-web-app-capable" content="yes" />'; $this->pagedata['headers'][] = '<meta name="apple-mobile-web-app-status-bar-style" content="black" />'; }
function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('b2c')->_('会员中心') . '_' . $shopname; $this->keywords = app::get('b2c')->_('会员中心_') . '_' . $shopname; $this->description = app::get('b2c')->_('会员中心_') . '_' . $shopname; } $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->verify_member(); $this->pagesize = 10; $this->action = $this->_request->get_act_name(); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; $this->member = $this->get_current_member(); /** end **/ }
public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('b2c')->_('购物车') . '_' . $shopname; $this->keywords = app::get('b2c')->_('购物车_') . '_' . $shopname; $this->description = app::get('b2c')->_('购物车_') . '_' . $shopname; } $cart_type = $this->_request->get_get('type'); if ($cart_type == 'x') { $this->set_tmpl_file('cart-(1).html'); } $this->set_tmpl('cart'); $this->mCart = $this->app->model('cart'); $this->set_no_store(); //kernel::single('base_session')->start(); $this->obj_session = kernel::single('base_session'); $this->obj_session->start(); $this->member_status = $this->check_login(); if (!$this->member_status) { $this->pagedata['login'] = '******'; } $this->objMath = kernel::single("ectools_math"); $this->pagedata['res_url'] = $this->app->res_url; $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_product', 'act' => 'get_goods_spec')); //团购的话不执行unset session的操作 因为这里的unset会导致无法提交订单 by tntppa@163.com 2013年11月12日 //在测试的时候发现会莫名奇妙的执行57行unset session的代码,调试良久,不得其解,后来将判断条件由双等号(==) 变为 三等号(===)问题解决 $uri = $_SERVER['PATH_INFO']; $arrayUri = explode(".", $uri); $processUri = explode("/", $arrayUri[0]); //该处存在问题隐患 1、取uri的值如果site.xml的值变更则此处代码无效 2、团购session没有删除 //由于开发时间原因只能先这样了 #echo $processUri[1];exit; #$arr_request_params = $this->_request->get_params(); #//是否是团购订单 #if($arr_request_params[0] != 'group' ){ # #$this->mCart->unset_data(); #} }
function __construct(&$app) { parent::__construct($app); $shopname = $app->getConf('system.shopname'); if (isset($shopname)) { $this->title = app::get('b2c')->_('会员中心') . '_' . $shopname; $this->keywords = app::get('b2c')->_('会员中心_') . '_' . $shopname; $this->description = app::get('b2c')->_('会员中心_') . '_' . $shopname; } $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_product', 'act' => 'get_goods_spec')); $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->verify_member(); $this->pagesize = 10; $this->action = $this->_request->get_act_name(); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; $this->load_info(); /** end **/ }
public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('b2c')->_('购物车') . '_' . $shopname; $this->keywords = app::get('b2c')->_('购物车_') . '_' . $shopname; $this->description = app::get('b2c')->_('购物车_') . '_' . $shopname; } $this->set_tmpl('cart'); $this->mCart = $this->app->model('cart'); $this->set_no_store(); //kernel::single('base_session')->start(); $this->obj_session = kernel::single('base_session'); $this->obj_session->start(); $this->member_status = $this->check_login(); if (!$this->member_status) { $this->pagedata['login'] = '******'; } $this->objMath = kernel::single("ectools_math"); $this->pagedata['res_url'] = $this->app->res_url; $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'site_product', 'act' => 'get_goods_spec')); $this->mCart->unset_data(); }