Changed so reference no in QUOTE/SO/INV/CRE/PO is printed instead of trans_no
[fa-stable.git] / includes / ui / ui_lists.inc
index f23d736d35779a69956e0477e2e13d9fad46f160..a68454cf8b267c7c1a0a430a0e9e81ae49da44dd 100644 (file)
@@ -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 "</td>\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 "<tr>\n";
        echo "<td>$label</td><td>\n";
-
-       $items = array();
-
        array_selector($name, $selected_id, $tabs);
-
        echo "</td></tr>\n";
 }