X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Faqua%2Frenderer.php;h=a5036185273ef75e67cbf5b425208b82c331a89f;hb=5d3fcb9c57e586c20651594edf91a2dccb08df00;hp=5c3f531063732719d33f1cc5c7fea51ba78aec0d;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git
diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php
index 5c3f5310..a5036185 100644
--- a/themes/aqua/renderer.php
+++ b/themes/aqua/renderer.php
@@ -11,6 +11,17 @@
***********************************************************************/
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(_($help_context = "Main Menu"), false, true);
@@ -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";
@@ -49,10 +56,13 @@
echo " ";
foreach($applications as $app)
{
- $acc = access_string($app->name);
- echo "id ? "class='selected' " : "").
- "href='$local_path_to_root/index.php?application=".$app->id
- ."'$acc[1]>" .$acc[0] . "";
+ if ($_SESSION["wa_current_user"]->check_application_access($app))
+ {
+ $acc = access_string($app->name);
+ echo "" .$acc[0] . "";
+ }
}
echo " ";
@@ -62,14 +72,14 @@
echo " | |||
" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . " | "; $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; echo "" . _("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 " |