本文整理汇总了PHP中Scheduler::buildAvailableTimes方法的典型用法代码示例。如果您正苦于以下问题:PHP Scheduler::buildAvailableTimes方法的具体用法?PHP Scheduler::buildAvailableTimes怎么用?PHP Scheduler::buildAvailableTimes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Scheduler
的用法示例。
在下文中一共展示了Scheduler::buildAvailableTimes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $_GET['room_id'];
?>
" />
<input type="hidden" name="reservation_id" value="<?php
echo $_GET['reservation_id'];
?>
" />
<b>Reservation Date:</b> <input type="text" id="datepicker" name="date" readonly="readonly" value="<?php
echo $_GET['date'];
?>
" onchange="dateUpdated()"/>
<?php
if (!empty($_GET['date'])) {
// we want to show the time selector and a submit button
$scheduler->buildAvailableTimes($db, $_GET);
if (!empty($_GET['recurring']) && $_GET['recurring'] == 'on') {
echo '</br><br/><input checked type="checkbox" name="recurring" onchange="dateUpdated()"> Recurring Reservation</br>';
$scheduler->buildRecurrenceOptions($db);
if (empty($_GET['recurrence_end'])) {
echo '</br><b>Recurrence End Date:</b> <input type="text" id="datepicker2" name="recurrence_end" readonly="readonly" value="' . $_GET['date'] . '"/>';
} else {
echo '</br><b>Recurrence End Date:</b> <input type="text" id="datepicker2" name="recurrence_end" readonly="readonly" value="' . $_GET['recurrence_end'] . '"/>';
}
} else {
echo '</br><br/><input type="checkbox" name="recurring" onchange="dateUpdated()"> Recurring Reservation</br>';
}
echo '<br/><br/><input onclick="submitButton();" type="submit" value="Schedule Reservation" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect"/>' . "\r\n";
echo '<br/><br/>Can\'t find the time you want? Looks like it is taken...<br/>Click <a class="home_screen_link" href="add_to_waitlist.php?room_id=' . $_GET['room_id'] . '">here</a> to sign up for the waitlist.';
}
?>