Пример #1
0
 $MiPDF->SetMargins(25, 20, 20);
 $MiPDF->SetDisplayMode('fullpage');
 $titulo = "Listado de alumnos con asignaturas pendientes";
 $grupos = substr($_POST['grupos'], 0, -1);
 $tr_gr = explode(";", $grupos);
 foreach ($tr_gr as $valor) {
     $MiPDF->Addpage();
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'C', 0);
     $MiPDF->Ln(5);
     $MiPDF->SetFont('NewsGotT', '', 12);
     // INFORMACION
     $result = mysqli_query($db_con, "SELECT curso FROM alma WHERE unidad='{$valor}' LIMIT 1");
     $row = mysqli_fetch_array($result, MYSQLI_ASSOC);
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->Cell(17, 5, 'Unidad: ', 0, 0, 'L', 0);
     $MiPDF->SetFont('NewsGotT', '', 12);
     $MiPDF->Cell(100, 5, $valor . ' (' . $row['curso'] . ')', 0, 1, 'L', 0);
     $MiPDF->Ln(5);
     mysqli_free_result($result);
     // INFORME
     $MiPDF->SetWidths(array(10, 80, 165));
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->SetTextColor(255, 255, 255);
     $MiPDF->SetFillColor(61, 61, 61);
     $MiPDF->Row(array('Nº', 'Alumno/a', 'Asignaturas'), 0, 6);
     $result = mysqli_query($db_con, "SELECT DISTINCT alma.claveal, FALUMNOS.NC, CONCAT(alma.apellidos, ', ', alma.nombre) AS alumno, matriculas FROM alma, pendientes, FALUMNOS WHERE alma.unidad='{$valor}' and alma.claveal = pendientes.claveal and FALUMNOS.claveal = pendientes.claveal ORDER BY alumno ASC");
     $MiPDF->SetTextColor(0, 0, 0);
     $MiPDF->SetFont('NewsGotT', '', 12);
     while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
         $asigpend = '';
Пример #2
0
$MiPDF->AddFont('NewsGotT', 'B', 'NewsGotTb.php');
$MiPDF->AddFont('ErasDemiBT', '', 'ErasDemiBT.php');
$MiPDF->AddFont('ErasDemiBT', 'B', 'ErasDemiBT.php');
$MiPDF->AddFont('ErasMDBT', '', 'ErasMDBT.php');
$MiPDF->AddFont('ErasMDBT', 'I', 'ErasMDBT.php');
$MiPDF->SetMargins(25, 20, 20);
$MiPDF->SetDisplayMode('fullpage');
$titulo = "Comunicación de expulsión del aula";
$cuerpo = "Muy Srs. nuestros:\n\nPongo en su conocimiento que con fecha " . strftime("%e de %B de %Y", strtotime($fecha)) . " a su hijo/a {$nombre} {$apellidos}, alumno/a del grupo {$unidad}, le ha sido impuesta la suspensión del derecho de asistencia a clase tras haber sido expulsado del aula por el profesor {$profesor} por el siguiente motivo: \"{$asunto}\".\n\nAsimismo, le comunico que, según contempla el Plan de Convivencia del Centro, regulado por el Decreto 327/2010 de 13 de Julio por el que se aprueba el Reglamento Orgánico de los Institutos de Educación Secundaria, de reincidir su hijo/a en este tipo de conductas contrarias a las normas de convivencia del Centro podría imponérsele otra medida de corrección que podría llegar a ser la suspensión del derecho de asistencia al Centro.\n\nEn " . $config['centro_localidad'] . ", a " . strftime("%e de %B de %Y", strtotime($fecha)) . ".";
for ($i = 0; $i < 1; $i++) {
    # insertamos la primera pagina del documento
    $MiPDF->Addpage();
    // INFORMACION DE LA CARTA
    $MiPDF->SetY(45);
    $MiPDF->SetFont('NewsGotT', '', 12);
    $MiPDF->Cell(75, 5, 'Fecha:  ' . $hoy, 0, 0, 'L', 0);
    $MiPDF->Cell(75, 5, $padre, 0, 1, 'L', 0);
    $MiPDF->Cell(75, 12, 'Ref.:     Fec/' . $row['id'], 0, 0, 'L', 0);
    $MiPDF->Cell(75, 5, $direccion, 0, 1, 'L', 0);
    $MiPDF->Cell(75, 0, '', 0, 0, 'L', 0);
    $MiPDF->Cell(75, 5, $codpostal . ' ' . mb_strtoupper($provincia, 'iso-8859-1'), 0, 1, 'L', 0);
    $MiPDF->Cell(0, 12, 'Asunto: ' . $titulo, 0, 1, 'L', 0);
    $MiPDF->Ln(10);
    // CUERPO DE LA CARTA
    $MiPDF->SetFont('NewsGotT', 'B', 12);
    $MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'C', 0);
    $MiPDF->Ln(5);
    $MiPDF->SetFont('NewsGotT', '', 12);
    $MiPDF->Multicell(0, 5, $cuerpo, 0, 'L', 0);
    $MiPDF->Ln(10);
    //FIRMAS
Пример #3
0
$MiPDF->AddFont('ErasMDBT', '', 'ErasMDBT.php');
$MiPDF->AddFont('ErasMDBT', 'I', 'ErasMDBT.php');
$MiPDF->SetMargins(25, 20, 20);
$MiPDF->SetDisplayMode('fullpage');
$titulo = "Informe de tareas por expulsión";
$cuerpo = "";
$MiPDF->Addpage();
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'C', 0);
$MiPDF->Ln(5);
$MiPDF->SetFont('NewsGotT', '', 12);
// INFORMACION DEL ALUMNO
$result = mysqli_query($db_con, "SELECT apellidos, nombre, tareas_alumnos.unidad, tareas_alumnos.id, tutor, fecha, duracion, claveal FROM tareas_alumnos, FTUTORES WHERE FTUTORES.unidad = tareas_alumnos.unidad and id='{$id}'");
$row = mysqli_fetch_array($result, MYSQLI_ASSOC);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(25, 5, 'Alumno/a: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(80, 5, $row['apellidos'] . ', ' . $row['nombre'], 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(40, 5, 'Fecha de expulsión: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(55, 5, strftime('%e de %B de %Y', strtotime($row['fecha'])), 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(15, 5, 'Días: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(15, 5, $row['duracion'], 0, 1, 'L', 0);
$MiPDF->Ln(2);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Unidad: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(85, 5, $row['unidad'], 0, 0, 'L', 0);
Пример #4
0
mysqli_query($db_con, "delete from actividadalumno where cod_actividad='{$id}'");
foreach ($_POST as $key => $value) {
    //  echo "$key --> $value<br>";
    if (is_numeric(trim($key))) {
        $alumnos0 = "select alma.nombre, alma.apellidos, padre, domicilio, codpostal, localidad, provinciaresidencia, NC, dnitutor, alma.unidad, alma.matriculas, alma.telefono, alma.telefonourgencia from alma, FALUMNOS where alma.claveal = FALUMNOS.claveal and alma.claveal = '{$value}'";
        $alumnos1 = mysqli_query($db_con, $alumnos0);
        while ($alumno = mysqli_fetch_array($alumnos1)) {
            mysqli_query($db_con, "insert into actividadalumno (claveal,cod_actividad) values ('" . $value . "','" . $id . "')");
            # insertamos la primera pagina del documento
            $MiPDF->Addpage();
            $autorizacion = "D./Dña. {$alumno['2']} con D.N.I {$alumno['8']}, como representante legal de {$alumno['0']} {$alumno['1']}, alumno/a de la unidad {$alumno['9']}, asume la responsabilidad de que su hijo/a participe en la siguiente Actividad Complementaria y Extraescolar e igualmente autoriza a los profesores/as responsables a tomar cuantas medidas sean necesarias para conseguir un desarrollo adecuado de la actividad programada.";
            $alergias = "Al mismo tiempo indico que mi hijo/a:\n\t__ Necesita tratamiento médico o medicación específica.\n\t__ Es alérgico a algún tipo de comidas.\n\t\n\tObservaciones:\n\t";
            // INFORMACION DE LA CARTA
            $MiPDF->SetY(45);
            $MiPDF->SetFont('NewsGotT', '', 10);
            $MiPDF->Cell(75, 5, 'Fecha:  ' . date('d.m.Y'), 0, 0, 'L', 0);
            $MiPDF->Cell(75, 5, $alumno[2], 0, 1, 'L', 0);
            $MiPDF->Cell(75, 12, 'Ref.:     Act/' . $id, 0, 0, 'L', 0);
            $MiPDF->Cell(75, 5, $alumno[3], 0, 1, 'L', 0);
            $MiPDF->Cell(75, 0, '', 0, 0, 'L', 0);
            $MiPDF->Cell(75, 5, $alumno[4] . ' ' . mb_strtoupper($alumno[6], 'iso-8859-1'), 0, 1, 'L', 0);
            $MiPDF->Cell(0, 12, 'Asunto: ' . $actividad, 0, 1, 'L', 0);
            $MiPDF->Ln(7);
            $MiPDF->Multicell(0, 5, $autorizacion, 0, 'L', 0);
            $MiPDF->Ln(5);
            #Cuerpo.
            $MiPDF->SetFont('NewsGotT', 'B', 10);
            $MiPDF->Cell(30, 8, 'Fecha: ', 0, 0, 'L');
            $MiPDF->SetFont('NewsGotT', '', 10);
            $MiPDF->Cell(130, 8, $fecha_act, 0, 1, 'L');
            $MiPDF->SetFont('NewsGotT', 'B', 10);
Пример #5
0
$MiPDF->AddFont('ErasDemiBT', 'B', 'ErasDemiBT.php');
$MiPDF->AddFont('ErasMDBT', '', 'ErasMDBT.php');
$MiPDF->AddFont('ErasMDBT', 'I', 'ErasMDBT.php');
$MiPDF->SetMargins(25, 20, 20);
$MiPDF->SetDisplayMode('fullpage');
$titulo = "Informe de tutoría";
$MiPDF->Addpage();
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'C', 0);
$MiPDF->Ln(5);
$MiPDF->SetFont('NewsGotT', '', 12);
// INFORMACION DEL ALUMNO
$result = mysqli_query($db_con, "SELECT apellidos, nombre, unidad, tutor, f_entrev, claveal FROM infotut_alumno WHERE id='{$id}'");
$row = mysqli_fetch_array($result, MYSQLI_ASSOC);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(25, 5, 'Alumno/a: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(80, 5, $row['apellidos'] . ', ' . $row['nombre'], 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(35, 5, 'Fecha de visita: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(55, 5, strftime('%e de %B de %Y', strtotime($row['f_entrev'])), 0, 1, 'L', 0);
$MiPDF->Ln(2);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Unidad: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(85, 5, $row['unidad'], 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Tutor/a: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(40, 5, mb_convert_case($row['tutor'], MB_CASE_TITLE, "iso-8859-1"), 0, 1, 'L', 0);
Пример #6
0
$MiPDF->AddFont('ErasDemiBT', 'B', 'ErasDemiBT.php');
$MiPDF->AddFont('ErasMDBT', '', 'ErasMDBT.php');
$MiPDF->AddFont('ErasMDBT', 'I', 'ErasMDBT.php');
$MiPDF->SetMargins(25, 20, 20);
$MiPDF->SetDisplayMode('fullpage');
$titulo = "Ficha del información del Aula de Convivencia";
# insertamos la primera pagina del documento
$MiPDF->Addpage();
$MiPDF->Ln(8);
$MiPDF->SetFont('NewsGotT', 'B', 16);
$MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'C', 0);
$MiPDF->Ln(8);
// INFORMACION DE LA CARTA
//$MiPDF->SetY(35);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(15, 10, 'FECHA: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(22, 10, $hoy, 0, 0, 'L', 0);
$MiPDF->Ln(10);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(25, 10, 'ALUMNO/A:  ', 1, 0, 'C', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(95, 10, $apellidos . ', ' . $nombre, 1, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 10, 'GRUPO: ', 1, 0, 'C', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(25, 10, $unidad, 1, 1, 'C', 0);
$MiPDF->Ln(8);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(65, 8, 'PROFESOR QUE ENVÍA AL A.C.: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
Пример #7
0
 $MiPDF->SetMargins(25, 20, 20);
 $MiPDF->SetDisplayMode('fullpage');
 $titulo = "Listado de alumnos con asignaturas pendientes";
 $grupos = substr($_POST['grupos'], 0, -1);
 $tr_gr = explode(";", $grupos);
 foreach ($tr_gr as $valor) {
     $MiPDF->Addpage();
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'C', 0);
     $MiPDF->Ln(5);
     $MiPDF->SetFont('NewsGotT', '', 12);
     // INFORMACION
     $result = mysqli_query($db_con, "SELECT DISTINCT nombre, curso FROM asignaturas WHERE codigo='{$valor}' ORDER BY nombre ASC");
     $row = mysqli_fetch_array($result, MYSQLI_ASSOC);
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->Cell(25, 5, 'Asignatura: ', 0, 0, 'L', 0);
     $MiPDF->SetFont('NewsGotT', '', 12);
     $MiPDF->Cell(100, 5, $row['nombre'] . ' (' . $row['curso'] . ')', 0, 1, 'L', 0);
     $MiPDF->Ln(5);
     mysqli_free_result($result);
     // INFORME
     $MiPDF->SetWidths(array(20, 10, 90, 30, 105));
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->SetTextColor(255, 255, 255);
     $MiPDF->SetFillColor(61, 61, 61);
     $MiPDF->Row(array('Unidad', 'Nº', 'Alumno/a', 'Asignatura', 'Observaciones'), 0, 6);
     $result = mysqli_query($db_con, "SELECT DISTINCT alma.unidad, FALUMNOS.NC, CONCAT(alma.apellidos, ', ', alma.nombre) AS alumno, alma.matriculas, asignaturas.abrev FROM pendientes, asignaturas, alma, FALUMNOS WHERE asignaturas.codigo = pendientes.codigo AND FALUMNOS.claveal=alma.claveal AND alma.claveal = pendientes.claveal AND alma.unidad NOT LIKE '%p-%' AND asignaturas.codigo = '{$valor}' and alma.unidad not like '1%' AND abrev LIKE  '%\\_%' ORDER BY alma.curso, alma.unidad, nc");
     $MiPDF->SetTextColor(0, 0, 0);
     $MiPDF->SetFont('NewsGotT', '', 12);
     while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
         $observaciones = $row['matriculas'] > 1 ? 'Repetidor/a' : '';