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


PHP BxDolAdminSettings::saveChanges方法代码示例

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


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

示例1: actionAdministration

 function actionAdministration()
 {
     if (!$this->isAdmin()) {
         $this->_oTemplate->displayAccessDenied();
         return;
     }
     $this->_oTemplate->pageStart();
     $iId = $this->_oDb->getSettingsCategory();
     if (empty($iId)) {
         echo MsgBox(_t('_sys_request_page_not_found_cpt'));
         $this->_oTemplate->pageCodeAdmin(_t('_bx_profiler_administration'));
         return;
     }
     bx_import('BxDolAdminSettings');
     $mixedResult = '';
     if (isset($_POST['save']) && isset($_POST['cat'])) {
         $oSettings = new BxDolAdminSettings($iId);
         $mixedResult = $oSettings->saveChanges($_POST);
     }
     $oSettings = new BxDolAdminSettings($iId);
     $sResult = $oSettings->getForm();
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult = $mixedResult . $sResult;
     }
     $aVars = array('content' => $sResult);
     echo $this->_oTemplate->adminBlock($this->_oTemplate->parseHtmlByName('default_padding', $aVars), _t('_bx_profiler_administration'));
     $this->_oTemplate->addCssAdmin('main.css');
     $this->_oTemplate->addCssAdmin('forms_adv.css');
     $this->_oTemplate->pageCodeAdmin(_t('_bx_profiler_administration'));
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:30,代码来源:BxProfilerModule.php

示例2: actionAdministration

 /**
  * Function will generate facebook's admin page;
  *
  * @return : (text) - html presentation data;
  */
 function actionAdministration()
 {
     $GLOBALS['iAdminPage'] = 1;
     if (!isAdmin()) {
         header('location: ' . BX_DOL_URL_ROOT);
     }
     // get sys_option's category id;
     $iCatId = $this->_oDb->getSettingsCategoryId('bx_facebook_connect_api_key');
     if (!$iCatId) {
         $sOptions = MsgBox(_t('_Empty'));
     } else {
         bx_import('BxDolAdminSettings');
         $oSettings = new BxDolAdminSettings($iCatId);
         $mixedResult = '';
         if (isset($_POST['save']) && isset($_POST['cat'])) {
             $mixedResult = $oSettings->saveChanges($_POST);
         }
         // get option's form;
         $sOptions = $oSettings->getForm();
         if ($mixedResult !== true && !empty($mixedResult)) {
             $sOptions = $mixedResult . $sOptions;
         }
     }
     $sCssStyles = $this->_oTemplate->addCss('forms_adv.css', true);
     $this->_oTemplate->pageCodeAdminStart();
     echo DesignBoxAdmin(_t('_bx_facebook_information'), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => _t('_bx_facebook_information_block', BX_DOL_URL_ROOT))));
     echo DesignBoxAdmin(_t('_Settings'), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => $sCssStyles . $sOptions)));
     $this->_oTemplate->pageCodeAdmin(_t('_bx_facebook_settings'));
 }
开发者ID:rxjucse,项目名称:BoonexFacebookConnectModule,代码行数:34,代码来源:BxFaceBookConnectModule.php

示例3: MsgBox

 /**
  * Generate admin page;
  *
  * @return : (text) - html presentation data;
  */
 function _actionAdministration($sOptionApiKey, $sLangSettingsTitle, $sLangInfoTitle = '', $sLangInfoText = '')
 {
     $GLOBALS['iAdminPage'] = 1;
     if (!isAdmin()) {
         $this->_redirect(BX_DOL_URL_ROOT);
     }
     // get sys_option's category id;
     $iCatId = $this->_oDb->getSettingsCategoryId($sOptionApiKey);
     if (!$iCatId) {
         $sOptions = MsgBox(_t('_Empty'));
     } else {
         bx_import('BxDolAdminSettings');
         $oSettings = new BxDolAdminSettings($iCatId);
         $mixedResult = '';
         if (isset($_POST['save']) && isset($_POST['cat'])) {
             $mixedResult = $oSettings->saveChanges($_POST);
         }
         $sOptions = $oSettings->getForm();
         if ($mixedResult !== true && !empty($mixedResult)) {
             $sOptions = $mixedResult . $sOptions;
         }
     }
     $sCssStyles = $this->_oTemplate->addCss('forms_adv.css', true);
     $this->_oTemplate->pageCodeAdminStart();
     if ($sLangInfoText) {
         echo DesignBoxAdmin(_t($sLangInfoTitle), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => _t($sLangInfoText, BX_DOL_URL_ROOT))));
     }
     echo DesignBoxAdmin(_t('_Settings'), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => $sCssStyles . $sOptions)));
     $this->_oTemplate->pageCodeAdmin(_t($sLangSettingsTitle));
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:35,代码来源:BxDolConnectModule.php

示例4: actionAdministration

 function actionAdministration()
 {
     if (!$this->isAdmin()) {
         $this->_oTemplate->displayAccessDenied();
         return;
     }
     $iId = $this->_oDb->getSettingsCategory('Google Search');
     if (empty($iId)) {
         $this->_oTemplate->displayPageNotFound();
         return;
     }
     $this->_oTemplate->pageStart();
     bx_import('BxDolAdminSettings');
     $mixedResult = '';
     if (isset($_POST['save']) && isset($_POST['cat'])) {
         $oSettings = new BxDolAdminSettings($iId);
         $mixedResult = $oSettings->saveChanges($_POST);
     }
     $oSettings = new BxDolAdminSettings($iId);
     $sResult = $oSettings->getForm();
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult = $mixedResult . $sResult;
     }
     echo $this->_oTemplate->adminBlock(_t('_bx_gsearch_help_text', BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri()), _t('_bx_gsearch_help_title'), false, false, 11);
     echo $this->_oTemplate->adminBlock($sResult, _t('_bx_gsearch_administration'), false, false, 11);
     $this->_oTemplate->addCssAdmin('forms_adv.css');
     $this->_oTemplate->pageCodeAdmin(_t('_bx_gsearch_administration'));
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:28,代码来源:BxGSearchModule.php

示例5: setSettings

 function setSettings($aData)
 {
     $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Timeline'");
     if (empty($iId)) {
         return MsgBox(_t('_wall_msg_no_results'));
     }
     $oSettings = new BxDolAdminSettings($iId);
     return $oSettings->saveChanges($_POST);
 }
开发者ID:noormcs,项目名称:studoro,代码行数:9,代码来源:BxWallModule.php

示例6: PageCodeSettings

function PageCodeSettings()
{
    bx_import('BxDolAdminSettings');
    $oSettings = new BxDolAdminSettings(13);
    $sResults = false;
    if (isset($_POST['save']) && isset($_POST['cat'])) {
        $sResult = $oSettings->saveChanges($_POST);
    }
    $s = $sResult . $oSettings->getForm();
    return DesignBoxAdmin($GLOBALS['sPageTitle'], $s, $GLOBALS['aTopItems'], '', 11);
}
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:11,代码来源:templates.php

示例7: PageCodeSettings

function PageCodeSettings()
{
    global $aPages;
    bx_import('BxDolAdminSettings');
    $oSettings = new BxDolAdminSettings(4);
    $sResults = false;
    if (isset($_POST['save']) && isset($_POST['cat'])) {
        $sResult = $oSettings->saveChanges($_POST);
    }
    $s = $oSettings->getForm();
    if ($sResult) {
        $s = $sResult . $s;
    }
    return array('page_main_code' => DesignBoxAdmin(_t('_Settings'), $s, $GLOBALS['aTopItems'], '', 11));
}
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:15,代码来源:notifies.php

示例8: PageCodeSettings

function PageCodeSettings()
{
    bx_import('BxDolAdminSettings');
    $oSettings = new BxDolAdminSettings(24);
    $sResults = false;
    if (isset($_POST['save']) && isset($_POST['cat'])) {
        $sResult = $oSettings->saveChanges($_POST);
    }
    $s = $oSettings->getForm();
    if ($sResult) {
        $s = $sResult . $s;
    }
    return DesignBoxAdmin(_t('_adm_txt_cache'), $s, $GLOBALS['aTopItems'], '', 11);
}
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:14,代码来源:cache.php

示例9: actionSettings

function actionSettings()
{
    $oDb = new BxDolDb();
    $iId = $oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Categories' LIMIT 1");
    if (!empty($iId)) {
        $oSettings = new BxDolAdminSettings($iId);
        $mixedResult = '';
        if (isset($_POST['save']) && isset($_POST['cat'])) {
            $mixedResult = $oSettings->saveChanges($_POST);
        }
        $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oSettings->getForm()));
        if ($mixedResult !== true && !empty($mixedResult)) {
            $sResult = $mixedResult . $sResult;
        }
        return $sResult;
    } else {
        return MsgBox(_t('_Empty'));
    }
}
开发者ID:dalinhuang,项目名称:shopexts,代码行数:19,代码来源:categories.php

示例10: BxDolAdminSettings

<?php

/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */
require_once '../inc/header.inc.php';
$GLOBALS['iAdminPage'] = 1;
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
bx_import('BxDolAdminSettings');
$logged['admin'] = member_auth(1, true, true);
$oSettings = new BxDolAdminSettings(0);
if (bx_get('c')) {
    $oSettings->setActiveCategory(bx_get('c'));
}
//--- Process submit ---//
$sResult = '';
if (isset($_POST['save']) && isset($_POST['cat'])) {
    $sResult = $oSettings->saveChanges($_POST);
}
$iNameIndex = 3;
$_page = array('name_index' => $iNameIndex, 'css_name' => array('forms_adv.css', 'settings.css'), 'header' => _t('_adm_page_cpt_settings_advanced'));
$_page_cont[$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_box_cpt_settings_advanced'), $sResult . $oSettings->getForm(array('1', '3', '6', '9', '11', '12', '14', '25', '26')), '', '', 11);
define('BX_PROMO_CODE', adm_hosting_promo());
PageCodeAdmin();
开发者ID:newton27,项目名称:dolphin.pro,代码行数:28,代码来源:advanced_settings.php

示例11: MsgBox

 function _actionAdministrationSettings()
 {
     $iId = $this->_oDb->getSettingsCategory();
     if (empty($iId)) {
         return MsgBox(_t('_sys_request_page_not_found_cpt'));
     }
     bx_import('BxDolAdminSettings');
     $mixedResult = '';
     if (isset($_POST['save']) && isset($_POST['cat'])) {
         $oSettings = new BxDolAdminSettings($iId);
         $mixedResult = $oSettings->saveChanges($_POST);
     }
     if (!empty($_POST['clear_cache'])) {
         $this->clearSiteThumbCache();
     }
     bx_sites_import('STW');
     if (getParam('bx_sites_key_id') != '' && getParam('bx_sites_secret_key') != '') {
         $aResponse = saveAccountInfo();
         if ($aResponse['stw_response_status'] == 'Success') {
             $sCodeSTW = MsgBox(_t('_bx_sites_administration_stw_acc_success'), 5);
         } else {
             $sCodeSTW = MsgBox(_t('_bx_sites_administration_stw_acc_failed'), 5);
         }
     } else {
         $sCodeSTW = MsgBox(_t('_bx_sites_administration_stw_acc_no_data'), 5);
     }
     $oSettings = new BxDolAdminSettings($iId);
     $sForm = $oSettings->getForm();
     $aAccInfo = $this->_oDb->getAccountInfo(getParam('bx_sites_key_id'));
     $aVars = array('actual_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'administration/settings', 'response_status' => $aResponse['stw_response_status'] == 'Success' ? 1 : 0, 'account_level' => $aAccInfo['account_level'] != 0 ? $aAccInfo['account_level'] : 0, 'inside_pages' => $aAccInfo['inside_pages'] == 1 ? 1 : 0, 'custom_size' => $aAccInfo['custom_size'] == 1 ? 1 : 0, 'full_length' => $aAccInfo['full_length'] == 1 ? 1 : 0, 'refresh_ondemand' => $aAccInfo['refresh_ondemand'] == 1 ? 1 : 0, 'custom_delay' => $aAccInfo['custom_delay'] == 1 ? 1 : 0, 'custom_quality' => $aAccInfo['custom_quality'] == 1 ? 1 : 0, 'custom_resolution' => $aAccInfo['custom_resolution'] == 1 ? 1 : 0, 'custom_messages' => $aAccInfo['custom_messages'] == 1 ? 1 : 0);
     $sCode = $this->_oTemplate->parseHtmlByName('settings_info.html', $aVars);
     $sResult = $sCodeSTW;
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult .= $mixedResult;
     }
     $sResult .= $sCode . $sForm;
     $aVars = array('content' => $sResult);
     return $this->_oTemplate->parseHtmlByName('default_padding.html', $aVars);
 }
开发者ID:robbie778,项目名称:dolphin.pro,代码行数:39,代码来源:BxSitesModule.php

示例12: BxDolAdminSettings

require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
require_once BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php';
bx_import('BxDolAdminSettings');
bx_import('BxTemplSearchResult');
$logged['admin'] = member_auth(1, true, true);
$oSettings = new BxDolAdminSettings(5, BX_DOL_URL_ADMIN . 'memb_levels.php?tab=settings');
//--- Process submit ---//]
$aResults = array();
$mixedResultActions = '';
$mixedResultAction = '';
$mixedResultPrices = '';
if (isset($_POST['save']) && isset($_POST['cat'])) {
    $aResults['settings'] = $oSettings->saveChanges($_POST);
} else {
    if ((isset($_POST['adm-mlevels-enable']) || isset($_POST['adm-mlevels-disable'])) && !empty($_POST['levels'])) {
        if (isset($_POST['adm-mlevels-enable'])) {
            $sValue = 'yes';
        } else {
            if (isset($_POST['adm-mlevels-disable'])) {
                $sValue = 'no';
            }
        }
        $GLOBALS['MySQL']->query("UPDATE `sys_acl_levels` SET `Active`='" . $sValue . "' WHERE `ID` IN ('" . implode("','", $_POST['levels']) . "')");
    } else {
        if (isset($_POST['adm-mlevels-delete']) && !empty($_POST['levels'])) {
            foreach ($_POST['levels'] as $iId) {
                if (($aResults['levels'] = deleteMembership($iId)) !== true) {
                    break;
开发者ID:newton27,项目名称:dolphin.pro,代码行数:31,代码来源:memb_levels.php

示例13: setSettings

 function setSettings($aData)
 {
     $sUri = $this->_oConfig->getUri();
     $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='" . ucwords(str_replace('_', ' ', $sUri)) . "'");
     if (empty($iId)) {
         return MsgBox(_t('_' . $sUri . '_msg_no_results'));
     }
     $oSettings = new BxDolAdminSettings($iId);
     return $oSettings->saveChanges($_POST);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:10,代码来源:BxDolTextModule.php

示例14: actionAdministration

 /**
  * Generate shoutbox's admin page ;
  *
  * @return : (text) - Html presentation data ;
  */
 function actionAdministration()
 {
     $GLOBALS['iAdminPage'] = 1;
     if (!isAdmin()) {
         header('location: ' . BX_DOL_URL_ROOT);
     }
     $aLanguageKeys = array('settings' => _t('_bx_shoutbox_settings'));
     // try to define globals category number;
     $iId = $this->_oDb->getSettingsCategory('shoutbox_update_time');
     if (!$iId) {
         $sContent = MsgBox(_t('_Empty'));
     } else {
         bx_import('BxDolAdminSettings');
         $mixedResult = '';
         if (isset($_POST['save']) && isset($_POST['cat'])) {
             $oSettings = new BxDolAdminSettings($iId);
             $mixedResult = $oSettings->saveChanges($_POST);
         }
         $oSettings = new BxDolAdminSettings($iId);
         $sResult = $oSettings->getForm();
         if ($mixedResult !== true && !empty($mixedResult)) {
             $sResult = $mixedResult . $sResult;
         }
         $sContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sResult));
     }
     $this->_oTemplate->pageCodeAdminStart();
     echo $this->_oTemplate->adminBlock($sContent, $aLanguageKeys['settings']);
     $this->_oTemplate->pageCodeAdmin(_t('_bx_shoutbox_module'));
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:34,代码来源:BxShoutBoxModule.php

示例15: getAdministrationSettings

 function getAdministrationSettings()
 {
     $iId = $this->_oDb->getSettingsCategory();
     if (empty($iId)) {
         return MsgBox(_t('_sys_request_page_not_found_cpt'));
     }
     bx_import('BxDolAdminSettings');
     $mixedResult = '';
     if (isset($_POST['save']) && isset($_POST['cat'])) {
         $oSettings = new BxDolAdminSettings($iId);
         $mixedResult = $oSettings->saveChanges($_POST);
     }
     $oSettings = new BxDolAdminSettings($iId);
     $sResult = $oSettings->getForm();
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult = $mixedResult . $sResult;
     }
     return $sResult;
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:19,代码来源:BxBlogsModule.php


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