//Esto es para mostrar todos los errores y pasos:
error_reporting(E_ALL);
ini_set('display_errors', 1);
$OFERTAS_INDEX_JSON_ID = 'index_001.ofertas.contracts.ro';
include_once(__DIR__ . '/../web_sections.php');
include_once(__DIR__ . '/colecta_web_sections.php');
include_once(__DIR__ . '/../management/json.php');
?>
Ofertas Mus 3D
review_avg_stars_section(); ?>
blog_css_js(); ?>
ofertas_css(); ?>
oferta_css(); ?>
menu_spacer();
navigation_path(__FILE__);
?>
if (isset($_GET['id'])) {
$oferta_id = $_GET['id'];
$oferta_json = id_to_json($oferta_id);
echo oferta_json_to_html($oferta_json);
//Enviando log de usuario, para luego ver.
$msg = "xp=oferta&rt=show&var=" . $oferta_id;
user_log_current_session($msg);
} else { //if (!isset($_GET['id']))
$ofertas_json = id_to_json($OFERTAS_INDEX_JSON_ID);
foreach ($ofertas_json['items'] as $oferta_json) {
echo oferta_json_to_html($oferta_json);
} //foreach ($ofertas_json['items'] as $oferta_json)
//Enviando log de usuario, para luego ver.
$msg = "xp=ofertas_index&rt=show&var=" . $OFERTAS_INDEX_JSON_ID;
user_log_current_session($msg);
} //if (isset($_GET['id']))
?>
footer_section();
cookies_message_section();
$BACK_URL = compute_back_url_if_any();
colecta_menu_section("ofertas", $_GET);
close_button();
prevent_links_to_open_in_other_window_if_web_app();
?>