Subversion Repositories Applications.annuaire

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
428 aurelien 1
<p><a href="<?php $url_retour = clone($base_url);
2
					$url_retour->setVariableRequete('m','liste_annu');
3
					echo $url_retour; ?>"> Retour à la liste des annuaires </a>
4
</p>
5
 
6
<h2>Détail de l'annuaire <?=$annuaire['informations']['aa_nom'] ?></h2>
7
<p><?=$annuaire['informations']['aa_description'] ?></p>
8
 
9
<h3> Informations </h3>
10
<table class="liste">
11
	<tr>
12
		<th>Identifiant d'annuaire</th>
13
		<th>Nom</th>
14
		<th>Description</th>
15
		<th>Code</th>
16
	</tr>
17
	<tr>
18
		<td><?=$annuaire['informations']['aa_id_annuaire'] ?></td>
19
		<td><?=$annuaire['informations']['aa_nom'] ?></td>
20
		<td><?=$annuaire['informations']['aa_description'] ?></td>
21
		<td><?=$annuaire['informations']['aa_code'] ?></td>
22
	</tr>
23
</table>
24
 
25
<hr />
26
 
27
<h3> Colonnes </h3>
28
<table class="liste">
29
	<tr>
30
		<th>Nom du champ</th>
31
		<th>Type</th>
32
		<th>Null</th>
33
		<th>Clé</th>
34
		<th>Défaut</th>
35
		<th>Extra</th>
36
	</tr>
37
	<?php foreach ($annuaire['colonnes'] as $colonne) : ?>
38
	<tr>
39
		<td><?=$colonne['Field'] ?></td>
40
		<td><?=$colonne['Type'] ?></td>
41
		<td><?=$colonne['Null'] ?></td>
42
		<td><?=$colonne['Key'] ?></td>
43
		<td><?=$colonne['Default'] ?></td>
44
		<td><?=$colonne['Extra'] ?></td>
45
	</tr>
46
	<?php endforeach; ?>
47
</table>
48
 
49
<hr />
50
 
51
<h3> Metadonnées </h3>
52
 
53
<p> <a href="<?php $url_ajout_metadonnee = clone($base_url);
54
				$url_ajout_metadonnee->setVariableRequete('m','metadonnee_formulaire_ajout');
55
				$url_ajout_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
56
				echo $url_ajout_metadonnee; ?>"> Ajout d'un nouveau champ </a>
57
</p>
58
 
59
<table class="liste">
60
	<tr>
61
		<th>Nom du champ</th>
62
		<th>Type</th>
63
		<th>Abreviation</th>
64
		<th>Description</th>
65
		<th>Longueur</th>
66
		<th></th>
67
		<th></th>
68
	</tr>
69
	<?php foreach ($metadonnees as $metacolonne) : ?>
70
	<tr>
71
		<td><?=$metacolonne['amc_nom'] ?></td>
72
		<td><?=$metacolonne['amc_ce_nom_type_affichage'] ?></td>
73
		<td><?=$metacolonne['amc_abreviation'] ?></td>
74
		<td><?=$metacolonne['amc_description'] ?></td>
75
		<td><?=$metacolonne['amc_longueur'] ?></td>
76
		<td><a href="<?php $url_modif_metadonnee = clone($base_url);
77
				$url_modif_metadonnee->setVariableRequete('m','metadonnee_formulaire_modification');
78
				$url_modif_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
79
				echo $url_modif_metadonnee; ?>"> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/modification.png"/> </a>
80
		</td>
81
		<td><a href="<?php $url_supp_metadonnee = clone($base_url);
82
				$url_supp_metadonnee->setVariableRequete('m','metadonnee_suppression');
83
				$url_supp_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
84
				$url_supp_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
85
				echo $url_supp_metadonnee; ?>"> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/suppression.png"/> </a></td>
86
 
87
	</tr>
88
	<?php endforeach; ?>
89
</table>
90
 
91
<h3> Mappages de champs </h3>
92
 
93
<p> <a href="<?php $url_ajout_mappage = clone($base_url);
94
				$url_ajout_mappage->setVariableRequete('m','mappage_formulaire_ajout');
95
				$url_ajout_mappage->setVariableRequete('id_annuaire',$annuaire['informations']['aa_id_annuaire']);
96
				echo $url_ajout_mappage; ?>"> Ajout d'un nouveau mappage de champ </a>
97
</p>
98
 
99
<table class="liste">
100
	<tr>
101
		<th>Nom du champ dans l'annuaire</th>
102
		<th>Type</th>
103
		<th>Nom du champ de métadonnées associé</th>
104
		<th></th>
105
		<th></th>
106
	</tr>
107
	<?php foreach ($champs_mappage[0] as $role => $champ_mappage) : ?>
108
	<tr>
109
		<td><?=$champ_mappage ?></td>
110
		<td><?=$role ?></td>
111
		<td><?php if(isset($champs_mappage[1][$role])) echo $metadonnees[$champs_mappage[1][$role]]['amc_nom']; ?></td>
112
		<td><a href=""> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/modification.png"/> </a>
113
		</td>
114
		<td><a href=""> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/suppression.png"/> </a></td>
115
 
116
	</tr>
117
	<?php endforeach; ?>
118
</table>
119
 
120
 
121
<?php if (isset($erreurs['supp'])): ?>
122
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
7 aurelien 123
<?php endif; ?>