1 |
<?php # $Id$ |
2 |
function common_header($root = "") |
3 |
{ |
4 |
$sections = array('Home' => './', 'Hosts' => 'hosts/', 'Users' => 'users.php'); |
5 |
|
6 |
?><div id="header"> |
7 |
<p class="center"><? |
8 |
|
9 |
foreach ($sections as $section => $url) |
10 |
{ |
11 |
if ($section != 'Home') |
12 |
{ |
13 |
?> | <? |
14 |
} |
15 |
?><a href="<?=$root . $url?>"><?=$section?></a><? |
16 |
} |
17 |
|
18 |
?></p> |
19 |
</div><? |
20 |
} |
21 |
|
22 |
function common_footer($id, $root = "") |
23 |
{ |
24 |
?><div id="footer"> |
25 |
<p class="center"> |
26 |
<em><?=$id?></em> |
27 |
<a href="http://validator.w3.org/check?uri=referer"><img src="<?=$root?>valid-xhtml10.png" alt="Valid XHTML 1.0 Strict"/></a> |
28 |
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="<?=$root?>valid-css.png" alt="Valid CSS"/></a> |
29 |
</p> |
30 |
</div><? |
31 |
} |
32 |
?> |