feat(trajets) : show info text in no result
This commit is contained in:
parent
2eec407143
commit
64588fe78a
1 changed files with 7 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR','fr','fr','fra','fr_FR@euro');
|
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR','fr','fr','fra','fr_FR@euro');
|
||||||
setlocale(LC_TIME, "fr_FR");
|
setlocale(LC_TIME, "fr_FR");
|
||||||
include_once 'custom/templates/bazar/circuitscourt.php';
|
include_once 'custom/templates/bazar/circuitscourt.php';
|
||||||
|
$foundFiche = false;
|
||||||
if (count($fiches) > 0) {
|
if (count($fiches) > 0) {
|
||||||
echo $info_res;
|
echo $info_res;
|
||||||
foreach ($fiches as $fiche) {
|
foreach ($fiches as $fiche) {
|
||||||
|
@ -17,7 +17,7 @@ if (count($fiches) > 0) {
|
||||||
'eeee d MMMM y à HH:mm',
|
'eeee d MMMM y à HH:mm',
|
||||||
'fr'
|
'fr'
|
||||||
));
|
));
|
||||||
|
$foundFiche = true;
|
||||||
//$date = str_replace(' à 0:00', '', strftime("%A %d %B %Y à %k:%M", strtotime($fiche['date_du_trajet'])));
|
//$date = str_replace(' à 0:00', '', strftime("%A %d %B %Y à %k:%M", strtotime($fiche['date_du_trajet'])));
|
||||||
echo '<h2 class="entry-title"><a class="modalbox" title="'.htmlspecialchars('Trajet du '.$date).'" href="'.$GLOBALS['wiki']->href('', $fiche['id_fiche']).'">Trajet du '.$dateFormatted.'</a></h2>'."\n";
|
echo '<h2 class="entry-title"><a class="modalbox" title="'.htmlspecialchars('Trajet du '.$date).'" href="'.$GLOBALS['wiki']->href('', $fiche['id_fiche']).'">Trajet du '.$dateFormatted.'</a></h2>'."\n";
|
||||||
echo '<h4>Producteur concerné</h4>'."\n";
|
echo '<h4>Producteur concerné</h4>'."\n";
|
||||||
|
@ -41,7 +41,9 @@ if (count($fiches) > 0) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo $pager_links;
|
echo $pager_links;
|
||||||
} else {
|
}
|
||||||
echo '<div class="alert alert-info">Il y a 0 fiche.</div>';
|
|
||||||
|
if (!$foundFiche) {
|
||||||
|
echo '<div class="alert alert-info"><b>Il n’y a aucun trajet proposé actuellement. A vous de jouer <a href="'.$GLOBALS['wiki']->href('','proposer-un-trajet').'">pour en proposer un !</b></div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Add table
Reference in a new issue