You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
<?php
|
|
// Holidays schedules
|
|
$holidays = $_POST ? $_POST['holidays'] : ($schedule->getHolidays() ?:
|
|
array());
|
|
$schedules = HolidaysSchedule::getSchedules();
|
|
// ->order_by('name')
|
|
?>
|
|
<div>
|
|
<table class="form_table fixed" width="940" border="0" cellspacing="0" cellpadding="2">
|
|
<thead><tr><th><em><?php
|
|
echo __('Check all Holiday Schedules applicable to this schedule');
|
|
?></em></th></tr></thead>
|
|
<tbody id="schedule-holidays">
|
|
<?php
|
|
foreach ($schedules as $schedule) {
|
|
$id = $schedule->getId(); ?>
|
|
<tr id="schedule--<?php echo $id; ?>">
|
|
<td>
|
|
<input type="checkbox" name="holidays[]"
|
|
value="<?php echo $id; ?>"
|
|
<?php echo in_array($id, $holidays) ?
|
|
'checked="checked"' : ''; ?>
|
|
class="schedule-holiday nowarn"/>
|
|
|
|
<a style="overflow:inherit"
|
|
href="schedules.php?id=<?php echo $id; ?>"> <?php
|
|
echo Format::htmlchars($schedule->getName()); ?>
|
|
</a>
|
|
|
|
<span class="faded-more"><i
|
|
class="icon-calendar"></i>
|
|
<?php echo $schedule->getNumEntries(); ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|