示例#1
0
 protected function getView()
 {
     $data = $this->getParsedData();
     foreach ($data as $name => $term) {
         if (in_array($name, $this->transportTerms) && $term) {
             $str = '<ul>';
             foreach ($term as $transport) {
                 $str .= "<li>{$transport['name']}</li>";
             }
             $str .= '</ul>';
             $data[$name] = $str;
         }
     }
     $places = parent::getPlaces();
     $data['place'] = isset($places[$data['place']]) ? $places[$data['place']]['name'] : null;
     $data['total_price'] = number_format($data['total_price'], 2);
     $data['total_hours'] = DTime::formatMinutesToHours($this->totalMinutes);
     return $data;
 }
示例#2
0
					<th>שעת סיום</th>
					<th>מקום</th>
					<th style="width: 20%">אמצעי הגעה</th>
					<th style="width: 20%">אמצעי חזרה</th>
					<th>מספר נוסעים בהלוך</th>
					<th>מספר נוסעים בחזור</th>
					<th style="width: 20%">הערות</th>
					<th></th>
				</tr>
				<tr>
					<td><?php 
    DTime::timePicker('start');
    ?>
</td>
					<td><?php 
    DTime::timePicker('end');
    ?>
</td>
					<td>
						<select name="place">
							<?php 
    foreach ($agenda->getPlaces() as $key => $place) {
        echo "<option value='{$key}'>{$place['name']}</option>";
    }
    ?>
						</select>
					</td>
					<td>
						<div class="checkbox-group">
							<?php 
    foreach ($transports as $key => $transport) {