HomeHelpTrac

Ignore:
Timestamp:
05/25/09 00:00:45 (3 years ago)
Author:
Anton Lesnikov
Message:
  1. Updated admin panels for News, Feedback and Payment modules.
  2. Improvements for design box in admin panel.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/payment/classes/BxPmtModule.php

    r10239 r10599  
    2121 
    2222bx_import('BxDolModule'); 
     23bx_import('BxDolAdminSettings'); 
    2324 
    2425require_once( BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php' ); 
     
    241242     
    242243     
     244    /** 
     245     *  
     246     * Admin Settings Methods 
     247     *  
     248     */ 
     249    function getSettingsForm($mixedResult) { 
     250        $iId = (int)$this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Payment'"); 
     251        if(empty($iId)) 
     252           return MsgBox('_payment_msg_no_results'); 
     253            
     254        $oSettings = new BxDolAdminSettings($iId); 
     255        $sResult = $oSettings->getForm(); 
     256                    
     257        if($mixedResult !== true && !empty($mixedResult)) 
     258            $sResult = $mixedResult . $sResult; 
     259 
     260        return $sResult; 
     261    } 
     262    function setSettings($aData) { 
     263        $iId = (int)$this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Payment'"); 
     264        if(empty($iId)) 
     265           return MsgBox(_t('_payment_err_wrong_data')); 
     266            
     267        $oSettings = new BxDolAdminSettings($iId); 
     268        return $oSettings->saveChanges($_POST); 
     269    } 
     270     
    243271     
    244272    /** 
Note: See TracChangeset for help on using the changeset viewer.