3 function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="")
5 // titles and screen header
6 global $db_connections, $path_to_root;
8 $local_path_to_root = $path_to_root;
15 echo "<html dir='" . $_SESSION['language']->dir . "' >";
16 echo "<head><title>$title</title>";
17 $encoding = $_SESSION['language']->encoding;
18 echo "<meta http-equiv='Content-type' content='text/html'; charset='$encoding'>";
19 echo "<link href='$local_path_to_root/themes/$theme/default.css' rel='stylesheet' type='text/css' /> \n";
20 echo "<link href='$local_path_to_root/" . $_SESSION['language']->get_stylesheet() . "' rel='stylesheet' type='text/css' /> \n";
27 echo "<body onload=\"$onload\">";
28 echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
30 echo "<td colspan='2' rowspan='2'>\n";
32 echo "<table class='main_page' border='0' cellpadding='0' cellspacing='0'>\n";
35 echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
37 echo "<td class='quick_menu'>\n";
40 echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
41 echo "<div class=tabs>";
42 echo "<a href='$local_path_to_root/index.php?application=orders". SID ."'>" . _("Sales") . "</a>";
43 echo "<a href='$local_path_to_root/index.php?application=AP". SID ."'>" . _("Purchases") . "</a>";
44 echo "<a href='$local_path_to_root/index.php?application=stock". SID ."'>" . _("Items and Inventory") . "</a>";
45 echo "<a href='$local_path_to_root/index.php?application=manuf". SID ."'>" . _("Manufacturing") . "</a>";
46 echo "<a href='$local_path_to_root/index.php?application=proj". SID ."'>" . _("Dimensions") . "</a>";
47 echo "<a href='$local_path_to_root/index.php?application=GL". SID ."'>" . _("Banking and General Ledger") . "</a>";
48 echo "<a href='$local_path_to_root/index.php?application=system". SID ."'>" . _("Setup") . "</a>";
51 echo "</td></tr></table>";
53 echo "<table class=logoutBar>";
54 echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
55 echo "<td class=logoutBarRight><a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a>";
56 echo "</td></tr></table>";
59 echo "</td></tr></table>";
61 if ($title && !$no_menu && !$is_index)
63 echo "<center><table width='100%'><tr><td width='100%' class='titletext'>$title</td></tr></table></center>";