X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=473cf82f279063963f8a6cfb6991212e02c23ead;hb=6b338e9f3a82343490bb346b747a2ae341dc4882;hp=c60aec746f4cc2294a5d982fa820713a0d595d5f;hpb=d67d5295b9342c011697ce4df325197e29898588;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index c60aec74..473cf82f 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class renderer { function wa_header() @@ -14,7 +23,8 @@ 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,26 +41,35 @@ 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.
+ SID ."'$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 "" . _("Preferences") . " \n"; + echo " " . _("Change password") . " \n"; + if ($help_base_url != null) { - echo " | " . _("Help") . " | "; + echo "$himg" . _("Help") . " "; } - echo "" . _("Logout") . ""; + echo "$img" . _("Logout") . " "; echo " |