예제 #1
0
 function cuerpo($entrega_borrador, $retiro_borrador, $entrega_final)
 {
     $esp = 5;
     //$tab = "\t\t\t\t";
     $this->SetXY(30, 40);
     $db = new PgDB();
     $qryPeriodo = "SELECT tipo, anio FROM periodo WHERE periodo.activo = TRUE";
     $recoPeriodo = $db->query($qryPeriodo);
     $rowPeriodo = pg_fetch_array($recoPeriodo);
     $periodo = "{$rowPeriodo['anio']}.{$rowPeriodo['tipo']}";
     //parte 1
     $this->SetFont('Arial', 'B', 12);
     $this->MultiCell(153, $esp, utf8_decode("({$entrega_borrador}). ENTREGA DEL BORRADOR INFORME DE PASANTÍAS.\n"), 0, 'J', 0);
     $this->Ln();
     $this->SetX(35);
     $this->SetFont('Arial', '', 12);
     $this->MultiCell(153, $esp, utf8_decode("a) El borrador se recibirá en la DIVISIÓN DE PROGRAMAS ESPECIALES."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("b) PUEDE SER entregado en hojas reutilizadas."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("c) NO SE ACEPTARÁ ENTREGA DIGITAL. Tampoco se aceptará el CD con el informe ni otro documento que no esté especificado en ESTA COMUNICACIÓN."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("d) Es OBLIGATORIA la entrega de  la  hoja  de  evaluación  del   tutor de las pasantías."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("e) Para que el alumno pueda realizar las correcciones al documento final, el borrador se retirará el día ({$retiro_borrador}).\n\n"), 0, 'J', 0);
     $this->SetFont('Arial', 'B', 12);
     //parte 2
     $this->Ln();
     $this->Ln();
     $this->SetXY(30, 100);
     $this->MultiCell(153, 5, utf8_decode("({$entrega_final}). ENTREGA FINAL INFORME DE PASANTÍAS.\n\n"), 0, 'J', 0);
     $this->SetFont('Arial', '', 12);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("1) El alumno COPIARÁ el informe digital CORREGIDO en el computador de la División de Programas Especiales."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("2) El nombre del archivo será: {$periodo}.nombre.apellido.doc. Ejemplo: Si el alumno se llama José Ramírez el archivo debe llamarse {$periodo}.jose.ramirez.doc (SIN CARACTERES ESPECIALES)."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("3) El documento tendrá el formato correspondiente a la NORMATIVA LUZ."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("4) Se recibirá un CD virgen. NUEVO. EN BLANCO. SIN USAR. El color del CD no importa."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("5) Solo se entregará en físico: "), 0, 'J', 0);
     $this->SetX(50);
     $this->MultiCell(138, $esp, utf8_decode("a) La hoja de aprobación (la hoja que lleva las firmas del pasante, la del tutor en la organización donde se hizo la pasantía y la del coordinador de pasantías)."), 0, 'J', 0);
     $this->SetX(50);
     $this->MultiCell(138, $esp, utf8_decode("b) Las hojas de evaluación del tutor en la empresa."), 0, 'J', 0);
     $this->SetX(50);
     $this->MultiCell(138, $esp, utf8_decode("c) La hoja de registro de pasantías."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("6) No se aceptará otro documento en físico. ESTOS   DOCUMENTOS DEBEN ESTAR SELLADOS POR LAS INSTITUCIONES CORRESPONDIENTES (LUZ Y LA ORGANIZACIÓN DONDE SE REALIZÓ LA PASANTÍA)."), 0, 'J', 0);
     $this->SetX(35);
     $this->MultiCell(153, $esp, utf8_decode("7) El CD Virgen así como los anexos del punto 5, se entregarán en un sobre manila. NO TIENE QUE SER NUEVO ESTE SOBRE."), 0, 'J', 0);
     $this->SetFont('Arial', 'B', 12);
     $this->Ln();
     $this->SetX(35);
     $this->MultiCell(145, $esp, utf8_decode("SI EL ALUMNO NO CUMPLE CON LAS ENTREGAS EN LAS FECHAS INDICADAS SU CALIFICACIÓN EN LA CÁTEDRA ''PRÁCTICA PROFESIONAL II' SERÁ ''SIN INFORMACIÓN'' Y TENDRÁ QUE INSCRIBIRLA EN OTRO SEMESTRE."), 0, 'J', 0);
     $this->Ln();
     $this->SetX(35);
     $this->MultiCell(145, $esp, utf8_decode("NO HABRÁ PRÓRROGA.\nNO HABRÁ EXCEPCIONES."), 0, 'C', 0);
 }
예제 #2
0
function check_email($var)
{
    $db = new PgDB();
    $qry = "SELECT 1 FROM usuario WHERE usuario.email = '{$var}'";
    $result = $db->query($qry);
    if (pg_num_rows($result) > 0) {
        return pg_fetch_row($result, 0)[0];
    } else {
        return 0;
    }
}
 function cuerpo()
 {
     $db = new PgDB();
     $id = session_var('usuario_id');
     $this->SetMargins(20, 25);
     $alto = 10;
     $ancho = 172;
     $query = "SELECT supervisor, cargo_supervisor, nombre, apellido, cedula, usuario.telefono_celu, usuario.direccion, usuario.email\n                FROM pasantia INNER JOIN usuario ON pasantia.usuario_id = usuario.id AND usuario.id = {$id}";
     $reco = $db->query($query);
     $row = pg_fetch_array($reco);
     $this->SetFont('Arial', '', 12);
     $this->SetXY(30, 85);
     $this->MultiCell(147, 5, utf8_decode("__________________________\nTutor Industrial\n{$row['supervisor']}\nCargo: {$row['cargo_supervisor']}"), 0, 'C', 0);
     $this->SetXY(30, 135);
     $this->MultiCell(147, 5, utf8_decode("Sello de la empresa"), 0, 'C', 0);
     $this->SetXY(30, 175);
     $this->MultiCell(147, 5, utf8_decode("____________________________\nBr: {$row['nombre']} {$row['apellido']}\nC.I. No.: {$row['cedula']}\nTeléfono: {$row['5']}\nDirección: {$row['6']}\nCorreo Electrónico: {$row['7']}"), 0, 'C', 0);
     $this->SetXY(30, 230);
     $this->MultiCell(153, 5, utf8_decode("\n______________________________\nProf. Olinto Rodríguez\nCoordinador de Pasantías de LICOM"), 0, "C", 0);
 }
 function formatoTabla()
 {
     $db = new PgDB();
     $id = session_var('usuario_id');
     $this->SetMargins(20, 25);
     $alto = 10;
     $ancho = 172;
     $qryUsr = "******";
     $reco = $db->query($qryUsr);
     $rowUsr = pg_fetch_array($reco);
     //Identificación del Alumno
     $this->SetFont('Arial', 'B', 12);
     $this->SetXY(20, 60);
     //$this->MultiCell($ancho,$alto,utf8_decode("Identificación del Alumno: "),0);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row_without_borders(array(utf8_decode("\nIdentificación del Alumno: \n ")));
     $this->SetFont('Arial', '', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nNombres y Apellidos: {$rowUsr['nombre']} {$rowUsr['apellido']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nDirección: {$rowUsr['direccion']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nC.I.: {$rowUsr['cedula']}"), utf8_decode("\nCarnet Nro.: {$rowUsr['cod_carne']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCelular: {$rowUsr['telefono_celu']}"), utf8_decode("\nTeléfono Habitación: {$rowUsr['telefono_habi']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCorreo Electrónico: {$rowUsr['email']}")));
     $qryEmpr = "SELECT compania, pasantia.direccion, pasantia.telefono_celu, telefono_ofic, pasantia.email\n                FROM pasantia INNER JOIN usuario ON pasantia.usuario_id = usuario.id AND usuario.id = {$id}";
     $reco = $db->query($qryEmpr);
     $rowEmpr = pg_fetch_array($reco);
     //Identificación de la Empresa
     $this->SetFont('Arial', 'B', 12);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row_without_borders(array(utf8_decode("\n\nIdentificación de la Empresa / Institución: \n ")));
     $this->SetFont('Arial', '', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nNombre: {$rowEmpr['compania']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nDirección: {$rowEmpr['direccion']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCelular: {$rowEmpr['2']}"), utf8_decode("\nTeléfono: {$rowEmpr['telefono_ofic']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCorreo Electrónico: {$rowEmpr['email']}")));
     //QUERY PARA DATOS DEL PASANTE
     $qryPas = "******";
     $reco = $db->query($qryPas);
     $rowPas = pg_fetch_array($reco);
     //Datos de las actividades de la Pasantia
     $this->SetFont('Arial', 'B', 12);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row_without_borders(array(utf8_decode("\n\nDatos de las actividades de la Pasantía: \n ")));
     $this->SetFont('Arial', '', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nActividad del Pasante en la Empresa / Institución: {$rowPas['actividad']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nNombre del Supervisor Inmediato: {$rowPas['supervisor']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCargo que ocupa: {$rowPas['cargo_supervisor']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nDepartamento donde realizará la pasantía: {$rowPas['departamento']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nFecha de inicio: {$rowPas['fecha_inicio']}"), utf8_decode("\nFecha de finalización: {$rowPas['fecha_fin']}")));
     if ($rowPas['tiempo_completo'] == TRUE) {
         $this->SetWidths(array(45, 45, 17.5, 45, 17.5));
         $this->SetAligns(array('L'));
         $this->Row(array(utf8_decode("\nTiempo de pasantía: "), utf8_decode("\nTiempo completo: "), utf8_decode("  \n     X  "), utf8_decode("\nMedio tiempo: "), utf8_decode("\n")));
     } else {
         $this->SetWidths(array(45, 45, 17.5, 45, 17.5));
         $this->SetAligns(array('L'));
         $this->Row(array(utf8_decode("\nTiempo de pasantía: "), utf8_decode("\nTiempo completo: "), utf8_decode("\n"), utf8_decode("\nMedio tiempo: "), utf8_decode("  \n     X  ")));
     }
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nHorario de trabajo del Pasante: {$rowPas['horario']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nActividades a realizar por el pasante: \n\n{$rowPas['actividades']}")));
     $this->SetX(20);
     $this->SetWidths(array(56, 57, 57));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nFirma del Pasante: "), utf8_decode("\nFirma del Supervisor Inmediato: \n\n\n\n\n "), utf8_decode("\nFirma del Coordinador de Pasantías: ")));
 }
<?php

require_once 'db.php';
require_once 'globals.php';
date_default_timezone_set('America/Caracas');
$db = new PgDB();
extract($_POST);
$id = $_GET['id'];
if (!(isset($numero_carta) && isset($id))) {
    die('Missing parameters');
}
if (strlen($numero_carta) != 3) {
    die('Error');
}
$today = date('Y-m-d', time());
$qry = "UPDATE pasantia SET numero_carta = '{$numero_carta}', m03_numero_asignado = '{$today}' WHERE pasantia.id = '{$id}'";
$db->query($qry);
header('Location: done.php?go=pasantias.php');
 function formatoTabla()
 {
     $db = new PgDB();
     $id = session_var('usuario_id');
     $this->SetMargins(20, 25);
     $alto = 10;
     $ancho = 172;
     $qryUsr = "******";
     $reco = $db->query($qryUsr);
     $rowUsr = pg_fetch_array($reco);
     //Identificación del Alumno
     $this->SetFont('Arial', 'B', 12);
     $this->SetXY(20, 60);
     //$this->MultiCell($ancho,$alto,utf8_decode("Identificación del Alumno: "),0);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row_without_borders(array(utf8_decode("\nIdentificación del Alumno: \n ")));
     $this->SetFont('Arial', '', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nNombres y Apellidos: {$rowUsr['nombre']} {$rowUsr['apellido']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     //AQUI ES DONDE VA LA DIRECCIÓN DEL USUARIO
     $this->Row(array(utf8_decode("\nDirección: {$rowUsr['direccion']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nC.I.: {$rowUsr['cedula']}"), utf8_decode("\nCarnet Nro.: {$rowUsr['cod_carne']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCelular: {$rowUsr['telefono_celu']}"), utf8_decode("\nTeléfono Habitación: {$rowUsr['telefono_habi']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCorreo Electrónico: {$rowUsr['email']}")));
     $qryEmpr = "SELECT compania, pasantia.direccion, pasantia.telefono_celu, telefono_ofic, pasantia.email\n                FROM pasantia INNER JOIN usuario ON pasantia.usuario_id = usuario.id AND usuario.id = {$id}";
     $reco = $db->query($qryEmpr);
     $rowEmpr = pg_fetch_array($reco);
     //Identificación de la Empresa
     $this->SetFont('Arial', 'B', 12);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row_without_borders(array(utf8_decode("\n\nIdentificación de la Empresa / Institución: \n ")));
     $this->SetFont('Arial', '', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nNombre: {$rowEmpr['compania']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nDirección: {$rowEmpr['direccion']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCelular: {$rowEmpr['2']}"), utf8_decode("\nTeléfono: {$rowEmpr['telefono_ofic']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCorreo Electrónico: {$rowEmpr['email']}")));
     //QUERY PARA DATOS DEL PASANTE
     $qryPas = "******";
     $reco = $db->query($qryPas);
     $rowPas = pg_fetch_array($reco);
     //Datos de las actividades de la Pasantia
     /*$this->SetFont('Arial','B',12);
       $this->SetWidths(array(170));
       $this->SetAligns(array('L'));
       $this->Row_without_borders(array(utf8_decode("\n\nDatos de las actividades de la Pasantía: \n ")));
       */
     $this->SetFont('Arial', '', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nActividad del Pasante en la Empresa / Institución: {$rowPas['actividad']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nNombre del Supervisor Inmediato: {$rowPas['supervisor']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nCargo que ocupa: {$rowPas['cargo_supervisor']}")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nDepartamento donde realizó la pasantía: {$rowPas['departamento']}")));
     $this->SetX(20);
     $this->SetWidths(array(85, 85));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nFecha de inicio: {$rowPas['fecha_inicio']}"), utf8_decode("\nFecha de finalización: {$rowPas['fecha_fin']}")));
     if ($rowPas['tiempo_completo'] == TRUE) {
         $this->SetWidths(array(45, 45, 17.5, 45, 17.5));
         $this->SetAligns(array('L'));
         $this->Row(array(utf8_decode("\nTiempo de pasantía: "), utf8_decode("\nTiempo completo: "), utf8_decode("  \n     X  "), utf8_decode("\nMedio tiempo: "), utf8_decode("\n")));
     } else {
         $this->SetWidths(array(45, 45, 17.5, 45, 17.5));
         $this->SetAligns(array('L'));
         $this->Row(array(utf8_decode("\nTiempo de pasantía: "), utf8_decode("\nTiempo completo: "), utf8_decode("\n"), utf8_decode("\nMedio tiempo: "), utf8_decode("  \n     X  ")));
     }
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nHorario de trabajo del Pasante: {$rowPas['horario']}")));
     $this->Ln();
     //EVALUACIÓN DEL ESTUDIANTE
     $this->SetFont('Arial', 'B', 12);
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('C'));
     $this->Row(array(utf8_decode("\nEVALUACIÓN DEL ESTUDIANTE POR PARTE DE LA EMPRESA")));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\nASPECTOS"), "\nDEF", "\nSAT", "\nBUE", "\nMB", "\nEXC"));
     $this->SetFont('Arial', '', 12);
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Puntualidad"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Cooperación"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Iniciativa"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Habilidad/Destreza"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Responsabilidad"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Organización"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Eficiencia"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Dedicación"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Respeto Jerárquico"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Sociabilidad"), "", "", "", "", ""));
     $this->SetWidths(array(95, 15, 15, 15, 15, 15));
     $this->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
     $this->Row(array(utf8_decode("\n Presentación"), "", "", "", "", ""));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nEmita una opinión sobre el rendimiento académico del Pasante:\n\n\n")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nEmita una opinión sobre el conocimiento de los equipos que manejó el Pasante:\n\n\n")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\n¿Qué recomendaciones daría Usted para completar la formación del Pasante?\n\n\n")));
     $this->SetX(20);
     $this->SetWidths(array(170));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nOtras sugerencias:\n\n\n")));
     $this->Ln();
     $this->SetX(20);
     $this->SetWidths(array(56, 57, 57));
     $this->SetAligns(array('L'));
     $this->Row(array(utf8_decode("\nFecha: "), utf8_decode("\nSello de la Empresa / Institución: \n\n\n\n\n "), utf8_decode("\nFirma del Supervisor Inmediato: ")));
 }
예제 #7
0
<?php

require 'db.php';
require 'error.php';
extract($_POST);
if (!(isset($username) && isset($password))) {
    die('Missing parameters');
}
$hash_password = hash('sha512', $password);
$db = new PgDB();
$qry = "SELECT password, nombre, apellido, tipo, id FROM usuario WHERE usuario.username = '******'";
$result = $db->query($qry);
if (pg_num_rows($result) == 0) {
    $error = 1;
} else {
    $data = pg_fetch_row($result, 0);
    $db_password = $data[0];
    $db_nombre = $data[1];
    $db_apellido = $data[2];
    $db_tipo = $data[3];
    $db_usuario_id = $data[4];
}
if ($hash_password != $db_password) {
    $error = 2;
}
if (isset($error)) {
    header("Location: index.php?u={$username}&err=1");
} else {
    session_start();
    $_SESSION['nombre'] = $db_nombre;
    $_SESSION['apellido'] = $db_apellido;
<?php

require_once 'globals.php';
require_once 'db.php';
validate_session('estudiante');
$db = new PgDB();
$id = session_var('usuario_id');
$qry = $db->query("SELECT * FROM usuario,pasantia WHERE usuario.id = {$id} AND usuario.id=pasantia.usuario_id");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Sistema de pasantías.</title>
        <link href="css/estilo.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div class="container">
            <div class="header">
                <?php 
require_once "include/cabecera.php";
?>
            </div>
            <?php 
require_once "include/menu_estudiantes.php";
?>
            <div class="content">
                <?php 
require_once "include/fecha.php";
if (pg_num_rows($qry) == 0) {
    echo "<h2 align='center'>Usted no se ha registrado como pasante</h2>";
} else {
<?php

require '../fpdf/fpdf.php';
require_once '../globals.php';
require_once '../db.php';
validate_session("estudiante");
date_default_timezone_set('America/Caracas');
$db = new PgDB();
$id = session_var('usuario_id');
$qry = "SELECT nombre, apellido, cedula, dirigido_a, numero_carta FROM usuario INNER JOIN pasantia ON pasantia.usuario_id = usuario.id AND usuario.id = {$id}";
$reco = $db->query($qry);
$row = pg_fetch_array($reco);
$pdf = new FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$fecha = date('d-m-Y', time());
$nroCP = "{$row['numero_carta']}";
$ciudadano = "{$row['dirigido_a']}";
$nombre = "{$row['nombre']} {$row['apellido']}";
$cedula = "{$row['cedula']}";
//linea superior
$pdf->Line(28, 20, 187, 20);
$pdf->Line(28, 20.7, 187, 20.7);
//linea inferior
$pdf->Line(28, 53, 187, 53);
$pdf->Line(28, 53.7, 187, 53.7);
//linea izquierda
$pdf->Line(186, 54, 186, 20);
$pdf->Line(186.7, 54, 186.7, 20);
//linea derecha
$pdf->Line(28, 54, 28, 20);
$pdf->Line(28.7, 54, 28.7, 20);
예제 #10
0
<?php

require_once 'db.php';
require_once 'globals.php';
validate_session('estudiante');
$id = session_var('usuario_id');
$db = new PgDB();
$r = $db->query("SELECT * FROM pasantia WHERE pasantia.usuario_id = {$id}");
?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Sistema de pasantías.</title>
        <link href="css/estilo.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div class="container">
            <div class="header">
                <?php 
include "include/cabecera.php";
?>
            </div>
            <?php 
require_once 'include/menu_estudiantes.php';
?>
            <div class="content">
                <?php 
require_once "include/fecha.php";
?>
                <div align="center">
} else {
    if ($tipo == 'dpe') {
        require_once 'include/menu_dpe.php';
    }
}
?>
            <div class="content">
                <?php 
require_once "include/fecha.php";
?>
                <div align="center">

<?php 
include 'db.php';
require_once 'globals.php';
$db = new PgDB();
$periodos = $db->query("SELECT * FROM periodo where periodo.activo=TRUE");
if (pg_num_rows($periodos) < 1) {
    echo "<h2> No hay periodo activo <h2>";
} else {
    $rowp = pg_fetch_array($periodos);
    $num_total_registros = pg_num_rows($db->query("SELECT * FROM usuario,pasantia WHERE pasantia.usuario_id=usuario.id AND pasantia.periodo_id={$rowp['id']}"));
    $tam_total = ceil($num_total_registros / 10);
    if ($num_total_registros < 1) {
        echo "<h2> No hay pasantias Registradas<h2>";
    } else {
        ?>
<form method="post" action="estado_pasantias.php">
    <?php 
        echo "<h1>Periodo " . $rowp['tipo'] . " " . $rowp['anio'] . "</h1>";
        ?>
예제 #12
0
<?php

require_once 'globals.php';
require_once 'db.php';
validate_session2('tutor_licom', 'dpe');
$db = new PgDB();
$periodo = $db->query('SELECT id FROM periodo WHERE periodo.activo = TRUE');
$rowp = pg_fetch_array($db->query('SELECT anio,tipo FROM periodo WHERE periodo.activo = TRUE'));
$tipo_cuenta = session_var('tipo_cuenta');
//error_reporting(0);
if (pg_num_rows($periodo) == 0) {
    $error = 'periodo';
} else {
    $periodo = pg_fetch_row($periodo, 0)[0];
    $qry = "SELECT usuario.cedula, usuario.nombre, usuario.apellido, pasantia.id FROM pasantia INNER JOIN usuario ON usuario.id = pasantia.usuario_id AND pasantia.periodo_id = {$periodo}";
    if ($tipo_cuenta == 'dpe') {
        $qry = $qry . " AND pasantia.valida = TRUE ORDER BY pasantia.id";
    } else {
        $qry = $qry . " ORDER BY pasantia.id";
    }
    $pasantias = $db->query($qry);
    $num_total_registros = pg_num_rows($pasantias);
    $tam_total = ceil($num_total_registros / 10);
    if (pg_num_rows($pasantias) == 0) {
        $error = 'pasantia';
    }
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
예제 #13
0
function contar($qry)
{
    $db = new PgDB();
    $result = $db->query($qry);
    return pg_fetch_row($result, 0)[0];
}
<?php

require_once 'globals.php';
validate_session('estudiante');
require_once 'db.php';
require_once 'calendario/calendario.php';
$db = new PgDB();
$username = session_var('username');
$qry = "SELECT count(*) FROM usuario INNER JOIN pasantia ON usuario.id = pasantia.usuario_id AND usuario.username = '******' INNER JOIN periodo ON pasantia.periodo_id = periodo.id AND periodo.activo = true";
$count = $db->query($qry);
$count = pg_fetch_row($count, 0)[0];
$periodo = $db->query('SELECT count(*) FROM periodo WHERE periodo.activo = TRUE');
$periodo = pg_fetch_row($periodo, 0)[0];
?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Sistema de pasantías.</title>
        <link href="./css/estilo.css" rel="stylesheet" type="text/css" />
        <script type="application/javascript" src="calendario/javascript.js"></script>
    </head>

    <body>
        <div class="container">
            <div class="header">
                <?php 
require_once "include/cabecera.php";
?>
            </div>
            <?php 
<?php

require_once 'globals.php';
require_once 'db.php';
validate_session('tutor_licom');
$db = new PgDB();
if (isset($_GET['op']) && isset($_GET['id'])) {
    if ($_GET['op'] == 'del') {
        $qry = 'DELETE FROM periodo WHERE periodo.id = ' . $_GET['id'];
        $db->query($qry);
        header('Location: periodos.php');
    }
    if ($_GET['op'] == 'act') {
        $qry = 'UPDATE periodo SET activo = FALSE WHERE TRUE';
        $db->query($qry);
        $qry = 'UPDATE periodo SET activo = TRUE WHERE periodo.id = ' . $_GET['id'];
        $db->query($qry);
        header('Location: periodos.php');
    }
}
extract($_POST);
header('Content-Type: text/html; charset=utf-8');
if (!(isset($anio) && isset($tipo))) {
    die('Missing parameters.');
}
if ($anio < 2000 && $anio > 2999) {
    die('Año fuera de rango.');
}
$db->query('UPDATE periodo SET activo = false');
$qry = "INSERT INTO periodo (anio, tipo, activo) VALUES ('{$anio}', '{$tipo}', 'true')";
$db->query($qry);