function Footer() { // Position at 1.5 cm from bottom $this->SetY(-15); // Arial italic 8 $this->SetFont('Arial', 'I', 8); // Page number $utilerias = new cUtilerias(); $this->Cell(30, 5, utf8_decode("FECHA DE IMPRESIÓN: ") . $utilerias->getDateMexico(), 0, 0, "L"); $this->Cell(0, 10, 'P' . utf8_decode("á") . 'gina ' . $this->PageNo() . '/{nb}', 0, 0, 'C'); }
function Footer() { // Position at 1.5 cm from bottom $this->SetY(-15); // Arial italic 8 $this->SetFont('Arial', 'I', 8); // Page number // $this->Cell(100,10,date("Y-m-d H:i:s"),0,0,'L'); $util = new cUtilerias(); $this->Cell(10, 10, utf8_decode("FECHA DE IMPRESIÓN: ") . $util->getDateMexico(), 0, 0, 'L'); $this->Cell(0, 10, utf8_decode('Página ') . $this->PageNo() . '/{nb}', 0, 0, 'C'); }
function Header() { $this->Image("../logo.png", 10, 6, 30); // Arial bold 15 $this->SetFont('Arial', 'B', 10); // Move to the right $this->Cell(80); // Title $this->Cell(30, 5, 'TABLA DE AMORTIZACION', 0, 0, 'C'); $this->Ln(); $this->Cell(80); $this->SetFont('Arial', 'i', 10); $this->Cell(30, 5, "CLIENTE: " . $_GET['cliente'], 0, 0, "C"); $this->Ln(); $this->Cell(80); $utilerias = new cUtilerias(); // $this->Cell(30,5,"FECHA DE IMPRESION: ".date("Y-m-d H:i:s"),0,0,"C"); $this->Cell(30, 5, "FECHA DE IMPRESION: " . $utilerias->getDateMexico(), 0, 0, "C"); // Line break $this->Ln(20); }
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); if (empty($_SESSION["sqPLD"])) { header("Location: ../"); } include_once '../controller/cUtilerias.php'; $cUtilerias = new cUtilerias(); // $inicio=date('Y-m-d'); $inicio = $cUtilerias->getDateMexico(); $fin = strtotime('+1 month', strtotime($inicio)); $fin = date('Y-m-d', $fin); $inicio = $cUtilerias->convierteFecha($inicio); $fin = $cUtilerias->convierteFecha($fin); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta charset="utf-8" /> <title>Sistema de Cartera - PLD | Emprever</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta content="" name="description" /> <meta content="" name="author" /> <!-- BEGIN PLUGIN CSS --> <link rel="icon" type="image/png" href="../logo.png" /> <link href="../assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen"/> <link href="../assets/plugins/jquery-notifications/css/messenger.css" rel="stylesheet" type="text/css" media="screen"/> <link href="../assets/plugins/jquery-notifications/css/messenger-theme-future.css" rel="stylesheet" type="text/css" media="screen"/> <!-- BELOW CSS FILE IS NOT REQUIRED -->
function alertaPrepago($id_contrato, $id_usuario, $formaPago) { include_once "../controller/cUtilerias.php"; $cUtilerias = new cUtilerias(); $con = new Database(); $sql = "select c.fecha_inicio,c.fecha_fin,c.id_clte from contratos as c where c.id_contrato='{$id_contrato}';"; $con->Query($sql); while ($row = $con->NextRow()) { $fecha_inicio = $row['fecha_inicio']; $fecha_fin = $row['fecha_fin']; $id_clte = $row['id_clte']; } $date1 = date_create($fecha_inicio); $date2 = date_create($fecha_fin); $diff = date_diff($date1, $date2); $mitad_dias = intval($diff->format("%a days") / 2); //saco el 50% del tiempo en días $date3 = date_create($cUtilerias->getDateMexico()); $diff2 = date_diff($date1, $date3); $dias = intval($diff2->format("%a days")); //saco los dias que hay entre el inicio con el actual if ($dias <= $mitad_dias) { $this->regAlertaAutoExpe("PREPAGO", "", "", "", "", $id_clte, $id_contrato, $id_usuario, 3, 1, "EL CLIENTE CUBRIO EL 100% DE SU DEUDA Y AÚN NO SE CUMPLE EL 50% DEL PLAZO QUE TENÍA PARA CUBRIRLA", "SISTEMA", 9, $formaPago); return "EL CLIENTE CUBRIO EL 100% DE SU DEUDA Y AÚN NO SE CUMPLE EL 50% DEL PLAZO QUE TENÍA PARA CUBRIRLA"; } else { return "0"; } }
<center> <h3><strong> TABLA DE AMORTIZACIÓN</strong></h3> </center> <?php include_once "../controller/cExpediente.php"; include_once "../controller/cUtilerias.php"; $utilerias = new cUtilerias(); $expend = new cExpediente(); $clieng = $expend->getExpediente($_POST['idClte']); ?> <h4 style="text-transform: uppercase">CLIENTE: <strong> <?php echo $clieng['razon'] . ' ' . $clieng['nombre'] . ' ' . $clieng['a_pat'] . ' ' . $clieng['a_mat']; ?> </strong></h4> <h5 style="text-transform: uppercase">Fecha de generación: <strong><?php echo $utilerias->getDateMexico(); ?> </strong</h5> <!-- <h5 style="text-transform: uppercase">Fecha de Generación: <?php //echo(date("Y-m-d H:i:s")) ?> </h5> --> </div> </div> <div class="col-lg-10 col-lg-offset-1" id="nombreClteTbl"> </div> </div> </form>