Пример #1
0
 public function indexAction()
 {
     $this->autenticacao();
     $this->view->title = $this->t->_('Presence List');
     $id_evento = (int) $this->_request->getParam('id', 0);
     $id_evento_realizacao = (int) $this->_request->getParam('id_evento_realizacao', 0);
     $this->view->id = $id_evento;
     $this->view->id_evento_realizacao = $id_evento_realizacao;
     $evento = new Admin_Model_Evento();
     $evento_result = $evento->buscaEventoPessoa($id_evento);
     if (!$evento_result) {
         $this->_helper->flashMessenger->addMessage(array('error' => 'Evento não encontrado.'));
         return $this->_helper->redirector->goToRoute(array('module' => 'admin', 'controller' => 'evento', 'action' => 'index'), 'default');
     }
     $this->view->evento = $evento_result;
     $model = new Admin_Model_EventoParticipacao();
     $this->view->participantes = $model->listar($id_evento_realizacao);
 }
Пример #2
0
 public function detalhesAction()
 {
     $this->autenticacao();
     $this->view->title = $this->t->_('Events');
     $this->view->subtitle = $this->t->_('Details');
     $idEvento = $this->_request->getParam('id', 0);
     $evento = new Admin_Model_Evento();
     $data = $evento->buscaEventoPessoa($idEvento);
     $this->view->evento = $data;
     $this->view->id_evento = $idEvento;
     if ($data['validada']) {
         $this->view->url_situacao = "<a href=\"/admin/evento/invalidar/{$idEvento}\"\n                 class=\"btn btn-warning\"><i class=\"fa fa-remove\"></i> " . $this->t->_("Invalidate") . "</a>";
     } else {
         $this->view->url_situacao = "<a href=\"/admin/evento/validar/{$idEvento}\"\n                 class=\"btn btn-success\"><i class=\"fa fa-check\"></i> " . $this->t->_("Validate") . "</a>";
     }
     if ($data['apresentado']) {
         $this->view->url_apresentado = "<a href='{$this->view->url(array('id' => $idEvento), 'evento_desfazer_apresentado', true)}'\n                class='btn btn-warning'>\n                  <i class='fa fa-eye-slash'></i> " . $this->t->_("Undo presented") . "</a>";
     } else {
         $this->view->url_apresentado = "<a href='{$this->view->url(array('id' => $idEvento), 'evento_apresentado', true)}'\n                class='btn btn-success'>\n                  <i class='fa fa-eye'></i> " . $this->t->_("Presented") . "</a>";
     }
     $this->view->horarios = $evento->listarHorarios($idEvento);
     $this->view->outrosPalestrantes = $evento->listarOutrosPalestrantes($idEvento);
 }