Line 1... |
Line -... |
1 |
<h2>Ajout d'un nouveau champ de mappage à l'annuaire</h2>
|
- |
|
2 |
<form method="post" action="<?php $url_form = clone($base_url);
|
- |
|
3 |
$url_form->setVariableRequete('m','mappage_ajout');
|
- |
|
4 |
echo $url_form; ?>">
|
- |
|
5 |
<label for="amo_nom">Nom du champ dans l'annuaire mappé</label>
|
- |
|
6 |
<textarea class="champ_nom" name="amc_nom" id="amc_nom"> <?=$valeur['amc_nom'] ?> </textarea>
|
- |
|
7 |
<br />
|
- |
|
8 |
<label for="amc_ce_type_affichage">Role du champ</label>
|
- |
|
9 |
<select id="amc_ce_type_affichage" name="amc_ce_type_affichage">
|
- |
|
10 |
<option value=""> Aucun </option>
|
- |
|
11 |
<option value="champ_id"> </option>
|
- |
|
12 |
<option value="champ_nom"> </option>
|
- |
|
13 |
<option value="champ_prenom"> </option>
|
- |
|
14 |
<option value="champ_mail"> </option>
|
- |
|
15 |
<option value="champ_pays"> </option>
|
- |
|
16 |
<option value="champ_code_postal"> </option>
|
- |
|
17 |
<option value="champ_adresse"> </option>
|
- |
|
18 |
<option value="champ_adresse_comp"> </option>
|
- |
|
19 |
</select>
|
- |
|
20 |
<br />
|
- |
|
21 |
<label for="amc_ce_ontologie">Fait partie de la liste</label>
|
- |
|
22 |
<select id="amc_ce_ontologie" name="amc_ce_ontologie">
|
- |
|
23 |
<option value="0"> Aucune </option>
|
- |
|
24 |
<?php foreach($listes as $liste) : ?>
|
- |
|
25 |
<option value="<?=$liste['amo_id_ontologie']?>"> <?=$liste['amo_nom'] ?> </option>
|
- |
|
26 |
<?php endforeach; ?>
|
- |
|
27 |
</select>
|
- |
|
28 |
<br />
|
- |
|
29 |
<label for="amo_abreviation">Abréviation</label>
|
- |
|
30 |
<input type="text" name="amc_abreviation" id="amc_abreviation" value="<?=$valeur['amc_abreviation'] ?>" />
|
- |
|
31 |
<br />
|
- |
|
32 |
<label for="amo_description">Description</label>
|
- |
|
33 |
<textarea name="amc_description" id="amc_description"><?=$valeur['amc_description'] ?></textarea>
|
- |
|
34 |
<br />
|
- |
|
35 |
<input type="hidden" name="amc_ce_annuaire" value="<?=$valeur['amc_ce_annuaire'] ?>"/>
|
- |
|
36 |
|
- |
|
37 |
<input type="submit" value="OK" /> <a href="<?=$base_url ?>"> Annuler </a>
|
- |
|
38 |
</form>
|
- |
|
39 |
<?php if (isset($erreurs['supp'])): ?>
|
- |
|
40 |
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
|
- |
|
41 |
<?php endif; ?></html>
|
- |
|
42 |
|
1 |
<h2>Ajout d'un nouveau champ de mappage à l'annuaire</h2>
|
- |
|
2 |
|
- |
|
3 |
<?php if(!empty($champs_mappage_role)) { ?>
|
- |
|
4 |
<form method="post" action="<?php $url_form = clone($base_url);
|
- |
|
5 |
$url_form->setVariableRequete('m','mappage_ajout');
|
- |
|
6 |
echo $url_form; ?>">
|
- |
|
7 |
<label for="amo_nom">Nom du champ dans l'annuaire mappé</label>
|
- |
|
8 |
<select id="at_ressource" name="at_ressource">
|
- |
|
9 |
<?php foreach($champs_annuaire as $nom_champ) : ?>
|
- |
|
10 |
<option value="<?=$nom_champ?>"><?=$nom_champ ?> </option>
|
- |
|
11 |
<?php endforeach; ?>
|
- |
|
12 |
</select>
|
- |
|
13 |
<br />
|
- |
|
14 |
<label for="at_action">Role du champ</label>
|
- |
|
15 |
<select id="at_action" name="at_action">
|
- |
|
16 |
<?php foreach($champs_mappage as $role => $champ_mappage) : ?>
|
- |
|
17 |
<option value="<?=$role?>"> <?=$champ_mappage ?> </option>
|
- |
|
18 |
<?php endforeach; ?>
|
- |
|
19 |
</select>
|
- |
|
20 |
<br />
|
- |
|
21 |
<label for="at_valeur">Champ de métadonnées à associer</label>
|
- |
|
22 |
<select id="at_valeur" name="at_valeur">
|
- |
|
23 |
<?php foreach($champs_metadonnees as $metadonnee) : ?>
|
- |
|
24 |
<option value="<?=$metadonnee['amc_id_champ']?>"> <?=$metadonnee['amc_nom'] ?> </option>
|
- |
|
25 |
<?php endforeach; ?>
|
- |
|
26 |
</select>
|
- |
|
27 |
<br />
|
- |
|
28 |
<br />
|
- |
|
29 |
<input type="hidden" name="id_annuaire" id="id_annuaire" value="<?=$id_annuaire ?>"/>
|
- |
|
30 |
|
- |
|
31 |
<input type="submit" value="OK" /> <a href="<?php $url_retour = clone($base_url);
|
- |
|
32 |
$url_retour->setVariableRequete('m','annuaire');
|
- |
|
33 |
$url_retour->setVariableRequete('id_annuaire',$id_annuaire);
|
- |
|
34 |
echo $url_retour; ?>"> Revenir au détail de l'annuaire </a>
|
- |
|
35 |
</form>
|
- |
|
36 |
<?php if (isset($erreurs['supp'])): ?>
|
- |
|
37 |
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
|
- |
|
38 |
<?php endif; ?>
|
- |
|
39 |
|
- |
|
40 |
<?php } else { ?>
|
- |
|
41 |
<p classe="attention"> Vous avez déjà affecté tous les rôles
|
- |
|
42 |
disponibles pour les champs de mappage </p>
|
- |
|
43 |
<a href="<?php $url_retour = clone($base_url);
|
- |
|
44 |
$url_retour->setVariableRequete('m','annuaire');
|
- |
|
45 |
$url_retour->setVariableRequete('id_annuaire',$id_annuaire);
|
- |
|
46 |
echo $url_retour; ?>"> Revenir au détail de l'annuaire </a>
|
- |
|
47 |
<?php } ?>
|
- |
|
48 |
|
43 |
|
49 |
|