Exemple #1
0
 static function pulldown_for_currency($currency)
 {
     if (!Currency::is_valid($currency)) {
         return false;
     }
     $res = array();
     $db = Get::db('songwork');
     $db->query("SELECT code, millicents FROM pricerefs WHERE currency='{$currency}' ORDER BY millicents ASC");
     while ($x = $db->next_record()) {
         $m = new Money($x['millicents'], $currency);
         $res[$x['code']] = $m->show_with_code();
     }
     return $res;
 }