alert('Você não está logado.'); "; echo ""; } /*$nivel = $_SESSION['UsuarioNivel']; if ($nivel <> 1) { session_destroy(); echo ""; echo ""; }*/ include "conexao.php"; $query = mysqli_query($conexao,"SELECT * FROM apoioTecnico order by unidade"; $executar_query = mysqli_query($query); $contar = mysqli_num_rows($executar_query); for($i=0;$i<1;$i++){ $html[$i] = ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= "
idUnidadeSetorTitulo ProjetoObjetivoJustificativaPlanodo Projetonicio do Projetoterminodo ProjetoCarga HoraN° de BolsistaNome OrientadorFuncao OrientadorSiape Orientadoremail OrientadorcodTel OrientadorTelefone OrientadorcodCel OrientadorcelularOrientNome SupervisorFuncao Supervisorsiape Supervisoremail SupervisorcodTel Supervisortelefone SupervisorcodCel Supervisorrcelular SupervisorCentro de CustoprogramafontelinhaAtuacaodataInscCódigo do ProjetoAvaliacaoobs AvaliacaoData Avalia
"; } $i = 1; while($row = mysqli_fetch_array($executar_query)){ $id= $row['id']; $unidade=$row['unidade']; $setor =$row['setor']; $tituloProjeto=$row['tituloProjeto']; $objetivo= $row['objetivo']; $justificativa= $row['justificativa']; $plano= $row['plano']; $inicio= $row['inicio']; $termino= $row['termino']; $cargaHora= $row['cargaHora']; $nunBolsista= $row['nunBolsista']; $nomeOrient= $row['nomeOrient']; $funcaoOrient= $row['funcaoOrient']; $siapeOrient= $row['siapeOrient']; $emailOrient= $row['emailOrient']; $codTelOrient= $row['codTelOrient']; $telefoneOrient= $row['telefoneOrient']; $codCelOrient= $row['codCelOrient']; $celularOrient= $row['celularOrient']; $nomeSuper= $row['nomeSuper']; $funcaoSuper= $row['funcaoSuper']; $siapeSuper= $row['siapeSuper']; $emailSuper= $row['emailSuper']; $codTelSuper= $row['codTelSuper']; $telefoneSuper= $row['telefoneSuper']; $codCelSuper= $row['codCelSuper']; $celularSuper= $row['celularSuper']; $cCusto= $row['cCusto']; $programa= $row['programa']; $fonte= $row['fonte']; $linhaAtuacao= $row['linhaAtuacao']; $dataInsc= $row['dataInsc']; $codProg= $row['codProg']; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= ""; $html[$i] .= "
$id$unidade$setor$tituloProjeto$objetivo$justificativa$plano$inicio$termino$cargaHora$nunBolsista$nomeOrient$funcaoOrient$siapeOrient$emailOrient$codTelOrient$telefoneOrient$codCelOrient$celularOrient$nomeSuper$funcaoSuper$siapeSuper$emailSuper$codTelSuper$telefoneSuper$codCelSuper$celularSuper$cCusto$programa$fonte$linhaAtuacao$dataInsc$codProg$avaliacao$obsAvalia$dataAvalia
"; $i++; } $arquivo = 'Projetos_PDAI_Ativos.xls'; header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); header ("Content-type: application/x-msexcel"); header ("Content-Disposition: attachment; filename={$arquivo}" ); header ("Content-Description: PHP Generated Data" ); for($i=0;$i<=$contar;$i++){ echo $html[$i]; } ?>