Subversion Repositories Applications.annuaire

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 aurelien 1
<h2>Détail de l'annuaire <?=$annuaire['informations']['aa_nom'] ?></h2>
2
<p><?=$annuaire['informations']['aa_description'] ?></p>
3
 
4
<h3> Informations </h3>
5
<table class="liste">
6
	<th>Identifiant d'annuaire</th>
7
	<th>Nom</th>
8
	<th>Description</th>
9
	<th>Code</th>
10
	<tr>
11
		<td><?=$annuaire['informations']['aa_id_annuaire'] ?></td>
12
		<td><?=$annuaire['informations']['aa_nom'] ?></td>
13
		<td><?=$annuaire['informations']['aa_description'] ?></td>
14
		<td><?=$annuaire['informations']['aa_code'] ?></td>
15
	</tr>
16
</table>
17
 
18
<hr />
19
 
20
<h3> Colonnes </h3>
21
<table class="liste">
22
	<th>Nom du champ</th>
23
	<th>Type</th>
24
	<th>Null</th>
25
	<th>Clé</th>
26
	<th>Défaut</th>
27
	<th>Extra</th>
28
	<?php foreach ($annuaire['colonnes'] as $colonne) : ?>
29
	<tr>
30
		<td><?=$colonne['Field'] ?></td>
31
		<td><?=$colonne['Type'] ?></td>
32
		<td><?=$colonne['Null'] ?></td>
33
		<td><?=$colonne['Key'] ?></td>
34
		<td><?=$colonne['Default'] ?></td>
35
		<td><?=$colonne['Extra'] ?></td>
36
	</tr>
37
	<?php endforeach; ?>
38
</table>
39
 
40
<h3> Metadonnées </h3>
41
 
42
<p> <a href="<?=$url_ajout_metadonnee = clone($base_url);
43
				$url_ajout_metadonnee->setVariableRequete('m','metadonnee_formulaire_ajout');
44
				$url_ajout_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
45
				echo $url_ajout_metadonnee; ?>"> Ajout d'un nouveau champ </a>
46
 
47
<table class="liste">
48
	<th>Nom du champ</th>
49
	<th>Type</th>
50
	<th>Abreviation</th>
51
	<th>Description</th>
52
	<th>Longueur</th>
53
	<th></th>
54
	<th></th>
55
	<th></th>
56
	<?php foreach ($metadonnees as $metacolonne) : ?>
57
	<tr>
58
		<td><?=$metacolonne['amc_nom'] ?></td>
59
		<td><?=$metacolonne['amc_ce_nom_type_affichage'] ?></td>
60
		<td><?=$metacolonne['amc_abreviation'] ?></td>
61
		<td><?=$metacolonne['amc_description'] ?></td>
62
		<td><?=$metacolonne['amc_longueur'] ?></td>
63
		<td><a href="<?=$url_modif_metadonnee = clone($base_url);
64
				$url_modif_metadonnee->setVariableRequete('m','metadonnee_formulaire_modification');
65
				$url_modif_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
66
				echo $url_modif_metadonnee; ?>"> Modifier </a></td>
67
		<td><a href="<?=$url_supp_metadonnee = clone($base_url);
68
				$url_supp_metadonnee->setVariableRequete('m','metadonnee_suppression');
69
				$url_supp_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
70
				$url_supp_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
71
				echo $url_supp_metadonnee; ?>"> Supprimer </a></td>
72
 
73
	</tr>
74
	<?php endforeach; ?>
75
</table>
76
 
77
 
78
<?php if (isset($erreurs['supp'])): ?>
79
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
80
<?php endif; ?>