This repository has been archived by the owner on May 9, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made admin/ pages XHTML 1.0 STRICT valid.
Moved table generating to adminutils.php.
- Loading branch information
Showing
5 changed files
with
41 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
<table> | ||
<tr> | ||
<th>User</th> | ||
<th>IP</th> | ||
<th>Time</th> | ||
</tr> | ||
<?php | ||
$mydb = new DB(); | ||
$result = $mydb->getAll(); | ||
foreach ($result as $row) { | ||
echo "<tr>\n"; | ||
echo "<td><a href='?p=id&q={$row['id']}'>{$row['name']}</a></td>\n"; | ||
echo "<td><a href='?p=ip&q={$row['ip']}'>{$row['ip']}</a></td>\n"; | ||
echo "<td>{$row['time']}</td>\n"; | ||
echo "</tr>\n"; | ||
} | ||
?> | ||
</table> | ||
showResultTable($result); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
<?php $q = getSearch(); ?> | ||
<form method="get"> | ||
<input type="hidden" name="p" value="<?php echo getPage(); ?>" /> | ||
<input type="text" name="q" value="<?php echo $q; ?>" /> | ||
<input type="submit" value="Search ID" /> | ||
<form method="get" action=""> | ||
<p> | ||
<input type="hidden" name="p" value="<?php echo getPage(); ?>" /> | ||
<input type="text" name="q" value="<?php echo $q; ?>" /> | ||
<input type="submit" value="Search ID" /> | ||
</p> | ||
</form> | ||
<?php | ||
if ($q) { | ||
echo "<table> | ||
<tr> | ||
<th>User</th> | ||
<th>IP</th> | ||
<th>Time</th> | ||
</tr>"; | ||
$mydb = new DB(); | ||
$result = $mydb->getById($q); | ||
foreach ($result as $row) { | ||
echo "<tr>\n"; | ||
echo "<td><a href='?p=id&q={$row['id']}'>{$row['name']}</a></td>\n"; | ||
echo "<td><a href='?p=ip&q={$row['ip']}'>{$row['ip']}</a></td>\n"; | ||
echo "<td>{$row['time']}</td>\n"; | ||
echo "</tr>\n"; | ||
} | ||
echo "</table>"; | ||
showResultTable($result); | ||
} | ||
?> | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
<?php $q = getSearch(); ?> | ||
<form method="get"> | ||
<input type="hidden" name="p" value="<?php echo getPage(); ?>" /> | ||
<input type="text" name="q" value="<?php echo $q; ?>" /> | ||
<input type="submit" value="Search IP" /> | ||
<form method="get" action=""> | ||
<p> | ||
<input type="hidden" name="p" value="<?php echo getPage(); ?>" /> | ||
<input type="text" name="q" value="<?php echo $q; ?>" /> | ||
<input type="submit" value="Search IP" /> | ||
</p> | ||
</form> | ||
<?php | ||
if ($q) { | ||
echo "<table> | ||
<tr> | ||
<th>User</th> | ||
<th>IP</th> | ||
<th>Time</th> | ||
</tr>"; | ||
$mydb = new DB(); | ||
$result = $mydb->getByIp($q); | ||
foreach ($result as $row) { | ||
echo "<tr>\n"; | ||
echo "<td><a href='?p=id&q={$row['id']}'>{$row['name']}</a></td>\n"; | ||
echo "<td><a href='?p=ip&q={$row['ip']}'>{$row['ip']}</a></td>\n"; | ||
echo "<td>{$row['time']}</td>\n"; | ||
echo "</tr>\n"; | ||
} | ||
echo "</table>"; | ||
showResultTable($result); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
<?php $q = getSearch(); ?> | ||
<form method="get"> | ||
<input type="hidden" name="p" value="<?php echo getPage(); ?>" /> | ||
<input type="text" name="q" value="<?php echo $q; ?>" /> | ||
<input type="submit" value="Search User" /> | ||
<form method="get" action=""> | ||
<p> | ||
<input type="hidden" name="p" value="<?php echo getPage(); ?>" /> | ||
<input type="text" name="q" value="<?php echo $q; ?>" /> | ||
<input type="submit" value="Search User" /> | ||
</p> | ||
</form> | ||
<?php | ||
if ($q) { | ||
echo "<table> | ||
<tr> | ||
<th>User</th> | ||
<th>IP</th> | ||
<th>Time</th> | ||
</tr>"; | ||
$mydb = new DB(); | ||
$result = $mydb->getByName($q); | ||
foreach ($result as $row) { | ||
echo "<tr>\n"; | ||
echo "<td><a href='?p=id&q={$row['id']}'>{$row['name']}</a></td>\n"; | ||
echo "<td><a href='?p=ip&q={$row['ip']}'>{$row['ip']}</a></td>\n"; | ||
echo "<td>{$row['time']}</td>\n"; | ||
echo "</tr>\n"; | ||
} | ||
echo "</table>"; | ||
showResultTable($result); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters