X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=03a56f2448ddc4127245b8872201a598d3fee088;hb=2ae4762cbcd0479ecdf8f13317a7d76da08f114f;hp=fe53066313bfd8a3a736f437f1c5b6272e708afa;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git
diff --git a/themes/default/renderer.php b/themes/default/renderer.php
index fe530663..03a56f24 100644
--- a/themes/default/renderer.php
+++ b/themes/default/renderer.php
@@ -13,7 +13,8 @@
{
function wa_header()
{
- page(_("Main Menu"), false, true);
+// add_js_ufile("themes/default/renderer.js");
+ page(_($help_context = "Main Menu"), false, true);
}
function wa_footer()
@@ -23,11 +24,7 @@
function menu_header($title, $no_menu, $is_index)
{
- global $path_to_root, $applications, $help_base_url, $db_connections;
- // you can owerride the table styles from config.php here, if you want.
- //global $table_style, $table_style2;
- //$table_style = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
- //$table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
+ global $path_to_root, $help_base_url, $db_connections;
echo "
\n";
echo "\n";
echo "\n";
@@ -40,16 +37,19 @@
echo " |
" . $db_connections[$_SESSION["wa_current_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";
+ echo " | " . _("Preferences") . " \n";
+ echo " " . _("Change password") . " \n";
if ($help_base_url != null)
{
- echo "" . _("Help") . " ";
+ echo "$himg" . _("Help") . " ";
}
- echo "" . _("Logout") . " ";
+ echo "$img" . _("Logout") . " ";
+ echo " |
";
echo " |
";
}
echo "";
- if ($title && !$no_menu && !$is_index)
+ if ($no_menu)
+ echo "
";
+ elseif ($title && !$is_index)
{
- echo "$title | "
+ echo "$title | "
.""
.(user_hints() ? "" : '')
." | "
."
";
}
-
- if (!$is_index)
- echo "
";
-
}
function menu_footer($no_menu, $is_index)
{
- global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root;
+ 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)
@@ -96,8 +96,12 @@
else
echo "\n";
echo "";
- if (isset($_SESSION['wa_current_user']))
+ if (isset($_SESSION['wa_current_user'])) {
+ $phelp = implode('; ', $Pagehelp);
echo "" . Today() . " | " . Now() . " | \n";
+ $Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
+ echo "".$phelp." | ";
+ }
echo "
\n";
}
echo "
\n";
@@ -106,7 +110,7 @@
{
echo "