[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 12 require_once ('include/database/PearDatabase.php'); 13 global $adb; 14 $db = new PearDatabase(); 15 $currency_name = $_REQUEST['currency_name']; 16 $currency_code= $_REQUEST['currency_code']; 17 $currency_symbol= $_REQUEST['currency_symbol']; 18 $conversion_rate= $_REQUEST['conversion_rate']; 19 $currency_status= $_REQUEST['currency_status']; 20 21 if(isset($_REQUEST['record']) && $_REQUEST['record']!='') 22 { 23 $sql = "update vtiger_currency_info set currency_name ='".$currency_name."', currency_code ='".$currency_code."', currency_symbol ='".$currency_symbol."', conversion_rate ='".$conversion_rate."',currency_status='".$currency_status."' where id =".$_REQUEST['record']; 24 } 25 else 26 { 27 $sql = "insert into vtiger_currency_info values(".$db->getUniqueID("vtiger_currency_info").",'".$currency_name."','".$currency_code."','".$currency_symbol."','".$conversion_rate."','".$currency_status."','0')"; 28 } 29 $adb->query($sql); 30 $loc = "Location: index.php?module=Settings&action=CurrencyListView&parenttab=".$_REQUEST['parenttab']; 31 header($loc); 32 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |