Location: PHPKode > projects > NetOffice > netoffice/themes/ordinarylife/header.php
<?php // $Revision: 1.6 $
/* vim: set expandtab ts=4 sw=4 sts=4: */

/**
 * $Id: header.php,v 1.6 2003/12/03 21:30:33 madbear Exp $
 * 
 * Copyright (c) 2003 by the NetOffice developers
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

echo "$setDoctype
$setCopyright
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$setCharset\">
<title>$setTitle</title>
<meta name=\"robots\" content=\"none\">
<meta name=\"description\" content=\"$setDescription\">
<meta name=\"keywords\" content=\"$setKeywords\">
<script type=\"text/Javascript\">
<!--
var gBrowserOK = true;
var gOSOK = true;
var gCookiesOK = true;
var gFlashOK = true;
// -->
</script>
<script type=\"text/javascript\" src=\"../javascript/general.js\"></script>
<script type=\"text/JavaScript\" src=\"../javascript/overlib_mini.js\"></script>
<script type=\"text/JavaScript\" src=\"../javascript/calendar.js\"></script>
<script type=\"text/JavaScript\" src=\"../javascript/lang/calendar-{$lang}.js\"></script>
<script type=\"text/JavaScript\" src=\"../javascript/calendar-setup.js\"></script>
<link rel=\"stylesheet\" href=\"../themes/" . THEME . "/stylesheet.css\" type=\"text/css\">
<link rel=\"stylesheet\" href=\"../themes/" . THEME . "/calendar.css\" type=\"text/css\">
$headBonus
</head>
<body $bodyCommand>";

echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n\n";

if ($blank != "true" && $version >= "2.0") {
    $tmpquery = "WHERE org.id = '1'";
    $clientHeader = new request();
    $clientHeader->openOrganizations($tmpquery);
} 
if (file_exists("../logos_clients/1." . $clientHeader->org_extension_logo[0]) && $blank != "true" && $version >= "2.0") {
    echo "<p id=\"header\"><img src=\"../logos_clients/1." . $clientHeader->org_extension_logo[0] . "\" border=\"0\" alt=\"" . $clientHeader->org_name[0] . "\"></p>\n\n";
} else {
    echo "<p id=\"header\">" . $setTitle . "</p>\n\n";
} 

$blockHeader = new block();

$blockHeader->openAccount();
if ($blank == "true") {
    $blockHeader->itemAccount("&nbsp;");
} else if ($notLogged == "true") {
    $blockHeader->itemAccount("&nbsp;");
} else {
    $blockHeader->itemAccount($strings["user"] . ": <b>" . $nameSession . "</b>");
    $blockHeader->itemAccount("&nbsp;[");
    $blockHeader->itemAccount($blockHeader->buildLink("../general/login.php?logout=true", $strings["logout"], in));
    $blockHeader->itemAccount("&nbsp;|&nbsp;");
    // hack to prevent users to see admin menu
    if ($profilSession == "0") {
        // $blockHeader->itemAccount($blockHeader->buildLink("../preferences/updateuser.php?",$strings["preferences"],in));
        // $blockHeader->itemAccount("&nbsp;|&nbsp;");
    } 
    $blockHeader->itemAccount($blockHeader->buildLink("../projects_site/home.php?changeProject=true", $strings["go_projects_site"], inblank));
    $blockHeader->itemAccount("]");
} 
$blockHeader->closeAccount();

$blockHeader->openNavigation();
if ($blank == "true") {
    $blockHeader->itemNavigation("&nbsp;");
} else if ($notLogged == "true") {
    $blockHeader->itemNavigation($blockHeader->buildLink("../general/login.php?", $strings["login"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../general/systemrequirements.php?", $strings["requirements"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../general/license.php?", $strings["license"], in));
} else {
    $blockHeader->itemNavigation($blockHeader->buildLink("../general/home.php?", $strings["home"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../projects/listprojects.php?", $strings["projects"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../clients/listclients.php?", $strings["clients"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../reports/createreport.php?", $strings["reports"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../search/createsearch.php?", $strings["search"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../calendar/viewcalendar.php?", $strings["calendar"], in));
    $blockHeader->itemNavigation($blockHeader->buildLink("../bookmarks/listbookmarks.php?view=all", $strings["bookmarks"], in));
    // $blockHeader->itemNavigation($blockHeader->buildLink("../administration/admin.php?",$strings["admin"],in));
    // hack to prevent users to see admin menu
    if ($profilSession != "0") {
        $blockHeader->itemNavigation($blockHeader->buildLink("../preferences/updateuser.php?", $strings["preferences"], in));
    } else {
        $blockHeader->itemNavigation($blockHeader->buildLink("../preferences/updateuser.php?", $strings["preferences"], in));
        $blockHeader->itemNavigation($blockHeader->buildLink("../administration/admin.php?", $strings["admin"], in));
    } 
    // end of  hack
} 
$blockHeader->closeNavigation();

?>
Return current item: NetOffice