-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe2_psc_delete.php
More file actions
84 lines (59 loc) · 2.63 KB
/
e2_psc_delete.php
File metadata and controls
84 lines (59 loc) · 2.63 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
79
80
81
82
83
84
<?php
session_start();
if (isset($_SESSION['user'])) {
if ((time() - $_SESSION['last_time']) > 1200) {
header("location:logout.php");
}else{
$_SESSION['last_time'] = time();
}
}else{
header("Location:Index.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>EDP&RD File Monitoring System</title>
<!--<link rel="stylesheet" type="text/css" href="style.css">-->
</head>
<body style="text-align: center;">
<img src="images/arms.jpg">
<p id="republic">THE REPUBLIC OF UGANDA</p>
<h1>EDP&RD FILE MONITORING SYSTEM</h1>
<h2>MINISTRY OF FINANCE, PLANNING AND ECONOMIC DEVELOPMENT</h2>
<h2>ECONOMIC DEVELOPMENT POLICY AND RESEARCH DEPARTMENT (EDP&RD)</h2>
<!--<h3>TAX POLICY DEPARTMENT FILE SYSTEM (TPDFS)</h3>-->
<?php
include ("hor_nav_e2_psc.php");
if ($_SESSION['user'] == true) {
echo "<i>You are logged in as "."<label style='text-decoration: underline;'><b>".$_SESSION['user']."</b></label></i>";
}else{
header("Location:Index.php");
}
?>
<br><br>
<section style="background: #142634; color: #fff;"><br>
<?php
$dbConnect = mysqli_connect('localhost', 'root', 'ak_94*jmv', 'edpr');
$searchId = $_GET['searchId'];
$search_Query = "SELECT serialno, refno, file_origin, subject FROM e2_psc_edpr WHERE serialno='$searchId'";
$search_result=mysqli_query($dbConnect, $search_Query);
$row=mysqli_fetch_array($search_result);
?>
<form action="" method="post">
<input type="text" name="serialno" readonly="readonly" placeholder="Serial No" value="<?php echo $row[0];?>" style="width: 220px; height: 40px;">
<input type="text" name="refno" readonly="readonly" placeholder="Ref No" value="<?php echo $row[1];?>" style="width: 220px; height: 40px;"><br><br>
<!--<textarea type="text" cols="40" rows="6" placeholder="Origin" value="<?php //echo $row[2];?>" name="origin" style="width: 342px; height: 97px;"></textarea>-->
<input type="text" name="origin" readonly="readonly" placeholder="Origin" value="<?php echo $row[2];?>" style="width: 220px; height: 40px;">
<input type="text" name="subject" readonly="readonly" placeholder="Subject" value="<?php echo $row[3];?>" style="width: 220px; height: 40px;"><br><br>
<!--<input type="text" name="status" required="required" placeholder="Status" value="<?php //echo $row[3];?>" style="width: 220px; height: 40px;"><br><br>-->
<input type="submit" name="deletebtn" value="Delete" style="width: 185px; height: 45px;"><br><br>
</form>
<?php
if(isset($_POST['deletebtn'])){
include('e2_psc_deleted.php');
}
?>
</section>
</body>
</html>