//----- Datos para el Reporte
//----------------Obteniendo datos bd -----------------------
$sSql = " select * from catestprg2015 ";
$rs = $cnx->Execute($sSql);
$avPrg = array();
while (!$rs->EOF) {
    $id = $rs->fields["idPrg"];
    $avPrg[$id]["cve"] = $rs->fields["CvePrg"];
    $avPrg[$id]["dsc"] = utf8_decode($rs->fields["DscPrg"]);
    $avPrg[$id]["tpo"] = $rs->fields["TpoPrg"];
    $rs->movenext();
}
//-----------------------------------------------------------------------------
//-----------------------Inicio pdf---------------------------------------------
$pdf = new PDF_MC_Table('L', 'mm', 'Letter');
$pdf->AddFont('GillSans', '', 'GillSans.php');
$pdf->AddFont('GillSans', 'B', 'GillSans_B.php');
$pdf->AddFont('GillSans', 'BI', 'GillSans_BI.php');
$pdf->AddFont('GillSans', 'I', 'GillSans_I.php');
$pdf->AddFont('GillSans', 'L', 'GillSans_L.php');
$pdf->AddFont('GillSans', 'LI', 'GillSans_LI.php');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetLeftMargin(25);
//----------------------------------------------
$pdf->SetFont('GillSans', '', 10);
$pdf->SetFillColor(249, 250, 252);
$pdf->Cell(70, 4, ' Estructura Programática ', 0, 0, 'L', 0);
$pdf->Cell(70, 4, 'Ejercicio: 2015 ', 0, 0, 'L', 0);
$pdf->Ln(5);
$pdf->SetFont('GillSans', 'B', 10);
Esempio n. 2
0
<?php

require '../../bootstrap.php';
// VARIABLES DEL FORMULARIO
$unidad = $_POST['unidad'];
require '../../pdf/mc_table.php';
$pdf = new PDF_MC_Table();
$pdf->Open();
$pdf->SetMargins(11, 10, 11);
$pdf->SetDisplayMode('fullpage');
// Cargamos las fuentes corporativas
$pdf->AddFont('NewsGotT', '', 'NewsGotT.php');
$pdf->AddFont('NewsGotT', 'B', 'NewsGotTb.php');
// En el caso de haber seleccionado una unidad, se muestra el listado de alumnos de dicha unidad,
// en otro caso mostramos el listado de faltas de todas las unidades.
$query = "SELECT DISTINCT unidad FROM FALUMNOS where unidad not like '' ";
if ($unidad) {
    $query .= " and unidad='{$unidad}'";
}
$query .= " order by unidad";
// echo $query;
$unidades = mysqli_query($db_con, $query);
while ($unidad = mysqli_fetch_array($unidades)) {
    $unidad = $unidad[0];
    $pdf->AddPage('L', 'A4');
    // CABECERA DEL DOCUMENTO
    // Obtenemos la fecha inicial y final de la semana en curso
    list($anio, $mes, $dia, $semana, $sdia) = explode(':', date('Y:m:d:W:w'));
    $inicio = strtotime("{$anio}-{$mes}-{$dia} 12:00am");
    $inicio += (1 - $sdia) * 86400;
    $fin = $inicio + 6 * 86400;
Esempio n. 3
0
session_start();
function sav2_convert($val)
{
    return iconv('UTF-8', 'windows-1251', $val);
}
$month_rus = array("января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря");
define('FPDF_FONTPATH', './font/');
require './mc_table/mc_table.php';
if (isset($_POST['jsonstring'])) {
    $_SESSION['applydata'] = json_decode($_POST['jsonstring']);
}
if (isset($_GET['getpdf'])) {
    $applyData = $_SESSION['applydata'];
    $pdf = new PDF_MC_Table('P');
    $pdf->SetMargins(25, 10, 10);
    $pdf->AddFont('TimesNewRomanPSMT', '', 'times.php');
    $pdf->AddPage();
    $pdf->SetFont('TimesNewRomanPSMT', '', 12);
    $pdf->SetX(110);
    $pdf->MultiCell(88, 5, sav2_convert("Государственное бюджетное учреждение \n Республики Коми \"Центр по предоставлению \n государственных услуг в сфере \n социальной защиты населения "), 0, 'R');
    $pdf->SetX(110);
    $pdf->SetTextColor(0, 0, 255);
    $pdf->MultiCell(88, 6, sav2_convert($applyData->{'org-town'} . "\""), 'B', 'R');
    $pdf->SetTextColor(0, 0, 0);
    $pdf->Ln();
    $pdf->MultiCell($width, 5, sav2_convert("ЗАЯВЛЕНИЕ \n о признании семьи или одиноко проживающего гражданина \n малоимущими и назначении государственной социальной помощи"), 0, 'C');
    $pdf->Ln();
    $pdf->Cell(6, 5, sav2_convert('от'), 0);
    $pdf->SetTextColor(0, 0, 255);
    $pdf->MultiCell($width, 5, sav2_convert($applyData->{'customer-fio'}), 'B', 'C');
    $pdf->SetTextColor(0, 0, 0);