-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeleterec.php
63 lines (53 loc) · 1.92 KB
/
deleterec.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
<?php
include ('connect.php');
if(!empty($_SESSION["id"])){
$id = $_SESSION["id"];
$result = mysqli_query($conn, "SELECT * FROM employees WHERE id = $id");
$row = mysqli_fetch_assoc($result);
}
else{
header("Location: Login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Delete record</title>
<link rel="stylesheet" href="home.css">
<script src="script.js" defer></script>
</head>
<body>
<div class="square">
<h1>Delete Record</h1>
</div>
<ul class="tabs">
<li data-tab-target="#home" class="active tab"><a href="home.php"><img src="Box.svg" alt="Icon description"></li>
<li data-tab-target="#usage-monitoring" class=" tab"><a href="usage-monitoring.php">Usage Monitoring</a></li>
<li data-tab-target="#maintenance-schedules" class="tab"><a href="maintenance-schedules.php">Maintenance Schedules</a></li>
<li data-tab-target="#inventory-management" class="tab"><a href="inventory-management.php">Inventory Management</a></li>
<li data-tab-target="#profile" class="tab"><a href="profile.php">Profile</a></li>
<li data-tab-target="#logout" class="tab"><a href="logout.php">Log Out</a></li>
</ul>
<div class="tab-content">
<div id="home" data-tab-content class="active">
<p>Are you sure you want to delete the record?</p>
<input type="button" value="Delete" name="myButton" onclick="myFunction()" class="bttn"> <input type="button" value="Go back" name="myButton" onclick="myFunction()" class="bttn">
</div>
<div id="usage-monitoring" data-tab-content>
<a href="usage-monitoring.php"></a>
</div>
<div id="maintenance-schedules" data-tab-content>
<a href="maintenance-schedules.php"></a>
</div>
<div id="inventory-management" data-tab-content>
<a href="inventory-management.php"></a>
</div>
<div id="profile" data-tab-content>
<a href="profile.php"></a>
</div>
<div id="logout" data-tab-content>
<a href="logout.php"></a>
</div>
</div>
</body>
</html>