-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete.php
106 lines (71 loc) · 2.05 KB
/
delete.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
<?php
session_start();
error_reporting(0);
include_once("deletebackend.php");
?>
<html>
<head>
<title>Police File Tracker</title>
<link rel = "icon" href="up_police_icon.ico" type = "image/x-icon">
<script src="linksfunctionality.js"></script>
<link rel="stylesheet" href="deleteestyle.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
table, th, td {
border:1px solid black;
}
</style>
</head>
<body>
<?php
if($_SESSION["username"]) {
?>
<div class="container">
<h4>Welcome <?php echo htmlspecialchars($_SESSION["username"]); ?>. <button id="logout" onclick="myFunction2()" type="button">Logout</button>
<button id="update" onclick="myFunction3()" type="button">Update</button>
<button id="home" onclick="myFunction5()" type="button">Home</button>
</h4>
<hr>
<h1>Delete File Details:</h1>
<div class="container">
<br>
<form method="post" autocomplete="off">
<div class="row">
<div class="col-sm-3 item"><b>File Token No</b></div>
</div>
<br>
<div class="row">
<div class="col-sm-3 item"><input type="number" name="fltkn" class="form-control" required></div>
<div class="col-sm-2 item"><input type="submit" name="submit" class="btn btn-secondary" value="Delete File"></div>
</div>
<br>
</form>
<hr>
<?php
if(isset($msg)){ ?>
<div class="alert alert-success centre">
<?php
echo $msg;
?>
</div>
<br>
<?php } ?>
<?php
if(isset($msg2)){ ?>
<div class="alert alert-danger centre">
<?php
echo $msg2;
?>
</div>
<br>
<?php } ?>
</div>
<?php
}else header("Location:index.php");
?>
</body>
</html>