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 "\n"; if (!$no_menu) { + $applications = $_SESSION['App']->applications; $local_path_to_root = $path_to_root; + $img = ""._(  "; + $himg = ""._(  "; $sel_app = $_SESSION['sel_app']; echo "
"; echo "
"; - foreach($applications as $app => $name) + foreach($applications as $app) { - $acc = access_string($name); - echo "" .$acc[0] . ""; + $acc = access_string($app->name); + echo "id ? "class='selected' " : ""). + "href='$local_path_to_root/index.php?application=".$app->id + ."'$acc[1]>" .$acc[0] . ""; } echo "
"; @@ -55,30 +67,30 @@ if ($help_base_url != null) { - echo "" . _("Help") . "   "; + echo "$himg" . _("Help") . "   "; } - echo "" . _("Logout") . "   "; + echo "$img" . _("Logout") . "   "; echo "
"; } echo ""; - - if ($title && !$no_menu && !$is_index) + if ($no_menu) + echo "
"; + elseif ($title && !$is_index) { - echo "
" + echo "
$title
" ."" ."
$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 "\n"; + $Ajax->addUpdate(true, 'hotkeyshelp', $phelp); + echo ""; + } echo "
" . Today() . " | " . Now() . "".$phelp."
\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 ""; }