sql($sql); $exec = $conn->executar($query); if (!$exec['id']) { header('Location: ' . $baseUrl); } $sql_f = "SELECT * FROM secao_fotos WHERE status = 1 AND cod_secao = $exec[id] ORDER BY pos_secao DESC, listorder ASC, id DESC"; $query_f = $conn->sql($sql_f); $rows_f = $conn->numReg; $pageCoverImage = $conn->executar($query_f, 0); $sql_a = "SELECT * FROM secao_arquivos WHERE status = 1 AND cod_secao = $exec[id] ORDER BY id DESC"; $query_a = $conn->sql($sql_a); $rows_a = $conn->numReg; $sql_v = "SELECT v.* FROM videos v JOIN rel_video_secao r ON (r.cod_video = v.id) WHERE r.cod_secao = $exec[id] AND v.status = 1 ORDER BY v.data DESC, v.id DESC "; $query_v = $conn->sql($sql_v); $rows_v = $conn->numReg; $nav = new Paginacao(6); $sql_not_rel = "SELECT n.* FROM noticias n JOIN rel_secao_noticia r ON (r.cod_noticia = n.id) WHERE r.cod_secao = $exec[id] AND n.status = 1 ORDER BY n.data DESC, n.id DESC "; $query_not_rel = $nav->sql($sql_not_rel); $rows_not_rel = $nav->numReg; $pageName = "$exec[titulo] - $exec[breadcrumb]"; $titulo_breadcrumb = $exec['breadcrumb'] ? $exec['breadcrumb'] : $exec['titulo']; //$pre_titulo_breadcrumb = $exec['breadcrumb']; $og_description = textoOgDescription($exec['resumo']); if ($pageCoverImage['foto']) { $og_image = "UPLarquivos/minis/$pageCoverImage[foto]"; } ?>

Documentos

executar($query_a, $i); ?>



Vídeos Relacionados

executar($query_v, $i); ?>