-
Notifications
You must be signed in to change notification settings - Fork 0
/
pendingTechRequests.php
executable file
·72 lines (55 loc) · 1.8 KB
/
pendingTechRequests.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
<?php
include 'functions.php';
?>
<!DOCTYPE html>
<html lang="en">
<!-- Bootstrap Stylesheet -->
<link rel="stylesheet" href="css/bootstrap.min.css" />
<!-- FontAwesome -->
<link rel="stylesheet" href="css/all.min.css" />
<link rel="stylesheet" href="css/fontawesome.min.css" />
<!--Animate Css-->
<link rel="stylesheet" href="css/animate.min.css" />
<!-- Css -->
<link rel="stylesheet" href="css/.css" />
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pending Technichian Requests</title>
</head>
<body>
<section>
<a href="a.home.php"><img src="img/logo.png" alt=""></a>
<div class="tech" style="text-align: right; padding: 1rem;">
<a href="pendingRequests.php" class="btn btn-outline-secondary">Customer Requests.</a>
</div>
</section>
<section class="jumbotron text-center">
<div class="container">
<?php
$query = "SELECT * FROM `technician`;";
if(count(fetchAll($query)) > 0){
foreach(fetchAll($query) as $row){
?>
<h1 class="jumbotron-heading"><?php echo $row['techusername']; ?></h1>
<p class="lead text-muted"><?php echo 'Hello, Im interested in creating an account as a <b><u><i> TECHNICIAN </i></u></b>with Mafundi Services'; ?></p>
<a href="approveTechRequests.php?id=<?php echo $row['id'];?>" class="btn btn-primary my-2">Accept Request</a>
<a href="rejectTechRequests.php?id=<?php echo $row['id'];?>" class="btn btn-secondary my-2">Decline Request</a>
<br>
<small> <?php echo $row['date']; ?></small>
<?php
}
}else{
echo 'No pending requests';
}
?>
<?php
?>
</div>
</section>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>