本文整理匯總了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.';
}
?>