ZwiiCMS/core/module/config/view/network/network.php

94 lines
2.9 KiB
PHP
Raw Normal View History

2021-10-30 18:12:34 +02:00
<div id="networkContainer">
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4>Réseau</h4>
<div class="row">
<div class="col2">
2021-10-30 18:59:58 +02:00
<?php echo template::select('configProxyType', $module::$proxyType, [
2021-10-30 12:31:24 +02:00
'label' => 'Type de proxy',
'selected' => $this->getData(['config', 'proxyType'])
]); ?>
</div>
<div class="col8">
2021-10-30 18:59:58 +02:00
<?php echo template::text('configProxyUrl', [
2021-10-30 12:31:24 +02:00
'label' => 'Adresse du proxy',
'placeholder' => 'cache.proxy.fr',
'value' => $this->getData(['config', 'proxyUrl'])
]); ?>
</div>
<div class="col2">
2021-10-30 18:59:58 +02:00
<?php echo template::text('configProxyPort', [
2021-10-30 12:31:24 +02:00
'label' => 'Port du proxy',
'placeholder' => '6060',
'value' => $this->getData(['config', 'proxyPort'])
2021-10-29 16:14:51 +02:00
]); ?>
</div>
</div>
</div>
</div>
</div>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4>SMTP</h4>
2021-10-29 16:14:51 +02:00
<div class="row">
2021-10-30 12:31:24 +02:00
<div class="col12">
2021-10-30 18:59:58 +02:00
<?php echo template::checkbox('smtpEnable', true, 'Activer SMTP', [
2021-10-30 12:31:24 +02:00
'checked' => $this->getData(['config', 'smtp','enable']),
'help' => 'Paramètres à utiliser lorsque votre hébergeur ne propose pas la fonctionnalité d\'envoi de mail.'
]); ?>
2021-10-29 16:14:51 +02:00
</div>
</div>
2021-10-30 18:59:58 +02:00
<div id="smtpParam">
2021-10-29 16:14:51 +02:00
<div class="row">
2021-10-30 12:31:24 +02:00
<div class="col8">
2021-10-30 18:59:58 +02:00
<?php echo template::text('smtpHost', [
2021-10-30 12:31:24 +02:00
'label' => 'Adresse SMTP',
'placeholder' => 'smtp.fr',
'value' => $this->getData(['config', 'smtp','host'])
2021-10-29 16:14:51 +02:00
]); ?>
</div>
2021-10-30 12:31:24 +02:00
<div class="col2">
2021-10-30 18:59:58 +02:00
<?php echo template::text('smtpPort', [
2021-10-30 12:31:24 +02:00
'label' => 'Port SMTP',
'placeholder' => '589',
'value' => $this->getData(['config', 'smtp','port'])
2021-10-29 16:14:51 +02:00
]); ?>
</div>
<div class="col2">
2021-10-30 18:59:58 +02:00
<?php echo template::select('smtpAuth', $module::$SMTPauth, [
2021-10-30 12:31:24 +02:00
'label' => 'Authentification',
'selected' => $this->getData(['config', 'smtp','auth'])
2021-10-29 16:14:51 +02:00
]); ?>
</div>
</div>
2021-10-30 18:59:58 +02:00
<div id="smtpAuthParam">
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col5">
2021-10-30 18:59:58 +02:00
<?php echo template::text('smtpUsername', [
2021-10-30 12:31:24 +02:00
'label' => 'Nom utilisateur',
'value' => $this->getData(['config', 'smtp','username' ])
]); ?>
</div>
<div class="col5">
2021-10-30 18:59:58 +02:00
<?php echo template::password('smtpPassword', [
2021-10-30 12:31:24 +02:00
'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">
2021-10-30 18:59:58 +02:00
<?php echo template::select('smtpSecure', $module::$SMTPEnc , [
2021-10-30 12:31:24 +02:00
'label' => 'Sécurité',
'selected' => $this->getData(['config', 'smtp','secure'])
]); ?>
</div>
</div>
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
</div>
</div>