X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=cd959edc06815167bd1fe0f08aa285ba078225c7;hb=ebc600101ceab69c06eac4b1bd4d1782af45de05;hp=34f1f3556c7585f54515001f31071e25f5d818ad;hpb=d48f1d6f613ffd8e7ab4fbc8840e0a8aab1ad3b6;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 34f1f355..cd959edc 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/renderer.php @@ -13,7 +13,7 @@ { function wa_header() { - page(_("Main Menu"), false, true); + page(_($help_context = "Main Menu"), false, true); } function wa_footer() @@ -51,8 +51,8 @@ { $acc = access_string($app->name); echo "id ? "class='selected' " : ""). - "href='$local_path_to_root/index.php?application=".$app->id. - SID ."'$acc[1]>" .$acc[0] . ""; + "href='$local_path_to_root/index.php?application=".$app->id + ."'$acc[1]>" .$acc[0] . ""; } echo ""; @@ -67,30 +67,30 @@ if ($help_base_url != null) { - echo "$himg" . _("Help") . "   "; + echo "$himg" . _("Help") . "   "; } 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) @@ -100,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"; @@ -110,7 +114,7 @@ { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -145,15 +149,17 @@ foreach ($module->lappfunctions as $appfunction) { - if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + if ($appfunction->label == "") + echo " 
"; + elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) { - if ($appfunction->label == "") - echo " 
"; - else - { - $lnk = access_string($appfunction->label); - echo "$img$lnk[0]
"; - } + echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; + } + else + { + echo $img.'' + .access_string($appfunction->label, true) + ."
\n"; } } echo ""; @@ -162,15 +168,17 @@ echo "";