[Vtigercrm-commits] [vtiger-commits] r5230 - /vtigercrm/trunk/modules/Settings/CurrencyListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 21 09:35:34 EDT 2006


Author: saraj
Date: Fri Apr 21 07:35:30 2006
New Revision: 5230

Log:
parenttab has been parsed and confirmation for currency delete made

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

Modified: vtigercrm/trunk/modules/Settings/CurrencyListView.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/CurrencyListView.php (original)
+++ vtigercrm/trunk/modules/Settings/CurrencyListView.php Fri Apr 21 07:35:30 2006
@@ -16,7 +16,7 @@
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
 $smarty=new vtigerCRM_Smarty;
-
+   $parenttab = $_REQUEST['parenttab'];
    $sql = "select * from currency_info";
    $result = $adb->query($sql);
    $temprow = $adb->fetch_array($result);
@@ -32,14 +32,15 @@
 	$currency_element['status'] = $temprow["currency_status"];
 	if($temprow["defaultid"] != '-11')
 	{
-		$currency_element['name'] = '<a href=index.php?module=Settings&action=CurrencyDetailView&record='.$temprow["id"].'>'.$temprow["currency_name"].'</a>';
-		$currency_element['tool']= '<a href=index.php?module=Settings&action=CurrencyDetailView&record='.$temprow["id"].'><img src="'.$image_path.'editfield.gif" border="0" alt="Edit" title="Edit"/></a>&nbsp;|&nbsp;<a href=index.php?module=Settings&action=CurrencyDelete&record='.$temprow["id"].' onClick=DeleteCurrency("'.$temprow["id"].'");><img src="'.$image_path.'currencydelete.gif" border="0"  alt="Delete" title="Delete"/></a>';
+		$currency_element['name'] = '<a href=index.php?module=Settings&action=CurrencyEditView&parenttab='.$parenttab.'&record='.$temprow["id"].'>'.$temprow["currency_name"].'</a>';
+		$currency_element['tool']= '<a href=index.php?module=Settings&action=CurrencyEditView&parenttab='.$parenttab.'&record='.$temprow["id"].'><img src="'.$image_path.'editfield.gif" border="0" alt="Edit" title="Edit"/></a>&nbsp;|&nbsp;<a href=index.php?module=Settings&action=CurrencyDelete&parenttab='.$parenttab.'&record='.$temprow["id"].' onClick="return confirm(\'Are you sure?\');"><img src="'.$image_path.'currencydelete.gif" border="0"  alt="Delete" title="Delete"/></a>';
 	}
 	else
 		$currency_element['tool']= '';
  	$currency[] = $currency_element; 
 	$cnt++;
 }while($temprow = $adb->fetch_array($result));
+$smarty->assign("PARENTTAB",$parenttab);
 $smarty->assign("IMAGE_PATH",$image_path);
 $smarty->assign("MOD",$mod_strings);
 $smarty->assign("CURRENCY_LIST",$currency);





More information about the vtigercrm-commits mailing list