function index() { $GLOBALS['tmpl']->caching = true; $GLOBALS['tmpl']->cache_lifetime = 6000; //首页缓存10分钟 $cache_id = md5(MODULE_NAME . ACTION_NAME); if (!$GLOBALS['tmpl']->is_cached("page/aboutlaws.html", $cache_id)) { $info = get_article_buy_uname("aboutlaws"); $GLOBALS['tmpl']->assign("info", $info); $seo_title = $info['seo_title'] != '' ? $info['seo_title'] : $info['title']; $GLOBALS['tmpl']->assign("page_title", $seo_title); $seo_keyword = $info['seo_keyword'] != '' ? $info['seo_keyword'] : $info['title']; $GLOBALS['tmpl']->assign("page_keyword", $seo_keyword . ","); $seo_description = $info['seo_description'] != '' ? $info['seo_description'] : $info['title']; $GLOBALS['tmpl']->assign("page_description", $seo_description . ","); } $GLOBALS['tmpl']->display("page/aboutlaws.html", $cache_id); }
public function help_center() { $GLOBALS['tmpl']->caching = true; $cache_id = md5(MODULE_NAME . ACTION_NAME . trim("debit_help_center") . $GLOBALS['deal_city']['id']); if (!$GLOBALS['tmpl']->is_cached('page/article_index.html', $cache_id)) { $art_list = array(); $art_list[] = get_article_buy_uname("理财人常见问题"); $art_list[] = get_article_buy_uname("借款人常见问题"); $art_list[] = get_article_buy_uname("产品及计划介绍"); $art_list[] = get_article_buy_uname("账户充值、提现"); $art_list[] = get_article_buy_uname("其他"); $GLOBALS['tmpl']->assign("art_list", $art_list); $article = $art_list[0]; $seo_title = $article['seo_title'] != '' ? $article['seo_title'] : $article['title']; $GLOBALS['tmpl']->assign("page_title", $seo_title); $seo_keyword = $article['seo_keyword'] != '' ? $article['seo_keyword'] : $article['title']; $GLOBALS['tmpl']->assign("page_keyword", $seo_keyword . ","); $seo_description = $article['seo_description'] != '' ? $article['seo_description'] : $article['title']; $GLOBALS['tmpl']->assign("page_description", $seo_description . ","); } $GLOBALS['tmpl']->display("debit/debit_help_center.html", $cache_id); }
public function about() { $GLOBALS['tmpl']->caching = true; $GLOBALS['tmpl']->cache_lifetime = 6000; //首页缓存10分钟 $name = trim($_REQUEST['u']) == "" ? "financing" : trim($_REQUEST['u']); $cache_id = md5(MODULE_NAME . ACTION_NAME . $name); if (!$GLOBALS['tmpl']->is_cached("page/deals_about.html", $cache_id)) { $info = get_article_buy_uname($name); $info['content'] = $GLOBALS['tmpl']->fetch("str:" . $info['content']); $GLOBALS['tmpl']->assign("info", $info); $about_list = get_article_list(20, 7, "", "id ASC", true); $GLOBALS['tmpl']->assign("about_list", $about_list['list']); $seo_title = $info['seo_title'] != '' ? $info['seo_title'] : $info['title']; $GLOBALS['tmpl']->assign("page_title", $seo_title); $seo_keyword = $info['seo_keyword'] != '' ? $info['seo_keyword'] : $info['title']; $GLOBALS['tmpl']->assign("page_keyword", $seo_keyword . ","); $seo_description = $info['seo_description'] != '' ? $info['seo_description'] : $info['title']; $GLOBALS['tmpl']->assign("page_description", $seo_description . ","); } $GLOBALS['tmpl']->display("page/deals_about.html", $cache_id); }