MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
include($path_to_root . "/includes/db_pager.inc");
include_once($path_to_root . "/includes/session.inc");
include($path_to_root . "/includes/db_pager.inc");
include_once($path_to_root . "/includes/session.inc");
-page(_("Exchange Rates"), false, false, "", $js);
+page(_($help_context = "Exchange Rates"), false, false, "", $js);
- if (!check_num('BuyRate', 0))
- {
- display_error( _("The exchange rate must be numeric and greater than zero."));
- set_focus('BuyRate');
- return false;
- }
- if ($_POST['BuyRate'] <= 0)
+ if (input_num('BuyRate') <= 0)
$Ajax->activate('BuyRate');
}
small_amount_row(_("Exchange Rate:"), 'BuyRate', null, '',
$Ajax->activate('BuyRate');
}
small_amount_row(_("Exchange Rate:"), 'BuyRate', null, '',
if (!isset($_POST['curr_abrev']))
$_POST['curr_abrev'] = get_global_curr_code();
echo "<center>";
echo _("Select a currency :") . " ";
if (!isset($_POST['curr_abrev']))
$_POST['curr_abrev'] = get_global_curr_code();
echo "<center>";
echo _("Select a currency :") . " ";
$sql = "SELECT date_, rate_buy, id FROM "
.TB_PREF."exchange_rates "
$sql = "SELECT date_, rate_buy, id FROM "
.TB_PREF."exchange_rates "