X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=e5ec015b11ab6c9686da21232e6bbc02a5f86593;hb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;hp=bf51fb558380ddd40698e45c2a50eafb96b9d5ae;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index bf51fb55..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() @@ -23,11 +23,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"; echo "\n"; echo "
\n"; @@ -40,16 +36,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 "
"; @@ -64,30 +63,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) @@ -97,8 +96,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"; @@ -107,7 +110,7 @@ { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -124,9 +127,10 @@ function display_applications(&$waapp) { - + global $path_to_root; $selected_app = $waapp->get_selected_application(); + $img = "  "; foreach ($selected_app->modules as $module) { // image @@ -141,10 +145,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)) { - $lnk = access_string($appfunction->label); - echo "$lnk[0]
"; + echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; + } + else + { + echo $img.'' + .access_string($appfunction->label, true) + ."
\n"; } } echo ""; @@ -153,10 +164,17 @@ echo "";