$val) { if ($key == "noticia") { $molranges = $val; // each contiguous pair of array entries are the // lower and upper range for each molecule definition for ($i=0; $i < count($molranges); $i+=2) { $offset = $molranges[$i] + 1; $len = $molranges[$i + 1] - $offset; $tdb[] = parseMol(array_slice($values, $offset, $len)); } } else { continue; } } return $tdb; } function parseMol($mvalues) { for ($i=0; $i < count($mvalues); $i++) { $mol[$mvalues[$i]["tag"]] = $mvalues[$i]["value"]; } return $mol; } $filename='https://portal.aeronautica.gob.pa/mapa/noticiaxml_detalle.php?w='.$_GET['cg']; $db = readDatabase($filename); $forms=new form(); $rx=new WEBx(); $total_db=count($db)-1; //OTRAS NOTICIAS $db2 = readDatabase('https://portal.aeronautica.gob.pa/mapa/noticiaxml2.php'); //BUSCA NOTICIA for($r=0;$r<=$total_db;$r++) { if($db[$r]['fecha']==$_GET['cg']) { $f1=explode('_',$db[$r]['fecha']); $f2=explode('.',$f1[1]); $fecha='Publicado: '.$f2[0].'/'.$f2[1].'/'.$f2[2]; $img2=$db[$r]['img']; $titulo=$db[$r]['titulo']; $descripcion=$db[$r]['descripcion']; } } ?> NOTICIAS
head(); ?>

por AAC




Galería


Total de '; echo $total_galeria=count($galeria)-1; echo ' Fotografías

'; for($ix=0;$ix<=$total_galeria;$ix++) { if($galeria[$ix] <>'.' && $galeria[$ix] <> '..') { /* Usamos las clases col-xs-6 (móviles), col-sm-4 (tablets), col-md-3 (pantallas grandes) para distribuir la galería */ echo ' '; } } ?>

Últimas Noticias


'.$db2[$r2]['titulo'].'

'.strip_tags(substr($db2[$r2]['descripcion'], 0, 300)).'


'; } ?>