Changeset 1021

Show
Ignore:
Timestamp:
09/16/08 06:15:35 (2 months ago)
Author:
rach
Message:

Correct import of constant

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/form_data/FG_var_agent.inc

    r830 r1021  
    3434 
    3535 
    36 $currency_list=Constants::getCurrenciesList(); 
    37 $currency_list_r = Constants::getCurrenciesRateList(); 
    38 $currency_list_key = Constants::getCurrenciesKeyList() ; 
     36$currency_list=getCurrenciesList(); 
     37$currency_list_r = getCurrenciesRateList(); 
     38$currency_list_key = getCurrenciesKeyList() ; 
    3939 
    4040$HD_Form -> AddViewElement(gettext("ID"), "id", "7%", "center", "sort"); 
  • trunk/admin/Public/form_data/FG_var_card.inc

    r993 r1021  
    906906 
    907907 
    908 $HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
     908//$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    909909$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    910910$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
     
    914914 
    915915 
     916 
  • trunk/admin/Public/form_data/FG_var_charge.inc

    r883 r1021  
    3030 
    3131 
    32 $currency_list = Constants::getCurrenciesList(); 
    33 $currency_list_r = Constants::getCurrenciesRateList(); 
    34 $currency_list_key = Constants::getCurrenciesKeyList() ; 
     32$currency_list = getCurrenciesList(); 
     33$currency_list_r = getCurrenciesRateList(); 
     34$currency_list_key = getCurrenciesKeyList() ; 
    3535 
    3636 
  • trunk/admin/Public/form_data/FG_var_def_ratecard.inc

    r1019 r1021  
    562562} 
    563563 
    564 $HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
     564//$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    565565$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    566566$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
  • trunk/admin/Public/form_data/FG_var_ecommerce.inc

    r792 r1021  
    1313$language_list = Constants::getLanguagesList(); 
    1414$simultaccess_list = Constants::getSimultAccessList(); 
    15 $currency_list=Constants::getCurrenciesList(); 
    16 $currency_list_r = Constants::getCurrenciesRateList(); 
    17 $currency_list_key = Constants::getCurrenciesKeyList(); 
     15$currency_list=getCurrenciesList(); 
     16$currency_list_r = getCurrenciesRateList(); 
     17$currency_list_key = getCurrenciesKeyList(); 
    1818$typepaid_list = Constants::getPaidTypeList(); 
    1919$expire_list = Constants::getExpirationList(); 
  • trunk/admin/Public/form_data/FG_var_subscription.inc

    r792 r1021  
    1818 
    1919 
    20 $currency_list=Constants::getCurrenciesList(); 
    21 $currency_list_r = Constants::getCurrenciesRateList(); 
    22 $currency_list_key = Constants::getCurrenciesKeyList() ; 
     20$currency_list=getCurrenciesList(); 
     21$currency_list_r = getCurrenciesRateList(); 
     22$currency_list_key = getCurrenciesKeyList() ; 
    2323 
    2424 
  • trunk/admin/Public/form_data/FG_var_tariffplan.inc

    r1 r1021  
    150150 
    151151 
    152 $HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
     152//$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    153153$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    154154$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
  • trunk/admin/Public/form_data/FG_var_trunk.inc

    r966 r1021  
    229229 
    230230 
    231 $HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
     231//$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    232232$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    233233$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
  • trunk/common/lib/admin.defines.php

    r993 r1021  
    11<?php 
    22define ("WRITELOG_QUERY",false); 
     3 
     4define ("FSROOT", substr(dirname(__FILE__),0,-3)); 
     5define ("LIBDIR", FSROOT."lib/");        
     6include (FSROOT."lib/interface/constants.php"); 
    37include_once (dirname(__FILE__)."/Class.A2Billing.php"); 
    48require_once('adodb/adodb.inc.php'); // AdoDB 
    59include_once (dirname(__FILE__)."/Class.Table.php"); 
    6  
    7 define ("FSROOT", substr(dirname(__FILE__),0,-3)); 
    8 define ("LIBDIR", FSROOT."lib/");        
    910 
    1011// USE PHPMAILER 
     
    1213// INCLUDE MISC 
    1314include (FSROOT."lib/Misc.php"); 
    14 include (FSROOT."lib/interface/constants.php"); 
    1515 
    1616 
  • trunk/common/lib/agent.defines.php

    r986 r1021  
    11<?php 
    22define ("WRITELOG_QUERY",false); 
     3define ("FSROOT", substr(dirname(__FILE__),0,-3)); 
     4define ("LIBDIR", FSROOT."lib/");        
     5include (FSROOT."lib/interface/constants.php"); 
    36include_once (dirname(__FILE__)."/Class.A2Billing.php"); 
    47require_once('adodb/adodb.inc.php'); // AdoDB 
    58include_once (dirname(__FILE__)."/Class.Table.php"); 
    69 
    7 define ("FSROOT", substr(dirname(__FILE__),0,-3)); 
    8 define ("LIBDIR", FSROOT."lib/");        
    910 
    1011// USE PHPMAILER 
  • trunk/common/lib/customer.defines.php

    r986 r1021  
    11<?php 
    22define ("WRITELOG_QUERY",false); 
     3define ("FSROOT", substr(dirname(__FILE__),0,-3)); 
     4define ("LIBDIR", FSROOT."lib/"); 
     5include (FSROOT."lib/interface/constants.php"); 
    36include_once (dirname(__FILE__)."/Class.A2Billing.php"); 
    47include_once (dirname(__FILE__)."/Class.Table.php"); 
     
    113116 
    114117// INCLUDE FILES 
    115 define ("FSROOT", substr(dirname(__FILE__),0,-3)); 
    116 define ("LIBDIR", FSROOT."lib/"); 
    117118include (FSROOT."lib/Misc.php"); 
    118119include (FSROOT."lib/interface/constants.php"); 
  • trunk/common/lib/interface/constants.php

    r1019 r1021  
    1919        } 
    2020 
    21         public static function getCurrenciesList(){ 
    22                 $currencies_list = get_currencies(); 
    23                 foreach($currencies_list as $key => $cur_value) { 
    24                         $currency_list[$key]  = array( $cur_value[1].' ('.$cur_value[2].')', $key); 
    25                 } 
    26                 return $currency_list; 
    27         } 
    28  
    29         public static function getCurrenciesKeyList(){ 
    30                 $currencies_list = get_currencies(); 
    31                 foreach($currencies_list as $key => $cur_value) { 
    32                         $currency_list_key[$key][0] = $key; 
    33                 } 
    34                 return $currency_list_key; 
    35         } 
    36  
    37         public static function getCurrenciesRateList(){ 
    38                 $currencies_list = get_currencies(); 
    39                 foreach($currencies_list as $key => $cur_value) { 
    40                         $currency_list_r[$key]  = array( $key, $cur_value[1]); 
    41                 } 
    42                 return $currency_list_r; 
    43         } 
     21 
     22         
    4423 
    4524        public static function getPeriodsList(){ 
  • trunk/common/lib/Misc.php

    r1013 r1021  
    7676        return $currencies_list; 
    7777} 
     78 
     79function getCurrenciesList(){ 
     80                $currencies_list = get_currencies(); 
     81                foreach($currencies_list as $key => $cur_value) { 
     82                        $currency_list[$key]  = array( $cur_value[1].' ('.$cur_value[2].')', $key); 
     83                } 
     84                return $currency_list; 
     85        } 
     86 
     87 
     88function getCurrenciesKeyList(){ 
     89                $currencies_list = get_currencies(); 
     90                foreach($currencies_list as $key => $cur_value) { 
     91                        $currency_list_key[$key][0] = $key; 
     92                } 
     93                return $currency_list_key; 
     94        } 
     95 
     96function getCurrenciesRateList(){ 
     97                $currencies_list = get_currencies(); 
     98                foreach($currencies_list as $key => $cur_value) { 
     99                        $currency_list_r[$key]  = array( $key, $cur_value[1]); 
     100                } 
     101                return $currency_list_r; 
     102        } 
    78103 
    79104/** 


Google