X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=themes%2Fdefault%2Frenderer.php;h=aaee7125ccff889b85c497fae961ef5b99e534f3;hb=70c2dbcf463a5d500d15b8510c7f45e527a7fa53;hp=ad3ccc578da603f1b65a6051602628d593d70498;hpb=7d03ec68dff8a33808ef94238010e9d569b2948c;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index ad3ccc57..aaee7125 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -1,30 +1,139 @@ . +***********************************************************************/ + class renderer { - function wa_header() + 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() + 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; + echo "
\n";
+
+ echo "
\n"; + } } - function display_applications(&$waapp) + function display_applications(&$waapp) { + global $path_to_root; $selected_app = $waapp->get_selected_application(); - foreach ($selected_app->modules as $module) + + $img = " ![]() | |||||||||||||||||
";
- foreach ($module->lappfunctions as $appfunction)
+ foreach ($module->lappfunctions 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 " | ";
- //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 ($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 " | ";
}