X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=c57cc92ebccc2d8bd3dd03588ffff9496e26f787;hb=f8778441a6380212a4078623d580c5fc41a37ab8;hp=51cbc8e441bfe26bc1eb9c720ebd1006135358ae;hpb=c09be0dad6b05131e240349a375af7a4b7bf3444;p=fa-stable.git
diff --git a/themes/default/renderer.php b/themes/default/renderer.php
index 51cbc8e4..c57cc92e 100644
--- a/themes/default/renderer.php
+++ b/themes/default/renderer.php
@@ -1,10 +1,30 @@
.
+***********************************************************************/
class renderer
{
+ function get_icon($category)
+ {
+ global $path_to_root, $show_menu_category_icons;
+
+ if ($show_menu_category_icons)
+ $img = $category == '' ? 'right.gif' : $category.'.png';
+ else
+ $img = 'right.gif';
+ return "
";
+ }
+
function wa_header()
{
- page(_("Main Menu"), false, true);
+ page(_($help_context = "Main Menu"), false, true);
}
function wa_footer()
@@ -14,11 +34,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";
@@ -31,51 +47,56 @@
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)
@@ -85,8 +106,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";
@@ -95,7 +120,7 @@
{
echo "