Ejemplo n.º 1
0
 public function super()
 {
     init_app_page();
     $s_account_info = $GLOBALS['account_info'];
     $account_id = intval($s_account_info['id']);
     assign_biz_nav_list();
     //获取支持的门店
     $location_list = $GLOBALS['db']->getAll("select id,name from " . DB_PREFIX . "supplier_location where id in(" . implode(",", $GLOBALS['account_info']['location_ids']) . ")");
     $GLOBALS['tmpl']->assign("location_list", $location_list);
     $GLOBALS['tmpl']->assign("page_title", $GLOBALS['lang']['VERIFY_COUPON']);
     $GLOBALS['tmpl']->display("pages/verify/super.html");
 }
Ejemplo n.º 2
0
/**
 * 关于页面初始化时需要输出的信息
 * 全属使用的模板信息输出
 * 1. seo 基本信息
 * $GLOBALS['tmpl']->assign("shop_info",get_shop_info());
 * 2. 当前城市名称, 单城市不显示
 * 3. 输出APP_ROOT
 */
function init_app_page()
{
    //输出根路径
    $GLOBALS['tmpl']->assign("APP_ROOT", APP_ROOT);
    //定义当前语言包
    $GLOBALS['tmpl']->assign("LANG", $GLOBALS['lang']);
    //开始输出site_seo
    $site_seo['keyword'] = app_conf("SHOP_TITLE");
    $site_seo['description'] = app_conf("SHOP_TITLE");
    $site_seo['title'] = app_conf("SHOP_TITLE");
    $GLOBALS['tmpl']->assign("site_seo", $site_seo);
    //获取左侧菜单
    assign_biz_nav_list();
}