--- /dev/null
+/nbproject/private/
+/nbproject/project.xml
+/nbproject/project.properties
\ No newline at end of file
$mCal->thisYear()
)
);
- $html = '
+ $html = '<li>
<table class="calendarWrapper">
<tr>
<td valign="top">
</td>
</tr>
</table>
+ </li>
';
return $html;
}
; Production server configuration data
[production]
; name of the application
-applicationName = "Boat Schedule"
+applicationName = "Cruise Calendar"
; flexy options for all the templates used in this application
; based on the GLOBALS['flexyOptions']
<div class="colorDiv">
<input id="color{depart[id]}" rel="{depart[id]}" name="color{depart[id]}" value="{depart[color]:h}" />
</div>
- <div class="departC edit-field">
- times:
- <label class="timeLabel" flexy:foreach="depart[cTimes],time">
- <span rel="{time[id]}" class="form-element">{time[departure_time]:h}</span>
- <span class="ui-icon ui-icon-circle-minus removeTime" rel="{time[id]}"></span>
- </label>
- <span rel="{depart[id]}" class="ui-icon ui-icon-circle-plus addTime chxTime"></span>
- </div>
- <div class="departB edit-field">
- times:
- <label class="timeLabel" flexy:foreach="depart[bTimes],time">
- <span rel="{time[id]}" class="form-element">{time[departure_time]:h}</span>
- <span class="ui-icon ui-icon-circle-minus removeTime" rel="{time[id]}"></span>
- </label>
- <span rel="{depart[id]}" class="ui-icon ui-icon-circle-plus addTime bviTime"></span>
- </div>
<div class="departD">
Calendar Dates
<img id="departureCal{depart[id]}" rel="{depart[id]}" src="{appBase:h}assets/icons/calendar.png" />
border-radius: 10px;
margin-right: 5px;
padding: 2px;
+ width: 100%;
}
.cals td {
text-align: center;
<p id="departComment" flexy:if="departByDate[comments]">
Note: {departByDate[comments]:h}
</p>
- {departByDate[date]:h} Departures from {departByDate[dock]:h}:
+ {departByDate[date]:h} Departures from {departByDate[dock]:h}:
<ul>
<li flexy:foreach="departByDate[times],time">{time[departure_time]:h}</li>
- </ul>
+ </ul>
</p>
</div>
<h2>{scheduleName:h}</h2>
-<div id="calendars">
-{calendarsHtml:h}
-</div>
-<h2>Departures</h2>
-<table id="departures">
- <tr>
- <th class="Chx">Departing Charlevoix</th>
- <th class="comments">Comments</th>
- <th class="Bvi">Departing Beaver Island</th>
- </tr>
- <tr flexy:foreach="departures,depart">
- <td class="Chx" style="background-color: {depart[color]:h};">
- {foreach:depart[cTimes],time}
- <p>{time[departure_time]:h}</p>
- {end:}
- </td>
- <td class="comments" style="background-color: {depart[color]:h};">
- <?php
- echo nl2br($depart['comments']);
- ?>
- </td>
- <td class="Bvi" style="background-color: {depart[color]:h};">
- {foreach:depart[bTimes],time}
- <p>{time[departure_time]:h}</p>
- {end:}
- </td>
- </tr>
-</table>
+
+ <table id="departures">
+ <tr flexy:foreach="departures,depart">
+ <td class="comments" style="background-color: {depart[color]:h};">
+ <?php
+ echo nl2br($depart['comments']);
+ ?>
+ </td>
+ </tr>
+ </table>
+ <ul class="medium-block-grid-1">
+ {calendarsHtml:h}
+ </ul>
+
+
<label>
Year for Schedule
<select id="schedule_year" name="schedule_year">
-
+
</select>
</label>
</div>
<div id="scheduleName" class="edit-field">
- <input id="scheduleNameText" name="scheduleName" value="{name:h}" >
+ <input id="scheduleNameText" name="scheduleName" value="{name:h}" >
<button rel="{scheduleId}" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only nameSave">
<span class="ui-button-text">Save</span>
</button>
<div class="colorDiv">
Color
</div>
- <div class="departC">
- Departing Charlevoix
- </div>
- <div class="departB">
- Departing Beaver Island
- </div>
<div class="departD">
Departure Dates
</div>
<input type="hidden" name="dock" id="dock" value="" />
<input type="hidden" name="departure_id" id="departure_id" value="" />
<label for="depart_time">Time</label>
- <input type="text" name="depart_time" id="depart_time"
+ <input type="text" name="depart_time" id="depart_time"
class="text ui-widget-content ui-corner-all noEnterSubmit" />
</fieldset>
</form>
}
return $breadCrumbs .
- $primaryParagraph .
- $staticPageContent .
- $secondaryParagraphs .
- $coupons .
- $photoGalleryContent;
+ $primaryParagraph .
+ $secondaryParagraphs .
+ $staticPageContent .
+ $coupons .
+ $photoGalleryContent;
}
// }}}
--- /dev/null
+<?php
+// need to get the config for app loaded
+$schedules = new Toolkit_Schedule_DepartureCalendar();
+echo $schedules->toHtml();
\ No newline at end of file