X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Faqua%2Frenderer.php;h=c671e8e6ef93208161e3de1f072bf53aa60cdb14;hb=d567a10b7925c8bb97c734e213d6651a979af29d;hp=ad4cd21e3cc0e43b5886d1173d22cff74c2b176c;hpb=231b2de9031a927156a58998fdb5601447732b38;p=fa-stable.git diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php index ad4cd21e..c671e8e6 100644 --- a/themes/aqua/renderer.php +++ b/themes/aqua/renderer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class renderer { function wa_header() @@ -14,7 +23,7 @@ function menu_header($title, $no_menu, $is_index) { - global $path_to_root, $applications, $help_base_url, $db_connections; + 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'"; @@ -31,15 +40,19 @@ echo "\n"; if (!$no_menu) { + $applications = $_SESSION['App']->applications; $local_path_to_root = $path_to_root; + $img = ""._(  "; + $himg = ""._(  "; $sel_app = $_SESSION['sel_app']; echo "
"; echo "
"; - foreach($applications as $app => $name) + foreach($applications as $app) { - echo "" .$name . ""; + $acc = access_string($app->name); + echo "id ? "class='selected' " : ""). + "href='$local_path_to_root/index.php?application=".$app->id. + SID ."'$acc[1]>" .$acc[0] . ""; } echo "
"; @@ -47,14 +60,16 @@ echo ""; echo ""; + $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; + echo ""; echo "
" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "" . _("Preferences") . "   \n"; echo " " . _("Change password") . "   \n"; if ($help_base_url != null) { - echo "" . _("Help") . "   "; + echo "$himg" . _("Help") . "   "; } - echo "" . _("Logout") . "   "; + echo "$img" . _("Logout") . "   "; echo "
"; } echo "
"; @@ -112,9 +127,11 @@ function display_applications(&$waapp) { - + global $path_to_root; + $selected_app = $waapp->get_selected_application(); + $img = "  "; foreach ($selected_app->modules as $module) { // image @@ -129,8 +146,16 @@ foreach ($module->lappfunctions as $appfunction) { - if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) - echo " " . $appfunction->label . "
"; + if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + { + if ($appfunction->label == "") + echo " 
"; + else + { + $lnk = access_string($appfunction->label); + echo "$img$lnk[0]
"; + } + } } echo ""; if (sizeof($module->rappfunctions) > 0) @@ -138,8 +163,16 @@ echo ""; foreach ($module->rappfunctions as $appfunction) { - if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) - echo " " . $appfunction->label . "
"; + if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + { + if ($appfunction->label == "") + echo " 
"; + else + { + $lnk = access_string($appfunction->label); + echo "$img$lnk[0]
"; + } + } } echo ""; }