Subversion Repositories Applications.annuaire

Compare Revisions

Ignore whitespace Rev 153 → Rev 154

/trunk/squelettes/gestion_annuaires/liste_annu.tpl.html
New file
0,0 → 1,44
<h2>Liste des annuaires</h2>
 
<p> <a href="<?php $url_ajout_metadonnee = clone($base_url);
$url_ajout_metadonnee->setVariableRequete('m','annuaire_formulaire_ajout');
echo $url_ajout_metadonnee; ?>"> Ajout d'un nouvel annuaire </a>
 
<?php if(!empty($annuaires)) { ?>
<table class="liste">
<tr>
<th></th>
<th></th>
<th>Nom</th>
<th>Description</th>
<th>Code</th>
</tr>
<?php foreach ($annuaires as $element) : ?>
<tr>
<td><a href="<?php $url_detail = clone($base_url);
$url_detail->setVariableRequete('m','annuaire_inscrits');
$url_detail->setVariableRequete('id_annuaire',$element['aa_id_annuaire']);
echo $url_detail; ?>" title="Voir les inscrits">
<img class="icone_moyenne" src="<?=$base_url_styles ?>squelettes/images/voir_inscrits.png"/> <br />
Voir les inscrits </a></td>
<td><a href="<?php $url_detail = clone($base_url);
$url_detail->setVariableRequete('m','annuaire');
$url_detail->setVariableRequete('id_annuaire',$element['aa_id_annuaire']);
echo $url_detail; ?>" title="Afficher le détail de l'annuaire">
<img class="icone_moyenne" src="<?=$base_url_styles ?>squelettes/images/voir_champs.png"/> <br />
Voir les champs </a></td>
<td><?=$element['aa_nom'] ?></td>
<td><?=$element['aa_description'] ?></td>
<td><?=$element['aa_code'] ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php } else { ?>
 
<p> Aucun annuaire créé </p>
 
<?php } ?>
 
<?php if (isset($erreurs['supp'])): ?>
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
<?php endif; ?>
/trunk/squelettes/gestion_annuaires/annuaire.tpl.html
New file
0,0 → 1,111
<h2>Détail de l'annuaire <?=$annuaire['informations']['aa_nom'] ?></h2>
<p><?=$annuaire['informations']['aa_description'] ?></p>
 
<h3> Informations </h3>
<table class="liste">
<tr>
<th>Identifiant d'annuaire</th>
<th>Nom</th>
<th>Description</th>
<th>Code</th>
</tr>
<tr>
<td><?=$annuaire['informations']['aa_id_annuaire'] ?></td>
<td><?=$annuaire['informations']['aa_nom'] ?></td>
<td><?=$annuaire['informations']['aa_description'] ?></td>
<td><?=$annuaire['informations']['aa_code'] ?></td>
</tr>
</table>
 
<hr />
 
<h3> Colonnes </h3>
<table class="liste">
<tr>
<th>Nom du champ</th>
<th>Type</th>
<th>Null</th>
<th>Clé</th>
<th>Défaut</th>
<th>Extra</th>
</tr>
<?php foreach ($annuaire['colonnes'] as $colonne) : ?>
<tr>
<td><?=$colonne['Field'] ?></td>
<td><?=$colonne['Type'] ?></td>
<td><?=$colonne['Null'] ?></td>
<td><?=$colonne['Key'] ?></td>
<td><?=$colonne['Default'] ?></td>
<td><?=$colonne['Extra'] ?></td>
</tr>
<?php endforeach; ?>
</table>
 
<hr />
 
<h3> Metadonnées </h3>
 
<p> <a href="<?php $url_ajout_metadonnee = clone($base_url);
$url_ajout_metadonnee->setVariableRequete('m','metadonnee_formulaire_ajout');
$url_ajout_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
echo $url_ajout_metadonnee; ?>"> Ajout d'un nouveau champ </a>
 
<table class="liste">
<tr>
<th>Nom du champ</th>
<th>Type</th>
<th>Abreviation</th>
<th>Description</th>
<th>Longueur</th>
<th></th>
<th></th>
</tr>
<?php foreach ($metadonnees as $metacolonne) : ?>
<tr>
<td><?=$metacolonne['amc_nom'] ?></td>
<td><?=$metacolonne['amc_ce_nom_type_affichage'] ?></td>
<td><?=$metacolonne['amc_abreviation'] ?></td>
<td><?=$metacolonne['amc_description'] ?></td>
<td><?=$metacolonne['amc_longueur'] ?></td>
<td><a href="<?php $url_modif_metadonnee = clone($base_url);
$url_modif_metadonnee->setVariableRequete('m','metadonnee_formulaire_modification');
$url_modif_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
echo $url_modif_metadonnee; ?>"> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/modification.png"/> </a>
</td>
<td><a href="<?php $url_supp_metadonnee = clone($base_url);
$url_supp_metadonnee->setVariableRequete('m','metadonnee_suppression');
$url_supp_metadonnee->setVariableRequete('amc_id_champ',$metacolonne['amc_id_champ']);
$url_supp_metadonnee->setVariableRequete('amc_ce_annuaire',$annuaire['informations']['aa_id_annuaire']);
echo $url_supp_metadonnee; ?>"> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/suppression.png"/> </a></td>
</tr>
<?php endforeach; ?>
</table>
 
<h3> Champs de mappage </h3>
 
<table class="liste">
<tr>
<th>Nom du champ dans l'annuaire</th>
<th>Type</th>
<th>Nom du champ de métadonnées associé</th>
<th></th>
<th></th>
</tr>
<?php foreach ($champs_mappage[0] as $role => $champ_mappage) : ?>
<tr>
<td><?=$champ_mappage ?></td>
<td><?=$role ?></td>
<td><?php if(isset($champs_mappage[1][$role])) echo $metadonnees[$champs_mappage[1][$role]]['amc_nom']; ?></td>
<td><a href=""> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/modification.png"/> </a>
</td>
<td><a href=""> <img class="icone" src="<?=$base_url_styles ?>squelettes/images/suppression.png"/> </a></td>
</tr>
<?php endforeach; ?>
</table>
 
 
<?php if (isset($erreurs['supp'])): ?>
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
<?php endif; ?>
/trunk/squelettes/gestion_annuaires/annuaire_ajout.tpl.html
New file
0,0 → 1,92
<h2>Ajout d'un nouvel annuaire</h2>
<form method="post" action="<?php $url_form = clone($base_url);
$url_form->setVariableRequete('m','annuaire_ajout');
echo $url_form; ?>">
<label for="amo_nom">Nom de l'annuaire</label>
<input type="text" name="aa_nom" id="aa_nom" value="<?=$valeur['aa_nom'] ?>" />
<?php if(isset($erreurs_champs['aa_nom'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_nom'] ?>
</div>
<?php } ?>
<br />
<label for="amc_ce_type_affichage">Description</label>
<textarea class="champ_nom" name="aa_description" id="aa_description"><?=$valeur['aa_description'] ?> </textarea>
<?php if(isset($erreurs_champs['aa_description'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_description'] ?>
</div>
<?php } ?>
<br />
<label for="aa_bdd">Base de données (doit avoir été créee) </label>
<input type="text" name="aa_bdd" id="aa_bdd" value="<?=$valeur['aa_bdd'] ?>" />
<?php if(isset($erreurs_champs['aa_bdd'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_bdd'] ?>
</div>
<?php } ?>
<br />
<label for="aa_table">Nom de la table (si la table n'existe pas elle sera crée) </label>
<input type="text" name="aa_table" id="aa_table" value="<?=$valeur['aa_table'] ?>" />
<?php if(isset($erreurs_champs['aa_table'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_table'] ?>
</div>
<?php } ?>
<br />
<label for="aa_code">Code (utilisé pour préfixer les squelettes spécifiques à cet annuaire)</label>
<input type="text" name="aa_code" id="aa_code" value="<?=$valeur['aa_code'] ?>" />
<?php if(isset($erreurs_champs[aa_nom])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs[aa_nom] ?>
</div>
<?php } ?>
<br />
<label for="aa_champ_id">Nom du champ identifiant (doit être un auto increment)</label>
<input type="text" name="aa_champ_id" id="aa_champ_id" value="<?=$valeur['aa_champ_id'] ?>" />
<?php if(isset($erreurs_champs['aa_champ_id'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_champ_id'] ?>
</div>
<?php } ?>
<br />
<label for="aa_champ_nom">Nom du champ nom (doit être présent dans la table si elle existe déjà)</label>
<input type="text" name="aa_champ_nom" id="aa_champ_nom" value="<?=$valeur['aa_champ_nom'] ?>" />
<?php if(isset($erreurs_champs['aa_champ_nom'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_champ_nom'] ?>
</div>
<?php } ?>
<br />
<label for="aa_champ_mail">Nom du champ mail (doit être présent dans la table si elle existe déjà)</label>
<input type="text" name="aa_champ_mail" id="aa_champ_mail" value="<?=$valeur['aa_champ_mail'] ?>" />
<?php if(isset($erreurs_champs['aa_champ_mail'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_champ_mail'] ?>
</div>
<?php } ?>
<br />
<label for="aa_champ_pass">Nom du champ mot de passe (doit être présent dans la table si elle existe déjà)</label>
<input type="text" name="aa_champ_pass" id="aa_champ_pass" value="<?=$valeur['aa_champ_pass'] ?>" />
<?php if(isset($erreurs_champs['aa_champ_pass'])) { ?>
<div style="color:#FF0000">
<?=$erreurs_champs['aa_champ_pass'] ?>
</div>
<?php } ?>
<br />
<input type="submit" value="OK" /> <a href="<?=$base_url ?>"> Annuler </a>
</form>
<?php if(isset($erreurs)) { ?>
<?php foreach($erreurs as $erreur) : ?>
<div style="color:#FF0000"> <?=$erreur ?> </div>
<?php endforeach; ?>
<?php } ?>