ZwiiCMS/core/module/search/view/result/result.php

39 lines
1.5 KiB
PHP
Raw Normal View History

2019-07-03 19:32:38 +02:00
<?php echo template::formOpen('searchForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>Rechercher</h4>
<div class="row">
<div class="col10 verticalAlignBottom">
<?php echo template::text('searchMotphraseclef', [
'label' => 'Mot ou phrase clef',
'value' => isset($_POST['searchMotphraseclef']) === true ? $_POST['searchMotphraseclef'] : '',
2019-07-03 19:32:38 +02:00
'help' => 'Saisir un mot ou une phrase complète sans guillemets, n\'oubliez pas les accents.'
]); ?>
</div>
<div class="col2 verticalAlignBottom">
<?php echo template::submit('pageEditSubmit', [
'value' => 'Valider'
]); ?>
</div>
</div>
<div class="row">
<?php echo template::checkbox('searchMotentier', true, 'Mot entier uniquement', [
'checked' => isset($_POST['searchMotentier']) === true ? $_POST['searchMotentier'] : ''
2019-07-03 19:32:38 +02:00
]); ?>
</div>
</div>
</div>
<div class="col12">
<div class="block">
<h4>Résultat(s)</h4>
<?php if (isset($_POST['result'])) {
echo $_POST['result'];
} else {
echo "Rien à afficher";
} ?>
2019-07-03 19:32:38 +02:00
</div>
</div>
</div>
<?php echo template::formClose(); ?>