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.
56 righe
2.1 KiB
56 righe
2.1 KiB
<? |
|
if (isset($formula) && isset($id_formula)) { |
|
$ranges = null; |
|
if (!empty($criterio["options"]) && $criterio["auto"] == $id_formula) { |
|
$options = json_decode($criterio["options"],TRUE); |
|
$ranges = $options["range"] ?? null; |
|
} |
|
if (!is_array($ranges)) { |
|
$ranges = [["min"=>"","max"=>"","punteggio"=>""]]; |
|
} |
|
?> |
|
<div class="card card-body"> |
|
<div class="form-group"> |
|
<label for="options[S][riparametra]"><?= __("Applica la riparametrazione alle valutazioni") ?></label> |
|
<select name="options[S][riparametra]"> |
|
<option value="N" <?= (!empty($options["riparametra"]) && $options["riparametra"] == "N") ? "selected" : "" ?>><?= __("No") ?></option> |
|
<option value="S" <?= (!empty($options["riparametra"]) && $options["riparametra"] == "S") ? "selected" : "" ?>><?= __("Si") ?></option> |
|
</select> |
|
</div> |
|
<div class="table-responsive"> |
|
<table class="table table-striped table-condensed"> |
|
<thead> |
|
<tr> |
|
<th width="30%" class="text-center"><?= __("Valore minimo") ?></th> |
|
<th width="30%" class="text-center"><?= __("Valore massimo") ?></th> |
|
<th width="30%" class="text-center"><?= __("Punteggio attribuito") ?></th> |
|
<th width="10%"></th> |
|
</tr> |
|
</thead> |
|
<tbody id="formula-range-body"> |
|
<? |
|
$id = 0; |
|
foreach($ranges AS $range) { |
|
include(__DIR__."/range.php"); |
|
$id++; |
|
} |
|
?> |
|
</tbody> |
|
<tfoot> |
|
<tr> |
|
<td colspan="4"> |
|
<button class="btn btn-sm btn-block btn-info" type="button" onClick="aggiungi('/backend/common/criteri/options/range.php','#formula-range-body')"> |
|
<span class="fa fa-plus-circle"></span> <?= __("Aggiungi nuovo") ?> |
|
</button> |
|
</td> |
|
</tr> |
|
</tfoot> |
|
</table> |
|
</div> |
|
</div> |
|
<? |
|
} else { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|