File:  [Paefchen] / FreeBSD / tinderbox / webui / templates / paefchen / header.inc.tpl
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Sat Jan 5 20:01:16 2008 UTC (16 years, 10 months ago) by as
CVS tags: TB_RELEASE_2_4_3, TB_RELEASE_2_4_2
config is new from 3.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.1.2.1 2008/01/05 20:01:16 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">
		<div class="left">
			<ul>
<? if (is_array($topmenu)) {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=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>
	<a id="top"></a>
	<div id="content">