/**
  * Returns the choices associated.
  *
  * @return array An array of choices
  */
 public function getChoices()
 {
     $choices = array();
     $add_empty = $this->getOption('add_empty');
     if ($add_empty === true) {
         $choices[''] = __('');
     }
     for ($day = 0; $day < 7; $day++) {
         $choices[$day] = Dayperiod::dayOfWeekToName($day);
     }
     return $choices;
 }
예제 #2
0
<noscript>
<?php 
include_partial('tools/messageBox', array('class' => 'warning', 'title' => __('Javascript disabled'), 'msg' => __('JavaScript is disabled. Deletion function disabled due to security measures.'), 'showImg' => true));
?>
</noscript>

<table class="planning">
	<thead>
		<tr>
			<th class="empty"></th>
			<th class="hide"></th>
			<?php 
for ($day = 0; $day < 7; ++$day) {
    ?>
				<th><?php 
    echo Dayperiod::dayOfWeekToName($day);
    ?>
</th>
			<?php 
}
?>
		</tr>
	</thead>
	<tbody>
			<?php 
$day_marker = array(0 => null, 1 => null, 2 => null, 3 => null, 4 => null, 5 => null, 6 => null);
?>
			<?php 
$day_periods_per_day = array(0 => array(), 1 => array(), 2 => array(), 3 => array(), 4 => array(), 5 => array(), 6 => array());
?>