-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_add_del_strikes.php
51 lines (51 loc) · 1.8 KB
/
index_add_del_strikes.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
<?php
if (!defined('index_origin'))
{
http_response_code(404);
die();
}
?>
<?php
$queryuser = "SELECT name FROM user WHERE veteran = 0;";
$resultuser = mysqli_query($db, $queryuser);
?>
<center>
<table border="0" cellspacing="30">
<tr>
<td>
<center><h2>Add Strike</h2>
<form action="/add_strikes.php" method="post">
<input type="text" name="reason" placeholder="Reason" required><br>
<input type="checkbox" id="event" name="event" value="1">
<label for="event">Event?</label>
<br><br>
<?php
while($row = mysqli_fetch_array($resultuser))
{
echo "<input type='submit' name='user' value='" . htmlspecialchars($row['name']) . "'>";
echo " ";
}
?>
</form></center>
</td>
<?php if (isset($mobile)) { echo "</tr><tr>";} ?>
<td>
<center><h2>Del Strike</h2>
<form action="/del_strikes.php" method="post">
<input type="text" name="reason" placeholder="Reason" required><br>
<input type="checkbox" id="event" name="event" value="1">
<label for="event">Event?</label>
<br><br>
<?php
$resultuser = mysqli_query($db, $queryuser);
while($row = mysqli_fetch_array($resultuser))
{
echo "<input type='submit' name='user' value='" . htmlspecialchars($row['name']) . "'>";
echo " ";
}
?>
</form></center>
</td>
</tr>
</table>
</center>