-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistory.php
114 lines (82 loc) · 2.04 KB
/
history.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
107
108
109
110
111
112
113
114
<?php
session_start();
if (isset($_SESSION["user_id"])) {
$mysqli = require __DIR__ . "./../functions/database.php";
$sql = "SELECT * FROM users
WHERE id = {$_SESSION["user_id"]}";
$result = $mysqli->query($sql);
$user = $result->fetch_assoc();
}
// if (isset($_SESSION['user_role']) && $_SESSION['user_role'] == 'Admin') {
// Display the admin.php page
// } else {
// Redirect the user to the login page
// header('Location: login.php');
// }
?>
<title>Executive Superior Officer</title>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD Example</title>
</head>
<body>
<style>
/* Set the border width and style for all table rows and cells */
table tr td {
border: 1px solid #ccc;
}
/* Set the padding for all table cells */
table tr td {
padding: 5px;
}
/* Set the background color for table headers */
table th {
background-color: #f2f2f2;
}
/* Center the text in table headers */
table th {
text-align: center;
}
/* Set the width of the table to 100% */
table {
width: 50%;
}
form {
display: flex;
flex:wrap;
/* flex-direction: column;*/
align-items: center;
margin: 20px auto;
/* width: 300px;*/
display: block ruby;
}
input {
margin: 10px 0;
padding: 10px;
/* width: 100%; */
border: 1px solid #ccc;
outline: none;
}
label {
display: block;
margin-bottom: 5px;
}
button {
padding: 10px;
border: none;
background-color: #007bff;
color: #fff;
cursor: pointer;
}
</style>
<center>
<h2>Read Records</h2>
<?php include 'l10product.php'; ?>
<center/>
<center>
<center/>
</body>
</html>