-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcustom_waste.php
More file actions
78 lines (63 loc) · 2.68 KB
/
Copy pathcustom_waste.php
File metadata and controls
78 lines (63 loc) · 2.68 KB
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
<?php
// session_start();
require_once "classes/Customer.php";
$v = new Customer;
$vw = $v->view_product();
require_once('partials/header2.php')
?>
<!-- Main Content -->
<div class="col-md-9 p-4">
<h2 class="mb-4 text-success">Welcome</h2>
<?php
if(isset($_SESSION['waste_added_success'])){
echo "<div class='alert alert-success'>".$_SESSION['waste_added_success']."</div>";
unset($_SESSION['waste_added_success']);
}
?>
<div class="form-section">
<h4 class="mb-4 text-muted">Dispose Your Waste</h4>
<form action="process/waste_process.php" method="post">
<div class="mb-3">
<label for="type" class="form-label">Waste Type</label>
<select name="pro_id" class="form-select">
<option value="">-- SELECT WASTE TYPE --</option>
<?php foreach($vw as $vi): ?>
<option value="<?= $vi['pro_id']; ?>"><?= $vi['pro_name']; ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="mb-3">
<label for="wastedesc" class="form-label">Enter Waste Description</label>
<textarea name="wastedesc" id="wastedesc" class="form-control"></textarea>
</div>
<div class="mb-3">
<label for="location" class="form-label">Pickup Location</label>
<select name="location" id="location" class="form-select">
<option value="selected">Select a location for pickup</option>
<option value="Berger">Berger</option>
<option value="Ojota">Ojota</option>
<option value="Ibafo">Ibafo</option>
<option value="Surulere">Surulere</option>
<option value="Mushin">Mushin</option>
</select>
</div>
<div class="mb-3">
<label for="mass" class="form-label">Waste (kg)</label>
<input type="text" name="mass" id="mass" class="form-control" />
</div>
<div class="mb-3">
<label for="pknote" class="form-label">Pick-up Note</label>
<textarea name="picknote" id="pknote" class="form-control"></textarea>
</div>
<div class="text-center">
<button type="submit" name="btn_req" class="btn btn-success px-5">Send Request</button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php //require_once "partials/footer.php"; ?>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>