X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=d9d286b265809f3ed0f95ea91f4775d79af529b5;hb=c7677cfbba820ec8d7a6f224d51fe64d4850a2a3;hp=2d85a4e2f90551a29e0ebf7b3a90f26fce5ea616;hpb=c90a35443b643a998ed1a06727e1743cbb8ddd89;p=fa-stable.git
diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php
index 2d85a4e2..d9d286b2 100644
--- a/themes/cool/renderer.php
+++ b/themes/cool/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,16 +47,19 @@
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)
@@ -88,8 +107,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";
@@ -98,7 +121,7 @@
{
echo "