eaiovnaovbqoebvqoeavibavo AddExtGState(array('ca'=>$alpha, 'CA'=>$alpha, 'BM'=>'/'.$bm)); $this->SetExtGState($gs); } function AddExtGState($parms) { $n = count($this->extgstates)+1; $this->extgstates[$n]['parms'] = $parms; return $n; } function SetExtGState($gs) { $this->_out(sprintf('/GS%d gs', $gs)); } function _enddoc() { if(!empty($this->extgstates) && $this->PDFVersion<'1.4') $this->PDFVersion='1.4'; parent::_enddoc(); } function _putextgstates() { for ($i = 1; $i <= count($this->extgstates); $i++) { $this->_newobj(); $this->extgstates[$i]['n'] = $this->n; $this->_put('<extgstates[$i]['parms']; $this->_put(sprintf('/ca %.3F', $parms['ca'])); $this->_put(sprintf('/CA %.3F', $parms['CA'])); $this->_put('/BM '.$parms['BM']); $this->_put('>>'); $this->_put('endobj'); } } function _putresourcedict() { parent::_putresourcedict(); $this->_put('/ExtGState <<'); foreach($this->extgstates as $k=>$extgstate) $this->_put('/GS'.$k.' '.$extgstate['n'].' 0 R'); $this->_put('>>'); } function _putresources() { $this->_putextgstates(); parent::_putresources(); } //girar texto function TextWithDirection($x, $y, $txt, $direction='R') { if ($direction=='R') $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',1,0,0,1,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); elseif ($direction=='L') $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',-1,0,0,-1,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); elseif ($direction=='U') $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',0,1,-1,0,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); elseif ($direction=='D') $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',0,-1,1,0,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); else $s=sprintf('BT %.2F %.2F Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); if ($this->ColorFlag) $s='q '.$this->TextColor.' '.$s.' Q'; $this->_out($s); } function TextWithRotation($x, $y, $txt, $txt_angle, $font_angle=0) { $font_angle+=90+$txt_angle; $txt_angle*=M_PI/180; $font_angle*=M_PI/180; $txt_dx=cos($txt_angle); $txt_dy=sin($txt_angle); $font_dx=cos($font_angle); $font_dy=sin($font_angle); $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',$txt_dx,$txt_dy,$font_dx,$font_dy,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); if ($this->ColorFlag) $s='q '.$this->TextColor.' '.$s.' Q'; $this->_out($s); } //**************************************************************************** */ // Tabla coloreada function GenerarCuadro($id_grado) { //FONDO $this->Image('assets/img/logo_ceg_redondo2.png','185','10','17','17','PNG'); //datos del alumno $this->SetFont('Arial','',15); $this->SetTextColor(20); $this->setXY(20,10); $this->SetFont('Arial','B',9);$this->Cell(40,10,utf8_decode("CENTRO EDUCATIVO GETSEMANÍ")); $this->setXY(20,15); $this->SetFont('Arial','B',9);$this->Cell(40,10,utf8_decode("Registro de Resultados de Evaluación Bimestral")); $this->setXY(20,20); $this->SetFont('Arial','B',9);$this->Cell(40,10,"del Rendimiento Escolar - Ciclo Escolar 2025"); $this->setXY(140,30); $this->SetFont('Arial','B',9);$this->Cell(40,10,"Bimestre: _________________________"); $this->setXY(140,36); $this->SetFont('Arial','B',9);$this->Cell(40,10,"Maestro: _________________________"); $this->setXY(140,42); $this->SetFont('Arial','B',9);$this->Cell(40,10,"Hora: _________________________"); $this->setXY(20,55); //datos $consultas=new Grados2(); $Grado=$consultas->BuscarNG($id_grado); foreach($Grado as $grados){ $this->SetFont('Arial','B',12);$this->Cell(40,10,$grados['nombre_corto']); } $this->setXY(10,70); $this->Cell(55,15,'',1,0,'C',false); //Empieza la cabecera $this->SetFillColor(225,228,242); $this->SetTextColor(0,0,0); $this->SetDrawColor(0, 0, 0); $this->SetFont('Arial','I',6); $this->setXY(68,55); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $this->Cell(7,40,'',1,0,'C',false); $textoA=$this->TextWithDirection(156,88,'Responsabilidad (5 pts)','U'); $this->Cell(7,40,$textoA,1,0,'C',false); $textoA=$this->TextWithDirection(163,88,utf8_decode('Desempeño en clase (5 pts)'),'U'); $this->Cell(7,40,$textoA,1,0,'C',false); $textoA=$this->TextWithDirection(170,88,'Total zona y afectivo (70 pts)','U'); $this->Cell(7,40,$textoA,1,0,'C',false); $textoA=$this->TextWithDirection(177,88,'Primer Parcial (15 pts)','U'); $this->Cell(7,40,$textoA,1,0,'C',false); $textoA=$this->TextWithDirection(184,88,'Segundo Parcial (15 pts)','U'); $this->Cell(7,40,$textoA,1,0,'C',false); $textoA=$this->TextWithDirection(191,88,'Mejoramiento (15 pts)','U'); $this->Cell(7,40,$textoA,1,0,'C',false); $textoA=$this->TextWithDirection(198,88,utf8_decode('Total exámenes (30 pts)'),'U'); $this->Cell(7,40,$textoA,1,0,'C',false); $this->SetFont('Arial','',7); $this->setXY(68,90); $this->Cell(84,5,'Procedimental',1,0,'C',true); $this->Cell(14,5,'Afectivo',1,0,'C',true); $this->Cell(7,10,'',1,0,'C',true); $this->Cell(28,5,'Cognositivo',1,0,'C',true); $this->SetFont('Arial','',7); $this->setXY(7,95); $this->Cell(5,5,'No',1,0,'C',true); $this->Cell(8,5,'Carnet',1,0,'C',true); $this->Cell(48,5,'Apellidos y nombres del alumno',1,0,'C',true); $this->Cell(7,5,'1',1,0,'C',true); $this->Cell(7,5,'2',1,0,'C',true); $this->Cell(7,5,'3',1,0,'C',true); $this->Cell(7,5,'4',1,0,'C',true); $this->Cell(7,5,'5',1,0,'C',true); $this->Cell(7,5,'6',1,0,'C',true); $this->Cell(7,5,'7',1,0,'C',true); $this->Cell(7,5,'8',1,0,'C',true); $this->Cell(7,5,'9',1,0,'C',true); $this->Cell(7,5,'10',1,0,'C',true); $this->Cell(7,5,'11',1,0,'C',true); $this->Cell(7,5,'12',1,0,'C',true); $this->Cell(7,5,'1',1,0,'C',true); $this->Cell(7,5,'2',1,0,'C',true); $this->Cell(7,5,'T',1,0,'C',true); $this->Cell(7,5,'1',1,0,'C',true); $this->Cell(7,5,'2',1,0,'C',true); $this->Cell(7,5,'3',1,0,'C',true); $this->Cell(7,5,'T',1,0,'C',true); $this->Cell(7,5,'F',1,0,'C',true); $this->Ln(); //Buscar los datos $datosAlumnos=$consultas->buscarAlumno($id_grado); if($datosAlumnos){ $contador=1; foreach($datosAlumnos as $fila){ $this->SetFont('Arial','I',6); $this->setX(7); $this->Cell(5,5,$contador,1,0,'C',false); $this->Cell(8,5,$fila['carnet'],1,0,'C',false); $this->SetFont('Arial','I',7); $this->Cell(48,5,$fila['apellidos'].', '.$fila['nombres'],1,0,'L',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',true); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',false); $this->Cell(7,5,'',1,0,'C',true); $this->Cell(7,5,'',1,0,'C',false); $this->Ln(); $contador++; } } } } ?>