X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=3aae252197bbf4a98084e2b824936fed981a2c33;hb=b2d2db8dd932f3b97e116784463da996f603787d;hp=c29729326aba00e1039f69c72d38b497b0be878f;hpb=2e7f3c8aa39857f625378d8c43bbd3c54993cd45;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index c2972932..3aae2521 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 @@ -45,12 +46,8 @@ $opts = array( // default options 'max' => 50, 'cells' => false, // combo displayed as 2