X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Faqua%2Frenderer.php;h=9e4f2c0d5f7d8d4eb86b39562e75104e25c552bc;hb=cf7be1f00c6abe59755286e0c3108d9d3c0356da;hp=2d85a4e2f90551a29e0ebf7b3a90f26fce5ea616;hpb=c90a35443b643a998ed1a06727e1743cbb8ddd89;p=fa-stable.git
diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php
index 2d85a4e2..9e4f2c0d 100644
--- a/themes/aqua/renderer.php
+++ b/themes/aqua/renderer.php
@@ -1,5 +1,14 @@
.
+***********************************************************************/
class renderer
{
function wa_header()
@@ -14,7 +23,7 @@
function menu_header($title, $no_menu, $is_index)
{
- global $path_to_root, $applications, $help_base_url, $db_connections;
+ global $path_to_root, $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'";
@@ -31,16 +40,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 +100,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";
@@ -115,9 +131,11 @@
function display_applications(&$waapp)
{
-
+ global $path_to_root;
+
$selected_app = $waapp->get_selected_application();
+ $img = "
";
foreach ($selected_app->modules as $module)
{
// image
@@ -134,8 +152,10 @@
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "$lnk[0]
";
+ if ($appfunction->label == "")
+ echo "
";
+ else
+ echo $img.menu_link($appfunction->link, $appfunction->label)."
\n";
}
}
echo "";
@@ -146,9 +166,11 @@
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "$lnk[0]
";
- }
+ if ($appfunction->label == "")
+ echo "
";
+ else
+ echo $img.menu_link($appfunction->link, $appfunction->label)."
\n";
+ }
}
echo "";
}