Exemplo n.º 1
0
 private function showPreIndexPage($schedule)
 {
     $master = new Master();
     $info_message = $master->get_info();
     $is_able_to_entry = $schedule->is_in_time('entry', $this->current_time);
     $is_able_to_post_genre = $schedule->is_in_time('genre', $this->current_time);
     $entry = new Entry();
     $entry_data = $entry->get_data();
     $genre = new Genre();
     $genre_data = $genre->get_data();
     $this->view->assign('info_message', $info_message);
     $this->view->assign('entry_data', $entry_data);
     $this->view->assign('genre_data', $genre_data);
     $this->view->assign('is_able_to_entry', $is_able_to_entry);
     $this->view->assign('is_able_to_post_genre', $is_able_to_post_genre);
     $this->view->assign('root_url', ROOT_URL);
     $this->view->display('preindex.tpl');
 }