示例#1
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('centroamericas' => articulo(42), 'latinoamericas' => articulo(43), 'globales' => articulo(44), 'subsecciones' => subseccion(3), 'banner1' => banner(3, 1), 'banner2' => banner(3, 2), 'banner3' => banner(3, 3), 'banner4' => banner(3, 4), 'bannerMovil' => banner(3, 'movil'), 'leidos' => leidos(3)));
示例#2
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('politicas' => articulo(37), 'gobiernos' => articulo(38), 'partidos' => articulo(39), 'subsecciones' => subseccion(2), 'banner1' => banner(2, 1), 'banner2' => banner(2, 2), 'banner3' => banner(2, 3), 'banner4' => banner(2, 4), 'bannerMovil' => banner(2, 'movil'), 'leidos' => leidos(2)));
示例#3
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
$bolinfo = mysql_query("SELECT nombre, porcentaje, valor, fecha, ciudad from bolsa");
$intinfo = mysql_query("SELECT nombre, porcentaje, fecha from tasainteres");
$divinfo = mysql_query("SELECT nombre, cambio, pais, fecha from divisa");
$datinfo = mysql_query("SELECT indicador, periodo, cifras, enlaceDetalles as enlace from datoseconomicos");
$merinfo = mysql_query("SELECT nombre, descripcion, cambio, porcentaje, menor, masAlto, ultimo, fecha from mercado");
while ($bolpreview = mysql_fetch_array($bolinfo)) {
    $bolsa[] = array('nombre' => $bolpreview['nombre'], 'fecha' => $bolpreview['fecha'], 'valor' => $bolpreview['valor'], 'ciudad' => $bolpreview['ciudad'], 'porcentaje' => $bolpreview['porcentaje']);
}
while ($intpreview = mysql_fetch_array($intinfo)) {
    $interes[] = array('nombre' => $intpreview['nombre'], 'fecha' => $intpreview['fecha'], 'porcentaje' => $intpreview['porcentaje']);
}
while ($divpreview = mysql_fetch_array($divinfo)) {
    $divisa[] = array('nombre' => $divpreview['nombre'], 'pais' => $divpreview['pais'], 'fecha' => formatoFecha2($divpreview['fecha']), 'cambio' => $divpreview['cambio']);
}
while ($datpreview = mysql_fetch_array($datinfo)) {
    $dato[] = array('indicador' => $datpreview['indicador'], 'periodo' => $datpreview['periodo'], 'cifras' => $datpreview['cifras'], 'enlace' => $datpreview['enlace']);
}
while ($merpreview = mysql_fetch_array($merinfo)) {
    $mercado[] = array('nombre' => $merpreview['nombre'], 'descripcion' => $merpreview['descripcion'], 'cambio' => $merpreview['cambio'], 'porcentaje' => $merpreview['porcentaje'], 'menor' => $merpreview['menor'], 'masAlto' => $merpreview['masAlto'], 'fecha' => $merpreview['fecha'], 'ultimo' => $merpreview['ultimo']);
}
echo json_encode(array('negocios' => articulo(45), 'coyunturas' => articulo(46), 'mundos' => articulo(47), 'mercados' => articulo(48), 'analisiss' => opinion(49), 'bolsas' => $bolsa, 'intereses' => $interes, 'divisas' => $divisa, 'datos' => $dato, 'subsecciones' => subseccion(5), 'mercas' => $mercado, 'banner1' => banner(5, 1), 'banner2' => banner(5, 2), 'banner3' => banner(5, 3), 'banner4' => banner(5, 4), 'bannerMovil' => banner(5, 'movil'), 'leidos' => leidos(5)));
示例#4
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('contratabues' => articulo(58), 'resenas' => articulo(57), 'artes' => articulo(55), 'literaturas' => articulo(56), 'anecdotas' => articulo(54), 'entrevistas' => articulo(59), 'subsecciones' => subseccion(6), 'banner1' => banner(6, 1), 'banner2' => banner(6, 2), 'banner3' => banner(6, 3), 'banner4' => banner(6, 4), 'bannerMovil' => banner(6, 'movil'), 'leidos' => leidos(6)));
示例#5
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('ambientes' => articulo(27), 'violencias' => articulo(28), 'saludes' => articulo(29), 'dds' => articulo(30), 'educaciones' => articulo(31), 'migraciones' => articulo(32), 'generos' => articulo(33), 'periodismos' => articulo(34), 'tabues' => articulo(35), 'judiciales' => articulo(36), 'subsecciones' => subseccion(4), 'banner1' => banner(4, 1), 'banner2' => banner(4, 2), 'banner3' => banner(4, 3), 'banner4' => banner(4, 4), 'bannerMovil' => banner(4, 'movil'), 'leidos' => leidos(4)));
示例#6
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('cronicas' => articulo(40), 'aconteceres' => articulo(41), 'subsecciones' => subseccion(7), 'banner1' => banner(7, 1), 'banner2' => banner(7, 2), 'banner3' => banner(7, 3), 'banner4' => banner(7, 4), 'bannerMovil' => banner(7, 'movil'), 'leidos' => leidos(7)));