X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=0881a204796ad0902f08855865da99deadda6f10;hb=7561718ee5113232ce917f63085d272884b0929c;hp=cb3ac0cabba15aa6cdeb1a12c76766ad725544f6;hpb=53d942f2a0d20cce5e9c409c6485867ce0869e4d;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index cb3ac0ca..0881a204 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/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 ""; + 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 . "
" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "" . _("Preferences") . "   \n"; echo " " . _("Change password") . "   \n"; - if ($help_base_url != null) + if ($SysPrefs->help_base_url != null) { echo "$himg" . _("Help") . "   "; } @@ -101,8 +101,7 @@ 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, $SysPrefs, $path_to_root, $Pagehelp, $Ajax; include_once($path_to_root . "/includes/date_functions.inc"); echo "
\n"; // 'main_page' @@ -126,17 +125,13 @@ { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - if ($allow_demo_mode==true) - { - echo "\n"; - //echo "\n"; - echo "\n"; - } echo "

\n"; } } @@ -156,7 +151,7 @@ } echo ""; - foreach ($elected_app->modules as $module) + foreach ($selected_app->modules as $module) { if (!$_SESSION["wa_current_user"]->check_module_access($module)) continue; @@ -215,4 +210,3 @@ } } -?> \ No newline at end of file