view.ctp 2.11 KB
<?php 
function displayElement($nom, $valeur) {
		echo '<tr><td><strong>'.$nom.' </strong></td><td>'.$valeur.'</td></tr>';
}
?>

<div class="configurations view">
    <h2>Configuration générale de l'application</h2>
    <table style="margin-bottom: 30px;">
    
    <?php 
    echo $this->Html->link(__('<i class="icon-pencil"></i> Editer la configuration'),
    		['action' => 'edit', $configuration->id],
    		['escape' => false,'onclick' => 'return true;']
    		);
    
    if(h($configuration->mode_install) == 1) {
    	$install="Oui";
    }else {
    	$install="Non";
    }
    displayElement(__('Mode install'), $install);
    
    if(h($configuration->mode_debug) == 1) {
    	$debug="Oui";
    }else {
    	$debug="Non";
    }
    displayElement(__('Mode debug'), $debug);
    
    if(h($configuration->use_ldap) == 1) {
    	$ldap="Oui";
    }else {
    	$ldap="Non";
    }
    displayElement(__('Utilisation du LDAP'), $ldap);
    
    displayElement(__('Host du LDAP'), h($configuration->host_ldap));
    displayElement(__('Port du LDAP'), h($configuration->port_ldap));
    displayElement(__('Type d\'authentification du LDAP'), h($configuration->authentificationType_ldap));
    displayElement(__('Base DN du LDAP'), h($configuration->baseDn_ldap));
    displayElement(__('Filtre du LDAP'), h($configuration->filter_ldap));
    
    displayElement(__('Nom complet du Labo'), h($configuration->labName));
    displayElement(__('Nom court du Labo'), h($configuration->labNameShort));
    displayElement(__('Liaison présentation nom du Labo'), h($configuration->labPresent));
    displayElement(__('UMR du Labo'), h($configuration->labUmr));

    if(h($configuration->hasPrinter) == 1) {
    	$print="Oui";
    }else {
    	$print="Non";
    }
    displayElement(__('Imprimante disponible'), $print);
    
    displayElement(__('Mail guest 1'), h($configuration->emailGuest1));
    displayElement(__('Mail guest 2'), h($configuration->emailGuest2));
    displayElement(__('Mail guest 3'), h($configuration->emailGuest3));
    
    ?>
        
        
    </table>
</div>

   <div class="actions">
		<?php echo $this->element('menu') ?>
		</div>