<?php include_once '../../includes.sys/ini.php'; include_once '../../includes.sys/metodos.php'; include_once '../DAO/ListagemProjetoDAO.php'; include_once '../ListagemProjeto.class.php'; checkUserAuth(EXTERNAL_ROOT_PORTAL . '/index.php?error=true'); include_once '../../head.php'; $listagemProjeto = new ListagemProjeto(); $DAO = new ListagemProjetoDao(); $listagemProjeto->setId(limpaTexto($_GET['id'])); //Pegando o nome do projeto $retorno = $DAO->Listar("SELECT nome FROM " . MYSQL_BASE_PROJETO_NOMES . " pn WHERE id=" . $listagemProjeto->getId()); foreach ($retorno as $item) { $listagemProjeto->setNome($item['nome']); } ?> <!-- topbar ends --> <div class="container-fluid"> <div class="row-fluid"> <!-- left menu starts --> <div class="span2 main-menu-span"> <?php include_once '../menu.php'; ?> </div> <!--/span--> <!-- left menu ends --> <noscript>
echo '<script language= "JavaScript">location.href="index.php";</script>'; } } else { echo '<script language= "JavaScript">alert("Erro ao alterar o registro");</script>'; } } else { $msg = utf8_encode("Erro - Registro não foi salvo"); echo '<script language= "JavaScript">alert("' . $msg . '");</script>'; } } else { echo '<script language= "JavaScript">alert("Preenchas todos os campos.");</script>'; } } else { $listagemProjeto->setId(limpaTexto($_GET['id'])); //Pegando o nome do projeto $retorno = $DAO->Listar("SELECT nome FROM " . MYSQL_BASE_PROJETO_NOMES . " pn WHERE id=" . $listagemProjeto->getId()); foreach ($retorno as $item) { $listagemProjeto->setNome($item['nome']); } //Pegando todos os documento associados ao projeto $retorno = $DAO->Listar("SELECT * FROM " . MYSQL_BASE_PROJETO_ARQUIVOS . " WHERE ativo='S' AND id_projeto_nome = " . $listagemProjeto->getId()); foreach ($retorno as $item) { $arquivos[] = $item['id_documento']; } $listagemProjeto->setArquivos($arquivos); } ?> <!-- topbar ends --> <div class="container-fluid"> <div class="row-fluid">