<thead> <tr> <th>Id</th> <th>Title</th> <!--<th>Description</th>--> <th>Date</th> <th title="Date Confirmed"><span class='ui-icon ui-icon-circle-check'></span></th> <th>Time</th> <th>Venue</th> <!--<th>Url</th>--> <th></th> </tr> </thead> <tbody> <?php $eventTools = new EventTools(); $events = $eventTools->getAllEvents(); foreach ($events as $event) { ?> <tr> <td><?php echo $event->id; ?> </td> <td><?php echo $event->title; ?> </td> <!--<td><?php echo ""; ?>
<input type="text" maxlength="10" size="12" name="contact_phone" id="contact_phone"> </p> </fieldset> </form> <p id="error-message">Some form fields are empty</p> </div> <div style="display: none" id="message-dialog"> <input type="hidden" id="reload-at-ok" value="" /> <p id="message-dialog-content"></p> </div> <div style="display: none" id="wait-dialog"> <img src="img/ajax-loader.gif" alt="wait..."/> </div> <ul> <?php $eventTools = new EventTools(); $sponsorshipTools = new SponsorshipTools(); $months = $eventTools->getGroupedEvents(); $currentDate = new DateTime(); foreach ($months as $month) { echo "<li>"; echo "<div class='curl'></div>"; echo "<h4>" . key($month) . "</h4>"; $events = $month[key($month)]; if (count($events) > 0) { foreach ($events as $event) { $date = new DateTime($event->date); $avail_sponsorships = $sponsorshipTools->getSponsorshipsByEvent($event->id, TRUE); echo "<div class='calendar-entry'>"; echo "<input id='event-id' type='hidden' value='" . $event->id . "'/>"; if ($currentDate > $date) {