include( "app/conexao-en.php" ); include( "app/funcoes.php" ); if($_GET['view'] == "all"){ $lim = 500; } else { $lim = 8; } $sqlNoticiaTotal = sql( "SELECT * FROM noticia ORDER BY data_noticia DESC", $con ); $numNoticiaTotal = mysqli_num_rows( $sqlNoticiaTotal ); $sqlNoticia = sql( "SELECT * FROM noticia ORDER BY data_noticia DESC LIMIT $lim", $con ); $numNoticia = mysqli_num_rows( $sqlNoticia ); $titulo = $menu[ 'nome7_pg' ]; $pgAtual = "noticias"; $styleAdd = ' '; include( "_en-top.php" ); ?> if ($numNoticia){ ?> echo $config['nome5_pg'] ; ?> echo $config['nome8_pg'] ; ?> echo $config['nome9_pg'] ; ?> $c = 1; while($noticia = mysqli_fetch_assoc($sqlNoticia)){ if (numeroImpar($c)){ $class = ""; } else { $class = "order-md-first"; } ?> echo nl2br($noticia['nome_noticia']) ; ?> echo data_extenso_en($noticia['data_noticia']) ; ?> $c++; } ?> if($_GET['view'] <> "all" and $numNoticiaTotal > $lim){ ?> echo $config['nome7_pg'] ; ?> } ?> } ?> include("_en-bottom.php"); ?>
echo $config['nome8_pg'] ; ?> echo $config['nome9_pg'] ; ?>
echo nl2br($noticia['nome_noticia']) ; ?>
echo data_extenso_en($noticia['data_noticia']) ; ?>