Beispiel #1
0
    echo '</div>';
    echo '<div class="row">';
    $this->widget('application.extensions.timepicker.EJuiDateTimePicker', array('name' => 'HardwareSchedule' . $counter . '[start_date]', 'model' => $emp, 'value' => $emp->start_date, 'htmlOptions' => array('size' => 18, 'class' => 'date'), 'options' => array('hourGrid' => 4, 'hourMin' => 8, 'hourMax' => 18, 'timeFormat' => 'h:m', 'changeMonth' => true, 'changeYear' => false, 'dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm:ss', 'showAnim' => 'fold')));
    echo '<b> to </b>';
    $this->widget('application.extensions.timepicker.EJuiDateTimePicker', array('name' => 'HardwareSchedule' . $counter . '[end_date]', 'model' => $emp, 'value' => $emp->start_date, 'htmlOptions' => array('size' => 18, 'class' => 'date'), 'options' => array('hourGrid' => 4, 'hourMin' => 9, 'hourMax' => 18, 'timeFormat' => 'h:m', 'changeMonth' => true, 'changeYear' => false, 'dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm:ss', 'showAnim' => 'fold')));
    echo '<input type="checkbox" name="HardwareSchedule' . $counter . '[delete]" value="delete" />delete';
    echo '</div>';
    $counter++;
}
?>
<h3>Facilities</h3>
<?php 
$counter = 0;
foreach ($facility as $fac) {
    echo '<div class="row"><label for="name">';
    echo FacilitySchedule::getResourceName($fac->facility_id) . '<br />';
    echo '<input type="hidden" id="FacilitiesSchedule' . $counter . '[id]" value="' . $fac->id . '" name="FacilitiesSchedule' . $counter . '[id]" /><br />';
    echo '</label>';
    echo '</div>';
    echo '<div class="row">';
    $this->widget('application.extensions.timepicker.EJuiDateTimePicker', array('name' => 'FacilitiesSchedule' . $counter . '[start_date]', 'model' => $emp, 'value' => $emp->start_date, 'htmlOptions' => array('size' => 18, 'class' => 'date'), 'options' => array('hourGrid' => 4, 'hourMin' => 8, 'hourMax' => 18, 'timeFormat' => 'h:m', 'changeMonth' => true, 'changeYear' => false, 'dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm:ss', 'showAnim' => 'fold')));
    $this->widget('application.extensions.timepicker.EJuiDateTimePicker', array('name' => 'FacilitiesSchedule' . $counter . '[end_date]', 'model' => $emp, 'value' => $emp->start_date, 'htmlOptions' => array('size' => 18, 'class' => 'date'), 'options' => array('hourGrid' => 4, 'hourMin' => 9, 'hourMax' => 18, 'timeFormat' => 'h:m', 'changeMonth' => true, 'changeYear' => false, 'dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm:ss', 'showAnim' => 'fold')));
    echo '<input type="checkbox" name="FacilitiesSchedule' . $counter . '[delete]" value="delete" />delete(Klappt nicht bei mehreren?)';
    echo '</div>';
    $counter++;
}
?>
<h3>Custom Resources</h3>
<?php 
$counter = 0;
foreach ($customResources as $cus) {