X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=aaee7125ccff889b85c497fae961ef5b99e534f3;hb=20c9b5846824f0489c6791d74a6c78e2bfb0b2fc;hp=fe53066313bfd8a3a736f437f1c5b6272e708afa;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index fe530663..aaee7125 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -13,7 +13,8 @@ { function wa_header() { - page(_("Main Menu"), false, true); +// add_js_ufile("themes/default/renderer.js"); + page(_($help_context = "Main Menu"), false, true); } function wa_footer() @@ -23,11 +24,7 @@ function menu_header($title, $no_menu, $is_index) { - global $path_to_root, $applications, $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'"; + global $path_to_root, $help_base_url, $db_connections; echo "
\n"; @@ -40,16 +37,20 @@ 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 " |
$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"; @@ -123,9 +128,11 @@ function display_applications(&$waapp) { + global $path_to_root; $selected_app = $waapp->get_selected_application(); + $img = " "; foreach ($selected_app->modules as $module) { // image @@ -140,10 +147,17 @@ 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)) + { + echo $img.menu_link($appfunction->link, $appfunction->label)." \n"; + } + else { - $lnk = access_string($appfunction->label); - echo "$lnk[0] "; + echo $img.'' + .access_string($appfunction->label, true) + ." \n"; } } echo " | ";