159 |
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 |
|
7 |
aurelien |
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>
|
8 |
aurelien |
12 |
<th>Identifiant d'annuaire</th>
|
|
|
13 |
<th>Nom</th>
|
|
|
14 |
<th>Description</th>
|
|
|
15 |
<th>Code</th>
|
|
|
16 |
</tr>
|
|
|
17 |
<tr>
|
7 |
aurelien |
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">
|
8 |
aurelien |
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>
|
7 |
aurelien |
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 |
|
8 |
aurelien |
49 |
<hr />
|
|
|
50 |
|
7 |
aurelien |
51 |
<h3> Metadonnées </h3>
|
|
|
52 |
|
103 |
aurelien |
53 |
<p> <a href="<?php $url_ajout_metadonnee = clone($base_url);
|
7 |
aurelien |
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>
|
159 |
aurelien |
57 |
</p>
|
7 |
aurelien |
58 |
|
|
|
59 |
<table class="liste">
|
8 |
aurelien |
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>
|
103 |
aurelien |
67 |
<th></th>
|
8 |
aurelien |
68 |
</tr>
|
7 |
aurelien |
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>
|
103 |
aurelien |
76 |
<td><a href="<?php $url_modif_metadonnee = clone($base_url);
|
7 |
aurelien |
77 |
$url_modif_metadonnee->setVariableRequete('m','metadonnee_formulaire_modification');
|
|
|
78 |
$url_modif_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
|
95 |
aurelien |
79 |
echo $url_modif_metadonnee; ?>"> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/modification.png"/> </a>
|
21 |
aurelien |
80 |
</td>
|
103 |
aurelien |
81 |
<td><a href="<?php $url_supp_metadonnee = clone($base_url);
|
7 |
aurelien |
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']);
|
95 |
aurelien |
85 |
echo $url_supp_metadonnee; ?>"> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/suppression.png"/> </a></td>
|
7 |
aurelien |
86 |
|
|
|
87 |
</tr>
|
|
|
88 |
<?php endforeach; ?>
|
|
|
89 |
</table>
|
|
|
90 |
|
159 |
aurelien |
91 |
<h3> Mappages de champs </h3>
|
7 |
aurelien |
92 |
|
159 |
aurelien |
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 |
|
47 |
aurelien |
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>
|
95 |
aurelien |
112 |
<td><a href=""> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/modification.png"/> </a>
|
47 |
aurelien |
113 |
</td>
|
95 |
aurelien |
114 |
<td><a href=""> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/suppression.png"/> </a></td>
|
47 |
aurelien |
115 |
|
|
|
116 |
</tr>
|
|
|
117 |
<?php endforeach; ?>
|
|
|
118 |
</table>
|
|
|
119 |
|
|
|
120 |
|
7 |
aurelien |
121 |
<?php if (isset($erreurs['supp'])): ?>
|
|
|
122 |
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
|
|
|
123 |
<?php endif; ?>
|