X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fcool%2Frenderer.php;h=686479810d02fdde93c650bff84ee79f432edaad;hb=818719f38b8327cdca616d58b13913dbd174d96a;hp=099ddda4b28240664fd9d273fe4cbd244591f0e2;hpb=7d03ec68dff8a33808ef94238010e9d569b2948c;p=fa-stable.git diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 099ddda4..68647981 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/renderer.php @@ -1,31 +1,133 @@ . +***********************************************************************/ + 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, $applications, $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) { - $selected_app = &$waapp->get_selected_application(); + $selected_app = $waapp->get_selected_application(); - foreach ($selected_app->modules as $module) + 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)) + { + $lnk = access_string($appfunction->label); + echo "$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 . " "; + if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access)) + { + $lnk = access_string($appfunction->label); + echo "$lnk[0] "; + } } echo " | ";
}