Subversion Repositories Applications.annuaire

Rev

Rev 211 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<label class="label_champ_annuaire"><?= $amc_nom ?> : </label>
<?php if (isset($liste_valeurs)) { ?>
        <?php foreach($liste_valeurs as $valeur) : ?>
                <span class="checkbox_alignee" >
                        <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'])  
                                                                                                                                                                                                                                                                                                                                                                                                                                && (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"'; } ?> /> 
                        <label class="label_groupe_checkbox" name="checkbox_<?=$amc_id_champ ?>"
                        for="checkbox_<?=$valeur['amo_id_ontologie'] ?>"><?=$valeur['amo_nom'] ?></label>
                </span>
        <?php endforeach; ?>
<?php } else { ?>
        </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 ?>" />  
<?php } ?>
<input type="hidden" name="checkbox_hidden_<?=$amc_id_champ ?>" id="checkbox_hidden_<?=$amc_id_champ ?>" value="checkbox_hidden_<?=$amc_id_champ ?>" />
<?php if(isset($erreurs[$amc_id_champ])) { ?>
                <div style="color:#FF0000"> <?= $erreurs[$amc_id_champ] ?> </div>
<?php } ?>