X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=a68454cf8b267c7c1a0a430a0e9e81ae49da44dd;hb=ca45fa23d2d83705e11007acafd52528718ae5aa;hp=f23d736d35779a69956e0477e2e13d9fad46f160;hpb=dd09f71fabc65963aa0abcab5bca3b2b6d6355ae;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index f23d736d..a68454cf 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1823,7 +1823,8 @@ function systypes_list_cells($label, $name, $value=null, $submit_on_change=false $str = array_selector($name, $value, $systypes_array, array( 'select_submit'=> $submit_on_change, - 'async' => false + 'async' => false, + 'default' => 0 ) ); echo "\n"; @@ -2126,16 +2127,23 @@ function security_roles_list_row($label, $name, $selected_id=null, $new_item=fal return $str; } -function tab_list_row($label, $name, $selected_id=null) +function tab_list_row($label, $name, $selected_id=null, $all = false) { - global $tabs; + global $installed_extensions; + + $tabs = array(); + foreach ($_SESSION['App']->applications as $app) { + $tabs[$app->id] = access_string($app->name, true); + } + if ($all) { // add also not active ext. modules + foreach ($installed_extensions as $ext) { + if ($ext['type'] == 'module' && !$ext['active']) + $tabs[$ext['tab']] = access_string($ext['title'], true); + } + } echo "\n"; echo "$label\n"; - - $items = array(); - array_selector($name, $selected_id, $tabs); - echo "\n"; }