view.ctp
2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?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>