. ***********************************************************************/ class renderer { /* Uncomment this member if you want to use the category icons defined in /applications/applications.php function get_icon($category) { global $path_to_root; $img = $category == '' ? 'right.gif' : $category.'.png'; return "  "; } */ function wa_header() { // add_js_ufile("themes/default/renderer.js"); page(_($help_context = "Main Menu"), false, true); } function wa_footer() { end_page(false, true); } function menu_header($title, $no_menu, $is_index) { global $path_to_root, $help_base_url, $db_connections; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; if (!$no_menu) { $applications = $_SESSION['App']->applications; $local_path_to_root = $path_to_root; $img = ""._(  "; $himg = ""._(  "; $sel_app = $_SESSION['sel_app']; echo "
"; echo "
"; foreach($applications as $app) { $acc = access_string($app->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 "$himg" . _("Help") . "   "; } echo "$img" . _("Logout") . "   "; echo "
"; echo "
"; } echo "
"; if ($no_menu) echo "
"; elseif ($title && !$is_index) { echo "
" ."" ."
$title" .(user_hints() ? "" : '') ."
"; } } function menu_footer($no_menu, $is_index) { global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax; 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'])) { $phelp = implode('; ', $Pagehelp); echo "\n"; $Ajax->addUpdate(true, 'hotkeyshelp', $phelp); echo ""; } echo "
" . Today() . " | " . Now() . "".$phelp."
\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) { global $path_to_root; $selected_app = $waapp->get_selected_application(); $img = "  "; foreach ($selected_app->modules as $module) { // image echo ""; // values echo ""; echo ""; echo ""; echo ""; if (sizeof($module->rappfunctions) > 0) { echo ""; } echo "
"; } echo ""; } } ?>