added admin search

This commit is contained in:
Serghey Rodin 2012-09-29 01:55:51 +03:00
commit f685d8d333
76 changed files with 871 additions and 114 deletions

View file

@ -1,7 +1,15 @@
<?php
$back = getenv("HTTP_REFERER");
if (empty($back)) {
$back = "location.href='/list/ip/'";
} else {
$back = "javascript:history.back(1)";
}
?>
<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 10px 2px 0 0;" ><a class="add-name"><b>Adding IP Address</b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b>Adding IP Address</b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
@ -129,7 +137,7 @@
<tr>
<td style="padding: 24px 0 0 0;">
<input type="submit" name="ok" value="OK" class="button">
<input type="button" class="button" value="Cancel" onclick="location.href='/list/ip/'">
<input type="button" class="button" value="Cancel" onclick="<?php echo $back ?>">
</td>
</tr>
</table>