-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjailor-dashboard.php
119 lines (107 loc) · 6.48 KB
/
jailor-dashboard.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
//jailor functions:
//view prisoner
// update prisoner
require "./header.php";
if(isset($_SESSION['userUidJailor'])){
echo'<section class="text-gray-700 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="font-medium title-font text-center text-gray-900 mb-20">
<h1 class="text-3xl">
Jailor Dashboard
</h1>
<br class="hidden sm:block">
<h2 class="text-lg">Prisoner Management System</h2>
</div>
<div class="flex flex-wrap sm:-m-4 -mx-4 -mb-10 -mt-4">
<div class="p-4 md:w-1/3 md:mb-0 mb-6 flex">
<div class="w-12 h-12 inline-flex items-center justify-center rounded-full bg-indigo-100 text-indigo-500 mb-4 flex-shrink-0">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
</div>
<div class="flex-grow pl-6">
<h2 class="text-gray-900 text-lg title-font font-medium mb-2">View Prisoners</h2>
<p class="leading-relaxed text-base">View all the prisoners with section id</p>
<a class="mt-3 text-indigo-500 inline-flex items-center" href="./prisoner_view.php">View Prisoners
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-2" viewBox="0 0 24 24">
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
<div class="p-4 md:w-1/3 md:mb-0 mb-6 flex">
<div class="w-12 h-12 inline-flex items-center justify-center rounded-full bg-indigo-100 text-indigo-500 mb-4 flex-shrink-0">
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-6 h-6" viewBox="0 0 24 24">
<circle cx="6" cy="6" r="3"></circle>
<circle cx="6" cy="18" r="3"></circle>
<path d="M20 4L8.12 15.88M14.47 14.48L20 20M8.12 8.12L12 12"></path>
</svg>
</div>
<div class="flex-grow pl-6">
<h2 class="text-gray-900 text-lg title-font font-medium mb-2">View Sections</h2>
<p class="leading-relaxed text-base">View all the sections with Jailor id</p>
<a class="mt-3 text-indigo-500 inline-flex items-center" href="./section_view.php">View Sections
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-2" viewBox="0 0 24 24">
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
<div class="p-4 md:w-1/3 md:mb-0 mb-6 flex">
<div class="w-12 h-12 inline-flex items-center justify-center rounded-full bg-indigo-100 text-indigo-500 mb-4 flex-shrink-0">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path></svg>
</div>
<div class="flex-grow pl-6">
<h2 class="text-gray-900 text-lg title-font font-medium mb-2">View Jailors</h2>
<p class="leading-relaxed text-base">View the Unassigned Jailors</p>
<a class="mt-3 text-indigo-500 inline-flex items-center" href="./jailor_view.php">View Jailors
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-2" viewBox="0 0 24 24">
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
<div class="p-4 md:w-1/3 md:mb-0 mb-6 flex">
<div class="w-12 h-12 inline-flex items-center justify-center rounded-full bg-indigo-100 text-indigo-500 mb-4 flex-shrink-0">
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-6 h-6" viewBox="0 0 24 24">
<circle cx="6" cy="6" r="3"></circle>
<circle cx="6" cy="18" r="3"></circle>
<path d="M20 4L8.12 15.88M14.47 14.48L20 20M8.12 8.12L12 12"></path>
</svg>
</div>
<div class="flex-grow pl-6">
<h2 class="text-gray-900 text-lg title-font font-medium mb-2">Update Prisoners Section ID</h2>
<p class="leading-relaxed text-base">Update section of prisoners stored in the database.</p>
<a href="./prisoner_newsection.php" class="mt-3 text-indigo-500 inline-flex items-center">Update Prisoners Section ID
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-2" viewBox="0 0 24 24">
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</div>
</div>
</section>';
}else{
echo' <div class="hero bg-gray-100 py-16 h-screen">
<!-- container -->
<div class="container px-4 sm:px-8 lg:px-16 xl:px-20 mx-auto">
<!-- hero wrapper -->
<div class="hero-wrapper grid grid-cols-1 md:grid-cols-12 gap-8 items-center">
<!-- hero text -->
<div class="hero-text col-span-6">
<h1 class=" font-bold text-4xl md:text-5xl max-w-xl text-gray-900 leading-tight">Operation Failed</h1>
<hr class=" w-12 h-1 bg-indigo-500 rounded-full mt-8">
<p class="text-gray-800 text-base leading-relaxed mt-8 font-semibold">Access Denied</p>
</div>
<!-- hero image -->
<div class="hero-image col-span-6">
<img src="./failure.svg" alt="">
</div>
</div>
</div>
</div>';
}
?>
<?php
require "./footer.php"
?>