Ejemplo n.º 1
0
 function execute($requests)
 {
     $this->set('navi_global', util_get_c_navi('global'));
     $this->set('navi_h', util_get_c_navi('h'));
     $this->set('navi_f', util_get_c_navi('f'));
     $this->set('navi_c', util_get_c_navi('c'));
     return 'success';
 }
Ejemplo n.º 2
0
/**
 * inc_page_header.tpl
 */
function fetch_inc_page_header($type = null)
{
    $inc_smarty = new OpenPNE_Smarty($GLOBALS['SMARTY']);
    $inc_smarty->templates_dir = 'pc/templates';
    $v['PHPSESSID'] = md5(session_id());
    $v['INC_PAGE_HEADER_type'] = $type;
    if ($type == 'public' || $type == 'regist') {
        $v['before_after'] = 'before';
        $v['INC_PAGE_HEADER'] = db_banner_get_top_banner(false);
    } else {
        $v['before_after'] = 'after';
        $v['INC_PAGE_HEADER'] = db_banner_get_top_banner(true);
    }
    $v['top_banner_html_before'] = p_common_c_siteadmin4target_pagename('top_banner_html_before');
    $v['top_banner_html_after'] = p_common_c_siteadmin4target_pagename('top_banner_html_after');
    $inc_smarty->assign('navi', util_get_c_navi('global'));
    $inc_smarty->assign($v);
    return $inc_smarty->ext_fetch('inc_page_header.tpl');
}