X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=6df2553f8bec5352239ef03c4690a956af193d6f;hb=187fc607b6bd649b8d5937e05d78df7061681954;hp=5ba820da3ea10bf85c6bc2b50bc6d3e67a5bc1bc;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index 5ba820da..6df2553f 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -11,9 +11,19 @@ ***********************************************************************/ 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() { -// add_js_ufile("themes/default/renderer.js"); page(_($help_context = "Main Menu"), false, true); } @@ -25,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"; @@ -51,9 +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 ""; @@ -63,14 +68,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 "$img" . _("Logout") . "   "; + echo "$img" . _("Logout") . "   "; echo "
"; echo "
"; } @@ -136,7 +141,6 @@ $selected_app = $waapp->get_selected_application(); - $img = "  "; foreach ($selected_app->modules as $module) { // image @@ -151,6 +155,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)) @@ -170,6 +175,7 @@ echo ""; foreach ($module->rappfunctions as $appfunction) { + $img = $this->get_icon($appfunction->category); if ($appfunction->label == "") echo " 
"; elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))