-
Notifications
You must be signed in to change notification settings - Fork 10
/
relistButton.php
22 lines (16 loc) · 1.27 KB
/
relistButton.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require ('config.php');
$_ = htmlentities(serialize($adm));
$button = <<<END
<form style="margin:0; display:inline;" name="RelistButton$id" enctype="text/plain" accept-charset="utf-8" method="post" target="_self" action="relistForm.php" onSubmit="xmlhttpPost('relistForm.php', 'RelistButton$id', 'id$id', '<img src=\'/include/pleasewait.gif\'>'); return false;" />
END;
$button .= <<<END
<input name="type" type="hidden" value="$typedesc" /><input name="value" type="hidden" value="$value" /><input name="user" type="hidden" value="$user"><input name="adm" type="hidden" value="$_"><input name="ID" type="hidden" value="$id" /><input class="button" name="Relist" type="submit" value="Relist" /></form>
END;
if ($tables["$typedesc"]['field'] == 'network') {
$button .= <<<END
<form style="margin:0; display:inline;" name='RemoveButton$id' enctype="text/plain" method="post" target="_self" action="remove.php" onSubmit="xmlhttpPost('remove.php', 'RemoveButton$id', 'id$id', '<img src=\'/include/pleasewait.gif\'>'); return false;" /><input name="type" type="hidden" value="$typedesc" /><input name="value" type="hidden" value="$value" /><input name="ID" type="hidden" value="$id" /><input class="button" id="bwarn" name="Remove" type="submit" value="Remove" /></form>
END;
}
return $button;
?>