当前位置: 首页>>代码示例>>PHP>>正文


PHP load_setting函数代码示例

本文整理汇总了PHP中load_setting函数的典型用法代码示例。如果您正苦于以下问题:PHP load_setting函数的具体用法?PHP load_setting怎么用?PHP load_setting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了load_setting函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sMain

 /**
  * function sMain ()
  * Khoi tao 
  **/
 function sMain()
 {
     global $ttH;
     $ttH->func->load_language_admin($this->modules);
     $ttH->temp_act = new XTemplate($ttH->path_html . $this->modules . DS . $this->action . ".tpl");
     $ttH->temp_act->assign('LANG', $ttH->lang);
     $ttH->temp_act->assign('DIR_IMAGE', $ttH->dir_images);
     include $this->modules . "_func.php";
     load_setting();
     $this->dir = create_folder(date("Y_m"));
     $data["link_manage"] = $ttH->admin->get_link_admin($this->modules, $this->action, "manage");
     $data["link_manage_trash"] = $ttH->admin->get_link_admin($this->modules, $this->action, "manage_trash");
     $data["link_add"] = $ttH->admin->get_link_admin($this->modules, $this->action, "add");
     $this->sub = isset($ttH->input["sub"]) ? $ttH->input["sub"] : "manage";
     switch ($this->sub) {
         default:
             $this->sub = "manage";
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_manage"];
             $data["main"] = $this->do_manage();
             break;
     }
     $data["class"] = array();
     $data["class"][$this->sub] = ' class="active"';
     $data["page_title"] = $ttH->conf["page_title"];
     $ttH->temp_act->assign('data', $data);
     $ttH->temp_act->parse("main");
     $ttH->output .= $ttH->temp_act->text("main");
 }
开发者ID:duonghoaikhanh,项目名称:shophoa,代码行数:32,代码来源:waybill.php

示例2: sMain

 /**
  * function sMain ()
  * Khoi tao 
  **/
 function sMain()
 {
     global $ttH;
     $ttH->func->load_language_admin($this->modules);
     $ttH->temp_act = new XTemplate($ttH->path_html . $this->modules . DS . $this->action . ".tpl");
     $ttH->temp_act->assign('LANG', $ttH->lang);
     $ttH->temp_act->assign('DIR_IMAGE', $ttH->dir_images);
     $ttH->func->include_css($ttH->dir_css_global . 'excolor-master/css/excolor.css');
     $ttH->func->include_js($ttH->dir_js . 'excolor-master/prettify.js');
     $ttH->func->include_js($ttH->dir_js . 'excolor-master/jquery.excolor.js');
     $ttH->func->include_js_content("\r\r\n\t\t\tjQuery(document).ready( function(\$) {\r\r\n\t\t\t\t\$('input.color_picker').excolor({\r\r\n\t\t\t\t\troot_path: '" . $ttH->dir_css_global . "excolor-master/img/'\r\r\n\t\t\t\t});\r\r\n\t\t\t});\r\r\n\t\t");
     include $this->modules . "_func.php";
     load_setting();
     /*if(!isset($ttH->data['menu_group']['menu_header_top'])){
     			$ttH->data['menu_group']['menu_header_top'] = 'Menu đầu trang';
     		}*/
     $this->dir = create_folder(date("Y_m"));
     $this->cur_group = isset($ttH->input["group_id"]) && array_key_exists($ttH->input["group_id"], $ttH->data["menu_group"]) ? $ttH->input["group_id"] : $this->cur_group;
     $data["link_manage"] = $ttH->admin->get_link_admin($this->modules, $this->action, "manage");
     $data["link_manage_trash"] = $ttH->admin->get_link_admin($this->modules, $this->action, "manage_trash");
     $data["link_add"] = $ttH->admin->get_link_admin($this->modules, $this->action, "add", array('group_id' => $this->cur_group));
     $this->sub = isset($ttH->input["sub"]) ? $ttH->input["sub"] : "manage";
     switch ($this->sub) {
         case "add":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->action . "_" . $this->sub];
             $data["main"] = $this->do_add();
             break;
         case "edit":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->action . "_" . $this->sub];
             $data["main"] = $this->do_edit();
             break;
         case "manage_trash":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->action . "_" . $this->sub];
             $data["main"] = $this->do_manage("trash");
             break;
         default:
             $this->sub = "manage";
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->action . "_manage"];
             $data["main"] = $this->do_manage();
             break;
     }
     $data["class"] = array();
     $data["class"][$this->sub] = ' class="active"';
     $data["page_title"] = $ttH->conf["page_title"];
     $ttH->temp_act->assign('data', $data);
     $ttH->temp_act->parse("main");
     $ttH->output .= $ttH->temp_act->text("main");
 }
开发者ID:duonghoaikhanh,项目名称:hondabac,代码行数:52,代码来源:menu.php

示例3: sMain

 /**
  * function sMain ()
  * Khoi tao 
  **/
 function sMain()
 {
     global $ttH;
     $ttH->func->load_language_admin($this->modules);
     $ttH->temp_act = new XTemplate($ttH->path_html . $this->modules . DS . $this->action . ".tpl");
     $ttH->temp_act->assign('LANG', $ttH->lang);
     $ttH->temp_act->assign('DIR_IMAGE', $ttH->dir_images);
     include $this->modules . "_func.php";
     load_setting();
     $fun = isset($ttH->get['f']) ? $ttH->get['f'] : '';
     switch ($fun) {
         case "add_menu":
             $ttH->output = $this->do_add_menu();
             break;
         default:
             die('Access denied');
             break;
     }
 }
开发者ID:duonghoaikhanh,项目名称:hondabac,代码行数:23,代码来源:popup+-+Copy.php

示例4: sMain

 /**
  * function sMain ()
  * Khoi tao 
  **/
 function sMain()
 {
     global $ttH;
     $ttH->func->load_language_admin($this->modules);
     $ttH->temp_act = new XTemplate($ttH->path_html . $this->modules . DS . $this->action . ".tpl");
     $ttH->temp_act->assign('LANG', $ttH->lang);
     $ttH->temp_act->assign('DIR_IMAGE', $ttH->dir_images);
     $ttH->func->include_js($ttH->dir_temp . 'js/' . $this->modules . '/' . $this->action . ".js");
     include $this->modules . "_func.php";
     load_setting();
     $this->dir = create_folder(date("Y_m"));
     $this->cur_group = isset($ttH->input["group_id"]) && array_key_exists($ttH->input["group_id"], $ttH->data["banner_group"]) ? $ttH->input["group_id"] : $this->cur_group;
     $data["link_manage"] = $ttH->admin->get_link_admin($this->modules, $this->action, "manage", array('group_id' => $this->cur_group));
     $data["link_manage_trash"] = $ttH->admin->get_link_admin($this->modules, $this->action, "manage_trash", array('group_id' => $this->cur_group));
     $data["link_add"] = $ttH->admin->get_link_admin($this->modules, $this->action, "add", array('group_id' => $this->cur_group));
     $this->sub = isset($ttH->input["sub"]) ? $ttH->input["sub"] : "manage";
     switch ($this->sub) {
         case "add":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_" . $this->sub];
             $data["main"] = $this->do_add();
             break;
         case "edit":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_" . $this->sub];
             $data["main"] = $this->do_edit();
             break;
         case "manage_trash":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_" . $this->sub];
             $data["main"] = $this->do_manage("trash");
             break;
         default:
             $this->sub = "manage";
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_manage"];
             $data["main"] = $this->do_manage();
             break;
     }
     $data["class"] = array();
     $data["class"][$this->sub] = ' class="active"';
     $data["page_title"] = $ttH->conf["page_title"];
     $ttH->temp_act->assign('data', $data);
     $ttH->temp_act->parse("main");
     $ttH->output .= $ttH->temp_act->text("main");
 }
开发者ID:duonghoaikhanh,项目名称:hondabac,代码行数:46,代码来源:banner.php

示例5: sMain

 /**
  * function sMain ()
  * Khoi tao 
  **/
 function sMain()
 {
     global $ttH;
     $ttH->func->load_language_admin($this->modules);
     include $this->modules . "_func.php";
     load_setting();
     $fun = isset($ttH->post['f']) ? $ttH->post['f'] : '';
     flush();
     switch ($fun) {
         case "add_to_menu":
             echo $this->do_add_to_menu();
             exit;
             break;
         default:
             echo '';
             exit;
             break;
     }
     exit;
 }
开发者ID:duonghoaikhanh,项目名称:hondabac,代码行数:24,代码来源:ajax_haslang.php

示例6: sMain_sub

 /**
  * function sMain ()
  * Khoi tao 
  **/
 function sMain_sub()
 {
     global $ttH;
     $ttH->func->load_language_admin($this->modules);
     $ttH->temp_act = new XTemplate($ttH->path_html . $this->modules . DS . $this->action . ".tpl");
     $ttH->temp_act->assign('LANG', $ttH->lang);
     $ttH->temp_act->assign('DIR_IMAGE', $ttH->dir_images);
     require_once "modules/" . $this->modules . "/" . $this->modules . "_func.php";
     load_setting();
     require_once "modules/" . $this->modules . "/" . $this->action . "_func.php";
     load_setting_ordering();
     $data["link_manage"] = $ttH->admin->get_link_admin($this->modules_call, $this->action, "manage");
     $data["link_manage_trash"] = $ttH->admin->get_link_admin($this->modules_call, $this->action, "manage_trash");
     $data["link_add"] = $ttH->admin->get_link_admin($this->modules_call, $this->action, "add");
     $this->sub = isset($ttH->input["sub"]) ? $ttH->input["sub"] : "manage";
     switch ($this->sub) {
         case "edit":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_" . $this->sub];
             $data["main"] = $this->do_edit();
             break;
         case "manage_trash":
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_" . $this->sub];
             $data["main"] = $this->do_manage("trash");
             break;
         default:
             $this->sub = "manage";
             $ttH->conf["page_title"] = $ttH->lang[$this->modules][$this->modules . "_manage"];
             $data["main"] = $this->do_manage();
             break;
     }
     $data["class"] = array();
     $data["class"][$this->sub] = ' class="active"';
     $data["page_title"] = $ttH->conf["page_title"];
     $ttH->temp_act->assign('data', $data);
     $ttH->temp_act->parse("main");
     $ttH->output .= $ttH->temp_act->text("main");
 }
开发者ID:duonghoaikhanh,项目名称:hondabac,代码行数:41,代码来源:ordering+-+Copy.php

示例7: isset

{
    global $ttH;
    $ttH->setting = isset($ttH->setting) ? $ttH->setting : array();
    if (!isset($ttH->setting['user'])) {
        $ttH->setting['user'] = array();
        $result = $ttH->db->query("select * from user_setting ");
        if ($row = $ttH->db->fetch_row($result)) {
            $ttH->setting['user_' . $row['lang']] = $row;
            if ($ttH->conf['lang_cur'] == $row['lang']) {
                $ttH->setting['user'] = $row;
            }
        }
    }
    return true;
}
load_setting();
$nts = new sMain();
class sMain
{
    var $modules = "user";
    var $action = "ajax";
    /**
     * function sMain ()
     * Khoi tao 
     **/
    function sMain()
    {
        global $ttH;
        $ttH->func->load_language($this->modules);
        $fun = isset($ttH->post['f']) ? $ttH->post['f'] : '';
        flush();
开发者ID:duonghoaikhanh,项目名称:shophoa,代码行数:31,代码来源:ajax.php


注:本文中的load_setting函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。