Subversion Repositories Applications.annuaire

Rev

Rev 154 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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