X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=5ba820da3ea10bf85c6bc2b50bc6d3e67a5bc1bc;hb=ecdf106d54bd51a3608422eb626d54ace2de81c4;hp=924c82e2208aeeb154ab9b5a58455adf9e8b6b3f;hpb=0d469b61b73c9fff2c428eb042d346587f62aac9;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index 924c82e2..5ba820da 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -1,10 +1,20 @@ . +***********************************************************************/ class renderer { 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() @@ -14,7 +24,7 @@ function menu_header($title, $no_menu, $is_index) { - global $path_to_root, $applications, $help_base_url, $db_connections; + 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'"; @@ -31,44 +41,57 @@ echo "
";
echo " ";
- foreach($applications as $app => $name)
+ foreach($applications as $app)
{
- echo "" .$name . "";
+ $acc = access_string($app->name);
+ echo "id ?
+ ("class='selected'") : "")
+ ." href='$local_path_to_root/index.php?application=".$app->id
+ ."'$acc[1]>" .$acc[0] . "";
}
echo " ";
-
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"; + if ($help_base_url != null) { - echo " | " . _("Help") . " | "; + echo "$himg" . _("Help") . " "; } - echo "" . _("Logout") . ""; + echo "$img" . _("Logout") . " "; + echo " |
"; echo " |
$title |
$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"; + echo "$power_by | \n"; echo "";
foreach ($module->rappfunctions as $appfunction)
{
- if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- echo " " . $appfunction->label . " "; + if ($appfunction->label == "") + echo " "; + elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + { + echo $img.menu_link($appfunction->link, $appfunction->label)." \n"; + } + else + { + echo $img.'' + .access_string($appfunction->label, true) + ." \n"; + } } echo " | ";
}