Subversion Repositories Applications.annuaire

Rev

Rev 428 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
428 aurelien 1
<label class="label_champ_annuaire"><?= $amc_nom ?> : </label><br />
2
<?php if (isset($liste_valeurs)) { ?>
3
	<?php foreach($liste_valeurs as $valeur) : ?>
4
		<span class="checkbox_alignee" >
5
			<input class="groupe_checkbox" type="checkbox" name="checkbox_<?=$amc_id_champ.'['.$valeur['amo_id_ontologie'].']' ?>" id="checkbox_<?=$amc_id_champ.'['.$valeur['amo_id_ontologie'].']' ?>" <?php  if (isset($valeur_defaut['amv_valeur']) && is_array($valeur_defaut['amv_valeur'])
6
																																																				&& (in_array($valeur['amo_id_ontologie'],$valeur_defaut['amv_valeur']) || in_array($valeur['amo_id_ontologie'],array_keys($valeur_defaut['amv_valeur']))) || ($valeur['amo_id_ontologie'] == $valeur_defaut['amv_valeur'])) { echo 'checked="checked"'; } ?> />
7
			<label class="label_groupe_checkbox" name="checkbox_<?=$amc_id_champ ?>"
8
			for="checkbox_<?=$valeur['amo_id_ontologie'] ?>"><?=$valeur['amo_nom'] ?></label>
9
		</span>
10
	<?php endforeach; ?>
11
<?php } else { ?>
12
	</label> <input class="label_checkbox" type="checkbox" <?php if (isset($valeur_defaut) && $valeur_defaut['amv_valeur'] == '1') { echo "checked=checked"; } ?> name="checkbox_<?=$amc_id_champ ?>" id="checkbox_<?=$amc_id_champ ?>" />
13
<?php } ?>
14
<input type="hidden" name="checkbox_hidden_<?=$amc_id_champ ?>" id="checkbox_hidden_<?=$amc_id_champ ?>" value="checkbox_hidden_<?=$amc_id_champ ?>" />
15
<?php if(isset($erreurs[$amc_id_champ])) { ?>
16
		<div style="color:#FF0000"> <?= $erreurs[$amc_id_champ] ?> </div>
24 aurelien 17
<?php } ?>