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 |
|
|
|
48 |
<p> <a href="<?=$url_ajout_metadonnee = clone($base_url);
|
|
|
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>
|
|
|
61 |
</tr>
|
7 |
aurelien |
62 |
<?php foreach ($metadonnees as $metacolonne) : ?>
|
|
|
63 |
<tr>
|
|
|
64 |
<td><?=$metacolonne['amc_nom'] ?></td>
|
|
|
65 |
<td><?=$metacolonne['amc_ce_nom_type_affichage'] ?></td>
|
|
|
66 |
<td><?=$metacolonne['amc_abreviation'] ?></td>
|
|
|
67 |
<td><?=$metacolonne['amc_description'] ?></td>
|
|
|
68 |
<td><?=$metacolonne['amc_longueur'] ?></td>
|
|
|
69 |
<td><a href="<?=$url_modif_metadonnee = clone($base_url);
|
|
|
70 |
$url_modif_metadonnee->setVariableRequete('m','metadonnee_formulaire_modification');
|
|
|
71 |
$url_modif_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
|
21 |
aurelien |
72 |
echo $url_modif_metadonnee; ?>"> <img class="icone" src="<?=$base_url?>/annuaire/squelettes/images/modification.png"/> </a>
|
|
|
73 |
</td>
|
7 |
aurelien |
74 |
<td><a href="<?=$url_supp_metadonnee = clone($base_url);
|
|
|
75 |
$url_supp_metadonnee->setVariableRequete('m','metadonnee_suppression');
|
|
|
76 |
$url_supp_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
|
|
|
77 |
$url_supp_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
|
8 |
aurelien |
78 |
echo $url_supp_metadonnee; ?>"> <img class="icone" src="<?=$base_url?>/annuaire/squelettes/images/suppression.png"/> </a></td>
|
7 |
aurelien |
79 |
|
|
|
80 |
</tr>
|
|
|
81 |
<?php endforeach; ?>
|
|
|
82 |
</table>
|
|
|
83 |
|
47 |
aurelien |
84 |
<h3> Champs de mappage </h3>
|
7 |
aurelien |
85 |
|
47 |
aurelien |
86 |
<table class="liste">
|
|
|
87 |
<tr>
|
|
|
88 |
<th>Nom du champ dans l'annuaire</th>
|
|
|
89 |
<th>Type</th>
|
|
|
90 |
<th>Nom du champ de métadonnées associé</th>
|
|
|
91 |
<th></th>
|
|
|
92 |
<th></th>
|
|
|
93 |
</tr>
|
|
|
94 |
<?php foreach ($champs_mappage[0] as $role => $champ_mappage) : ?>
|
|
|
95 |
<tr>
|
|
|
96 |
<td><?=$champ_mappage ?></td>
|
|
|
97 |
<td><?=$role ?></td>
|
|
|
98 |
<td><?php if(isset($champs_mappage[1][$role])) echo $metadonnees[$champs_mappage[1][$role]]['amc_nom']; ?></td>
|
|
|
99 |
<td><a href=""> <img class="icone" src="<?=$base_url?>/annuaire/squelettes/images/modification.png"/> </a>
|
|
|
100 |
</td>
|
|
|
101 |
<td><a href=""> <img class="icone" src="<?=$base_url?>/annuaire/squelettes/images/suppression.png"/> </a></td>
|
|
|
102 |
|
|
|
103 |
</tr>
|
|
|
104 |
<?php endforeach; ?>
|
|
|
105 |
</table>
|
|
|
106 |
|
|
|
107 |
|
7 |
aurelien |
108 |
<?php if (isset($erreurs['supp'])): ?>
|
|
|
109 |
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
|
|
|
110 |
<?php endif; ?>
|