-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.php
27 lines (26 loc) · 1.04 KB
/
navigation.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
<?php
session_start();
function cla($pgname){
$page = $_SERVER["PHP_SELF"];
if($page == $pgname){
echo "class=\"active\"";
}else{
echo "";
}
}
?>
<h1>REPORT MAKER</h1>
<nav>
<ul>
<li <?php cla("/grace_repo/home.php")?>><a href="home.php">Home</a></li>
<li <?php cla("/grace_repo/gra.php")?>><a href="gra.php">Create marksheet</a></li>
<li <?php cla("/grace_repo/makerepo.php")?>><a href="makerepo.php">Make report</a></li>
<li <?php cla("/grace_repo/registerPupil.php"); cla( "/grace_repo/register_teacher.php");?>><a href="#">Register</a>
<ul>
<li><a href="registerPupil.php">Student</a></li>
<li><a href="regester_teacher.php">Staff</a></li>
</ul>
</li>
</ul>
</nav>
<h4><?php echo "Tr. ".$_SESSION['trLname']?></h4>