Пример #1
0
 public function gerar($id, $data)
 {
     $d = $this->matricula->pesquisar($id);
     $r = $this->mm->pesquisar($d->getId(), $data);
     $css = "views/layout/default/bootstrap/css/bootstrap.min.css";
     $report = new \application\Diploma($css, 'sam');
     $report->setData($d->getData());
     $report->setNome($r->getMatricula()->getAluno()->getPessoa()->getNome());
     $report->setModulo($r->getModulo()->getNome());
     $report->BuildPDF();
     $lo = new LogUso('log');
     $lo->verificarArquivo();
     $lo->gravar("Foi gerado um diploma" . '  nome de aluno : ' . $d->getAluno()->getPessoa()->getNome());
     $report->Exibir();
 }
Пример #2
0
 public function remover($id = FALSE)
 {
     if ($this->filtraInt($id)) {
         if ($this->docente->remover($id)) {
             $lo = new LogUso('log');
             $lo->verificarArquivo();
             $lo->gravar("Foi removido um  aluno do sistema");
             return TRUE;
         }
     }
     $this->view->dados = $this->docente->pesquisar();
     $this->view->renderizar("remover");
 }
Пример #3
0
 public function remover($id = FALSE)
 {
     if ($this->filtraInt($id)) {
         if ($this->curso->remover($id)) {
             $lo = new LogUso('log');
             $lo->verificarArquivo();
             $lo->gravar("Foi apagado um  curso");
             return TRUE;
         }
     }
     $this->view->dados = $this->curso->pesquisar();
     $this->view->renderizar("remover");
 }