Professional Documents
Culture Documents
Gabaclowell
Gabaclowell
Gabaclowell
DOCTYPE html>
<html>
<head>
<title>Activity Log</title>
</head>
<body>
<div class="container">
<h1>Activity Log</h1>
<table>
<tr>
<th>Timestamp</th>
<th>Action</th>
</tr>
<?php
// Database connection
// Check connection
if (!$conn) {
$action = $_POST["action"];
if(!empty($action)) {
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
} else {
mysqli_close($conn);
?>
<tr>
<td><strong>Current Time:</strong></td>
</tr>
<tr>
<td><strong>Action:</strong></td>
</tr>
<tr>
</form>
</table>
</div>
</body>
</html>
/* styles.css */
/* Body styles */
body {
margin: 0;
padding: 0;
background-color: #f2f2f2;
/* Container styles */
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
/* Heading styles */
h1 {
font-size: 36px;
font-weight: bold;
margin-top: 0;
/* Table styles */
table {
border-collapse: collapse;
width: 100%;
th, td {
text-align: left;
padding: 8px;
th {
background-color: #eee;
font-weight: bold;
tr:nth-child(even) {
background-color: #f2f2f2;
/* Form styles */
form {
margin-top: 20px;
}
label {
display: block;
margin-bottom: 8px;
input[type="text"] {
width: 100%;
padding: 8px;
border-radius: 4px;
border: none;
button[type="submit"] {
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
button[type="submit"]:hover {
background-color: #3e8e41;