X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Faqua%2Frenderer.php;h=cd7075c5021ab3d3ac09022b5e209dcf6061da3b;hb=bd8f517d30d1edd3261e26e582ddd9e11c555616;hp=ec70782b42adaa6ccd5d34bd8b9d2d328d12f354;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git
diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php
index ec70782b..cd7075c5 100644
--- a/themes/aqua/renderer.php
+++ b/themes/aqua/renderer.php
@@ -13,9 +13,9 @@
{
function get_icon($category)
{
- global $path_to_root, $show_menu_category_icons;
+ global $path_to_root, $SysPrefs;
- if ($show_menu_category_icons)
+ if ($SysPrefs->show_menu_category_icons)
$img = $category == '' ? 'right.gif' : $category.'.png';
else
$img = 'right.gif';
@@ -34,7 +34,7 @@
function menu_header($title, $no_menu, $is_index)
{
- global $path_to_root, $help_base_url, $db_connections;
+ global $path_to_root, $SysPrefs, $db_connections;
echo "
\n";
echo "";
echo "\n";
@@ -71,13 +71,13 @@
$himg = " ";
echo "";
- echo "" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . " | ";
+ echo " " . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . " | ";
$indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
echo "![]($indicator) | ";
echo " " . _("Preferences") . " \n";
echo " " . _("Change password") . " \n";
- if ($help_base_url != null)
+ if ($SysPrefs->help_base_url != null)
{
echo "$himg" . _("Help") . " ";
}
@@ -102,8 +102,8 @@
function menu_footer($no_menu, $is_index)
{
- global $version, $allow_demo_mode, $app_title, $power_url,
- $power_by, $path_to_root, $Pagehelp, $Ajax;
+ global $version, $path_to_root, $Pagehelp, $Ajax, $SysPrefs;
+
include_once($path_to_root . "/includes/date_functions.inc");
echo " | \n"; // 'main_page'
@@ -127,15 +127,16 @@
{
echo "
\n";
|