Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
htdocs /
STR /
reportes /
[ HOME SHELL ]
Name
Size
Permission
Action
boleta.php
4.3
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : boleta.php
<?php //error_reporting(0); session_start(); require('../librerias/fpdf/fpdf.php'); class PDF extends FPDF { // Page header function cargarDatosAlumno(){ if(isset($_SESSION['matricula'])){ include "../../conexion/conexion.php"; $matricula=$_SESSION['matricula']; $query="SELECT Matricula_Alumno,CONCAT(Nombres,' ',Apellido_Paterno,' ',Apellido_Materno) AS nombre,Carrera,Tetramestre,Turno,Grupo FROM alumnos WHERE Matricula_Alumno='$matricula'"; $resultado=$enlace->query($query); if ($fila=mysqli_fetch_array($resultado)) { $this->Cell(0,10,'ALUMNO: '.$fila['nombre'],0,0,'L'); $this->Cell(0,10,'MATRICULA: '.$fila['Matricula_Alumno'],0,0,'R'); $this->Ln(5); $this->Cell(0,10,'CARRERA: '.$fila['Carrera'],0,0,'L'); //INSERTAR CARRERA $this->Cell(0,10,'TURNO: '.$fila['Turno'],0,0,'R'); //INSERTAR TURNO $this->Ln(5); $this->Cell(0,10,'CUATRIMESTRE: '.$fila['Tetramestre'],0,0,'L'); $this->Cell(0,10,'GRUPO: '.$fila['Grupo'],0,0,'R'); } } } function cargarMaterias(){ if (isset($_SESSION['matricula'])) { $sumatoria=0; include "../../conexion/conexion.php"; $matricula=$_SESSION['matricula']; $cuatri=$_GET['cuatri']; $lista=array(); $query="SELECT nombre,calificacion,tipo_evaluacion,faltas FROM calificaciones_alumnos LEFT JOIN materias ON calificaciones_alumnos.id_materia=materias.id WHERE matricula_alumno='$matricula' AND cuatrimestre=$cuatri;"; $enlace->set_charset("utf8"); $resultado=$enlace->query($query); $indice=0; while($fila=mysqli_fetch_array($resultado)){ $lista[$indice]=[ "nombre"=>$fila['nombre'], "calificacion"=>$fila['calificacion'], "tipo"=>$fila['tipo_evaluacion'], "faltas"=>$fila['faltas']]; $indice++; } $this->ln(); for ($i=0; $i <10; $i++) { $sumatoria+=$lista[0]['calificacion']; $this->Cell(130,7,$lista[0]['nombre'],1); $this->Cell(30,7,$lista[0]['calificacion'],1); $this->Cell(30,7,"N/A",1); $this->Cell(30,7,$lista[0]['tipo'],1); $this->Cell(30,7,"APROBATORIO",1); $this->Cell(30,7,$lista[0]['faltas'],1); $this->ln(); } //cargar Promedio $cantMaterias=sizeof($lista); $promedio=$sumatoria/10; $this->Cell(130,7,'PROMEDIO GENERAL',0,0,"R"); $this->Cell(30,7,$promedio,1); $this->ln(); } } function dibujarEscala(){ $this->ln(5); $this->cell(45); $this->SetFont('Arial','',7); $this->cell(50,7,"DESCRIPCION DE LA ESCALA ALFANUMERICA"); $this->ln(); //NO INTEGRADAS $this->cell(45); $this->cell(42,7,"ASIGNATURAS NO INTEGRADAS",1); $this->cell(40,7,"AU=AUTONOMO ",1); $this->cell(6,7,"10",1); $this->cell(43,7,"DE=DESTACADO",1); $this->cell(5,7,"9",1); $this->cell(27,7,"SA=SATISFACTORIO",1); $this->cell(5,7,"8",1); $this->cell(27,7,"NA=NO ACREDITADO",1); $this->ln(); //INTEGRADAS $this->cell(45); $this->cell(42,7,"ASIGNATURAS INTEGRADAS",1); $this->cell(40,7,"CA=COMPETENTE AUTONOMO ",1); $this->cell(6,7,"10",1); $this->cell(43,7,"CD=COMPETENTE DESTACADO",1); $this->cell(5,7,"9",1); $this->cell(27,7,"CO=COMPETENTE",1); $this->cell(5,7,"8",1); $this->cell(27,7,"NA=NO ACREDITADO",1); } function Header() { // Logo $this->Image('../../imagenesBoleta/encabezado.png',110,1,100,30,'PNG'); $this->SetFont('Arial','B',9); $this->Ln(10); $this->cargarDatosAlumno(); $this->Ln(5); $this->SetFont('Arial','B',15); $this->Ln(5); } function body(){ $this->SetFont('Arial','B',9); $this->Cell(130); $this->Cell(90,7,"CALIFICACIONES",1); $this->Ln(); $this->Cell(130,7,"ASIGNATURA",1); $this->Cell(30,7,"NUMERO",1); $this->Cell(30,7,"LETRA",1); $this->Cell(30,7,"EVALUACION",1); $this->Cell(30,7,"ESTATUS",1); $this->Cell(30,7,"FALTAS",1); $this->cargarMaterias(); } // Page footer function Footer() { $this->ln(3); $this->dibujarEscala(); $this->ln(12); $this->Image('../../imagenesBoleta/firma2.png'); $this->cell(95); $this->SetFont('Arial','B',7); $this->cell(27,7,"ESTA BOLETA NO ES VALIDA SI NO PRESENTA SELLO ORIGINAL",0); } } // Instanciation of inherited class $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage("L"); $pdf->body(); $pdf->Output(); ?>
Close