當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Scheduler::buildAvailableTimes方法代碼示例

本文整理匯總了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.';
}
?>
開發者ID:arshadalisoomro,項目名稱:conference_room_scheduler,代碼行數:31,代碼來源:edit_reservation.php


注:本文中的Scheduler::buildAvailableTimes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。