%PDF- %PDF-
| Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/contraloria/denuncias/ |
| Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/contraloria/denuncias/pdfacusedenuncia.php |
<?php
session_start();
include "../../../config/config.php";
// include "./conexion.php";
//$_SESSION['expire'] = time() + (120 * 60);
//Biblioteca en uso, contiene:
// -FlowingBlock: Permite justificar y cargar estilos al texto encapsulados.
// -WriteHMTL: Permite cargar etiquestas HTML de estilos de texto.
// -Justify: Permite justificar sin cargar estilos de texto.
require 'flowing_blockv2.php';
include 'fechanumero_texto.php';
// QR - CONTENIDO - NOMBREARCHIVOYDIRECCION
// include 'phpqrcode/qrlib.php';
// QRcode::png("1721/2022|40152447372|$423.00|JESUS ALBERTO SANCHEZ HINOJOZA","./qr/test.png");
//this is the first method
// $pdf->Image("http://localhost/pdf/qr_generator.php?code=content here", 10, 10, 20, 20, "png");
// QR INSERTADO - NOMBREARCHIVO - POSICIONX - POSICIONY - TAMAÑOX - TAMAÑOY - FORMATO
// $pdf->Image("test.png", 40, 10, 40, 40, "png");
// $pdf->newFlowingBlock( 180, 5, 'J' ); --- 'C', '', 'J', 'FJ'
// $pdf->Cell(180, 5, utf8_decode(''), 0, 1, 'C', 0); --- (''), Contorno, Salto, Alineado, Color
// Variables y campos de insersión
// Usuario, fecha y lugar
// COMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADOCOMENTADO
$id_denuncia = isset($_REQUEST['id_denuncia']) ? $_REQUEST['id_denuncia'] : 0;
$conf = new Configuracion();
$conf->conectarBD();
$consulta = "SELECT * FROM oic_denunciatipo WHERE id_denuncia = $id_denuncia";
$rst1 = $conf->consulta($consulta);
// $id_denuncia = strtoupper($rst1[0]['id_denuncia']);
// $fecha2 = formatFecha(date('d-m-Y'));
$id_denuncia = $rst1[0]['id_denuncia'];
$id_tipo = $rst1[0]['id_tipo'];
$fecha_denuncia = $rst1[0]['fecha_denuncia'];
$t4_tramite = $rst1[0]['t4_tramite'];
$confidencial_denunciante = $rst1[0]['confidencial_denunciante'];
$nombre_denunciante = $rst1[0]['nombre_denunciante'];
$identifica_denunciante = $rst1[0]['identifica_denunciante'];
$caracter_denunciante = $rst1[0]['caracter_denunciante'];
$domicilio_denunciante = $rst1[0]['domicilio_denunciante'];
$telfijo_denunciante = $rst1[0]['telfijo_denunciante'];
$telmov_denunciante = $rst1[0]['telmov_denunciante'];
$tellab_denunciante = $rst1[0]['tellab_denunciante'];
$correo_denunciante = $rst1[0]['correo_denunciante'];
$otro_medio_denunciante = $rst1[0]['otro_medio_denunciante'];
$nombrar_autorizada = $rst1[0]['nombrar_autorizada'];
$documentos_acreditan = $rst1[0]['documentos_acreditan'];
$conoce_denunciado = $rst1[0]['conoce_denunciado'];
$nombre_denunciado = $rst1[0]['nombre_denunciado'];
$cargo_denunciado = $rst1[0]['cargo_denunciado'];
$area_denunciado = $rst1[0]['area_denunciado'];
$narracion_hechos = $rst1[0]['narracion_hechos'];
$t4_observacion = $rst1[0]['t4_observacion'];
$dispone_pruebas = $rst1[0]['dispone_pruebas'];
$prueba1 = $rst1[0]['prueba1'];
$prueba2 = $rst1[0]['prueba2'];
$prueba3 = $rst1[0]['prueba3'];
$prueba4 = $rst1[0]['prueba4'];
$prueba5 = $rst1[0]['prueba5'];
$testigo1 = $rst1[0]['testigo1'];
$testigo2 = $rst1[0]['testigo2'];
$testigo3 = $rst1[0]['testigo3'];
$testigo4 = $rst1[0]['testigo4'];
$testigo5 = $rst1[0]['testigo5'];
$ubicacion_pruebas = $rst1[0]['ubicacion_pruebas'];
$fecha_registro = $rst1[0]['fecha_registro'];
$fecha_registro2 = $rst1[0]['fecha_registro'];
$habilitado = $rst1[0]['habilitado'];
$folio = $rst1[0]['folio'];
//Convertir fecha
$fecha_registro = explode('-', $fecha_denuncia);
$fecha2y = $fecha_registro[0];
$fecha2m = $fecha_registro[1]; $fecha2mtexto = mesATexto($fecha2m);
$fecha2d = $fecha_registro[2];
// if ($t1tipo_declaracion == 1) {
// $t1tipo_declaracion2 = "Inicial";
// } elseif ($t1tipo_declaracion == 2) {
// $t1tipo_declaracion2 = "de Modificación";
// } else {
// $t1tipo_declaracion2 = "de Conclusión";
// }
//COMIENZA CONSTRUCIÓN DE PDF
$pdf = new PDF_FlowingBlock();
$pdf->AddPage('L');
$pdf->Image('./img/logoacuse.png','10','10','40','40','PNG');
$pdf->Image('./img/escudoacuse.png','255','10','30','40','PNG');
$pdf->SetFont('helvetica','B',12);
$pdf->WriteHTML('<br><br><br><br><br><br><br><br><br>');
$pdf->Cell(150,5,utf8_decode('Morelia, Michoacán, A '.$fecha2d.' de '.$fecha2mtexto.' del '.$fecha2y.'.'),0,0,'L',0);
$pdf->MultiCell(129,5,utf8_decode(' '),0,'R',0);
$pdf->MultiCell(279,5,utf8_decode('FOLIO: '.$folio.''),0,'R',0);
// $pdf->MultiCell(279,5,utf8_decode('NO. DE TRANSACCIÓN: '.$rst1[0]['No_Trasaccion'].''),0,'R',0);
// $pdf->MultiCell(279,5,utf8_decode('R.F.C: '.$t1rfc.''),0,'R',0);
$pdf->WriteHTML('<br><br>');
$pdf->SetFont('helvetica','B',12);
$pdf->MultiCell(279,5,utf8_decode('ACUSE DE DENUNCIA'),0,'L',0);
// $pdf->MultiCell(279,5,utf8_decode('PRESENTE'),0,'L',0);
$pdf->WriteHTML('<br>');
$pdf->newFlowingBlock( 279, 5, 'J' );
$pdf->SetFont('helvetica','',12);
$pdf->WriteFlowingBlock(utf8_decode('SU DENUNCIA HA SIDO PRESENTADA DE MANERA ELECTRÓNICA CON CARACTERES DE AUTENTICIDAD '.md5($folio).' Y CON CARACTERES DE AUTENTICIDAD DEL ACUSE DE RECIBO ELECTRÓNICO '.md5($id_denuncia).', FIRMADA ELECTRÓNICAMENTE CON EL NÚMERO '.md5($fecha_registro2).', EN SUSTITUCIÓN DE LA AUTÓGRAFA, Y CON EL MISMO VALOR PROBATORIO.'));
$pdf->finishFlowingBlock();
$pdf->WriteHTML('<br><br><br>');
$pdf->SetFont('helvetica','',12);
$pdf->MultiCell(279,5,utf8_decode(''),0,'C',0);
$pdf->SetFont('helvetica','',8);
$token=$id_denuncia.$fecha_registro2.$folio;
$pdf->SetFont('helvetica','',8);
$pdf->Cell(180, 5, utf8_decode("Sello digital: XML-".md5($token)), 0, 1, 'R', 0);
// $pdf->Cell(93,4,utf8_decode(''),0,0,'L',0);
// $pdf->Cell(93,4,utf8_decode('Dirección: Morelia, Mich.'),0,0,'C',0);
// $pdf->Cell(93,4,utf8_decode('Declaración - '.$t1tipo_declaracion2),0,1,'R',0);
// $pdf->Cell(93,4,utf8_decode(''),0,0,'L',0);
// $pdf->Cell(93,4,utf8_decode('Teléfono: '.$t1telefono.''),0,0,'C',0);
//$pdf->Cell(93,4,utf8_decode('PÁGINA 1/2'),0,1,'R',0);
$pdf->Output();
?>