X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=c57cc92ebccc2d8bd3dd03588ffff9496e26f787;hb=f8778441a6380212a4078623d580c5fc41a37ab8;hp=473cf82f279063963f8a6cfb6991212e02c23ead;hpb=d567a10b7925c8bb97c734e213d6651a979af29d;p=fa-stable.git
diff --git a/themes/default/renderer.php b/themes/default/renderer.php
index 473cf82f..c57cc92e 100644
--- a/themes/default/renderer.php
+++ b/themes/default/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,11 +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"; @@ -51,9 +57,9 @@ foreach($applications as $app) { $acc = access_string($app->name); - echo "id ? "class='selected' " : ""). - "href='$local_path_to_root/index.php?application=".$app->id. - SID ."'$acc[1]>" .$acc[0] . ""; + echo "" .$acc[0] . ""; } 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"; @@ -131,7 +141,6 @@ $selected_app = $waapp->get_selected_application(); - $img = "";
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)) + { + echo $img.menu_link($appfunction->link, $appfunction->label)." \n"; + } + else { - if ($appfunction->label == "") - echo " "; - else - { - $lnk = access_string($appfunction->label); - echo "$img$lnk[0] "; - } + echo $img.'' + .access_string($appfunction->label, true) + ." \n"; } } echo " | ";