-
Notifications
You must be signed in to change notification settings - Fork 0
/
request.php
100 lines (95 loc) · 3.86 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
session_start();
if (!isset($_SESSION['rollnumber'])) {
header("Location: login.php");
}
if (isset($_GET['logout'])) {
unset($_SESSION['rollnumber']);
session_destroy();
mysqli_close($db);
header("Location: login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Clean Request - Housekeeper Student Dashboard</title>
<?php require("meta.php"); ?>
</head>
<body>
<!-- Side Navigation -->
<?php require("sidenav.php"); ?>
<!-- Main content -->
<div class="main-content">
<!-- Header -->
<div class="header bg-background pb-6 pt-5 pt-md-6">
<div class="container-fluid">
<!-- notification message -->
<?php if (isset($_SESSION['req_sent'])) : ?>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<span class="alert-inner--icon"><i class="ni ni-like-2"></i></span>
<?php echo $_SESSION['req_sent']; unset($_SESSION['req_sent']); ?>
</span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<?php endif ?>
<!-- notification message -->
<?php if (isset($_SESSION['req_failed'])) : ?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<?php echo $_SESSION['req_failed']; unset($_SESSION['req_failed']); ?>
</span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<?php endif ?>
<?php require("headerstats.php"); ?>
</div>
</div>
<!-- Page content -->
<div class="container-fluid mt--5 pb-5">
<div class="row mt-2">
<div class="col-xl-12 order-xl-1">
<div class="card bg-secondary shadow">
<div class="card-header bg-white border-0">
<h3 class="mb-0">Send Clean Request</h3>
</div>
<div class="card-body pb-5">
<form autocomplete="off" method="POST" action="studenthandler.php">
<div class="pl-lg-4">
<div class="row">
<div class="col-lg-6">
<div class="form-group">
<label class="form-control-label" for="dateInput">Date <span class="text-danger">*</span></label>
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="ni ni-calendar-grid-58"></i></span>
</div>
<input name="reqDate" id="dateInput" class="form-control datepicker" placeholder="Select date" type="text" required>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-control-label" for="input-timein">Time <span class="text-danger">*</span></label>
<input name="reqTime" type="time" id="input-timein" class="form-control form-control-alternative" required>
</div>
</div>
</div>
<button name="reqSubmit" class="btn btn-outline-success" type="submit">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/vendor/jquery/dist/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/bootstrap/dist/js/bootstrap-datepicker.min.js"></script>
<script src="assets/js/argon.min.js"></script>
</body>
</html>