MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/www/avigilajudicial/reporte_index.php
<?php
require('libs/fpdf/fpdf.php');


class PDF extends FPDF
{
	// Cabecera de página
	function Header()
	{
		// Logo
		//$this->Image('logo_pb.png',10,8,33);
		// Arial bold 15
		$this->SetFont('Arial','B',9);
		// Movernos a la derecha
		$this->Cell(60);
		// Título
		$this->Cell(70,10,'REPORTE DE PROCESOS',0,0,'C');
		$this->Ln(4);
		// Subtitulo
		$this->Cell(70);
		$this->Cell(50,10,'Vigilancia Judicial',0,0,'C');
		// Salto de línea
		$this->Ln(20);
		
		
		/*$this->Cell(15,10, "CEDULA",1,0,'C',0);
		$this->Cell(35,10, "# PROCESO",1,0,'C',0);
		$this->Cell(15,10, "TIPO",1,0,'C',0);
		$this->Cell(70,10, "DESPACHO",1,0,'C',0);
		$this->Cell(35,10, "CIUDAD DESPACHO",1,0,'C',0);
		$this->Cell(20,10, "ABOGADO",1,1,'C',0);*/
	}

	// Pie de página
	function Footer()
	{
		// Posición: a 1,5 cm del final
		$this->SetY(-15);
		// Arial italic 8
		$this->SetFont('Arial','I',8);
		// Número de página
		$this->Cell(0,10,'Pagina '.$this->PageNo().'/{nb}',0,0,'C');
	}
}




$pdf = new PDF('P','mm','letter',true);
$pdf->AliasNbPages();
$pdf->AddPage('PORTRAIT', 'letter');
$pdf->SetMargins(10,30,20,20);
//$pdf->Cell(40,10,utf8_decode('¡Hola, Mundo!'));


$pdf->SetFont('Arial','I',10);
$pdf->SetY(30);
$pdf->SetTextColor(255,0,0);
$pdf->Cell(0,5, 'DATOS PROCESO JUDICIAL',0,0,'C',0);
$pdf->Ln();



//Conexion a la base de datos
require '../Conectarse_.php';

//Consulta a proceso especifico
$consulta = mysql_query('SELECT * FROM vigilancia_judicial WHERE cedula = "'.$_GET["cedula"].'" and numero_proceso = "'.$_GET["numpro"].'" ');
//list($cedula, $numero_proceso) = mysql_fetch_row($consulta);
$row = mysql_fetch_assoc($consulta);







$pdf->Ln(10);

$pdf->SetFont('Arial','BI',10);

$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "N° Cedula : ",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(35,8, $row["cedula"],1,1,'C',0);


$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Tipo Proceso : ",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(35,8, $row["tipo_proceso"],1,1,'C',0);

$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Clase Negocio : ",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(35,8, $row["clase_negocio"],1,1,'C',0);

$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Ciudad Despacho : ",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(35,8, $row["ciudad_despacho"],1,1,'C',0);

$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Calidad : ",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(35,8, $row["calidad"],1,1,'C',0);



$pdf->SetY(45);

$pdf->SetX(-110);
$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Numero Proceso : ",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(60,8, $row["numero_proceso"],1,1,'C',0);

$pdf->SetX(-110);
$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Nombre Abogado",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->Cell(60,8, $row["codigo_abogado"],1,1,'C',0);

$pdf->SetX(-110);
$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Despacho Judicial",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->MultiCell(60,4, $row["despacho_judicial"],1,'C',0);


$pdf->SetX(-110);
$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Edtado Proceso",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->MultiCell(60,8, $row["estado_proceso"],1,'C',0);

$pdf->SetX(-110);
$pdf->SetTextColor(27, 104, 176);
$pdf->Cell(35,8, "Prioridad",1,0,'C',0);
$pdf->SetTextColor(0,0,0);
$pdf->MultiCell(60,8, $row["prioridad"],1,'C',0);







/*while($row = mysql_fetch_assoc($consulta))

//while(list($cedula, $numero_proceso) = mysql_fetch_row($consulta))
{
	//$pdf->Cell(90,10, $cedula);
	$pdf->Cell(15,5, $row["cedula"],1,0,'C',0);
	$pdf->Cell(35,5, $row["numero_proceso"],1,0,'C',0);
	$pdf->Cell(15,5, $row["tipo_proceso"],1,0,'C',0);
	$pdf->Cell(70,5, $row["despacho_judicial"],1,0,'C',0);
	$pdf->Cell(35,5, $row["ciudad_despacho"],1,0,'C',0);
	$pdf->Cell(20,5, $row["codigo_abogado"],1,1,'C',0);
}
*/






$pdf->Ln(10);


// ACTUACIONES //

$pdf->SetFont('Arial','',10);


$pdf->Cell(5,10,"N°",0,0,'L',0);
$pdf->Cell(170,10,"ACTUACION",0,1,'L',0);
//$pdf->Cell(20,10,"FECHA",0,1,'C',0);

$pdf->Ln(2);

$pdf->SetDrawColor(50,0,0);
$pdf->SetLineWidth(0.5);
$pdf->Line(10,105,205,105);


$pdf->SetFont('Arial','',8);
$pdf->SetLineWidth(0.2);
$pdf->SetLineWidth(0);
$pdf->SetFillColor(240,240,240);
$pdf->SetTextColor(40,40,40);
$pdf->SetDrawColor(255,255,255);



$consulta_actuacion = mysql_query('SELECT * FROM actuaciones_vigilancia_judicial WHERE cedula = "'.$_GET["cedula"].'" and numero_proceso = "'.$_GET["numpro"].'" ');



$i=1;
while($row_actuaiones = mysql_fetch_assoc($consulta_actuacion)){
	$pdf->Cell(5,5, strtoupper($i),1,0,'L',0);
	$pdf->MultiCell(190,5, strtoupper($row_actuaiones["actuacion"]),1,'L',0);
	$pdf->SetTextColor(255,0,0);
	$pdf->Cell(20,5, $row_actuaiones["fecha"],1,0,'C',0);
	$pdf->SetTextColor(40,40,40);
	$pdf->Ln();
	$i++;
}



$pdf->Output();
?><?php
require('WriteHTML.php');

$pdf=new PDF_HTML();
$pdf->AddPage();
$pdf->SetFont('Arial');
$pdf->WriteHTML('You can<br><p align="center">center a line</p>and add a horizontal rule:<br><hr>');
$pdf->Output();
?>