-
Notifications
You must be signed in to change notification settings - Fork 10
/
relistForm.php
17 lines (13 loc) · 1.7 KB
/
relistForm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$adm = unserialize($_POST["adm"]);
if (in_array($_POST["user"],array_keys(array_filter($adm)))) $extopt = '<option value="MONTH">MONTHS</option><option value="YEAR">YEARS</option>';
else $extopt = NULL;
require_once('config.php');
$typedesc=$_POST['type'];
$value = iconv(mb_detect_encoding($_POST['value'], mb_detect_order('ISO-8859-1, ISO-8859-15')), "UTF-8", $_POST['value']);
$cl = ($tables["$typedesc"]['milter']) ? 10 : 9;
?>
<td colspan="<?php echo $cl; ?>">
<form style="margin:0; text-align: right;" name='RelistButton<?php echo $_POST['type']; ?>' enctype="text/plain" accept-charset="utf-8" method="post" target="_self" action="relist.php" onSubmit="xmlhttpPost('relist.php', 'RelistButton<?php echo $_POST['type']; ?>', 'id<?php echo $_POST['ID']; ?>', '<img src=\'/include/pleasewait.gif\'>'); return false;" />
Relist <?php echo $_POST['type'].' '.' <'.htmlentities($value).'>'; ?> for <input class="input_text" name="type" type="hidden" value="<?php echo $_POST['type']; ?>" /><input class="input_text" name="value" type="hidden" value="<?php echo $value; ?>" />
<select class="input_text" name="quantity" size="1"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><select class="input_text" name="unit" size="1"><option value="DAY">DAYS</option><option value="WEEK">WEEKS</option><?php echo $extopt; ?></select> Reason:<input maxlength="128" name="reason" size="30" type="text" class="input_text" placeholder="Specify a reason" required title="Please, specify a reason!" /> <input name="Relist" type="submit" value="Relist" class="button" id="bwarn" /></form></td>