X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Faqua%2Frenderer.php;h=1d03c5d9c6b8f453690868f43a449869a318a188;hb=9db26905f4397053c3ec3362a76add78febb8dac;hp=10c3c95641d9e7e09f7aad57d26b94b2d753d01a;hpb=90b3d069d96b99671af51726e2953352738abb75;p=fa-stable.git diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php index 10c3c956..1d03c5d9 100644 --- a/themes/aqua/renderer.php +++ b/themes/aqua/renderer.php @@ -36,7 +36,7 @@ { global $path_to_root, $help_base_url, $db_connections; echo "\n"; - echo "\n"; + echo ""; echo "\n"; - echo "
\n"; echo "\n"; @@ -44,26 +44,31 @@ echo "
\n"; echo "\n"; echo "\n"; - echo "
\n"; + echo "\n"; // tabs 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) { - $acc = access_string($app->name); - echo "" .$acc[0] . ""; + if ($_SESSION["wa_current_user"]->check_application_access($app)) + { + $acc = access_string($app->name); + echo "" .$acc[0] . ""; + } } echo "
"; echo "
"; + // top status bar + $img = ""._(  "; + $himg = ""._(  "; echo ""; echo ""; @@ -94,13 +99,15 @@ } + function menu_footer($no_menu, $is_index) { global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax; include_once($path_to_root . "/includes/date_functions.inc"); - if ($no_menu == false) + echo "
" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "
\n"; // 'main_page' + if ($no_menu == false) // bottom status line { if ($is_index) echo "\n"; @@ -113,10 +120,9 @@ $Ajax->addUpdate(true, 'hotkeyshelp', $phelp); echo ""; } - echo "
".$phelp."
\n"; + echo "
\n"; } - echo "
\n"; + echo " \n"; // 'callout_main' if ($no_menu == false) { echo "\n"; @@ -139,11 +145,23 @@ function display_applications(&$waapp) { global $path_to_root; - + $selected_app = $waapp->get_selected_application(); + if (!$_SESSION["wa_current_user"]->check_application_access($selected_app)) + return; + + if (method_exists($selected_app, 'render_index')) + { + $selected_app->render_index(); + return; + } + + echo ""; foreach ($selected_app->modules as $module) { + if (!$_SESSION["wa_current_user"]->check_module_access($module)) + continue; // image echo ""; // values @@ -163,7 +181,7 @@ { echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; } - else + elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items()) { echo $img.'' .access_string($appfunction->label, true) @@ -183,7 +201,7 @@ { echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; } - else + elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items()) { echo $img.'' .access_string($appfunction->label, true) @@ -195,9 +213,7 @@ echo "
"; } - echo ""; - } + } } - ?> \ No newline at end of file