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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
<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') ?>">One Solution Support</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; ?>
<li> <a href="<?= Util::link(__DIR__ . '/../call_in_job/index.php') ?>?start_date=<?= $startdate ?>&end_date=<?= $enddate ?>">Call In Jobs</a> </li>
<?php if (Util::isAdmin() || $_SESSION['webadmin']['role'] == 2): ?> <li><a href="<?= Util::link(__DIR__ . '/../task/follow_up_list.php') ?>">Follow up Tasks</a> </li> <?php endif; ?> <?php if (!Util::isGuest()): ?>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Project <b class="caret"></b></a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> <?php if (Util::isAdmin()) { ?> <li><a href="<?= Util::link(__DIR__ . '/../project/master_index.php') ?>">Master Project</a></li> <?php } ?> <li> <a href="<?= Util::link(__DIR__ . '/../project/index.php') ?>?show_all=1">Project</a> </li> </ul> </li>
<?php endif; ?> <?php if (Util::isAdmin()): ?> <li><a href="<?= Util::link(__DIR__ . '/../contract/index.php') ?>">Contract</a></li> <?php endif; ?>
<?php if (!Util::isGuest()): ?> <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') */?>">Staffs</a></li>--> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> <li><a href="<?= Util::link(__DIR__ . '/../report/ClientServiceReport.php') ?>">Client Service Report</a></li> <li> <a href="<?= Util::link(__DIR__ . '/../report/MonthlyUsageReport_Contract_Job_Type.php') ?>">Monthly Usage Report</a></li>
<li><a href="<?=Util::link(__DIR__ . '/../report/MonthlyUsageReport_Job_Type.php')?>">Monthly Usage Report (Job Type)</a></li>
<li><a href="<?=Util::link(__DIR__ . '/../report/PackageReport_Contract_Job_Type.php')?>">Contract Package Report</a></li>
<!--<li><a href="<? //=Util::link(__DIR__ . '/../report/MonthlyUsageReport_Contract_Job_Type.php')?>">Monthly Usage Report (Contract + Job Type)</a></li>--> <li><a href="<?= Util::link(__DIR__ . '/../report/late_report_jobs.php') ?>">Late report jobs</a></li> <li><a href="<?= Util::link(__DIR__ . '/../report/non_close_jobs.php') ?>">Non close jobs</a></li> <li><a href="<?= Util::link(__DIR__ . '/../report/staff_man_hour.php') ?>">Staff man hours</a></li> <li><a href="<?= Util::link(__DIR__ . '/../report/JobListByStaff.php') ?>">Job List By Staff</a></li> </ul> </li>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Others <b class="caret"></b></a> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> <li><a href="<?= Util::link(__DIR__ . '/../user/index.php') ?>">Staffs</a></li> <li><a href="<?= Util::link(__DIR__ . '/../contract/contract_alert.php') ?>">Contract Alert</a></li> <li><a href="<?= Util::link(__DIR__ . '/../task/category_index.php') ?>">Task Category</a></li> <li><a href="<?= Util::link(__DIR__ . '/../others/holiday_index.php') ?>">Public Holiday</a></li> <li><a href="<?= Util::link(__DIR__ . '/../cron_job/auto_email.php') ?>">Resend Corn Job Email</a></li> </ul> </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>
|