コード例 #1
0
ファイル: index.php プロジェクト: neevan1e/Done
<?php

require_once '../include/header.php';
require_once '../lib/Kendo/Autoload.php';
?>
 <div id="alarm-settings">
    <div style="margin-top: -7px; margin-left: 180px">
<?php 
$timePicker = new \Kendo\UI\TimePicker('timepicker');
$timePicker->value('10:00 AM');
echo $timePicker->render();
?>
    </div>
    <div style="margin-top: 59px; padding-left: 180px">
        <span style="" class="k-widget k-autocomplete k-header k-state-default">
            <input id="descr" class="k-input" type="text" value="Wake up" style="width: 100%" />
        </span>
    </div>
</div>
<style scoped>
    #alarm-settings {
        height: 135px;
        width: 395px;
        margin: 30px auto;
        padding: 110px 0 0 30px;
        background: url('../content/web/timepicker/alarmSettings.png') transparent no-repeat 0 0;
    }
</style>
<?php 
require_once '../include/footer.php';
コード例 #2
0
ファイル: rangeselection.php プロジェクト: neevan1e/Done
require_once '../include/header.php';
require_once '../lib/Kendo/Autoload.php';
?>
<div class="demo-section" style="width: 500px;">
    <label for="start">Start time:</label>
<?php 
$start = new \Kendo\UI\TimePicker('start');
$start->value('8:00 AM')->change('startChange');
echo $start->render();
?>
    <label for="end" style="margin-left:3em">End time:</label>
<?php 
$end = new \Kendo\UI\TimePicker('end');
$end->value('8:30 AM');
echo $end->render();
?>
</div>
<script>
    var start, end;

    function startChange() {
        var startTime = start.value();

        if (startTime) {
            startTime = new Date(startTime);

            end.max(startTime);

            startTime.setMinutes(startTime.getMinutes() + this.options.interval);