HRDIODB
[ class tree: HRDIODB ] [ index: HRDIODB ] [ all elements ]

Source for file header.php

Documentation is available at header.php

  1. <?php
  2. /**
  3.  * Common header.
  4.  * Common HRDI Observational Database header file.
  5.  * @package HRDIODB
  6.  */
  7.  
  8. /**
  9.  * This file is part of HRDIODB.
  10.  *
  11.  * HRDIODB is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 2 of the License, or
  14.  * (at your option) any later version.
  15.  *
  16.  * HRDIODB is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with HRDIODB; if not, write to the Free Software
  23.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  24.  */
  25. ?>
  26. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  27.  "DTD/xhtml1-transitional.dtd">
  28. <html>
  29.   <head>
  30.     <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
  31.     <link rel="stylesheet" media="all" href="hrdi.css" type="text/css" />
  32.     <link rel="stylesheet" media="print" href="print.css" type="text/css" />
  33.     <script type="text/javascript" src="domTT/domLib.js"></script>
  34.     <script type="text/javascript" src="domTT/domTT.js"></script>
  35.     <script type="text/javascript" src="hrdi.js"></script>
  36.     <script type="text/javascript">
  37.       var domTT_classPrefix = 'domTThrdi';
  38.     </script>
  39. <script language="javascript">
  40. <!--
  41. function WinOpen(url,width,height){
  42.   window.open("http://hrdi.engin.umich.edu/"+url, "Date Converter", "toolbar=no, menubar=no, status=yes, width="+width+", height="+height+", resizable=yes, alwaysRaised=yes, screenx=0, screeny=0");
  43. }
  44. function WinClose(){
  45.   window.close();
  46. }
  47. //-->
  48. </script>
  49. <title>HRDI Observational Database</title>
  50.   </head>
  51. <body>
  52.   <table class="nav_bar">
  53.     <tr>
  54.       <td> HRDI Observational Database</td>
  55.       <td align="right">
  56.         <a href="week.php?uars_day=473">Browse</a> |
  57.         <a href="search.php">Search</a> | 
  58.         <a href="" onclick="WinOpen('/nonuarsday/front-end/PHP/dateconverter.php',360,230 )">Date Converter</a> | 
  59.         <a href="http://hrdi.engin.umich.edu/">Home</a> |
  60. <a href="http://hrdi.engin.umich.edu/hrdiodb/help.html">Help</a>
  61.       </td>
  62.     </tr>
  63.   </table>
  64.   <table class="user_bar">
  65.     <tr>
  66.       <td width="40%"></td>
  67.       <td width="20%" align="center"><span class="page_title"><?php print @$page_title?></span></td>
  68.       <td width="40%" align="right">
  69.       <?php
  70.         // If we're authenticated, print out the appropriate links
  71.                 if ($user->authenticated()) {
  72.           $user_data $session->get_var("user_data");
  73.  
  74.           print "Logged in as {$user_data['Firstname']} {$user_data['Lastname']} |
  75.                 <a href=\"user.php?mode=update\">Account Information</a> |
  76.                 <a href=\"logout.php\">Logout</a>";
  77.         else {
  78.           print "<a href=\"login.php\">Login</a>";
  79.         }
  80.  
  81.         /* In order to be able to "magically" jump back to the page we were
  82.            on prior to clicking "Login" OR being redirected to the login page,
  83.            we need to save the page that we were on. This should be done for
  84.            every page which doesn't have to do with user account things. If
  85.            this is done incorrectly, it will result in a loop of redirects,
  86.            usually causing a browser error message. */
  87.         if ((basename($_SERVER['PHP_SELF']!= "login.php"&&
  88.             (basename($_SERVER['PHP_SELF']!= "user.php"&&
  89.             (basename($_SERVER['PHP_SELF']!= "passreset.php")) 
  90.           // Set the page we are on for later redirection
  91.                     $session->set_var("page"$_SERVER['REQUEST_URI']);
  92.         }
  93.       ?>
  94.       </td>
  95.     </tr>
  96.   </table>
  97.   <br/>

Documentation generated on Tue, 23 Jan 2007 22:57:48 -0500 by phpDocumentor 1.3.0RC6