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
|
<script type="text/javascript">
function full_navbar() { if ($(window).width() < 1285 && $(window).width() > 960) { $("#top_navbar").css("width", "1285px"); $("body").css("width", "1285px"); //$("body").css("overflow", "scroll"); } else { $("#top_navbar").css("width", "100%"); $("body").css("width", "100%"); } } full_navbar();
$(window).resize(function () { full_navbar(); }); </script>
<div class="navbar navbar-inverse navbar-fixed-top" id="top_navbar"> <div class="navbar-inner"> <div class="container-fluid"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="brand" href="<?= Util::link(__DIR__ . '/../main.php') ?>">Teacher System</a>
<div class="nav-collapse collapse"> <ul class="nav"> <li><a href="<?= Util::link(__DIR__ . '/../job/index.php') ?>?today=1">Today Jobs</a></li>
<?php $startdate = date("Y-m-d"); $enddate = Date('Y-m-d', strtotime($startdate . "+1 month")); ?>
<?php if (Util::isAdmin()): ?> <!--<li><a href="<?= Util::link(__DIR__ . '/../job/index.php') ?>?show_all=1">Jobs</a></li>--> <li> <a href="<?= Util::link(__DIR__ . '/../job/index.php') ?>?start_date=<?= $startdate ?>&end_date=<?= $enddate ?>">Jobs</a> </li> <?php endif; ?>
<?php if (Util::isAdmin()): ?> <li><a href="<?= Util::link(__DIR__ . '/../customer/index.php') ?>">Customers</a></li> <?php endif; ?> <?php if (Util::isAdmin()): ?> <li><a href="<?= Util::link(__DIR__ . '/../user/index.php') ?>">Teachers</a></li> <?php endif; ?> </ul> <ul class="nav pull-right"> <li class="divider-vertical"></li> <li><a href="<?= Util::link(__DIR__ . '/../logout.php') ?>">Logout</a></li> </ul> <p class="navbar-text pull-right"> Logged in as <a id="change_password_link" href="<?= Util::link(__DIR__ . '/../user/password.php') ?>" class="navbar-link" title="Change password" data-toggle="tooltip" data-placement="bottom"> <?= $_SESSION['webadmin']['username'] ?> </a> <script type="text/javascript"> $(function () { $('#change_password_link').tooltip(); }); </script> </p> </div> <!--/.nav-collapse --> </div> </div> </div>
|