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

105 lines
3.5 KiB
PHP
Raw Normal View History

2022-03-01 19:41:31 +01:00
<div id="networkContainer" class="tabContent">
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo helper::translate('Paramètres'); ?>
2022-10-03 19:01:42 +02:00
<!--<span id="specialeHelpButton" class="helpDisplayButton">
2022-09-29 08:45:59 +02:00
<a href="https://doc.zwiicms.fr/reseau" target="_blank" title="Cliquer pour consulter l'aide en ligne">
2022-10-03 19:01:42 +02:00
<?php //echo template::ico('help', ['margin' => 'left']); ?>
2021-11-04 18:49:15 +01:00
</a>
2022-10-03 19:01:42 +02:00
</span>-->
2021-11-03 16:54:22 +01:00
</h4>
2021-10-30 12:31:24 +02:00
<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'])
2022-09-29 08:45:59 +02:00
]); ?>
</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>
2022-09-29 08:45:59 +02:00
<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><?php echo helper::translate('SMTP'); ?>
2022-10-03 19:01:42 +02:00
<!--<span id="specialeHelpButton" class="helpDisplayButton">
2022-09-29 08:45:59 +02:00
<a href="https://doc.zwiicms.fr/smtp" target="_blank" title="Cliquer pour consulter l'aide en ligne">
2022-10-03 19:01:42 +02:00
<?php //echo template::ico('help', ['margin' => 'left']); ?>
2021-11-04 18:49:15 +01:00
</a>
2022-10-03 19:01:42 +02:00
</span>-->
2021-11-03 16:54:22 +01:00
</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', [
2022-09-29 08:45:59 +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',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['config', 'smtp', 'host'])
2021-10-29 16:14:51 +02:00
]); ?>
</div>
2022-09-29 08:45:59 +02:00
<div class="col2">
2021-10-30 18:59:58 +02:00
<?php echo template::text('smtpPort', [
2022-09-29 08:45:59 +02:00
'label' => 'Port SMTP',
'placeholder' => '589',
'value' => $this->getData(['config', 'smtp', 'port'])
2021-10-29 16:14:51 +02:00
]); ?>
</div>
2022-09-29 08:45:59 +02:00
<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',
2022-09-29 08:45:59 +02:00
'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">
2022-09-29 08:45:59 +02:00
<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',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['config', 'smtp', 'username'])
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2022-09-29 08:45:59 +02:00
<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',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['config', 'smtp', 'username']) ? helper::decrypt($this->getData(['config', 'smtp', 'username']), $this->getData(['config', 'smtp', 'password'])) : ''
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2022-09-29 08:45:59 +02:00
<div class="col2">
<?php echo template::select('smtpSecure', $module::$SMTPEnc, [
2021-10-30 12:31:24 +02:00
'label' => 'Sécurité',
2022-09-29 08:45:59 +02:00
'selected' => $this->getData(['config', 'smtp', 'secure'])
2021-10-30 12:31:24 +02:00
]); ?>
</div>
</div>
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
</div>