ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSWeb/data/include/common.php
Revision: 841
Committed: 2006-07-12T18:15:38-07:00 (18 years, 11 months ago) by douglas
File size: 705 byte(s)
Log Message:
Id!

File Contents

# Content
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 ?>

Properties

Name Value
svn:keywords Id