forked from dilanWijerathne/phpmyreservation
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
42 lines (28 loc) · 610 Bytes
/
header.php
File metadata and controls
42 lines (28 loc) · 610 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php include_once('main.php'); ?>
<div id="header_inner_div"><div id="header_inner_left_div">
<a href="#about">About</a>
<?php
if(isset($_SESSION['logged_in']))
{
echo ' | <a href="#help">Help</a>';
}
?>
</div><div id="header_inner_center_div">
<?php
if(isset($_SESSION['logged_in']))
{
echo '<b>Week ' . global_week_number . ' - ' . global_day_name . ' ' . date('jS F Y') . '</b>';
}
?>
</div><div id="header_inner_right_div">
<?php
if(isset($_SESSION['logged_in']))
{
echo '<a href="#cp">Control panel</a> | <a href="#logout">Log out</a>';
}
else
{
echo 'Not logged in';
}
?>
</div></div>