X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=9bf46c95fc02cf736960d8cc1ae16b38e3313981;hb=5089910120614dfb8b76a0271b43739f90f38b01;hp=f98e6d16bfce0b3d54f8f949d9f2817059f5a01c;hpb=061f4eff6493a6cca071338156225401ae849d72;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index f98e6d16..9bf46c95 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"; @@ -50,8 +46,8 @@ foreach($applications as $app) { $acc = access_string($app->name); - echo "id ? "class='selected' " : ""). - "href='$local_path_to_root/index.php?application=".$app->id + echo "" .$acc[0] . ""; } echo ""; @@ -62,35 +58,35 @@ echo " | |||
" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . " | "; $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; echo ""; - echo " | " . _("Preferences") . " \n"; - echo " " . _("Change password") . " \n"; + echo " | " . _("Preferences") . " \n"; + echo " " . _("Change password") . " \n"; if ($help_base_url != null) { - echo "$himg" . _("Help") . " "; + echo "$himg" . _("Help") . " "; } - echo "$img" . _("Logout") . " "; + echo "$img" . _("Logout") . " "; echo " |
$title | " + echo "
$title | " ."" .(user_hints() ? "" : '') ." | " ."
" . Today() . " | " . Now() . " | \n"; + $Ajax->addUpdate(true, 'hotkeyshelp', $phelp); + echo "".$phelp." | "; + } echo "
$app_title $version - " . _("Theme:") . " " . user_theme() . " | \n"; + echo "$app_title $version - " . _("Theme:") . " " . user_theme() ." - ".show_users_online(). " | \n"; echo "
$power_by | \n"; @@ -145,13 +145,18 @@ foreach ($module->lappfunctions as $appfunction) { - if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + if ($appfunction->label == "") + echo "";
foreach ($module->rappfunctions 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 " | ";
}