public function pacotes() { require_once "model/pacoteDAO.php"; $pDAO = new PacoteDAO(); $pacotes = $pDAO->listar(); $this->views->assign("pacotes", $pacotes); $this->views->render("home_pacotes2"); }
$permissao = verifica_permissao('Cliente', $controle_id_departamento_p, $controle_id_departamento_s); if ($permissao == 'FALSE') { echo '<br><br><strong>Você não tem permissão para acessar essa página</strong>'; exit; } ?> <div id="topo"> <h1 class="tit"><img src="../images/tit/tit_cliente.png" alt="Título" /> Cliente</h1> <hr class="tit" /> <br /> </div> <div id="meio"><?php pt_register('POST', 'submit'); $clienteDAO = new ClienteDAO(); $pacoteDAO = new PacoteDAO(); $usuarioDAO = new UsuarioDAO(); if ($submit) { //check for errors $error = ""; pt_register('POST', 'id'); $errors = array(); $error = "<b>Ocorreram os seguintes erros:</b><ul>"; pt_register('POST', 'nome'); pt_register('POST', 'tel2'); pt_register('POST', 'tel'); pt_register('POST', 'email'); pt_register('POST', 'endereco'); pt_register('POST', 'bairro'); pt_register('POST', 'cidade'); pt_register('POST', 'estado');