Petites corrections

This commit is contained in:
Fred Tempez 2020-08-19 16:40:23 +02:00
parent 1f4ba11970
commit 29a4193450
3 changed files with 8 additions and 5 deletions

View File

@ -164,7 +164,7 @@ class search extends common {
$r [] = $value['preview']; $r [] = $value['preview'];
} }
// Générer une chaine de caractères // Générer une chaine de caractères
self::$resultList= implode("<br />", $r); self::$resultList= implode("", $r);
} }
} else { } else {
self::$resultTitle = 'Aucun résultat'; self::$resultTitle = 'Aucun résultat';

View File

@ -1,11 +1,11 @@
.searchTitle { .searchTitle {
font: caption; font: caption;
font-style: italic; font-style: italic;
margin-left: .5em; margin-left: 1em;
} }
.searchKeyword { .searchKeyword {
background: yellow; background: yellow;
} }
.searchResult { .searchResult {
margin: .8em 0 .8em 0.5em; margin: .3em 0 .3em 1em;
} }

View File

@ -26,8 +26,11 @@
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4><?php echo $module::$resultTitle; ?></h4> <h4><?php echo $module::$resultTitle; ?></h4>
<p><?php echo $module::$resultList; ?> <?php if ($module::$resultList)
<p><?php echo $module::$resultError; ?> echo '<p>'.$module::$resultList.'</p>';
?>
<?php if ($module::$resultError)
echo '<p>'.$module::$resultError.'</p>'; ?>
</div> </div>
</div> </div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>