- $sql = "SELECT date_, rate_buy, id FROM "
- .TB_PREF."exchange_rates "
- ."WHERE curr_code='$curr_code'
- ORDER BY date_ DESC";
-
- $cols = array(
- _("Date to Use From") => 'date',
- _("Exchange Rate") => 'rate',
- array('insert'=>true, 'fun'=>'edit_link'),
- array('insert'=>true, 'fun'=>'del_link'),
- );
- $table =& new_db_pager('orders_tbl', $sql, $cols);
- if (list_updated('curr_abrev')) {
- $table->set_sql($sql);
- $table->set_columns($cols);
- }
- $table->width = "40%";
- display_db_pager($table);