include_once($path_to_root . "/includes/current_user.inc");
$_search_button = "<input %s type='submit' class='combo_submit' style='border:0;background:url($path_to_root/themes/"
- ."%s/images/locate.png) no-repeat;%s' fallback='1' name='%s' value=' ' title='"._("Set filter")."'> ";
+ ."%s/images/locate.png) no-repeat;%s' aspect='fallback' name='%s' value=' ' title='"._("Set filter")."'> ";
$_select_button = "<input %s type='submit' class='combo_select' style='border:0;background:url($path_to_root/themes/"
- ."%s/images/button_ok.png) no-repeat;%s' fallback='1' name='%s' value=' ' title='"._("Select")."'> ";
+ ."%s/images/button_ok.png) no-repeat;%s' aspect='fallback' name='%s' value=' ' title='"._("Select")."'> ";
$all_items = reserved_words::get_all();
'box_hint' => null // box/selectors hints; null = std see below
);
// ------ merge options with defaults ----------
- $opts = array_merge($opts, $options);
+ if($options != null)
+ $opts = array_merge($opts, $options);
if (!is_array($opts['where'])) $opts['where'] = array($opts['where']);
$search_box = $opts['search_box']===true ? '_'.$name.'_edit' : $opts['search_box'];
'disabled' => false
);
// ------ merge options with defaults ----------
- $opts = array_merge($opts, $options);
+ if($options != null)
+ $opts = array_merge($opts, $options);
$select_submit = $opts['select_submit']===true ? '_'.$name.'_update' : $opts['select_submit'];
$spec_id = $opts['spec_id'];
$spec_option = $opts['spec_option'];
) );
}
-function currencies_list_cells($label, $name, $selected_id=null)
+function currencies_list_cells($label, $name, $selected_id=null, $submit_on_change=false)
{
if ($label != null)
echo "<td>$label</td>\n";
echo "<td>";
- $str = currencies_list($name, $selected_id);
+ $str = currencies_list($name, $selected_id, $submit_on_change);
echo "</td>\n";
return $str;
}
-function currencies_list_row($label, $name, $selected_id=null)
+function currencies_list_row($label, $name, $selected_id=null, $submit_on_change=false)
{
echo "<tr>\n";
- $str = currencies_list_cells($label, $name, $selected_id);
+ $str = currencies_list_cells($label, $name, $selected_id, $submit_on_change);
echo "</tr>\n";
return $str;
}
$items = array();
foreach ($types as $type)
{
- if (payment_person_types::has_items($type['id']))
- {
$items[$type['id']] = $type['name'];
- }
}
return array_selector($name, $selected_id, $items );