예제 #1
0
$sql = 'SELECT *
	FROM reinscripcion r, secciones s, grado g, alumno a
	WHERE r.id_grado = ' . $secciones['id_grado'] . '
		AND r.id_seccion = ' . $secciones['id_seccion'] . '
		AND r.anio = ' . $anio . '
		AND r.id_seccion = s.id_seccion
		AND r.id_alumno = a.id_alumno
		AND r.id_grado = g.id_grado';
$ejecutar = mysql_query($sql);
$i = 0;
while ($arreglo = mysql_fetch_assoc($ejecutar)) {
    if ($i) {
        $pdf->new_page();
    }
    $pdf->cp->addJpegFromFile('../images/logo.jpg', 40, $pdf->cp->cy(80), 60);
    $pdf->text(100, $pdf->top(25), 'INSTITUTO NACIONAL DE EDUCACION BASICA', 8, 'center', $pdf->page_width(125));
    $pdf->text(100, $pdf->top(11), 'ESCUELA NORMAL RURAL No. 5', 8, 'center', $pdf->page_width(125));
    $pdf->text(100, $pdf->top(11), '"Prof. Julio Edmundo Rosado Pinelo"', 8, 'center', $pdf->page_width(125));
    $pdf->text(100, $pdf->top(11), 'Santa Elena, Flores, Petén. Tel. 79262393', 8, 'center', $pdf->page_width(125));
    $pdf->text(100, $pdf->top(11), '"SIMIENTE DE CULTURA EN PETÉN"', 8, 'center', $pdf->page_width(125));
    $pdf->text(100, $pdf->top(20), 'FICHA DE RENDIMIENTO ESCOLAR', 11, 'center', $pdf->page_width(125));
    $datos = array(array(array('text' => 'Carné:', 'align' => 'right'), array('text' => $arreglo['carne'], 'align' => 'left'), array('text' => 'Fecha:', 'align' => 'right'), array('text' => $arreglo['fecha'], 'align' => 'left')), array(array('text' => 'Nombres y Apellidos:', 'align' => 'right'), array('text' => $arreglo['nombre_alumno'] . ', ' . $arreglo['apellido'], 'align' => 'left'), array('text' => 'Telefono:', 'align' => 'right'), array('text' => $arreglo['telefono1'], 'align' => 'left')), array(array('text' => 'Email:', 'align' => 'right'), array('text' => $arreglo['email'], 'align' => 'left'), array('text' => 'Código:', 'align' => 'right'), array('text' => $arreglo['codigo_alumno'], 'align' => 'left')), array(array('text' => 'Grado:', 'align' => 'right'), array('text' => $arreglo['nombre'] . ' ' . $arreglo['nombre_seccion'], 'align' => 'left'), array('text' => '', 'align' => 'right'), array('text' => '', 'align' => 'left')), array(array('text' => 'Encargado:', 'align' => 'right'), array('text' => $arreglo['encargado_reinscripcion'], 'align' => 'left'), array('text' => '', 'align' => 'right'), array('text' => '', 'align' => 'left')));
    $pdf->multitable($datos, 35, $pdf->top(15), 5, 9, 0);
    $infot = array(array(array('text' => 'Curso', 'align' => 'center')));
    $sql = 'SELECT *
		FROM examenes
		WHERE examen NOT LIKE \'%Recup%\'
		ORDER BY id_examen';
    $ejecutar2 = mysql_query($sql);
    while ($row = mysql_fetch_array($ejecutar2)) {
        $infot[0][] = array('text' => $row['examen'], 'align' => 'center', 'width' => 75);
예제 #2
0
     case 2:
         $firma1 = 'Azarías Isaí Hoil Franco';
         $firma2 = 'Oficinista II';
         $inicio = 'El infrascrito';
         break;
     case 3:
     case 4:
         $firma1 = 'Gladys Marieta Sánchez Deluca';
         $firma2 = 'Oficinista II';
         $inicio = 'La infrascrita';
         break;
 }
 $text_block = '' . $inicio . ' Oficinista II, del Instituto Nacional de Educación Básica, Adscrito a la Escuela Normal Rural No. 5 "Prof. Julio Edmundo Rosado Pinelo" de Santa Elena, Petén. Acuerdo Ministerial No. 994 del 10/07/85.';
 $text_block2 = 'CERTIFICA: Que el alumno (a): ' . $arreglo['nombre_alumno'] . ' ' . $arreglo['apellido'];
 $text_block4 = 'Durante el Ciclo Escolar ' . $anio . ' cursó el ' . $grado . ' Grado de Cultura General Básica, con Código Personal No. ' . $arreglo['codigo_alumno'] . '. Extendido por el Ministerio de Educación en la ciudad de Guatemala, y que ha tenido a la vista los Cuadros de Registro de Evaluación en donde aparece que se hizo acreedor(a) a las notas siguientes:';
 $pdf->text_wrap($text_block, 11, $pdf->page_width() - 140, 65, $pdf->top(150), 20, 'full', false, 40);
 $pdf->text_wrap($text_block2, 11, $pdf->page_width() - 140, 65, $pdf->top(65), 20);
 $pdf->text_wrap($text_block4, 11, $pdf->page_width() - 140, 65, $pdf->top(25), 20, 'full', false, 40);
 $_areas = array();
 $infot = array(array(array('text' => 'No.', 'align' => 'center', 'width' => 30)));
 switch ($arreglo['id_grado']) {
     case 3:
         break;
     default:
         $infot[0][] = array('text' => 'Areas', 'align' => 'center', 'width' => 105);
         break;
 }
 $infot[0][] = array('text' => 'Curso', 'align' => 'center');
 $infot[0][] = array('text' => 'No.', 'align' => 'center', 'width' => 30);
 $infot[0][] = array('text' => 'Nota en letras', 'align' => 'center');
 $infot[0][] = array('text' => 'Resultado', 'align' => 'center', 'width' => 75);