initial commit of code
This commit is contained in:
parent
9b00433142
commit
17d2c64f66
13 changed files with 1928 additions and 0 deletions
47
templates/bazar/trajets.tpl.html
Normal file
47
templates/bazar/trajets.tpl.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR','fr','fr','fra','fr_FR@euro');
|
||||
setlocale(LC_TIME, "fr_FR");
|
||||
include_once 'custom/templates/bazar/circuitscourt.php';
|
||||
|
||||
if (count($fiches) > 0) {
|
||||
echo $info_res;
|
||||
foreach ($fiches as $fiche) {
|
||||
$statut = getStatus($fiche);
|
||||
if ($statut== 'Ouvert' || $statut== 'Fermé' ) {
|
||||
// récuperer la fiche producteur
|
||||
$producteur = baz_valeurs_fiche($fiche['listefiche8producteur']);
|
||||
$dateTimeObj = new DateTime($fiche['date_du_trajet'], new DateTimeZone('Europe/Paris'));
|
||||
$dateFormatted =
|
||||
str_replace(' à 0:00', '', IntlDateFormatter::formatObject(
|
||||
$dateTimeObj,
|
||||
'eeee d MMMM y à HH:mm',
|
||||
'fr'
|
||||
));
|
||||
|
||||
//$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 '<h4>Producteur concerné</h4>'."\n";
|
||||
echo '<p class="producteur"><strong>'.$producteur['bf_titre'].'</strong></p>';
|
||||
|
||||
echo '<p class="nature"><strong>Produits possibles</strong> : '.str_replace(',', ', ', $producteur['checkboxListeProduitsVendusproduits_vendus']).'</p>';
|
||||
$lieux = baz_valeurs_liste('ListeLieuxRecuperationDesCommandes');
|
||||
echo '<p class="lieu"><strong>Lieu de récupération de la commande</strong> : '.$lieux['label'][$fiche["listeListeLieuxRecuperationDesCommandeslieu_de_retrait_des_commandes"]].'</p>';
|
||||
echo '<p class="adresse"><strong>Adresse de récupération de la commande</strong> : '.$GLOBALS['wiki']->format($fiche["adresse_de_livraison"]).'</p>';
|
||||
$dateTimeObj = new DateTime($fiche['date_heure_recuperation_commandes'], new DateTimeZone('Europe/Paris'));
|
||||
$dateRecup =
|
||||
str_replace(' à 0:00', '', IntlDateFormatter::formatObject(
|
||||
$dateTimeObj,
|
||||
'eeee d MMMM y à HH:mm',
|
||||
'fr'
|
||||
));
|
||||
echo '<p class="date"><strong>Date et heure pour récupérer la commande</strong> : '.$dateRecup.'</p>';
|
||||
echo '<p class="adresse"><strong>Information supplémentaire</strong> : '.$GLOBALS['wiki']->format($fiche["information_supplementaire"]).'</p>';
|
||||
echo displayReservation($fiche);
|
||||
echo '<hr />';
|
||||
}
|
||||
}
|
||||
echo $pager_links;
|
||||
} else {
|
||||
echo '<div class="alert alert-info">Il y a 0 fiche.</div>';
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue