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

110 lines
3.7 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php
// Lexique
2022-09-11 09:42:42 +02:00
include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php');
2022-03-06 13:35:21 +01:00
?>
2022-01-31 09:10:49 +01:00
<div id="networkContainer">
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['network'][0]; ?>
2022-01-31 09:10:49 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.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, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][1],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['config', 'proxyType'])
]); ?>
</div>
<div class="col8">
<?php echo template::text('configProxyUrl', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][2],
2022-01-31 09:10:49 +01:00
'placeholder' => 'cache.proxy.fr',
'value' => $this->getData(['config', 'proxyUrl'])
]); ?>
</div>
<div class="col2">
<?php echo template::text('configProxyPort', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][3],
2022-01-31 09:10:49 +01:00
'placeholder' => '6060',
'value' => $this->getData(['config', 'proxyPort'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['network'][4]; ?>
2022-01-31 09:10:49 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/reseau#smtp" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col12">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('smtpEnable', true, $text['core_config_view']['network'][5], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['config', 'smtp','enable']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['network'][6]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div id="smtpParam">
<div class="row">
<div class="col8">
<?php echo template::text('smtpHost', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][7],
2022-01-31 09:10:49 +01:00
'placeholder' => 'smtp.fr',
'value' => $this->getData(['config', 'smtp','host'])
]); ?>
</div>
<div class="col2">
<?php echo template::text('smtpPort', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][8],
2022-01-31 09:10:49 +01:00
'placeholder' => '589',
'value' => $this->getData(['config', 'smtp','port'])
]); ?>
</div>
<div class="col2">
2022-03-06 13:35:21 +01:00
<?php echo template::select('smtpAuth', $SMTPauth, [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][9],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['config', 'smtp','auth'])
]); ?>
</div>
</div>
<div id="smtpAuthParam">
<div class="row">
<div class="col5">
<?php echo template::text('smtpUsername', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][10],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['config', 'smtp','username' ])
]); ?>
</div>
<div class="col5">
<?php echo template::password('smtpPassword', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][11],
2022-01-31 09:10:49 +01:00
'autocomplete' => 'off',
'value' => $this->getData(['config', 'smtp','username' ]) ? helper::decrypt ($this->getData(['config', 'smtp','username' ]),$this->getData(['config','smtp','password'])) : ''
]); ?>
</div>
<div class="col2">
2022-03-06 13:35:21 +01:00
<?php echo template::select('smtpSecure', $SMTPEnc , [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['network'][12],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['config', 'smtp','secure'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>