<!DOCTYPE html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>Coalfax Revamped</title>
|
|
<meta name="description" content="Get the Coalfax!">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
<style>
|
|
table, th, td {
|
|
border: 1px solid black;
|
|
}
|
|
|
|
th, td {
|
|
padding: 10px;
|
|
}
|
|
|
|
div.coalburner_display {
|
|
white-space: normal;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body style="background-color:dimgray;text-align:center">
|
|
<h1>Welcome to Coalfax Revamped, The coalburner registry!</h1>
|
|
<div class="coalburner_submission">
|
|
<form name="submission_forum" action="submit_coalburner.php" method="POST" enctype="multipart/form-data">
|
|
Coalburner Name: <input type="text" id="name" name="name" required>
|
|
<br>
|
|
Proofs & Sources: <input type="text" id="proofs" name="proofs" required>
|
|
<br>
|
|
Body: <br><textarea id="body" name="body" rows="10" cols="50" required></textarea><br>
|
|
Image: <input type="file" id="images" name="images" required>
|
|
<br>
|
|
<br>
|
|
<img id="captcha" src="/vendor/dapphp/securimage/securimage_show.php" alt="CAPTCHA Image" />
|
|
<input type="text" id="captcha_code" name="captcha_code" size="10" maxlength="6" required />
|
|
<a href="#"
|
|
onclick="document.getElementById('captcha').src = '/vendor/dapphp/securimage/securimage_show.php?' + Math.random(); return false">[
|
|
Different Image ]</a>
|
|
<br>
|
|
<br>
|
|
<input type="submit">
|
|
</form>
|
|
</div>
|
|
<br>
|
|
<div class="coalburner_display" style="overflow-x:auto;">
|
|
<table style="float:center; table-layout: auto; width: 100%">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>Proofs</th>
|
|
<th>Body</th>
|
|
<th>Image(s)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
require_once('connect.php');
|
|
$result = $conn->prepare("SELECT * FROM coalburners ORDER BY id ASC");
|
|
$result->execute();
|
|
for ($i=0; $row = $result->fetch(); $i++) {
|
|
?>
|
|
<tr>
|
|
<td style="word-wrap: break-word"><label><?php echo $row['id']; ?></label></td>
|
|
<td style="word-wrap: break-word"><label><?php echo $row['name']; ?></label></td>
|
|
<td style="word-wrap: break-word"><label><?php echo $row['proofs']; ?></label></td>
|
|
<td style="word-wrap: break-word"><label><?php echo $row['body']; ?></label></td>
|
|
<td><label><img src="/images/<?php echo $row['images']; ?>" width="400" height="500"></label></td>
|
|
</tr>
|
|
<?php
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|