106 lines
3.3 KiB
PHP
106 lines
3.3 KiB
PHP
<div id="networkContainer">
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4>Paramètres
|
|
<span id="specialeHelpButton" class="helpDisplayButton">
|
|
<a href="https://doc.zwiicms.fr/reseau" target="_blank">
|
|
<?php echo template::ico('help', 'left');?>
|
|
</a>
|
|
</span>
|
|
</h4>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::select('configProxyType', $module::$proxyType, [
|
|
'label' => 'Type de proxy',
|
|
'selected' => $this->getData(['config', 'proxyType'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col8">
|
|
<?php echo template::text('configProxyUrl', [
|
|
'label' => 'Adresse du proxy',
|
|
'placeholder' => 'cache.proxy.fr',
|
|
'value' => $this->getData(['config', 'proxyUrl'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::text('configProxyPort', [
|
|
'label' => 'Port du proxy',
|
|
'placeholder' => '6060',
|
|
'value' => $this->getData(['config', 'proxyPort'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4>SMTP
|
|
<span id="specialeHelpButton" class="helpDisplayButton">
|
|
<a href="https://doc.zwiicms.fr/smtp" target="_blank">
|
|
<?php echo template::ico('help', 'left');?>
|
|
</a>
|
|
</span>
|
|
</h4>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<?php echo template::checkbox('smtpEnable', true, 'Activer SMTP', [
|
|
'checked' => $this->getData(['config', 'smtp','enable']),
|
|
'help' => 'Paramètres à utiliser lorsque votre hébergeur ne propose pas la fonctionnalité d\'envoi de mail.'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div id="smtpParam">
|
|
<div class="row">
|
|
<div class="col8">
|
|
<?php echo template::text('smtpHost', [
|
|
'label' => 'Adresse SMTP',
|
|
'placeholder' => 'smtp.fr',
|
|
'value' => $this->getData(['config', 'smtp','host'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::text('smtpPort', [
|
|
'label' => 'Port SMTP',
|
|
'placeholder' => '589',
|
|
'value' => $this->getData(['config', 'smtp','port'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::select('smtpAuth', $module::$SMTPauth, [
|
|
'label' => 'Authentification',
|
|
'selected' => $this->getData(['config', 'smtp','auth'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div id="smtpAuthParam">
|
|
<div class="row">
|
|
<div class="col5">
|
|
<?php echo template::text('smtpUsername', [
|
|
'label' => 'Nom utilisateur',
|
|
'value' => $this->getData(['config', 'smtp','username' ])
|
|
]); ?>
|
|
</div>
|
|
<div class="col5">
|
|
<?php echo template::password('smtpPassword', [
|
|
'label' => 'Mot de passe',
|
|
'autocomplete' => 'off',
|
|
'value' => $this->getData(['config', 'smtp','username' ]) ? helper::decrypt ($this->getData(['config', 'smtp','username' ]),$this->getData(['config','smtp','password'])) : ''
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::select('smtpSecure', $module::$SMTPEnc , [
|
|
'label' => 'Sécurité',
|
|
'selected' => $this->getData(['config', 'smtp','secure'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|