File:  [Paefchen] / FreeBSD / tinderbox / webui / templates / paefchen / header.inc.tpl
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Jan 7 03:53:59 2008 UTC (16 years, 10 months ago) by as
Branches: MAIN
CVS tags: HEAD
- Valid XHTML 1.0 Strict
- Valid CSS 2.0

<?
if (preg_match('@<!-- (\w+):(\w+);(\w+):(\d*);(\w+):(\d*) //-->@', $display_login, $match)) {
	list(,, $user_name,, $user_id,, $is_www_admin) = $match;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/header.inc.tpl,v 1.3 2008/01/07 03:53:59 as Exp $ //-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<title><?=$tinderbox_name?><? if (! empty($header_title)) print " - ".$header_title; ?></title>
	<link href="<?=$templatesuri?>/tinderstyle.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
	<div id="header">
		<div class="left">
			<h1><a href="index.php"><?=$tinderbox_title?></a><? if (! empty($header_title)) print " - ".$header_title; ?></h1>
		</div>
		<div class="right">
		<? if (! empty($user_name)) { ?>
			<h1>Welcome <?=$user_name?>!</h1>
		<? } ?>
		</div>
	</div>
	<div id="topmenu">
		<a id="top"></a>
		<div class="left">
<? if (is_array($topmenu) && count($topmenu) > 0) { ?>
			<ul>
	<? foreach ($topmenu as $menu_title => $menu_url) { ?>
				<li><a href="<?=$menu_url?>"><?=$menu_title?></a></li>
	<? } ?>
			</ul>
<? } ?>
		</div>
		<div class="right">
<? if (! empty($user_name)) { ?>
			<form method="post" action="index.php">
			<ul>
				<li><a href="index.php?action=list_tinderd_queue">Queue</a></li>
	<? if ($is_www_admin == 1) { ?>
				<li><a href="index.php?action=config">Config</a></li>
				<li><a href="index.php?action=display_add_user">Add User</a></li>
	<? } ?>
				<li><a href="index.php?action=display_modify_user&amp;modify_user_id=<?=$user_id?>">Modify Me</a></li>
				<li><input type="submit" name="do_logout" value="Logout" /></li>
			</ul>	
			</form>
<? } ?>
		</div>
	</div>
	<div id="content">