Subversion Repositories Applications.annuaire

Rev

Rev 159 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 159 Rev 428
Line 1... Line 1...
1
<h2>Ajout d'un nouveau champ à l'annuaire</h2>
1
<h2>Ajout d'un nouveau champ à l'annuaire</h2>
2
<form method="post" action="<?php $url_form = clone($base_url); 
2
<form method="post" action="<?php $url_form = clone($base_url); 
3
				$url_form->setVariableRequete('m','metadonnee_ajout'); 
3
				$url_form->setVariableRequete('m','metadonnee_ajout'); 
4
				echo $url_form; ?>">
4
				echo $url_form; ?>">
5
	<label for="amo_nom">Nom du champ</label>
5
	<label for="amo_nom">Nom du champ</label>
6
  	<textarea class="champ_nom" name="amc_nom" id="amc_nom"> <?=$valeur['amc_nom'] ?> </textarea>
6
  	<textarea class="champ_nom" name="amc_nom" id="amc_nom"> <?=$valeur['amc_nom'] ?> </textarea>
7
  	<br />
7
  	<br />
8
  	<label for="amc_ce_type_affichage">Type du champ</label>
8
  	<label for="amc_ce_type_affichage">Type du champ</label>
9
  	<select id="amc_ce_type_affichage" name="amc_ce_type_affichage">
9
  	<select id="amc_ce_type_affichage" name="amc_ce_type_affichage">
10
  		<option value="0"> Aucun </option>
10
  		<option value="0"> Aucun </option>
11
  	<?php foreach($types as $type) : ?>
11
  	<?php foreach($types as $type) : ?>
12
  		<option value="<?=$type['amo_id_ontologie']?>"> <?=$type['amo_nom'] ?> </option>
12
  		<option value="<?=$type['amo_id_ontologie']?>"> <?=$type['amo_nom'] ?> </option>
13
  	<?php endforeach; ?>
13
  	<?php endforeach; ?>
14
  	</select>
14
  	</select>
15
  	<br />
15
  	<br />
16
  	<label for="amc_ce_ontologie">Fait partie de la liste</label>
16
  	<label for="amc_ce_ontologie">Fait partie de la liste</label>
17
  	<select id="amc_ce_ontologie" name="amc_ce_ontologie">
17
  	<select id="amc_ce_ontologie" name="amc_ce_ontologie">
18
  		<option value="0"> Aucune </option>
18
  		<option value="0"> Aucune </option>
19
  	<?php foreach($listes as $liste) : ?>
19
  	<?php foreach($listes as $liste) : ?>
20
  		<option value="<?=$liste['amo_id_ontologie']?>"> <?=$liste['amo_nom'] ?> </option>
20
  		<option value="<?=$liste['amo_id_ontologie']?>"> <?=$liste['amo_nom'] ?> </option>
21
  	<?php endforeach; ?>
21
  	<?php endforeach; ?>
22
  	</select>
22
  	</select>
23
  	<br />
23
  	<br />
24
  	<label for="amo_abreviation">Abréviation</label>
24
  	<label for="amo_abreviation">Abréviation</label>
25
  	<input type="text" name="amc_abreviation" id="amc_abreviation" value="<?=$valeur['amc_abreviation'] ?>" />
25
  	<input type="text" name="amc_abreviation" id="amc_abreviation" value="<?=$valeur['amc_abreviation'] ?>" />
26
  	<br />
26
  	<br />
27
  	<label for="amo_description">Description</label>
27
  	<label for="amo_description">Description</label>
28
  	<textarea name="amc_description" id="amc_description"><?=$valeur['amc_description'] ?></textarea>
28
  	<textarea name="amc_description" id="amc_description"><?=$valeur['amc_description'] ?></textarea>
29
  	<br />
29
  	<br />
30
  	<input type="hidden" name="amc_ce_annuaire" value="<?=$valeur['amc_ce_annuaire'] ?>"/>
30
  	<input type="hidden" name="amc_ce_annuaire" value="<?=$valeur['amc_ce_annuaire'] ?>"/>
31
  	
31
  	
32
  	<input type="submit" value="OK" /> <a href="<?php $url_retour = clone($base_url); 
32
  	<input type="submit" value="OK" /> <a href="<?php $url_retour = clone($base_url); 
33
					$url_retour->setVariableRequete('m','annuaire'); 
33
					$url_retour->setVariableRequete('m','annuaire'); 
34
					$url_retour->setVariableRequete('id_annuaire',$valeur['amc_ce_annuaire']); 
34
					$url_retour->setVariableRequete('id_annuaire',$valeur['amc_ce_annuaire']); 
35
					echo $url_retour; ?>"> Annuler </a>	
35
					echo $url_retour; ?>"> Annuler </a>	
36
</form>
36
</form>
37
<?php if (isset($erreurs['supp'])): ?>
37
<?php if (isset($erreurs['supp'])): ?>
38
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
38
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
39
<?php endif; ?>
39
<?php endif; ?>
40
40