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"; + echo "\n"; + echo "
\n"; + + echo "\n"; + echo "\n"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "
\n"; + if (!$no_menu) + { + $local_path_to_root = $path_to_root; + $sel_app = $_SESSION['sel_app']; + echo "
"; + echo "
"; + foreach($applications as $app => $name) + { + $acc = access_string($name); + echo "" .$acc[0] . ""; + } + echo "
"; + + echo "
"; + + echo ""; + echo ""; + $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif"; + echo ""; + echo "
" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "" . _("Preferences") . "   \n"; + echo " " . _("Change password") . "   \n"; + + if ($help_base_url != null) + { + echo "" . _("Help") . "   "; + } + echo "" . _("Logout") . "   "; + echo "
"; + } + echo "
"; + + if ($title && !$no_menu && !$is_index) + { + echo "
" + ."" + ."
$title" + .(user_hints() ? "" : '') + ."
"; + } + + if (!$is_index) + echo "
"; + } - function menu_footer(&$menu) + function menu_footer($no_menu, $is_index) { + global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root; + include_once($path_to_root . "/includes/date_functions.inc"); + + if ($no_menu == false) + { + if ($is_index) + echo "\n"; + else + echo "
\n"; + echo ""; + if (isset($_SESSION['wa_current_user'])) + echo "\n"; + echo "
" . Today() . " | " . Now() . "
\n"; + } + echo "
\n"; + if ($no_menu == false) + { + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + if ($allow_demo_mode==true) + { + echo "\n"; + //echo "\n"; + 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 ""; @@ -37,20 +139,25 @@ echo ""; 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 ""; }