X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=themes%2Fcool%2Frenderer.php;h=e5ec015b11ab6c9686da21232e6bbc02a5f86593;hb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;hp=0d30270000db461e2da42533868da763a6591415;hpb=c6f1621249a53faada39629a9ba958a6a5837262;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 0d302700..e5ec015b 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() @@ -24,10 +24,6 @@ function menu_header($title, $no_menu, $is_index) { 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'"; - //$table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'"; echo "\n"; echo "\n"; echo "
\n"; @@ -67,16 +63,18 @@ 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
" ."" @@ -87,7 +85,8 @@ 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) @@ -97,8 +96,12 @@ else echo "
$title" .(user_hints() ? "" : '') ."
\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"; @@ -107,7 +110,7 @@ { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -142,13 +145,18 @@ 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 echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; } + else + { + echo $img.'' + .access_string($appfunction->label, true) + ."
\n"; + } } echo ""; if (sizeof($module->rappfunctions) > 0) @@ -156,13 +164,18 @@ echo ""; }