X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=7835f33905bbef4d64bd11b4bb774cae71af5e1f;hb=cc36638b65572da4867b7622723d6ed0135525b8;hp=9563cf08d5a49334868004e69d674b51226f1a2f;hpb=1f7b3df842ee67a16cd889b36d09b332c571301a;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 9563cf08..7835f339 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -52,6 +52,7 @@ $opts = array( // default options 'search_submit' => true, //search submit button: true/false 'size' => 8, // size and max of box tag 'max' => 50, + 'height' => false, // number of lines in select box 'cells' => false, // combo displayed as 2 cells 'search' => array(), // sql field names to search 'format' => null, // format functions for regular options @@ -207,7 +208,9 @@ $opts = array( // default options $txt = $found; $Ajax->addUpdate($name, $search_box, $txt ? $txt : ''); } - $selector = "\n"; $Ajax->addUpdate($name, "_{$name}_sel", $selector); @@ -274,6 +277,7 @@ $opts = array( // default options 'async' => true, // select update via ajax (true) vs _page_body reload 'default' => '', // default value when $_POST is not set // search box parameters + 'height' => false, // number of lines in select box 'sel_hint' => null, 'disabled' => false ); @@ -328,7 +332,9 @@ $opts = array( // default options } $_POST[$name] = $selected_id; - $selector = "\n"; $Ajax->addUpdate($name, "_{$name}_sel", $selector); @@ -2126,5 +2132,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