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


PHP BxDolAdminSettings::getForm方法代码示例

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


在下文中一共展示了BxDolAdminSettings::getForm方法的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: 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

示例6: getSettingsForm

 /**
  *
  * Admin Settings Methods
  *
  */
 function getSettingsForm($mixedResult)
 {
     $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, BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'admin');
     $sResult = $oSettings->getForm();
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult = $mixedResult . $sResult;
     }
     return $sResult;
 }
开发者ID:noormcs,项目名称:studoro,代码行数:18,代码来源:BxWallModule.php

示例7: getSettingsForm

 /**
  * Admin Settings Methods
  */
 function getSettingsForm($mixedResult)
 {
     $sUri = $this->_oConfig->getUri();
     $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Membership'");
     if (empty($iId)) {
         return MsgBox('_membership_txt_empty');
     }
     $oSettings = new BxDolAdminSettings($iId, BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'admin');
     $sResult = $oSettings->getForm();
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult = $mixedResult . $sResult;
     }
     return $sResult;
 }
开发者ID:robbie778,项目名称:dolphin.pro,代码行数:17,代码来源:BxMbpModule.php

示例8: 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

示例9: BxDolAdminSettings

* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. 
* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details. 
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
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);
//--- 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'), 'header_text' => _t('_adm_box_cpt_settings_advanced'));
$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
$_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm(array('1', '3', '8', '12', '15', '13', '14', '23'));
define('BX_PROMO_CODE', adm_hosting_promo());
PageCodeAdmin();
开发者ID:dalinhuang,项目名称:shopexts,代码行数:31,代码来源:advanced_settings.php

示例10: 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

示例11: BxDolAdminSettings

* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details. 
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once '../inc/header.inc.php';
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);
$mixedCategory = 0;
if (bx_get('cat') !== false) {
    $mixedCategory = bx_get('cat');
}
$oSettings = new BxDolAdminSettings($mixedCategory);
//--- 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'), 'header_text' => $oSettings->getTitle());
$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
$_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm();
if (26 == $mixedCategory) {
    define('BX_PROMO_CODE', adm_hosting_promo());
}
PageCodeAdmin();
开发者ID:dalinhuang,项目名称:shopexts,代码行数:31,代码来源:settings.php

示例12: getSettingsForm

 /**
  * Admin Settings Methods
  */
 function getSettingsForm($mixedResult)
 {
     $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('_' . $sUri . '_msg_no_results');
     }
     $oSettings = new BxDolAdminSettings($iId, BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'admin');
     $sResult = $oSettings->getForm();
     if ($mixedResult !== true && !empty($mixedResult)) {
         $sResult = $mixedResult . $sResult;
     }
     return $sResult;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:17,代码来源:BxDolTextModule.php

示例13: 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

示例14: 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

示例15: getSettingsForm

 /**
  * Function will generate global settings form ;
  *
  * @return : (text) - html presentation data;
  */
 function getSettingsForm()
 {
     $iId = $this->_oDb->getSettingsCategory('enable_poll');
     if (!$iId) {
         return MsgBox(_t('_Empty'));
     }
     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 $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sResult));
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:24,代码来源:BxPollModule.php


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