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