X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Faqua%2Frenderer.php;h=2734ad08f644bbb5efa908346c47f95f91648042;hb=4e4ce8577f8582967995919860c66aa94d633afd;hp=96bbd30cf8d076e70b4bc3ca1d54f44e2a42963b;hpb=3f5c10470eca4b5863c310627104bd0af8c1c18a;p=fa-stable.git diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php index 96bbd30c..2734ad08 100644 --- a/themes/aqua/renderer.php +++ b/themes/aqua/renderer.php @@ -11,9 +11,20 @@ ***********************************************************************/ class renderer { + function get_icon($category) + { + global $path_to_root, $show_menu_category_icons; +; + if ($show_menu_category_icons) + $img = $category == '' ? 'right.gif' : $category.'.png'; + else + $img = 'right.gif'; + return "  "; + } + function wa_header() { - page(_("Main Menu"), false, true); + page(_($help_context = "Main Menu"), false, true); } function wa_footer() @@ -24,10 +35,6 @@ function menu_header($title, $no_menu, $is_index) { global $path_to_root, $help_base_url, $db_connections; - // you can owerride the table styles from config.php here, if you want. - //global $table_style, $table_style2; - //$table_style = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'"; - //$table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'"; echo "\n"; echo "\n"; echo ""; $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; echo ""; - echo "
\n"; @@ -50,8 +57,8 @@ foreach($applications as $app) { $acc = access_string($app->name); - echo "id ? "class='selected' " : ""). - "href='$local_path_to_root/index.php?application=".$app->id + echo "" .$acc[0] . ""; } echo ""; @@ -62,14 +69,14 @@ echo "
" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "" . _("Preferences") . "   \n"; - echo " " . _("Change password") . "   \n"; + echo " " . _("Preferences") . "   \n"; + echo " " . _("Change password") . "   \n"; if ($help_base_url != null) { - echo "$himg" . _("Help") . "   "; + echo "$himg" . _("Help") . "   "; } - echo "$img" . _("Logout") . "   "; + echo "$img" . _("Logout") . "   "; echo "
"; } echo ""; @@ -114,7 +121,7 @@ { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -135,7 +142,6 @@ $selected_app = $waapp->get_selected_application(); - $img = "  "; foreach ($selected_app->modules as $module) { // image @@ -150,6 +156,7 @@ foreach ($module->lappfunctions as $appfunction) { + $img = $this->get_icon($appfunction->category); if ($appfunction->label == "") echo " 
"; elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) @@ -169,6 +176,7 @@ echo "