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">&nbsp;'. $aktdatum .'&nbsp;</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"> &nbsp;' . $aktdatum .'&nbsp;</span><br/>';
        }
        if ($reservation["ending"] - $reservation["begin"] == 86339) {
          $output .= '<strong>'. t('whole day') .'</strong>&nbsp;';
        }
        else {
          // von Beginn
          $output .= '<strong>'. t('From:&nbsp;') . '</strong>'. '<em>'. date("d/M/y H:i", $reservation["begin"]) . '</em>';
          $output .= " - ";
          // bis Ende
          $output .= '<strong>'. t('To:&nbsp;') . '</strong>'.  '<em>'. date("d/M/y H:i", $reservation["ending"]) . '</em>' .'&nbsp;';
        }
        $output .= "<strong><a title=\"" . $reservation["description"] . "\">". $reservation["name"] ."</a></strong>";
		

Notes: It would be appreciate if

$output .= t('Reservation: ') . '<span class="reservation-date">&nbsp;'. $aktdatum .'&nbsp;</span><br/>';

could contain reference of submission date of "Simplereservation" as to differenziate from
booked period.

Comments

salvis’s picture

Version: 6.x-6.x-dev » 6.x-1.x-dev
Status: Active » Needs work

Please post a patch against the -dev version.

ZZman’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)