function formCurrency($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf, $arrLang) { $pCurrency = new paloSantoCurrency($pDB); $arrFormCurrency = createFieldForm($arrLang); $oForm = new paloForm($smarty, $arrFormCurrency); //CARGAR CURRENCY GUARDADO $curr = loadCurrentCurrency($pDB); if ($curr == false) { $curr = "\$"; } $smarty->assign("SAVE", $arrLang["Save"]); $smarty->assign("REQUIRED_FIELD", $arrLang["Required field"]); $smarty->assign("icon", "modules/{$module_name}/images/system_preferences_currency.png"); $_POST['currency'] = $curr; $htmlForm = $oForm->fetchForm("{$local_templates_dir}/form.tpl", $arrLang["Currency"], $_POST); $contenidoModulo = "<form method='POST' style='margin-bottom:0;' action='?menu={$module_name}'>" . $htmlForm . "</form>"; return $contenidoModulo; }
function formCurrency($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { global $arrPermission; $arrFormCurrency = createFieldForm(); $oForm = new paloForm($smarty, $arrFormCurrency); //CARGAR CURRENCY GUARDADO $curr = loadCurrentCurrency($pDB); if ($curr == false) { $curr = "\$"; } $smarty->assign("SAVE", _tr("Save")); $smarty->assign("REQUIRED_FIELD", _tr("Required field")); $smarty->assign("icon", "web/apps/{$module_name}/images/system_preferences_currency.png"); $_POST['currency'] = $curr; if (in_array('edit', $arrPermission)) { $smarty->assign('EDIT_CURR', true); } $htmlForm = $oForm->fetchForm("{$local_templates_dir}/form.tpl", _tr("Currency"), $_POST); $contenidoModulo = "<form method='POST' style='margin-bottom:0;' action='?menu={$module_name}'>" . $htmlForm . "</form>"; return $contenidoModulo; }