X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=ee5b26fda8e5bd0784a6a5299f6a61302000f3d6;hb=HEAD;hp=252dbfb840712807305573dbdbe53e53ab14fa77;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index 252dbfb8..ee5b26fd 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,30 +66,36 @@ } echo ""; echo "
"; - // top status bar - $img = ""._(  "; - $himg = ""._(  "; + $rimg = ""._(  "; + $pimg = ""._(  "; + $limg = ""._(  "; + $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 . "" . _("Preferences") . "   \n"; - echo " " . _("Change password") . "   \n"; - - if ($help_base_url != null) + echo "
" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "$rimg" . _("Dashboard") . "   \n"; + + echo "$pimg" . _("Preferences") . "   \n"; + echo " $limg" . _("Change password") . "   \n"; + + if ($SysPrefs->help_base_url != null) { - echo "$himg" . _("Help") . "   "; + echo "$himg" . _("Help") . "   "; } - echo "$img" . _("Logout") . "   "; + echo "$img" . _("Logout") . "   "; echo "
"; echo "
"; } echo "
"; if ($no_menu) - echo "
"; - elseif ($title && !$is_index) + { // ajax indicator for installer and popups + echo "
" + ."" + ."
"; + } elseif ($title && !$is_index) { echo "
" ."
$title" @@ -100,8 +107,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 +132,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"; @@ -211,6 +220,5 @@ echo ""; } echo ""; - } -} -?> \ No newline at end of file + } + }