Changeset 349 for trunk/phpbms/include
- Timestamp:
- 10/22/07 13:27:09 (5 years ago)
- Location:
- trunk/phpbms/include
- Files:
-
- 3 modified
-
common_functions.php (modified) (1 diff)
-
jstransport.php (modified) (1 diff)
-
session.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/common_functions.php
r324 r349 434 434 if($number<0) 435 435 $currency.="-"; 436 $currency.=CURRENCY_SYM BOL.number_format(abs($number),CURRENCY_ACCURACY,DECIMAL_SYMBOL,THOUSANDS_SEPARATOR);436 $currency.=CURRENCY_SYM.number_format(abs($number),CURRENCY_ACCURACY,DECIMAL_SYMBOL,THOUSANDS_SEPARATOR); 437 437 return $currency; 438 438 } 439 439 440 440 function currencyToNumber($currency){ 441 $number=str_replace(CURRENCY_SYM BOL,"",$currency);441 $number=str_replace(CURRENCY_SYM,"",$currency); 442 442 $number=str_replace(THOUSANDS_SEPARATOR,"",$number); 443 443 $number=str_replace(DECIMAL_SYMBOL,".",$number); -
trunk/phpbms/include/jstransport.php
r345 r349 31 31 32 32 //currency formating 33 ?>CURRENCY_SYM BOL="<?php echo htmlQuotes(CURRENCY_SYMBOL)?>";<?php33 ?>CURRENCY_SYM="<?php echo htmlQuotes(CURRENCY_SYM)?>";<?php 34 34 35 35 ?>CURRENCY_ACCURACY=<?php echo CURRENCY_ACCURACY?>;<?php -
trunk/phpbms/include/session.php
r347 r349 316 316 return false; 317 317 } else { 318 while($therecord=$this->db->fetchArray($queryresult)) 318 while($therecord=$this->db->fetchArray($queryresult)){ 319 320 //old versions used a reserved constant in certain php versions 321 if($therecord["name"] == "currency_symbol") 322 $therecord["name"] = "currency_sym"; 323 319 324 if(!defined(strtoupper($therecord["name"]))) 320 325 define(strtoupper($therecord["name"]),$therecord["value"]); 326 327 }//end while 321 328 322 329 // This following code is for windows boxen, because they lack some server varables as well