[Vtigercrm-commits] [vtiger-commits] r6637 - /vtigercrm/trunk/modules/Settings/CurrencyEditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 02:51:30 EDT 2006


Author: saraj
Date: Mon May 29 00:51:26 2006
New Revision: 6637

Log:
changes made to disable status of currency

Modified:
    vtigercrm/trunk/modules/Settings/CurrencyEditView.php

Modified: vtigercrm/trunk/modules/Settings/CurrencyEditView.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/CurrencyEditView.php (original)
+++ vtigercrm/trunk/modules/Settings/CurrencyEditView.php Mon May 29 00:51:26 2006
@@ -21,6 +21,17 @@
         $sql = "select * from currency_info where id=".$tempid;
         $result = $adb->query($sql);
         $currencyResult = $adb->fetch_array($result);
+	$sql1 = "select * from users where currency_id=".$tempid;
+	$result1 = $adb->query($sql1);
+	$noofrows = $adb->num_rows($result1);
+	if($noofrows != 0)
+	{
+		$smarty->assign("STATUS_DISABLE","disabled");
+	}
+	else
+	{
+		$smarty->assign("STATUS_DISABLE","");
+	}
 	$smarty->assign("CURRENCY_NAME",$currencyResult['currency_name']);
 	$smarty->assign("CURRENCY_CODE",$currencyResult['currency_code']);
 	$smarty->assign("CURRENCY_SYMBOL",$currencyResult['currency_symbol']);





More information about the vtigercrm-commits mailing list