X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=62a34df9b9c5612c2e4e62bbc5b3088b8defa243;hb=2e8e792ac86ac0242c38236fa14bf7a005b921a7;hp=be6004c6d5a67c9ab27b9363a1b88e8fde1476cb;hpb=d478ad00de3c071c4586fbffa2c6bee43888ed73;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index be6004c6..62a34df9 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1681,7 +1681,13 @@ function payment_person_types_list($name, $selected_id=null, $submit_on_change=f { global $payment_person_types; - return array_selector($name, $selected_id, $payment_person_types, + $items = array(); + foreach ($payment_person_types as $key=>$type) + { + if ($key != PT_WORKORDER) + $items[$key] = $type; + } + return array_selector($name, $selected_id, $items, array( 'select_submit'=> $submit_on_change ) ); } @@ -2120,5 +2126,23 @@ function tab_list_row($label, $name, $selected_id=null) echo "\n"; } +//--------------------------------------------------------------------------------------------- +// List of sets of active extensions +// +function extset_list($name, $value=null, $submit_on_change=false) +{ + global $db_connections; + + $items = array(); + foreach ($db_connections as $comp) + $items[] = sprintf(_("Activated for '%s'"), $comp['name']); + array_selector( $name, $value, $items, + array( + 'spec_option'=> _("Installed on system"), + 'spec_id' => -1, + 'select_submit'=> $submit_on_change, + 'async' => true + )); +} ?> \ No newline at end of file