pquery($sql, array()); $temprow = $adb->fetch_array($result); $cnt=1; $currency = Array(); do { $currency_element = Array(); $currency_element['name'] = $temprow["currency_name"]; $currency_element['code'] = $temprow["currency_code"]; $currency_element['symbol'] = $temprow["currency_symbol"]; $currency_element['crate'] = $temprow["conversion_rate"]; $currency_element['status'] = $temprow["currency_status"]; if($temprow["defaultid"] != '-11') { $currency_element['name'] = ''.getTranslatedCurrencyString($temprow["currency_name"]).''; $currency_element['tool']= ''.$app_strings['LBL_EDIT_BUTTON_LABEL'].' | '.$app_strings['LBL_DELETE_BUTTON_LABEL'].''; } else $currency_element['tool']= ''; $currency[] = $currency_element; $cnt++; }while($temprow = $adb->fetch_array($result)); $smarty->assign("PARENTTAB",$parenttab); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH",$image_path); $smarty->assign("MOD",$mod_strings); $smarty->assign("CURRENCY_LIST",$currency); if($_REQUEST['ajax'] !='') $smarty->display("CurrencyListViewEntries.tpl"); else $smarty->display("CurrencyListView.tpl"); ?>