예제 #1
0
 function display($tpl)
 {
     header('Content-type: text/html;charset=' . CHARSET);
     $this->assign('lang', Lang::get());
     $this->assign('charset', CHARSET);
     parent::display($tpl);
 }
예제 #2
0
 function display($tpl)
 {
     header('Content-type: text/html;charset=' . CHARSET);
     $map = $this->_get_map();
     $this->assign('lang', Lang::get());
     $this->assign('charset', CHARSET);
     $this->assign('done', $this->_done);
     $this->assign('doing', $this->_doing);
     $this->assign('step_num', array_search($this->_doing, $map) + 1);
     $this->assign('step_name', Lang::get("{$this->_doing}_title"));
     $this->assign('step_desc', Lang::get("{$this->_doing}_desc"));
     $this->assign('hiddens', $this->_hiddens);
     $this->assign('map', $map);
     parent::display($tpl);
 }
예제 #3
0
 function display($f)
 {
     if ($this->_hook('on_display', array('display_file' => &$f))) {
         return;
     }
     $this->assign('site_url', SITE_URL);
     $this->assign('random_number', rand());
     /* 语言项 */
     $this->assign('lang', Lang::get());
     /* 用户信息 */
     $this->assign('visitor', isset($this->visitor) ? $this->visitor->info : array());
     /* 新消息 */
     $this->assign('new_message', isset($this->visitor) ? $this->_get_new_message() : array());
     $this->assign('charset', CHARSET);
     $this->assign('price_format', Conf::get('price_format'));
     $this->assign('async_sendmail', $this->_async_sendmail());
     $this->_assign_query_info();
     /*LLL 开启客服守候链接 */
     $user_id = $this->visitor->get('user_id');
     if ($user_id) {
         $mod_user =& m('member');
         $user_info = $mod_user->get(array('conditions' => "user_id = '{$user_id}'", 'join' => 'has_store', 'fields' => 'user_id, user_name, reg_time, last_login, last_ip, store_id'));
         $my_store = empty($user_info['store_id']) ? 0 : $user_info['store_id'];
         if (!$my_store == 0) {
             $this->assign('chat_host_url', SITE_URL . "/index.php?app=message&act=talk");
         } else {
             $this->assign('chat_host_url', '');
         }
     }
     parent::display($f);
     if ($this->_hook('end_display', array('display_file' => &$f))) {
         return;
     }
 }
예제 #4
0
 function display($f)
 {
     if ($this->_hook('on_display', array('display_file' => &$f))) {
         return;
     }
     $this->assign('site_url', SITE_URL);
     $this->assign('real_site_url', defined('IN_BACKEND') ? dirname(site_url()) : site_url());
     $this->assign('ecmall_version', VERSION);
     $this->assign('random_number', rand());
     /* 语言项 */
     $this->assign('lang', Lang::get());
     /* 用户信息 */
     $this->assign('visitor', isset($this->visitor) ? $this->visitor->info : array());
     $this->assign('charset', CHARSET);
     $this->assign('price_format', Conf::get('price_format'));
     $this->assign('async_sendmail', $this->_async_sendmail());
     $this->_assign_query_info();
     parent::display($f);
     if ($this->_hook('end_display', array('display_file' => &$f))) {
         return;
     }
 }
예제 #5
0
 function display($f)
 {
     if ($this->_hook('on_display', array('display_file' => &$f))) {
         return;
     }
     $this->assign('site_url', SITE_URL);
     $this->assign('random_number', rand());
     /* 语言项 */
     $this->assign('lang', Lang::get());
     /* 用户信息 */
     $this->assign('visitor', isset($this->visitor) ? $this->visitor->info : array());
     /* 新消息 */
     $this->assign('new_message', isset($this->visitor) ? $this->_get_new_message() : array());
     $this->assign('charset', CHARSET);
     $this->assign('price_format', Conf::get('price_format'));
     $this->assign('async_sendmail', $this->_async_sendmail());
     $this->_assign_query_info();
     parent::display($f);
     if ($this->_hook('end_display', array('display_file' => &$f))) {
         return;
     }
 }
예제 #6
0
 function display($f, $cache_id = "")
 {
     //        if ($this->_hook('on_display', array('display_file' => & $f)))
     //        {
     //            return;
     //        }
     $this->assign('site_url', SITE_URL);
     $this->assign('real_site_url', defined('IN_BACKEND') ? dirname(site_url()) : site_url());
     /* 语言项 */
     $this->assign('lang', Lang::get());
     /* 用户信息 */
     $this->assign('visitor', isset($this->visitor) ? $this->visitor->info : array());
     $this->assign('charset', CHARSET);
     $this->assign('price_format', Conf::get('price_format'));
     $this->assign('async_sendmail', $this->_async_sendmail());
     $this->_assign_query_info();
     parent::display($f, $cache_id);
     if ($this->_hook('end_display', array('display_file' => &$f))) {
         return;
     }
 }
예제 #7
0
 function display($f)
 {
     $this->assign('charset', CHARSET);
     parent::display($f);
 }