Deltacms/module/statislite/view/advanced/advanced.php

221 lines
6.9 KiB
PHP

<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Aide';
$text[2] = 'Enregistrer';
$text[3] = 'module/statislite/view/advanced/advanced.help.html';
$text[4] = 'Filtrage des IP';
$text[5] = 'Liste des adresses IP filtrées';
$text[6] = 'IP à filtrer';
$text[7] = 'Saisir une adresse IP V4 au format décimal pointé, celle qui apparaît par défaut est votre adresse IP.';
$text[8] = 'Ajouter à la liste';
$text[9] = 'Cochez pour ajouter l\'adresse IP saisie à la liste';
$text[10] = 'Cochez pour supprimer de la liste l\'adresse IP saisie';
$text[11] = 'Filtrage des pages';
$text[12] = 'Filtrage des robots';
$text[13] = 'Liste des pages à exclure';
$text[14] = 'Les pages ajoutées à la liste seront exclues des statistiques';
$text[15] = 'Page à filtrer';
$text[16] = 'Ajouter à la liste';
$text[17] = 'Cochez pour ajouter la page saisie à la liste';
$text[18] = 'Supprimer de la liste';
$text[19] = 'Cochez pour supprimer de la liste la page saisie';
$text[20] = 'Liste des robots à exclure';
$text[21] = 'Robot à filtrer';
$text[22] = 'Les robots sont filtrés grâce à un fichier complexe fourni avec le module. S\'il s\'avérait insuffisant vous pouvez ajouter ici des robots à filtrer.';
$text[23] = 'Ajouter à la liste';
$text[24] = 'Cochez pour ajouter le robot saisi à la liste';
$text[25] = 'Supprimer de la liste';
$text[26] = 'Cochez pour supprimer de la liste le robot';
$text[27] = 'Module Statislite version n°';
break;
case 'en' :
$text[0] = 'Back';
$text[1] = 'Help';
$text[2] = 'Submit';
$text[3] = 'module/statislite/view/advanced/advanced.help_en.html';
$text[4] = 'IP filtering';
$text[5] = 'List of filtered IP addresses';
$text[6] = 'IP to filter';
$text[7] = 'Enter a V4 IP address in dotted decimal format, the default is your IP address';
$text[8] = 'Add to list';
$text[9] = 'Check to add the entered IP address to the list';
$text[10] = 'Check to remove the entered IP address from the list';
$text[11] = 'Filter pages';
$text[12] = 'Robot filtering';
$text[13] = 'List of pages to exclude';
$text[14] = 'Pages added to the list will be excluded from the statistics';
$text[15] = 'Page to filter';
$text[16] = 'Add to list';
$text[17] = 'Check to add the entered page to the list';
$text[18] = 'Remove from list';
$text[19] = 'Check to remove the entered page from the list';
$text[20] = 'List of robots to exclude';
$text[21] = 'Robot to filter';
$text[22] = 'Robots are filtered using a complex file provided with the module. If it is insufficient you can add robots to be filtered here';
$text[23] = 'Add to list';
$text[24] = 'Check to add the entered robot to the list';
$text[25] = 'Remove from list';
$text[26] = 'Check to remove the robot from the list';
$text[27] = 'Statislite module version #';
break;
}
?>
<?php echo template::formOpen('advancedForm'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('statisliteAdvancedBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() .$this->getUrl(0),
'ico' => 'left',
'value' => $text[0]
]); ?>
</div>
<div class="col2">
<?php echo template::button('addonIndexHelp', [
'class' => 'buttonHelp',
'ico' => 'help',
'value' => $text[1]
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::submit('statisliteAdvancedSubmit',[
'value' => $text[2]
]); ?>
</div>
</div>
<!-- Aide à propos de la configuration de Statislite, view advanced -->
<div class="helpDisplayContent">
<?php echo file_get_contents( $text[3]) ;?>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text[4]; ?></h4>
<div class="row">
<div class="col4">
<?php echo template::textarea('statisliteAdvancedIP',[
'value' => $module::$listeIP,
'help' => $text[5]
]);?>
</div>
<div class="col4">
<div class="row">
<?php echo template::text('statisliteEditIP', [
'autocomplete' => 'off',
'label' => $text[6],
'help' => $text[7],
'value' => $module::$yourIP
]); ?>
</div>
<div class="row statisliteCheckboxAddIP">
<?php echo template::checkbox('statisliteAddIp', true, $text[8], [
'checked' => false,
'help' => $text[9]
]); ?>
</div>
<?php if( $module::$listeIP !== ""){ ?>
<div class="row statisliteSupCheckboxIP">
<?php echo template::checkbox('statisliteSupIp', true, 'Supprimer de la liste', [
'checked' => false,
'help' => $text[10]
]); ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text[11]; ?></h4>
<div class="row">
<div class="col4">
<?php echo template::textarea('statisliteAdvancedQS',[
'value' => $module::$listeQS,
'help' => $text[13]
]);?>
</div>
<div class="col4">
<div class="row">
<?php echo template::select('statisliteEditQS', $module::$listePages,[
'help' => $text[14],
'label' => $text[15],
'selected' => $module::$listePages[0]
]); ?>
</div>
<div class="row statisliteCheckboxAddQS">
<?php echo template::checkbox('statisliteAddQS', true, $text[16], [
'checked' => false,
'help' => $text[17]
]); ?>
</div>
<?php if( $module::$listeQS !== ""){ ?>
<div class="row statisliteSupCheckboxQS">
<?php echo template::checkbox('statisliteSupQS', true, $text[18], [
'checked' => false,
'help' => $text[19]
]); ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text[12]; ?></h4>
<div class="row">
<div class="col4">
<?php echo template::textarea('statisliteAdvancedBot',[
'value' => $module::$listeBot,
'help' => $text[20]
]);?>
</div>
<div class="col4">
<div class="row">
<?php echo template::text('statisliteEditBot', [
'label' => $text[21],
'help' => $text[22],
'value' => ''
]); ?>
</div>
<div class="row statisliteCheckboxAddBot">
<?php echo template::checkbox('statisliteAddBot', true, $text[23], [
'checked' => false,
'help' => $text[24]
]); ?>
</div>
<?php if( $module::$listeBot !== ""){ ?>
<div class="row statisliteSupCheckboxBot">
<?php echo template::checkbox('statisliteSupBot', true, $text[25], [
'checked' => false,
'help' => $text[26]
]); ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion">
<?php echo $text[27]; echo $module::VERSION; ?>
</div>