X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=86968c9fbe644a6c13336ae6dc7a082fb5902af2;hb=d58850256e3c216df162c35524beebe10e9f7b25;hp=51b0e956a4fe93f4dd687e125dfcc61cdee2e546;hpb=425fc1ef0f159173f03532054863691d30f5fa17;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 51b0e956..86968c9f 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -5,16 +5,16 @@ include_once($path_to_root . "/includes/reserved.inc"); include_once($path_to_root . "/includes/types.inc"); include_once($path_to_root . "/includes/current_user.inc"); -$_search_button = " "; +$_search_button = " "; -$_select_button = " "; +$_select_button = " "; $all_items = reserved_words::get_all(); //---------------------------------------------------------------------------- -// Universal combo generator +// Universal sql combo generator // $sql must return selector values and selector texts in columns 0 & 1 // Options are merged with defaults. @@ -30,6 +30,7 @@ $opts = array( // default options 'spec_option'=>false, // option text or false 'spec_id' => 0, // option id // submit on select parameters + 'default' => '', // default value when $_POST is not set 'select_submit' => false, //submit on select: true/false 'async' => true, // select update via ajax (true) vs _page_body reload // search box parameters @@ -46,11 +47,12 @@ $opts = array( // default options 'cells' => false, // combo displayed as 2