X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=34f1f3556c7585f54515001f31071e25f5d818ad;hb=588ed54d44a168d4355838f0d3493bcb639ec03c;hp=84161fe1b494c3d2e286fc7a42822a7094989379;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 84161fe1..34f1f355 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/renderer.php @@ -1,31 +1,137 @@ . +***********************************************************************/ + class renderer { - function wa_header() + function wa_header() { page(_("Main Menu"), false, true); } - function wa_footer() + function wa_footer() { end_page(false, true); } - function menu_header(&$menu) + 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";
+
+ echo "
\n"; + } } - function display_applications(&$waapp) + function display_applications(&$waapp) { + global $path_to_root; + $selected_app = $waapp->get_selected_application(); - $selected_app = &$waapp->get_selected_application(); - - foreach ($selected_app->modules as $module) + $img = " "; + foreach ($selected_app->modules as $module) { // image echo " | |||||||||||||
";
- foreach ($module->lappfunctions as $appfunction)
+ foreach ($module->lappfunctions as $appfunction)
{
- if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- echo " " . $appfunction->label . " "; + if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + { + if ($appfunction->label == "") + echo " "; + else + { + $lnk = access_string($appfunction->label); + echo "$img$lnk[0] "; + } + } } echo " | ";
- //echo "\nOA_current_user name = " . $_SESSION["wa_current_user"]->username;
- if (sizeof($module->rappfunctions) > 0)
+ if (sizeof($module->rappfunctions) > 0)
{
echo "";
- foreach ($module->rappfunctions as $appfunction)
+ foreach ($module->rappfunctions as $appfunction)
{
- if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- echo " " . $appfunction->label . " "; - else - echo " "; + if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + { + if ($appfunction->label == "") + echo " "; + else + { + $lnk = access_string($appfunction->label); + echo "$img$lnk[0] "; + } + } } echo " | ";
}