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

115 lines
3.7 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">
2023-02-23 16:02:06 +01:00
<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">
2023-02-23 16:02:06 +01:00
<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">
2023-02-23 16:02:06 +01:00
<div class="col6">
<?php echo template::text('smtpFrom', [
'label' => 'Expéditeur',
2023-02-25 19:11:05 +01:00
'placeholder' => 'no-reply@host',
'value' => $this->getData(['config', 'smtp', 'from']),
2022-09-29 08:45:59 +02:00
]); ?>
2021-10-29 16:14:51 +02:00
</div>
<div class="row">
2023-02-23 16:02:06 +01:00
<div class="col12">
<?php echo template::checkbox('smtpEnable', true, 'SMTP personnalisé', [
'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>
2023-02-23 16:02:06 +01:00
<div id="smtpParam">
2021-10-30 12:31:24 +02:00
<div class="row">
2023-02-23 16:02:06 +01:00
<div class="col8">
<?php echo template::text('smtpHost', [
'label' => 'Adresse SMTP',
'placeholder' => 'smtp.fr',
'value' => $this->getData(['config', 'smtp', 'host'])
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2023-02-23 16:02:06 +01:00
<div class="col2">
<?php echo template::text('smtpPort', [
'label' => 'Port SMTP',
'placeholder' => '589',
'value' => $this->getData(['config', 'smtp', 'port'])
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2022-09-29 08:45:59 +02:00
<div class="col2">
2023-02-23 16:02:06 +01:00
<?php echo template::select('smtpAuth', $module::$SMTPauth, [
'label' => 'Authentification',
'selected' => $this->getData(['config', 'smtp', 'auth'])
2021-10-30 12:31:24 +02:00
]); ?>
</div>
</div>
2023-02-23 16:02:06 +01:00
<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',
2023-02-25 22:06:12 +01:00
'value' => $this->getData(['config', 'smtp', 'password'])
2023-02-23 16:02:06 +01:00
]); ?>
</div>
<div class="col2">
<?php echo template::select('smtpSecure', $module::$SMTPEnc, [
'label' => 'Sécurité',
'selected' => $this->getData(['config', 'smtp', 'secure'])
]); ?>
</div>
</div>
</div>
2021-10-30 12:31:24 +02:00
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
2023-02-23 16:02:06 +01:00
</div>