modify/add proposal for simple_reservation-6.x-1.2.tar.gz
Component: simplereservation.module
line - 819 to line 839
$aktdatum = (date("d.m.Y", $reservations[0]["begin"]));
$output .= t('Reservation: ') . '<span class="reservation-date"> '. $aktdatum .' </span><br/>';
foreach ($reservations as $reservation) {
if ($reservation["rid"] > 0) {
$from = user_load($reservation["uid"]);
if ((date("d.m.Y", $reservation["begin"])) != $aktdatum) {
$aktdatum = (date("d.m.Y", $reservation["begin"]));
$output .= '<span class="reservation-date"> ' . $aktdatum .' </span><br/>';
}
if ($reservation["ending"] - $reservation["begin"] == 86339) {
$output .= '<strong>'. t('whole day') .'</strong> ';
}
else {
// von Beginn
$output .= '<strong>'. t('From: ') . '</strong>'. '<em>'. date("d/M/y H:i", $reservation["begin"]) . '</em>';
$output .= " - ";
// bis Ende
$output .= '<strong>'. t('To: ') . '</strong>'. '<em>'. date("d/M/y H:i", $reservation["ending"]) . '</em>' .' ';
}
$output .= "<strong><a title=\"" . $reservation["description"] . "\">". $reservation["name"] ."</a></strong>";
Notes: It would be appreciate if
$output .= t('Reservation: ') . '<span class="reservation-date"> '. $aktdatum .' </span><br/>';
could contain reference of submission date of "Simplereservation" as to differenziate from
booked period.
Comments
Comment #1
salvisPlease post a patch against the -dev version.
Comment #2
ZZman commented