Subversion Repositories Applications.annuaire

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

<h2>Détail de l'annuaire <?=$annuaire['informations']['aa_nom'] ?></h2>
<p><?=$annuaire['informations']['aa_description'] ?></p>

<h3> Informations </h3>
<table class="liste">
        <th>Identifiant d'annuaire</th>
        <th>Nom</th>
        <th>Description</th>
        <th>Code</th>
        <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">
        <th>Nom du champ</th>
        <th>Type</th>
        <th>Null</th>
        <th>Clé</th>
        <th>Défaut</th>
        <th>Extra</th>
        <?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>

<h3> Metadonnées </h3>

<p> <a href="<?=$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">
        <th>Nom du champ</th>
        <th>Type</th>
        <th>Abreviation</th>
        <th>Description</th>
        <th>Longueur</th>
        <th></th>
        <th></th>
        <th></th>
        <?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="<?=$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; ?>"> Modifier </a></td>
                <td><a href="<?=$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; ?>"> Supprimer </a></td>
                        
        </tr>
        <?php endforeach; ?>
</table>


<?php if (isset($erreurs['supp'])): ?>
<span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span>
<?php endif; ?>