예제 #1
0
 public function thanksAction()
 {
     try {
         $schedule = new Schedule();
         $is_able_to_register = $schedule->is_in_time('regist', $this->current_time);
         $is_able_to_post_impression = $schedule->is_in_time('impre', $this->current_time);
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
     $this->view->assign('is_able_to_register', $is_able_to_register);
     $this->view->assign('is_able_to_post_impression', $is_able_to_post_impression);
     $this->view->assign('root_url', ROOT_URL);
     $this->view->assign('head', 'Registration is Completed.');
     $this->view->assign('msg', 'あなたの作品登録を受け付けました');
     $this->view->display('thanks.tpl');
 }
예제 #2
0
 public function thanksAction()
 {
     try {
         $schedule = new Schedule();
         $is_able_to_register = $schedule->is_in_time('regist', $this->current_time);
         $is_able_to_post_impression = $schedule->is_in_time('impre', $this->current_time);
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
     $bms_no = $this->request->getParam('0');
     $this->view->assign('head', 'Impression is Completed');
     $this->view->assign('msg', "あなたのインプレッションを受け付けました。<br><a href=\"" . ROOT_URL . "/detail/view/{$bms_no}/\">作品詳細に戻る</a>");
     $this->view->assign('is_able_to_register', $is_able_to_register);
     $this->view->assign('is_able_to_post_impression', $is_able_to_post_impression);
     $this->view->assign('root_url', ROOT_URL);
     $this->view->display('thanks.tpl');
 }
예제 #3
0
 public function indexAction()
 {
     try {
         $schedule = new Schedule();
         $is_able_to_register = $schedule->is_in_time('regist', $this->current_time);
         if ($is_able_to_register) {
             $this->showIndexPage($schedule);
         } else {
             $this->showPreIndexPage($schedule);
         }
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }
예제 #4
0
 public function entryAction()
 {
     try {
         if (!$this->request->getPost()) {
             throw new Exception('こらっ');
         }
         $schedule = new Schedule();
         $is_able_to_post_genre = $schedule->is_in_time('genre', $this->current_time);
         if ($is_able_to_post_genre) {
             // ジャンルデータを登録
             $genre = new Genre();
             $genre->add($this->request->getPost(), $this->current_time, $this->ip, $this->host);
             header("Location: " . ROOT_URL . "/genre/thanks/");
         } else {
             throw new Exception('ジャンル応募期間ではありません');
         }
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }
예제 #5
0
 public function entryAction()
 {
     try {
         if (!$this->request->getPost()) {
             throw new Exception('こらっ');
         }
         $schedule = new Schedule();
         $is_able_to_entry = $schedule->is_in_time('entry', $this->current_time);
         if ($is_able_to_entry) {
             // 参加表明データを登録
             $entry = new Entry();
             $entry->add($this->request->getPost(), $this->current_time, $this->ip, $this->host);
             header("Location: " . ROOT_URL . "/entry/thanks/");
         } else {
             throw new Exception('参加表明期間ではありません');
         }
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }