<?php

include_once '../../login/check.php';
$folder = "../../";
$titulo = "Nuevo Registro de Rude";
$id = $_GET['id'];
include_once '../../class/alumno.php';
$alumno = new alumno();
$al = array_shift($alumno->mostrar($id));
include_once '../../class/rude.php';
$rude = new rude();
$r = $rude->mostrarTodo("codalumno=" . $id);
$a = array_shift($r);
include_once "../../class/curso.php";
$curso = new curso();
$cur = todolista($curso->mostrarTodo(), "codcurso", "nombre", "");
$foto = "../foto/" . $al['foto'];
if (!file_exists($foto) or $foto != "") {
    $foto = "../foto/0.jpg";
}
include_once '../../funciones/funciones.php';
include_once '../../cabecerahtml.php';
include_once '../../cabecera.php';
?>
<div class="grid_12">
	<div class="contenido imagenfondo">
    	<form action="actualizar.php" method="post" enctype="multipart/form-data">
        <?php 
campos("", "id", "hidden", $a['codrude']);
?>
    	<div class="prefix_0 grid_6 alpha">
Esempio n. 2
0
include_once '../../login/check.php';
if (!empty($_POST)) {
    $folder = "../../";
    include_once '../../class/alumno.php';
    include_once '../../class/curso.php';
    include_once '../../class/rude.php';
    extract($_POST);
    $codcurso = $codcurso ? "codcurso='{$codcurso}'" : "codcurso LIKE '%'";
    $sexo = $sexo != "" ? "sexo='{$sexo}'" : "sexo LIKE '%'";
    $alumno = new alumno();
    $curso = new curso();
    $rude = new rude();
    $al = $alumno->mostrarTodo("paterno LIKE '%{$paterno}%' and materno LIKE '%{$materno}%' and nombres LIKE '%{$nombres}%' and {$sexo} and {$codcurso}", "paterno,materno,nombres,codcurso");
    $i = 0;
    foreach ($al as $a) {
        $i++;
        $cur = array_shift($curso->mostrar($a['codcurso']));
        $r = $rude->mostrarTodo("codalumno=" . $a['codalumno']);
        $d[$i]['codalumno'] = $a['codalumno'];
        $d[$i]['paterno'] = capitalizar($a['paterno']);
        $d[$i]['materno'] = capitalizar($a['materno']);
        $d[$i]['nombres'] = capitalizar($a['nombres']);
        $d[$i]['curso'] = $cur['nombre'];
        $d[$i]['sexo'] = $a['sexo'] ? 'Masculino' : 'Femenino';
        $d[$i]['rude'] = $a['rude'];
        $d[$i]['telefonocasa'] = $a['telefonocasa'];
        $d[$i]['celular'] = $a['celular'];
    }
    $titulo = array("paterno" => "Paterno", "materno" => "Materno", "nombres" => "Nombres", "sexo" => "Sexo", "curso" => "Curso", "rude" => "Rude", "telefonocasa" => "Teléfono", "celular" => "Celular");
    listadoTabla($titulo, $d, 1, "", "", "ver.php");
}
Esempio n. 3
0
<?php

include_once "../../impresion/fpdf/fpdf.php";
$titulo = "Datos de Alumno";
$id = $_GET['id'];
include_once "../../class/alumno.php";
$alumno = new alumno();
$a = array_shift($alumno->mostrar($id));
include_once "../../class/curso.php";
$curso = new curso();
$cur = array_shift($curso->mostrar($a['codcurso']));
include_once "../../class/rude.php";
$rude = new rude();
$al = array_shift($rude->mostrarTodo("codalumno=" . $a['codalumno']));
function escribe($x, $y, $t, $tam = 12)
{
    global $pdf;
    $pdf->SetFont('Arial', '', $tam);
    $pdf->SetXY($x, $y);
    $pdf->Cell(5, 4, utf8_decode(mb_strtoupper($t, "utf8")), 0, 0, "C");
}
$pdf = new FPDF("P", "mm", array(216, 330));
$pdf->SetMargins(0, 0, 0);
$pdf->SetAutoPageBreak(true, 0);
$pdf->SetFont('Arial', 'B', 12);
$pdf->AddPage();
$pdf->Image("rude.jpg", 0, 0, 216, 330);
escribe(75.2, 38.1, "x", 10);
escribe(140, 38, mb_strtoupper(""));
escribe(56, 43.3, "");
escribe(110, 43.5, mb_strtoupper(""));