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: ")));
 }
 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: ")));
 }
function login_time()
{
    return session_var('login_time');
}
Example #5
0
                <div class="col-md-6"><h3></h3></div>
                <div class="col-md-2">
                    <div style="float: right">
                        <a href="../controller/controlSecurity.php?controller_action=logout" data-toggle="tooltip" title="Salir de Consulta">Salir <img src="../images/logout.png"/></a>                        
                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>
			
            <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-8"><h4>Bienvenido <?php 
echo session_var("usrLastname") . " " . session_var("usrFirstname");
?>
 (<?php 
echo session_var("usrIdentification");
?>
)</h4></div>
                <div class="col-md-2"></div>                
            </div>            
                        
            <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-8">
                    <table class="table table-condensed table-striped">
                        <thead></thead>
                        <tbody>
                            <tr>
                                <td>C&eacute;dula:</td>
                                <td><input type="text" name="txtIdentification" id="txtIdentification" class="form-control" maxlength="10" /></td>
                                <td>Turno:</td>
<?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 {
                 echo "<th>" . date("d/m/Y", strtotime($row['m08_entrega_final'])) . "</th>";
             } else {
                 if (!empty($row['m07_retiro_borrador'])) {
                     echo "<th><a href='marcar.php?id={$row['12']}&n=8'>Marcar</a></th>";
                 } else {
                     echo "<th><p>---</p></th>";
                 }
             }
             if (!empty($row['m09_carga_nota'])) {
                 if (session_var('tipo_cuenta') == 'tutor_licom') {
                     echo "<th>" . date("d/m/Y", strtotime($row['m09_carga_nota'])) . "</th>";
                 } else {
                     echo "<th>nota cargada</th>";
                 }
             } else {
                 if (session_var('tipo_cuenta') == 'tutor_licom') {
                     echo "<th><a href='cargar_nota.php?id={$row['12']}'>Cargar nota</a></th>";
                 } else {
                     echo "<th>nota no cargada</th>";
                 }
             }
             echo "</tr>";
         }
     }
 }
 echo "</table>";
 if ($busqueda) {
     $qry = "SELECT * FROM usuario, pasantia WHERE usuario.cedula LIKE '%{$busqueda}%' AND pasantia.usuario_id = usuario.id AND pasantia.periodo_id={$rowp['id']}";
     $num_total_registros = pg_num_rows($db->query($qry));
     if ($bandera == 0 && ceil($num_total_registros / 10) > 1) {
         echo "<a href='estado_pasantias.php?bandera=1&busqueda=" . $busqueda . "'>pagina siguiente</a>";
# Pas loggué...
if (!$_COMPTE) {
    $Navig->fix_page_demande_connect_compte(true);
}
# Caddie vide...
if (!$Caddie->infos['nb']) {
    $Navig->redirect("caddie.php");
}
//
// Variables...
//
session_var("mode_paiement_fin", 0, 'I');
if (!$mode_paiement_fin) {
    $Navig->redirect("caddie.php");
}
session_var("id_commande_fin", 0, 'I');
# Vider Caddie paiement par chèque...
if ($mode_paiement_fin == 2) {
    $Caddie->vider();
}
# Historique...
$titre_historique = "Commander";
# CB...
if ($mode_paiement_fin == $_CB) {
    extract($_SESSION['pay']);
}
//////////////////////////////////////////////////
?>
<div class="catalogue clearfix">
  <div class="head">Confirmation de commande</div>
  <div class="padding">
<?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>
<?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 
Example #11
0
<?php

include '../../config/system.php';
include '../../libs/utils.php';
include '../../model/User.php';
include '../../model/Security.php';
session_init();
if (session_var(VAR_USER) == null) {
    send_redirect('../../login.php?' . VAR_MESSAGE . '=Sesion finalizada');
} else {
    setlocale(LC_TIME, 'es_EC');
    $objGlobalUser = User::cast(session_var(VAR_USER));
    $menuWeb = Security::getMenu($objGlobalUser->getCompany(), $objGlobalUser->getOffice(), $objGlobalUser->getId());
    $arrMenu = array();
    foreach ($menuWeb as $value) {
        $arrMenu[$value["Modulo"]][$value["CategoriaMenu"]][$value["FormaId"]] = array("Modulo" => $value["Modulo"], "subMenu" => $value["CategoriaMenu"], "FormaId" => $value["FormaId"], "Forma" => $value["Forma"]);
    }
    $menu = "";
    foreach ($arrMenu as $modulo => $SubMenus) {
        $menu .= "<li class='has_sub'><a href='javascript:void(0);'><i class='icon-home-3'></i><span>{$modulo}</span> <span class='pull-right'><i class='fa fa-angle-down'></i></span></a>";
        if (is_array($SubMenus) && count($SubMenus)) {
            $menu .= "<ul>";
            foreach ($SubMenus as $submenu => $opciones) {
                $menu .= "<li class='has_sub'><a href='javascript:void(0);'><span>{$submenu}</span> <span class='pull-right'><i class='fa fa-angle-down'></i></span></a>";
                if (is_array($opciones) && count($opciones)) {
                    $menu .= "<ul>";
                    foreach ($opciones as $opcion) {
                        $menu .= "<li><a href='javascript:void(0);'><span>{$opcion["Forma"]}</span></a></li>";
                    }
                    $menu .= "</ul>";
                }