TRUE, ); /** * Edit a Module Configuration */ public function action_index() { $output = ''; $t = strtotime($this->request->query('date')); if (! $t) $t = time(); $so = Company::instance()->so(); $date = Site::DateStartOfWeek($t); $days = 7; $output .= '
'; $output .= View::factory('room/availability') ->set('date',$date) ->set('days',$days) ->set('open_dates',$so->open_dates($date,$days)) ->set('total_places',$so->total_places($date,$days)) ->set('r',$so->rooms->find_all()) ->set('uri',$this->request->uri()); $output .= '
'; Style::factory() ->type('file') ->data('media/theme/bootstrap/css/bootstrap.datepicker.css'); Script::factory() ->type('file') ->data('media/theme/bootstrap/js/bootstrap.datepicker.js'); Block::factory() ->title(sprintf('Availability for %s',Site::date($date))) ->title_icon('icon-cog') ->body($output); } } ?>