Location: PHPKode > projects > Nfg > nfg/code/header.php
<?php
/*
header.php
the UI could always use some fixing!

*/
if(!defined('INC'))
	die(); 
echo '<?xml version="1.0"?>'; ?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>nfg</title>
<link rel="stylesheet" type="text/css" href="styles/style.css" />
</head>
<body>
<table id="m1">
<tr><td>
<?php
if(!USERID){
  include_once("login.php");
}
else{
	echo '<a href="?m=index" title="Public Index" accesskey="1">Main</a></td>';
	if($_GET['m']!='home')
		echo '<td><a href="index.php?m=home" accesskey="5">Home</a></td>';
	//if($_GET['m']!='files')
	//	echo '<td>Files</td>';
	//if($_GET['m']!='mail')
	//	echo '<td>Mail</td>';
	if($_GET['m']!='contacts')
		echo '<td><a href="index.php?m=contacts" accesskey="5">Contacts</a></td>';
	if($_GET['m']!='calendar')
		echo '<td><a href="index.php?m=calendar" accesskey="6">Calendar</a></td>';
	if($_GET['m']!='options')
		echo '<td><a href="index.php?m=options" accesskey="6">Options</a></td>';
	echo '<td><a href="index.php?m=logout">Logout</a></td><td>';
	echo $user->getHour(),":",$user->getMinute();
	//echo gmdate("n.d g:i",time() );
	//echo gmdate("G:i",time() );
}
?></td>
</tr>
</table>
<table id="m2">
<tr><td><b><?php echo $titlebar ? $titlebar : ucfirst($_GET['m']); ?></b></td>
<td align="right"><form method="GET" action="index.php?m=search"><input type="hidden" name="m" value="search"><input type="text" name="search" class="textbox" /><input type="submit" value="Search" class="button"  /></form></td>
</table>
Return current item: Nfg