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


PHP GlobalConfig::saveConfigItem方法代码示例

本文整理汇总了PHP中GlobalConfig::saveConfigItem方法的典型用法代码示例。如果您正苦于以下问题:PHP GlobalConfig::saveConfigItem方法的具体用法?PHP GlobalConfig::saveConfigItem怎么用?PHP GlobalConfig::saveConfigItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GlobalConfig的用法示例。


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

示例1: basename

require_once $root_path . 'include/inc_front_chain_lang.php';
$breakfile = 'edv-system-admi-welcome.php' . URL_APPEND;
if ($from == 'add') {
    $returnfile = 'edv_system_format_menu_item_add.php' . URL_APPEND . '&from=set';
} else {
    $returnfile = $breakfile;
}
$thisfile = basename($_SERVER['PHP_SELF']);
$editfile = 'edv_system_format_menu_item_add.php' . URL_REDIRECT_APPEND . '&mode=edit&from=set&item_no=';
if (!isset($GCONFIG)) {
    $GCONFIG = array();
}
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$gc = new GlobalConfig($GCONFIG);
if (isset($mode) && $mode == 'save' && !empty($max_items)) {
    $gc->saveConfigItem('theme_control_buttons', $_POST['theme_control_buttons']);
    header('location:' . $thisfile . URL_REDIRECT_APPEND . '&mode=0');
    exit;
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDTheme);
# href for return button
$smarty->assign('pbBack', $returnfile);
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:edv_system_controls_theme.php

示例2: array

}
if (!isset($date_format)) {
    $date_format = '';
}
if (!isset($validator)) {
    $validator = '';
}
$dbtable = 'care_config_global';
// Table name for global configurations
$GLOBAL_CONFIG = array();
$new_date_ok = 0;
# Create global config object
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
if ($mode == 'save' && $date_format != '' && eregi($date_format, $validator)) {
    $new_date_ok = $glob_obj->saveConfigItem('date_format', $date_format);
} else {
    if ($glob_obj->getConfig('date_format')) {
        $date_format = $GLOBAL_CONFIG['date_format'];
    }
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDDate);
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:edv_system_format_date.php

示例3: array

$editfile = 'edv_system_format_menu_item_add.php' . URL_REDIRECT_APPEND . '&mode=edit&from=set&item_no=';
/**
* Load the db routine
*/
if (!isset($GCONFIG)) {
    $GCONFIG = array();
}
include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$gc = new GlobalConfig($GCONFIG);
if (isset($mode) && $mode == 'save' && !empty($max_items)) {
    for ($i = 1; $i <= $max_items; $i++) {
        if (empty($_POST["value{$i}"])) {
            $_POST["value{$i}"] = '0';
        }
        //echo $_POST["index$i"].'==>'.$_POST["value$i"].'<br>';
        $gc->saveConfigItem($_POST["index{$i}"], $_POST["value{$i}"]);
    }
    header('location:' . $thisfile . URL_REDIRECT_APPEND . '&mode=0');
    exit;
} else {
    $gc->getConfig('person_%_hide');
    $gc->getConfig('patient_%_hide');
    $gc->getConfig('patient_%_show');
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:edv_system_forms_set.php

示例4: array

*/
$GLOBALCONFIG = array();
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$gc = new GlobalConfig($GLOBALCONFIG);
if (isset($mode) && $mode == 'save') {
    /*	$db->Execute("REPLACE INTO care_config_global (type,value) VALUES ('gui_frame_left_nav_resize','$bg_resize')";
    
    	if(!empty($bg_width)){
    		$db->Execute("REPLACE INTO care_config_global (type,value) VALUES ('gui_frame_left_nav_width','$bg_width')";
    	}
    	if(!empty($bg_color)){
    		$db->Execute("REPLACE INTO care_config_global (type,value) VALUES ('gui_frame_left_nav_border','$bg_border')";
    	}
    */
    //echo $bg_resize; exit;
    $gc->saveConfigItem('gui_frame_left_nav_border', $bg_border);
    $gc->saveConfigItem('gui_frame_left_nav_width', $bg_width);
    $gc->saveConfigItem('gui_frame_left_nav_bdcolor', $bg_bdcolor);
    $gc->saveConfigItem('language_single', $multilang);
    $gc->saveConfigItem('language_default', $deflang);
    header('location:' . $thisfile . URL_REDIRECT_APPEND . '&mode=0');
    exit;
}
$gc->getConfig('gui_frame_left_nav_%');
$gc->getConfig('language_%');
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:edv_system_menu_main_display_set.php


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