-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
52 lines (52 loc) · 2.38 KB
/
header.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
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">Aminship</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li <?php if(basename($_SERVER['PHP_SELF']) == 'index.php'){echo 'class="active"';} ?>>
<a href="./"> Home </a>
</li>
<li <?php if(basename($_SERVER['PHP_SELF']) == 'about.php'){echo 'class="active"';} ?>>
<a href="./about.php"> About </a>
</li>
<li <?php if((basename($_SERVER['PHP_SELF']) == 'tarea.php') || (basename($_SERVER['PHP_SELF']) == 'area.php') || (basename($_SERVER['PHP_SELF']) == 'sarea.php')){echo 'class="dropdown active"';}else{echo 'class="dropdown"';} ?>>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Area <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li onclick="giveinfo()" <?php if(basename($_SERVER['PHP_SELF']) == 'tarea.php'){echo 'class="active"';} ?>>
<a href="./tarea.php"> for triangle shape land </a>
</li>
<li onclick="giveinfo()" <?php if(basename($_SERVER['PHP_SELF']) == 'area.php'){echo 'class="active"';} ?>>
<a href="./area.php"> for rectengle shape land </a>
</li>
<li onclick="giveinfo()" <?php if(basename($_SERVER['PHP_SELF']) == 'sarea.php'){echo 'class="active"';} ?>>
<a href="./sarea.php"> for circle shape land </a>
</li>
</ul>
</li>
<li onclick="giveinfo()" <?php if(basename($_SERVER['PHP_SELF']) == 'side.php'){echo 'class="active"';} ?>><a href="./side.php"> Side </a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="./auth/register.php">
<span class="glyphicon glyphicon-user"></span> Sign up
</a>
</li>
<li>
<a href="./auth/log.php">
<span class="glyphicon glyphicon-user"></span> Log in
</a>
</li>
</ul>
</div>
</div>
</nav>