-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.php
executable file
·93 lines (79 loc) · 2.24 KB
/
home.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
session_start();
$main_page="Home";
include_once("dbconnect.php");
?>
<!DOCTYPE html>
<html><!-- InstanceBegin template="/Templates/template.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Nancin Christ Standard School
<?php
if(isset($main_page))
{
echo" : $main_page";
}
if(isset($sub_page))
{
echo" : ($sub_page)";
}
if(isset($current_users))
{
echo" : ($current_user)";
}
?>
</title>
<!-- InstanceEndEditable -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div id="header">
<h1>Payroll</h1>
</div>
<div id="content">
<?php
if($main_page!="Login" && isset($_SESSION['current_user']))
{
?>
<p align="right" style="border-bottom:solid 1px #ccc;"><b>User:</b> <?php echo $_SESSION['current_user'];?></p>
<?php
}
?>
<h1 align="center"> <?php echo $main_page; ?> </h1>
<?php
if(isset($_SESSION['message']))
{
?>
<p class="<?php echo $_SESSION['messagetype']; ?>"><?php echo $_SESSION['message']; ?></p>
<?php
unset($_SESSION['message'],$_SESSION['messagetype']);
}
?>
<!-- InstanceBeginEditable name="mycontent" -->
<table align="center" cellpadding="10" cellspacing="1" border="0">
<?php
//.if(isset($_SESSION['user_category']) && $_SESSION['user_category']=='user_category')
{
?>
<tr bgcolor="#efefef">
<td style="font-size:18px; font-weight:bold;">»</td>
<td><a href="manage_users.php">Manage Users</a></td>
</tr>
<tr bgcolor="#cdcdcd">
<td style="font-size:18px; font-weight:bold;">»</td>
<td><a href="manage_staff.php">Manage Staffs</a></td>
</tr>
<tr bgcolor="#efefef">
<td style="font-size:18px; font-weight:bold;">»</td>
<td><a href="logout_process.php">Log Out</a></td>
</tr>
<?php
}
?>
</table>
<!-- InstanceEndEditable -->
</div>
</body>
<!-- InstanceEnd --></html>