X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fui%2Fui_lists.inc;h=67d95b97219f84953d69e2b0b9f0cd36a45e3c92;hb=5ceece3a1a031ad1dbfbcb11d3aabfca97a56f6b;hp=454932cd32898ed7fed7963574aa622482a74856;hpb=781557dd6312e10be5e693ee5a63b7a309dc0591;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 454932cd..67d95b97 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