Subversion Repositories Applications.annuaire

Rev

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

<label style="display:inline;"> <?= $amc_nom ?> : </label>
<?php if (isset($liste_valeurs)) { ?>
        <?php foreach($liste_valeurs as $valeur) : ?>
                <span style="margin-right:20px">
                        <input style="margin-right:2px" 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'])) || ($valeur['amo_id_ontologie'] == $valeur_defaut['amv_valeur'])))) { echo 'checked="checked"'; } ?> />  
                        <label style="display:inline;" name="checkbox_<?=$amc_id_champ ?>"
                        for="checkbox_<?=$valeur['amo_id_ontologie'] ?>"><?=$valeur['amo_nom'] ?></label>
                </span>
        <?php endforeach; ?>
<?php } else { ?>
        </label> <input style="margin-right:2px;display:inline;" type="checkbox" <?php if (isset($valeur_defaut)) { 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 } ?>