-
Notifications
You must be signed in to change notification settings - Fork 0
/
request.php
83 lines (73 loc) · 2.79 KB
/
request.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
<?php
include 'core/core.inc.php';
if (!isset($_SESSION['user_id'])) {
header("Location: login.php");
}
include 'core/application.db.php';
$a = new Application($host, $db_name, $db_user, $db_pass);
$recived_application = $a->application_joint_details($_SESSION['user_id']);
?>
<!DOCTYPE html>
<html>
<head>
<title>Dashboard</title>
<meta name="og:title" property="og:title" content="TATA Sponge Limited :: Request"/>
<?php
include 'core/meta.php';
?>
<link rel="stylesheet" href="css/core.css">
</head>
<body>
<?php
require "core/top_nav.php";
?>
<div class="container-fluid">
<div class="row">
<div class="col col-lg-3 side_nav">
<?php
$active = "current";
require "core/side_nav.php";
?>
</div>
<div class="col-md-9">
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand">Current Request List</a>
</nav>
<table class="table table-striped table-hover" id="list_table">
<thead class="thead-dark">
<tr>
<th scope="col">Draft no</th>
<th scope="col">Details</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody class="applicatio_list">
<?php foreach ($recived_application as $key => $value): ?>
<tr class="<?=$value['draft_id'];?>">
<th scope="row"><?=$value['draft_id'];?></th>
<td>
<b><?=$value['f_name'];?> <?=$value['m_name'];?> <?=$value['surname'];?> (<i><?=$value['department'];?></b></i>) on <?=date('d-m-Y, h:i A', $value['application_date']);?><br>
For <i><?=date('d-m-Y, h:i A', $value['start_date']);?> to <?=date('d-m-Y, h:i A', $value['ending_date']);?></i>
</td>
<td>
<center>
<img data-toggle="tooltip" onclick="pass('<?=$value['draft_id'];?>', '<?=$value['start_date'];?>', '<?=$value['ending_date'];?>')" src="images/accept.png" title="Accept this application and issue a vehicle." width="20px"> |
<img data-toggle="tooltip" onclick="forword('<?=$value['draft_id'];?>')" src="images/send.png" title="Forword to higher authority." width="20px"> |
<img data-toggle="tooltip" onclick="reject('<?=$value['draft_id'];?>')" src="images/reject.png" title="Reject this application" width="20px"> |
<img data-toggle="tooltip" onclick="view('<?=$value['draft_id'];?>')" src="images/view.png" title="View this application" width="20px">
</center>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</div>
<?php include_once 'core/model_operation.inc.php'; ?>
</body>
<?php include_once 'core/basic_java.inc.php'; ?>
<script type="text/javascript" src="js/listoperation.js"></script>
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>
<script type="text/javascript" src="DataTables/datatables.min.js"></script>
</html>