Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
28 righe
1.1 KiB
28 righe
1.1 KiB
<? |
|
if (isset($_POST["id"])) { |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$range = ["min"=>"","max"=>"","punteggio"=>""]; |
|
$id = purify($_POST["id"]); |
|
} |
|
if (isset($range)) { |
|
?> |
|
<tr id="range-<?= $id ?>"> |
|
<td> |
|
<input class="form-control input-lg text-center" name="options[S][range][<?= $id ?>][min]" rel="N;0;0;N" value="<?= $range["min"] ?>" title="<?= __("Minimo") ?>"> |
|
</td> |
|
<td> |
|
<input class="form-control input-lg text-center" name="options[S][range][<?= $id ?>][max]" rel="N;0;0;N" value="<?= $range["max"] ?>" title="<?= __("Massimo") ?>"> |
|
</td> |
|
<td> |
|
<input class="form-control input-lg text-center" name="options[S][range][<?= $id ?>][punteggio]" rel="N;0;0;N;peso;<=" value="<?= $range["punteggio"] ?>" title="<?= __("Punteggio") ?>"> |
|
</td> |
|
<td> |
|
<button type="button" class="btn btn-block btn-sm btn-danger" onClick="$(this).parent().parent().remove();"><span class="fa fa-times"></span></button> |
|
</td> |
|
</tr> |
|
<? |
|
} else { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
}
|