Location: PHPKode > projects > OpenVet > openvet/include/header.php
<?php

if (str_replace("\\", "/", __FILE__) == $_SERVER['SCRIPT_FILENAME'])
{
	header("Location: ../index.php");
	exit();
}

echo '<?xml version="1.0" encoding="' . ENCODING . '" standalone="no" ?>' . "\n";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo LANGUAGE; ?>" lang="<?php echo LANGUAGE; ?>" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<meta name="robots" content="noindex,nofollow" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<?php echo '<link rel="home" title="' . _("Clinic Home") . '" href="../home/index.php" />'; ?>
<link rel="shortcut icon" type="image/png" href="../images/miniopc.png" />
<link rel="bookmark icon" type="image/png" href="../images/miniopc.png" />
<?php
  if ( !(isset($_GET['css']) && $_GET['css'] == "off") )
  { 
?>
<style type="text/css">
<!--
<?php require_once("./css/style.php"); ?>
-->
</style>
<?php
  }
?>

<title>
<?php
  echo CLINIC_NAME;
  if (isset($title) && $title != "")
  {
    echo " : " . $title;
  }
?>
</title>

<script type="text/javascript" src="../scripts/pop_window.js" defer="defer"></script>
</head>
<body
<?php
  if (isset($focusFormName) && isset($focusFormField) && ($focusFormName != "") && ($focusFormField != ""))
  {
    echo ' onload="self.focus(); document.' . $focusFormName . "." . $focusFormField . '.focus()"';
  }
?>>

<div id="header">
  <div id="subHeader">
    <?php
      if (defined("CLINIC_URL"))
      {
        echo '<a href="' . CLINIC_URL . '" accesskey="1">';
      }
      echo '<img src="' . CLINIC_IMAGE_URL . '" alt="' . CLINIC_NAME . '" title="' . CLINIC_NAME . '" />';
      if (defined("CLINIC_URL"))
      {
        echo "</a>\n";
      }
    ?>

    <div id="headerInformation">
      <?php
        echo sprintf(_("Date: %s"), date("d-m-Y"));
        echo "<br />\n";

        if (defined("CLINIC_HOURS"))
        {
          echo sprintf(_("Hours: %s"), CLINIC_HOURS);
        }
        echo "<br />\n";

        if (defined("CLINIC_ADDRESS"))
        {
          echo sprintf(_("Address: %s"), CLINIC_ADDRESS);
        }
        echo "<br />\n";

        if (defined("CLINIC_PHONE"))
        {
          echo sprintf(_("Phone: %s"), CLINIC_PHONE);
        }
        echo "<br />\n";

        if (defined("CLINIC_FAX"))
        {
          echo sprintf(_("Fax: %s"), CLINIC_FAX);
        }
      ?>
    </div>
  </div>

  <a class="skipLink" href="#mainZone" accesskey="2"><?php echo _("Skip over navigation"); ?></a>

  <div class="menuBar">
    <ul id="tabs">
    <?php
      echo '<li id="first">';
      echo ($tab == "home")
        ? '<span>' . _("Home") . "</span>"
        : '<a href="index.php?tab=home&page=home_summary" class="tab">' . _("Home") . "</a>";
      echo "</li>\n";

      echo '<li>';
      echo ($tab == "medical")
        ? '<span>' . _("Medical Records") . "</span>"
        : '<a href="index.php?tab=medical&page=medical_summary" class="tab">' . _("Medical Records") . "</a>";
      echo "</li>\n";

      echo '<li>';
      echo ($tab == "admin")
        ? '<span>' . _("Admin") . "</span>"
        : '<a href="index.php?tab=admin&page=admin_summary" class="tab">' . _("Admin") . "</a>";
      echo "</li>\n";
    ?>
    </ul>
  </div>

  <div id="tabline">
	&nbsp;
  </div>
</div>

<div id="sideBar">
  <?php require_once("./navbars/" . $tab . ".php"); ?>
</div>

<div id="mainZone">
Return current item: OpenVet