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'];
}
// Générer une chaine de caractères
self::$resultList= implode("<br />", $r);
self::$resultList= implode("", $r);
}
} else {
self::$resultTitle = 'Aucun résultat';

View File

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

View File

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