Example #1
0
<?php

include "clase_noticias.php";
$clase = new noticias();
$mensaje = "";
$categoria = "";
$cod_coment = "";
$id_noticias = "id";
$fecha_coment = "";
$comentario = "";
$nombre = "";
$noticias = $_REQUEST["id"];
if (isset($_REQUEST["Comentar"]) && $_REQUEST["Comentar"] == "Comentar") {
    //entrego los datos
    $clase->id_noticias = $_REQUEST["id"];
    $clase->fecha_coment = date("Y-m-d");
    $clase->desc_coment = $_REQUEST["comentario"];
    $clase->nombre = $_REQUEST["nombre"];
    //llamar a funcion guardar
    if ($clase->guardar_comentario()) {
        $mensaje = "Registro Realizado con Exito";
    } else {
        $mensaje = "A Fallado su Registro";
    }
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTG-8">
    <title>La voz de la verdad</title>
Example #2
0
<?php

include "clase_noticias.php";
$clase = new noticias();
$mensaje = "";
$categoria = "";
if (isset($_REQUEST["cat"])) {
    $categoria = $_REQUEST["cat"];
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTG-8">
    <title>La voz de la verdad</title>
    
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="estilos.css">
    <link rel="stylesheet" href="fonts.css">
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="js/header.js"></script>
    <script language="JavaScript1.2">
<!--

window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
Example #3
0
        $noticias = '';
        while ($row = $__BD->db_fetch_array($result)) {
            $id = $row[0];
            $this->procesarImagen($id);
            $titulo = $__LIB->traducir("noticias", "titulo", $id, $row["titulo"]);
            $menu .= '<a href="noticias.php#' . $id . '">' . $titulo . '</a><br/>';
            $noticias .= $this->mostrarNoticia($row, $titulo);
        }
        if (!$idNoticia) {
            echo $menu;
        }
        echo $noticias;
        if ($idNoticia) {
            echo '<p class="separador"><a class="botLista" href="noticias.php">' . _MAS_NOTICIAS . '</a>';
        }
        echo '</div>';
    }
}
//// OFICIAL /////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
/** @main_class_definition oficial_noticias */
class noticias extends oficial_noticias
{
}
$iface_noticias = new noticias();
$iface_noticias->contenidos();
?>


<?php 
include "../includes/right_bottom.php";
Example #4
0
<?php

include "clase_noticias.php";
$mensaje = "";
$buscador = "";
//incio la clase
$clase = new noticias();
$id_noticias = "";
$email = "";
$id_cat = "";
$titulo_not = "";
$fecha_not = "";
$foto_not = "";
$descripcion = "";
$datos = "";
$conexion = "";
if (isset($_REQUEST["id_noticias"]) && $_REQUEST["id_noticias"] != "") {
    $datos = $clase->noticias_por_id($_REQUEST["id_noticias"]);
    $titulo_not = $datos["titulo_not"];
    $id_noticias = $datos["id_noticias"];
    $descripcion = $datos["descripcion"];
}
/* Guardando datos */
if (isset($_REQUEST["Guardar"]) && $_REQUEST["Guardar"] == "Guardar") {
    //entrego los datos
    $clase->id_noticias = $_REQUEST["id_noticias"];
    $clase->email = $_REQUEST["email"];
    $clase->id_cat = $_REQUEST["id_cat"];
    $clase->titulo_not = $_REQUEST["titulo_not"];
    $clase->fecha_not = $_REQUEST["fecha_not"];
    $clase->foto_not = $_FILES["foto_not"]["name"];