X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=d9d286b265809f3ed0f95ea91f4775d79af529b5;hb=c7677cfbba820ec8d7a6f224d51fe64d4850a2a3;hp=0d30270000db461e2da42533868da763a6591415;hpb=c6f1621249a53faada39629a9ba958a6a5837262;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 0d302700..d9d286b2 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/renderer.php @@ -11,9 +11,20 @@ ***********************************************************************/ class renderer { + function get_icon($category) + { + global $path_to_root, $show_menu_category_icons; +; + if ($show_menu_category_icons) + $img = $category == '' ? 'right.gif' : $category.'.png'; + else + $img = 'right.gif'; + return " "; + } + function wa_header() { - page(_("Main Menu"), false, true); + page(_($help_context = "Main Menu"), false, true); } function wa_footer() @@ -24,10 +35,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 +57,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,21 +69,23 @@ 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() ? "" : '') ." | " @@ -87,7 +96,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 +107,12 @@ else echo "
" . 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"; @@ -127,7 +141,6 @@ global $path_to_root; $selected_app = $waapp->get_selected_application(); - $img = " "; foreach ($selected_app->modules as $module) { // image @@ -142,13 +155,19 @@ foreach ($module->lappfunctions as $appfunction) { - if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + $img = $this->get_icon($appfunction->category); + if ($appfunction->label == "") + echo "";
foreach ($module->rappfunctions as $appfunction)
{
- if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
+ $img = $this->get_icon($appfunction->category);
+ 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 " | ";
}