X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=e632284fc373235d17bc6c4f20116b10c29b2161;hb=f564511bdad01d163c41aa4ec7cc80cc136fa262;hp=252dbfb840712807305573dbdbe53e53ab14fa77;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index 252dbfb8..e632284f 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -9,18 +9,17 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ - class renderer { 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'; - return "  "; + return "  "; } function wa_header() @@ -35,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 "\n"; echo "
\n"; @@ -46,6 +45,8 @@ echo "\n"; echo "\n"; echo "
\n"; // tabs + + $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; if (!$no_menu) { $applications = $_SESSION['App']->applications; @@ -65,18 +66,16 @@ } echo ""; echo "
"; - // top status bar $img = ""._(  "; $himg = ""._(  "; echo ""; - echo ""; - $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; - echo ""; + echo ""; + 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") . "   "; } @@ -87,8 +86,11 @@ echo "
"; if ($no_menu) - echo "
"; - elseif ($title && !$is_index) + { // ajax indicator for installer and popups + echo "
" + ."" + ."
"; + } elseif ($title && !$is_index) { echo "
" ."
$title" @@ -100,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' @@ -125,15 +127,17 @@ { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - if ($allow_demo_mode==true) + if ($SysPrefs->allow_demo_mode) { echo "\n"; - //echo "\n"; + //echo "\n"; echo "\n"; } echo "

\n"; @@ -213,4 +217,3 @@ echo "
"; } } -?> \ No newline at end of file