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/web/'";
} 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>Editing Domain</b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b>Editing Domain</b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
@ -240,7 +248,7 @@
</td></tr></tr></table>
<tr><td style="padding: 24px 0 0 0;">
<input type="submit" class="button" name="save" value="Save"></form>
<input type="button" class="button" value="Cancel" onClick="location.href='/list/web/'">
<input type="button" class="button" value="Cancel" onclick="<?php echo $back ?>">
</td></tr>
</form>
</table>