-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
96 lines (87 loc) · 1.53 KB
/
index.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
84
85
86
87
88
89
90
91
92
93
94
95
96
<!-- Header and Navigation -->
<?php
session_start();
if(isset($_SESSION['vehicle_id'])){
header("Location: current_report");
}
$title = "IERP";
include_once 'header.php';
?>
<!-- Body Container For Pages -->
<style type="text/css">
#department-wrapper{
position: relative;
width: 100%;
}
.department-div{
cursor: pointer;
position: relative;
float: left;
margin: 5%;
padding: 5%;
width: 30%;
min-height: 20vh;
border-radius: 5px;
}
.department-icon{
cursor: pointer;
position: relative;
width: 100%;
}
.department-info{
cursor: pointer;
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: 25px;
line-height: 25px;
text-align: center;
color: white;
background-color: #a9a9a9;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#department-popup{
position: absolute;
display: none;
top: 0px;
left: 0px;
width: 100%;
height: 80vh;
background-color: rgba(0,0,0,.6);
z-index: 10;
}
#specification-wrapper{
position: absolute;
margin: auto;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 80%;
height: 80%;
background-color: white;
}
</style>
<div id="department-wrapper" class="department-wrapper">
<?php include 'loading.php'; ?>
</div>
<script type="text/javascript">
var user_id =
<?php
if(isset($_SESSION['user_id'])){
echo $_SESSION['user_id'];
}else{
echo 0;
}
?>;
$(document).ready(function(){
$("#department-wrapper").load("functions/fetch_department.php",function(responseTxt, statusTxt){
});
});
</script>
<!-- Footer -->
<?php
include 'footer.php';
?>