Viewing file: pdc.php (1.73 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once 'conexion.php';
/*$hoy=gmdate("Y-m-d", time() + $zone);*/
class Pdc extends Conexion {
public $mysqli;
public $data;
public function __construct() {
$this->mysqli = parent::conectar();
$this->data = array();
}
//*****************************************************************
// LISTAMOS TODOS LOS RADICADOS
//*****************************************************************
public function pdc(){
$resultado = $this->mysqli->query("SELECT `id`,`TERCERO`,`ESTACION`,`DECISION`,`ACTO`,`MEMORANDO`,`FEC_EMISION`,`FEC_NOTIFICACION`,`FEC_EJECUTORIA` FROM `pdc` where CURDATE() >= FEC_EJECUTORIA and CURDATE() <= FEC_DESFIJACION");
while( $fila = $resultado->fetch_assoc() ){
$data[] = $fila;
}
if (isset($data)) {
return $data;
}
}
//*****************************************************************
// ANONIMOS POR ID
//*****************************************************************
/* public function anonimosPorId($id){
$consulta = sprintf("SELECT
anonimos.id,
anonimos.rad_entrada,
anonimos.rad_salida,
anonimos.fec_fijacion,
anonimos.fec_desfijacion,
anonimos.ruta
FROM
anonimos
WHERE
anonimos.id = %s order by id desc" ,
parent::comillas_inteligentes($id)
);
$resultado = $this->mysqli->query($consulta);
while( $fila = $resultado->fetch_assoc() ){
$data[] = $fila;
}
if (isset($data)) {
return $data;
}
}*/
}
?>
|