X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=f98e6d16bfce0b3d54f8f949d9f2817059f5a01c;hb=a933257068d73c1b21f5b80dd5f5a29bc620d2d2;hp=2d85a4e2f90551a29e0ebf7b3a90f26fce5ea616;hpb=c90a35443b643a998ed1a06727e1743cbb8ddd89;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 2d85a4e2..f98e6d16 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/renderer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class renderer { function wa_header() @@ -14,7 +23,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,16 +40,19 @@ 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 " ";
@@ -55,9 +67,9 @@
if ($help_base_url != null)
{
- echo "" . _("Help") . " ";
+ echo "$himg" . _("Help") . " ";
}
- echo "" . _("Logout") . " ";
+ echo "$img" . _("Logout") . " ";
echo " |