/**
  *
  *@param $id_ciu
  *
  *
  **/
 public function getById($id_jefe)
 {
     $this->conex = DataBase::getInstance();
     //Consulta SQL
     $consulta = "SELECT * FROM FISC_JEFE_OFICINA WHERE \n\t\t\t\t\t\tID_JEFE=:id_jefe";
     $stid = oci_parse($this->conex, $consulta);
     if (!$stid) {
         $e = oci_error($this->conex);
         trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     }
     // Realizar la lógica de la consulta
     oci_bind_by_name($stid, ':id_jefe', $id_jefe);
     $r = oci_execute($stid);
     if (!$r) {
         $e = oci_error($stid);
         trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     }
     $result = array();
     // Obtener los resultados de la consulta
     while ($fila = oci_fetch_array($stid, OCI_ASSOC + OCI_RETURN_NULLS)) {
         $it = new ArrayIterator($fila);
         $alm = new Denuncia();
         while ($it->valid()) {
             $alm->__SET(strtolower($it->key()), $it->current());
             $it->next();
         }
         $result[] = $alm;
     }
     //Libera los recursos
     oci_free_statement($stid);
     // Cierra la conexión Oracle
     oci_close($this->conex);
     //retorna el resultado de la consulta
     return $result;
 }
 public function registrar2(Denuncia $data, FiscEmpresa $empresa)
 {
     $this->conex = DataBase::getInstance();
     /*Consultar Empresa*/
     $id_empresa = $empresa->__GET('id_fisc_empresa');
     $consulta_empresa = "SELECT * FROM FISC_EMPRESA WHERE ID_FISC_EMPRESA= '" . $id_empresa . "'";
     $compemp = oci_parse($this->conex, $consulta_empresa);
     if (!$compemp) {
         return false;
     }
     $exemp = oci_execute($compemp);
     if (!$exemp) {
         return false;
     }
     $empresa_result = oci_fetch_assoc($compemp);
     /*Consultar Empresa*/
     /*Verificar existencia de empresa*/
     if (!isset($empresa_result['ID_EMPRESA'])) {
         /*Insertando en la tabla FISC_EMPRESA*/
         $id_emp = $empresa->__GET('id_fisc_empresa');
         $rif = $empresa->__GET('rif_fisc_empresa');
         $nombre = $empresa->__GET('nombre_fisc_empresa');
         $telefono = $empresa->__GET('telefono_fisc_empresa');
         $email = $empresa->__GET('email_fisc_empresa');
         $direccion = $empresa->__GET('direccion_fisc_empresa');
         $referencia = $empresa->__GET('punto_ref_fisc_empresa');
         $denuncias = 1;
         //clave foranea de tabla denuncia
         $fiscalizaciones = 3;
         //clave foranea de tabla fiscalizaciones
         $consulta = "INSERT INTO FISC_EMPRESA (\n\t\t\t\tID_FISC_EMPRESA, \n\t\t\t\tRIF_FISC_EMPRESA,\n\t\t\t\tNOMBRE_FISC_EMPRESA, \n\t\t\t\tTELEFONO_FISC_EMPRESA, \n\t\t\t\tEMAIL_FISC_EMPRESA, \n\t\t\t\tDIRECCION_FISC_EMPRESA, \n\t\t\t\tDENUNCIAS_FISC_EMPRESA, \n\t\t\t\tPUNTO_REF_FISC_EMPRESA, \n\t\t\t\tFISCALIZACIONES_FISC_EMPRESA)\nvalues\n(\n\t:id_emp,\n\t:rif_emp,\n\t:nombre, \n\t:telefono,\n\t:email,\n\t:direccion,\n\t:denuncias,\n\t:ref,\n\t:fiscalizaciones\n\t)";
         $stid = oci_parse($this->conex, $consulta);
         if (!$stid) {
             echo "Desde el parse 1";
             $e = oci_error($this->conex);
             trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
             //Libera los recursos
             oci_free_statement($stid);
             // Cierra la conexión Oracle
             oci_close($this->conex);
             return false;
         }
         oci_bind_by_name($stid, ':id_emp', $id_emp);
         oci_bind_by_name($stid, ':rif_emp', $rif);
         oci_bind_by_name($stid, ':nombre', $nombre);
         oci_bind_by_name($stid, ':telefono', $telefono);
         oci_bind_by_name($stid, ':email', $email);
         oci_bind_by_name($stid, ':direccion', $direccion);
         oci_bind_by_name($stid, ':denuncias', $denuncias);
         oci_bind_by_name($stid, ':ref', $referencia);
         oci_bind_by_name($stid, ':fiscalizaciones', $fiscalizaciones);
         $r = oci_execute($stid, OCI_NO_AUTO_COMMIT);
         if (!$r) {
             echo "Desde el execute 1";
             $e = oci_error($this->conex);
             trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
             //Revertimos los cambios
             //oci_rollback($this->conex);
             //Libera los recursos
             oci_free_statement($stid);
             // Cierra la conexión Oracle
             oci_close($this->conex);
             return false;
         }
         /*Insertando en la tabla FISC_EMPRESA*/
     }
     /*Verificar existencia de empresa*/
     /*Insertando en la tabla FISC_APODERADO*/
     $id_den = $data->__GET('id_denuncia');
     $id_ciu = $data->__GET('id_ciudadano');
     $motivo = $data->__GET('motivo_denuncia');
     $sts = $data->__GET('estatus_denuncia');
     $fecha = $data->__GET('fecha_denuncia');
     $rif = $data->__GET('rif');
     $descripcion = $data->__GET('descripcion');
     $responsable = $data->__GET('responsable');
     //$apoderado   = $data->__GET('apoderado');
     $consulta = "INSERT INTO FISC_APODERADO(\n\tid_denuncia,\n\tid_ciudadano,\n\trif,\n\tmotivo_denuncia,\n\testatus_denuncia,\n\tfecha_denuncia,\n\tdescripcion, \n\tresponsable)\nvalues (\n\t:id_den,\n\t:id_ciu,\n\t:rif,\n\t:mot,\n\t:sts,\n\t:fec,\n\t:descrip,\n\t:responsable)";
     $stid = oci_parse($this->conex, $consulta);
     /*values (
      	:id_den,:id_ciu,:rif,:mot,:sts,
      	:fec,:descrp,:creator,:upd)");*/
     if (!$stid) {
         echo "Desde el parse 2";
         $e = oci_error($this->conex);
         trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
         //$e = oci_error($this->conex);
         //trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
         //Libera los recursos
         oci_free_statement($stid);
         // Cierra la conexión Oracle
         oci_close($this->conex);
         return false;
     }
     // Realizar la lógica de la consulta
     oci_bind_by_name($stid, ':id_den', $id_den);
     oci_bind_by_name($stid, ':id_ciu', $id_ciu);
     oci_bind_by_name($stid, ':rif', $rif);
     oci_bind_by_name($stid, ':mot', $motivo);
     oci_bind_by_name($stid, ':sts', $sts);
     oci_bind_by_name($stid, ':fec', $fecha);
     oci_bind_by_name($stid, ':descrip', $descripcion);
     oci_bind_by_name($stid, ':responsable', $responsable);
     //oci_bind_by_name($stid, ':apoderado', $apoderado);
     /*
     oci_bind_by_name($stid, ':creator', $data->__GET('createdby'));
     oci_bind_by_name($stid, ':updater', $data->__GET('updatedby'));
     oci_bind_by_name($stid, ':upd', $data->__GET('updatedate'));
     */
     $r = oci_execute($stid, OCI_NO_AUTO_COMMIT);
     if (!$r) {
         echo "Desde el execute 2";
         $e = oci_error($this->conex);
         trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
         //Revertimos los cambios
         oci_rollback($this->conex);
         //Libera los recursos
         oci_free_statement($stid);
         // Cierra la conexión Oracle
         oci_close($this->conex);
         return false;
     }
     //Libera los recursos
     oci_free_statement($stid);
     /*Insertando en la tabla FISC_APODERADO*/
     //No ocurrió ningún fallo al insertar los datos de la denuncia
     /*Insertando en la tabla FISC_DOCUMENTOS
     		$documentos = $data->__GET('documentos');
     		//$error = false;
     		for($i=0;$i<count($documentos);$i++)
     		{
     			$consulta = "INSERT INTO FISC_DOC_DEN(
     						id_denuncia,
     			
     						id_documento)
     						values (
     				    	:id_den,:id_doc)";
     			$stid = oci_parse($this->conex, $consulta);
     			
     			if (!$stid)
     			{
     				echo "Desde el parse 3";
     				$e = oci_error($this->conex);
         			trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     				oci_rollback($this->conex);
         			//$error = true;
         			//self::eliminar($id_den);
         			//$e = oci_error($this->conex);
         			//trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     				//Libera los recursos
     				oci_free_statement($stid);
     				// Cierra la conexión Oracle
     				oci_close($this->conex);
     				return false;
     			}
     
     			oci_bind_by_name($stid, ':id_den', $id_den);
     			oci_bind_by_name($stid, ':id_doc', $documentos[$i]);
     			$r = oci_execute($stid, OCI_NO_AUTO_COMMIT);
     			if (!$r)
     			{
     				echo "Desde el execute 3";
     				$e = oci_error($this->conex);
         			trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     				//$error = true;
         			//self::eliminar($id_den);
         			oci_rollback($this->conex);
         			//$e = oci_error($stid);
         			//trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     				//Libera los recursos
     				oci_free_statement($stid);
     				// Cierra la conexión Oracle
     				oci_close($this->conex);
     				return false;
     			}
     		}
     		Insertando en la tabla FISC_DOCUMENTOS*/
     //Verificar existencia de Apoderado
     /*
     if( !isset($apoderado_result['ID_APODERADO']))
     {
     
     //Insertando en la tabla FISC_APODERADO
     $nombres_apoderado    = $data->__GET('nombres_apoderado');
     $apellidos_apoderado  = $data->__GET('apellidos_apoderado');
     
     $consulta = "INSERT INTO FISC_APODERADO(
     					id_apoderado,
     					nombres_apoderado,
     					apellidos_apoderado)
     					values (
     			    	:id_apo, :name_apo, :ape_apo)";
     		$stid_apo = oci_parse($this->conex, $consulta);
     		
     		if (!$stid_apo)
     		{
     			echo "Desde el parse 4";
     			$e = oci_error($this->conex);
         			trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     			oci_rollback($this->conex);
         			//$error = true;
         			//self::eliminar($id_den);
         			//$e = oci_error($this->conex);
         			//trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     			//Libera los recursos
     			oci_free_statement($stid);
     			// Cierra la conexión Oracle
     			oci_close($this->conex);
     			return false;
     		}
     
     		oci_bind_by_name($stid_apo, ':id_apo', $id_apoderado);
     		oci_bind_by_name($stid_apo, ':name_apo', $nombres_apoderado);
     		oci_bind_by_name($stid_apo, ':ape_apo', $apellidos_apoderado);
     		$execute_apo = oci_execute($stid_apo, OCI_NO_AUTO_COMMIT);
     		if (!$execute_apo)
     		{
     			echo "Desde el execute 4";
     			$e = oci_error($this->conex);
         			trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     			//$error = true;
         			//self::eliminar($id_den);
         			oci_rollback($this->conex);
         			//$e = oci_error($stid);
         			//trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
     			//Libera los recursos
     			oci_free_statement($stid);
     			// Cierra la conexión Oracle
     			oci_close($this->conex);
     			return false;
     		}
     
     //Insertando en la tabla FISC_APODERADO
     
     }//Verificar existencia de Apoderado
     */
     $r = oci_commit($this->conex);
     if (!$r) {
         oci_close($this->conex);
         return false;
     }
     // Cierra la conexión Oracle
     oci_close($this->conex);
     return true;
 }
 $direccion_completa = $estado . ", " . $municipio . ", " . $parroquia . ", " . $calle . ", " . $edificio . " N° " . $casa;
 $ciudadano->__SET('id_ciudadano', $idc)->__SET('nombres', $nombres)->__SET('apellidos', $apellidos)->__SET('direccion', $direccion_completa)->__SET('telefono_movil', $tlf_movil)->__SET('telefono_habitacion', $tlf_habit)->__SET('correo', $correo);
 //Fin Datos Ciudadano
 //Datos de la Denuncia
 $rif = htmlentities($_POST['rif']);
 $num_den = htmlentities($_POST['num_den']);
 //id de la denuncia
 $fecha = htmlentities($_POST['fecha']);
 $hora = htmlentities($_POST['hora_denuncia']);
 $estatus = htmlentities($_POST['estatus']);
 $descripcion = htmlentities($_POST['descripcion']);
 $responsable = htmlentities($_POST['direccion_responsable']);
 $apoderado = htmlentities($_POST['nacionalidad'] . $_POST['cedula_apo']);
 $name_apod = htmlentities($_POST['nombre_apo']);
 $apel_apod = htmlentities($_POST['apellido_apo']);
 $denuncia = new Denuncia();
 $modelo = new DenunciaDAO();
 $denuncia->__SET('id_ciudadano', $idc);
 $denuncia->__SET('rif', $rif);
 $denuncia->__SET('id_denuncia', $num_den);
 $denuncia->__SET('fecha_denuncia', $fecha);
 $denuncia->__SET('hora_denuncia', $hora);
 if (!empty($_POST['motivos'])) {
     $motivos = $_POST['motivos'];
     $denuncia->__SET('motivo_denuncia', $motivos);
 }
 $denuncia->__SET('estatus_denuncia', $estatus);
 $denuncia->__SET('descripcion', $descripcion);
 $denuncia->__SET('responsable', $responsable);
 $denuncia->__SET('apoderado', $apoderado);
 $denuncia->__SET('nombres_apoderado', $name_apod);
Beispiel #4
0
<?php

include_once '../Modelo/MDenuncia.php';
include_once '../Modelo/MBitacora.php';
$md = new Denuncia();
$bi = new Bitacora();
date_default_timezone_set("America/Asuncion");
$fecha = date("d/m/Y");
$hora = date("h:i:s");
$ac = "Eliminar Grado Policial";
if (isset($_POST['Registrar'])) {
    $datos['ID_D'] = (int) $_POST['ID_D'];
    $datos['FH'] = "{$fecha} - {$hora}";
    $datos['CI_S'] = $_POST['CI_S'];
    $datos['DP'] = $_POST['cmbDP'];
    $datos['TD'] = $_POST['cmbTD'];
    $datos['Lugar'] = $_POST['LugarH'];
    $datos['Descripcion'] = $_POST['DescripcionH'];
    $datos['Estado'] = "EN INVESTIGACION";
    $sx = $md->Insertar($datos);
    $sy = $md->ActualizarND();
    header("Location: ../Vista/VDenuncia.php");
}
if (isset($_POST['Eliminar'])) {
    $datos['Nombre'] = $_POST['Nombre'];
    $bt['CI_Oficial'] = 9001961;
    $bt['Fecha'] = $fecha;
    $bt['Hora'] = $hora;
    $bt['Accion'] = $ac;
    $bt['Motivo'] = $_POST['Motivo'];
    $sx = $md->Eliminar($datos);
Beispiel #5
0
    $tiempo_transcurrido = strtotime($ahora) - strtotime($fechaGuardada);
    //comparamos el tiempo transcurrido
    if ($tiempo_transcurrido >= 600) {
        //si pasaron 10 minutos o más
        session_destroy();
        // destruyo la sesión
        header("Location: ../index.html");
        //envío al usuario a la pag. de autenticación
        //sino, actualizo la fecha de la sesión
    } else {
        $_SESSION["ultimoAcceso"] = $ahora;
    }
}
require '../header.php';
require "../Modelo/MDenuncia.php";
$md = new Denuncia();
$sx = $md->Cargar_Denuncias_Terminadas();
?>

 <h1 style="margin-top: -60px;">Denuncias Terminadas</h1>
<div class="row" style="margin-top: -90px;">
          <table class="table table-striped table-bordered">
            <thead>
              <tr>
                <th style="background:black; color:white; text-align: center;">Caso</th>
                <th style="background:black; color:white; text-align: center;">Denuncia</th>
                <th style="background:black; color:white; text-align: center;">Lugar</th>
                <th style="background:black; color:white; text-align: center;">Distrito Policial</th>
                <th style="background:black; color:white; text-align: center;">Fecha y Hora</th>
                <th style="background:black; color:white; text-align: center;">Estado</th>
                <th style="background:black; color:white; text-align: center;">Evidencia</th>
Beispiel #6
0
    }
}
require "../partials/fpdf.php";
require "../Modelo/MDenuncia.php";
require "../Modelo/MOficial.php";
require "../Modelo/MD_Partes.php";
require "../Modelo/MD_Investigador.php";
date_default_timezone_set("America/Asuncion");
$fecha = date("Y/m/d");
$hora = date("h:i:s");
$ID = $_REQUEST['ID'];
$Denunciante = "Denunciante";
$Imputado = "Imputado";
$Testigo = "Testigo";
$Victima = "Victima";
$md = new Denuncia();
$mo = new Oficial();
$mdp = new Detalle_Partes();
$mdi = new Detalle_Investigador();
$sx = $md->Cargar_Denuncias($ID);
while ($row = mysql_fetch_array($sx)) {
    $ID_C = $row['ID_D'];
    $Fecha = $row['FH'];
    $CI_Servicio = $row['CI_S'];
    $Tipo = $row['TD'];
    $CI_Investigador = $row['CI_I'];
    $Lugar = $row['Lugar'];
    $Descripcion = $row['Descripcion'];
    $Estado = $row['Estado'];
}
$sy = $mo->Modificar_O($CI_Servicio);
Beispiel #7
0
    $tiempo_transcurrido = strtotime($ahora) - strtotime($fechaGuardada);
    //comparamos el tiempo transcurrido
    if ($tiempo_transcurrido >= 600) {
        //si pasaron 10 minutos o más
        session_destroy();
        // destruyo la sesión
        header("Location: ../index.html");
        //envío al usuario a la pag. de autenticación
        //sino, actualizo la fecha de la sesión
    } else {
        $_SESSION["ultimoAcceso"] = $ahora;
    }
}
require '../header.php';
require "../Modelo/MDenuncia.php";
$md = new Denuncia();
$sx = $md->Cargar_Denuncias_Activas();
?>

 <h1 style="margin-top: -60px;">Denuncias Registradas</h1>
<div class="row" style="margin-top: -90px;">
          <table class="table table-striped table-bordered">
            <thead>
              <tr>
                <th style="background:black; color:white; text-align: center;">Caso</th>
                <th style="background:black; color:white; text-align: center;">Denuncia</th>
                <th style="background:black; color:white; text-align: center;">Lugar</th>
                <th style="background:black; color:white; text-align: center;">Distrito Policial</th>
                <th style="background:black; color:white; text-align: center;">Fecha y Hora</th>
                <th style="background:black; color:white; text-align: center;">Estado</th>
                <th style="background:black; color:white; text-align: center;">Evidencia</th>
<?
   // voy a usar este modelo -----------------------------------------------------
	importar("Servidor/Modelos/denuncia.class.php");
	importar("Servidor/Modelos/propuesta.class.php");
	importar("Servidor/Modelos/seguridad.class.php");
	
	Seguridad::CheckAdmin();
	
	$denuncia = new Denuncia();
	$propuesta = new Propuesta();
	
	
	//consulto la base de datos ---------------------------------------
	
	$respuesta = $denuncia->obtenerTodasDenuncias();
	
	// armo los registros de la tabla con los datos obtenidos ---------	
	$var['registros_tabla'] = "";
	
	$cantidad = count($respuesta);
	for($i=0;$i<$cantidad;$i++){
	
	    //hacer aqui la segunda consulta 
        $array_productos_propuestos = $propuesta->obtenerListaPropuesta( $respuesta[$i]['id_lista_producto_propuesto'] );
						
		$minitabla = "";
		$cantidad_prod = count($array_productos_propuestos);
		for($j=0;$j<$cantidad_prod;$j++){
			$minitabla .= $array_productos_propuestos[$j]['titulo_producto'] . "</br>";
		}
		
Beispiel #9
0
<?php

include_once '../Modelo/MEvidencia.php';
include_once '../Modelo/MDenuncia.php';
$me = new Evidencia();
$md = new Denuncia();
date_default_timezone_set("America/Asuncion");
$fecha = date("Y/m/d");
$hora = date("h:i:s");
$ac = "Eliminar Grado Policial";
$ruta = "Evidencia";
if (isset($_POST['Registrar'])) {
    $ruta_temporal = $_FILES['file']['tmp_name'];
    $nombre_imagen = $_FILES['file']['name'];
    $ruta_destino = "../" . $ruta . "/" . $nombre_imagen;
    $datos['ID_Caso'] = (int) $_POST['N_Caso'];
    $datos['CI'] = (int) $_POST['CI_O'];
    $datos['Fecha'] = $_POST['Fecha_E'];
    $datos['Descripcion'] = $_POST['Descripcion'];
    $datos['Imagen'] = $ruta_destino;
    if (move_uploaded_file($ruta_temporal, $ruta_destino)) {
        $sx = $me->Insertar_E($datos);
        header("Location: ../Vista/V_Evidencias.php");
    } else {
        echo "No se pudo Insertar";
    }
}
if (isset($_REQUEST['Accion'])) {
    $ID = $_REQUEST['ID'];
    $sx = $md->Terminar_Caso($ID);
    header("Location: ../Vista/V_Evidencias.php");
Beispiel #10
0
    $tiempo_transcurrido = strtotime($ahora) - strtotime($fechaGuardada);
    //comparamos el tiempo transcurrido
    if ($tiempo_transcurrido >= 600) {
        //si pasaron 10 minutos o más
        session_destroy();
        // destruyo la sesión
        header("Location: ../index.html");
        //envío al usuario a la pag. de autenticación
        //sino, actualizo la fecha de la sesión
    } else {
        $_SESSION["ultimoAcceso"] = $ahora;
    }
}
require '../header.php';
require "../Modelo/MDenuncia.php";
$md = new Denuncia();
$sx = $md->Cargar_Denuncias();
?>

 <h1 style="margin-top: -60px;">Denuncias Registradas</h1>
<div class="row" style="margin-top: -90px;">
          <table class="table table-striped table-bordered">
            <thead>
              <tr>
                <th style="background:black; color:white; text-align: center;">Caso</th>
                <th style="background:black; color:white; text-align: center;">Denuncia</th>
                <th style="background:black; color:white; text-align: center;">Lugar</th>
                <th style="background:black; color:white; text-align: center;">Distrito Policial</th>
                <th style="background:black; color:white; text-align: center;">Fecha y Hora</th>
                <th style="background:black; color:white; text-align: center;">Estado</th>
                <th style="background:black; color:white; text-align: center;">Acciones</th>
Beispiel #11
0
        //sino, actualizo la fecha de la sesión
    } else {
        $_SESSION["ultimoAcceso"] = $ahora;
    }
}
require '../header.php';
include_once '../Modelo/MTipo_D.php';
include_once '../Modelo/MD_Partes.php';
include_once '../Modelo/MOficial.php';
include_once '../Modelo/MDenuncia.php';
include_once '../Modelo/MD_Investigador.php';
include_once '../Modelo/MDP.php';
$mtd = new Tipo_Denuncia();
$mo = new Oficial();
$mdp = new Detalle_Partes();
$md = new Denuncia();
$mdi = new Detalle_Investigador();
$mp = new Distrito_Policial();
$CIO = $_SESSION['CI'];
$sz = $md->ND();
$Denunciante = "Denunciante";
$Imputado = "Imputado";
$Victima = "Victima";
$Testigo = "Testigo";
$sx = $mtd->Cargar_Tipo_D();
$sy = $mo->Cargar_Oficiales_Inv();
date_default_timezone_set("America/Asuncion");
$fecha = date("d/m/Y");
$hora = date("h:i:s");
while ($row = mysql_fetch_array($sz)) {
    $NC = $row['Estado'];
Beispiel #12
0
<?
   // voy a usar este modelo -----------------------------------------------------
	importar("Servidor/Modelos/denuncia.class.php");
	
	importar("Servidor/Modelos/seguridad.class.php");
	Seguridad::Check();
	
	$denuncia = new Denuncia();
	
	//----------------------------------
	
	global $dato;
	$var['mensaje_tarea'] = "";
	$var['base_modificada'] = "";
	
	if($dato){
		$datos = explode( ':', $dato );			
			$var['base_modificada'] = '<base href="../"/>';
			switch($datos[0]){
				case "usuario": 
					$var['demandado'] = $datos[1];
					$var['producto'] = "";
					$var['propuesta'] = "";
				break;
				
				case "producto": 
					$var['demandado'] = $datos[2];
					$var['producto'] = $datos[1];
					$var['propuesta'] = "";
				break;