Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 509 | Rev 512 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 509 Rev 510
Línea 416... Línea 416...
416
        //Generate New PDF
416
        //Generate New PDF
417
        $pdf = new Pdf();
417
        $pdf = new Pdf();
Línea 418... Línea 418...
418
 
418
 
419
        $pdf->AliasNbPages();
419
        $pdf->AliasNbPages();
420
        $pdf->AddPage();
420
        $pdf->AddPage();
421
        
421
 
422
        // Set header secundary
422
        // Set header secundary
Línea 423... Línea 423...
423
        $pdf->pageHeader($headerFormName, $headerUserName);
423
        $pdf->pageHeader($headerFormName, $headerUserName);
424
 
424
 
Línea 440... Línea 440...
440
            $valueSection = floatval($sections[$i]['value']);
440
            $valueSection = floatval($sections[$i]['value']);
441
            $valueFormSections = $valueFormSections + $valueSection;
441
            $valueFormSections = $valueFormSections + $valueSection;
Línea 442... Línea 442...
442
 
442
 
443
            for ($j = 0; $j < count($sections[$i]['questions']); $j++) {
443
            for ($j = 0; $j < count($sections[$i]['questions']); $j++) {
444
                $totalQuestion = $totalQuestion + $this->getPtosAnswer($sections[$i]['questions'][$j]);
444
                $totalQuestion = $totalQuestion + $this->getPtosAnswer($sections[$i]['questions'][$j]);
445
                if(isset($sections[$i]['questions'][$j]['comment'])){
445
                if (isset($sections[$i]['questions'][$j]['comment'])) {
446
                    $comments += $sections[$i]['questions'][$j]['comment'].'\n';
446
                    $comments += $sections[$i]['questions'][$j]['comment'] . '\n';
447
                }
447
                }
Línea 448... Línea 448...
448
            }
448
            }
449
 
449
 
Línea 450... Línea 450...
450
            $values = [$valueSection, $totalQuestion];
450
            $values = [$valueSection, $totalQuestion];
451
            $valueFormQuestions = $valueFormQuestions + $totalQuestion;
451
            $valueFormQuestions = $valueFormQuestions + $totalQuestion;
452
 
452
 
453
 
453
 
454
            $filename = 'data' . DIRECTORY_SEPARATOR . 'tmp'. $sections[$i]['slug_section'] . '.png';
454
            $filename = 'data' . DIRECTORY_SEPARATOR . 'tmp' . $sections[$i]['slug_section'] . '.png';
455
            $pdf->barChart($labels, $values,'',$filename);
455
            $pdf->barChart($labels, $values, '', $filename);
456
            $pdf->SetFont('Arial', '', 8);
456
            $pdf->SetFont('Arial', '', 8);
Línea 471... Línea 471...
471
        $pdf->setY($pdf->getY() + 10);
471
        $pdf->setY($pdf->getY() + 10);
Línea 472... Línea 472...
472
 
472
 
Línea 473... Línea 473...
473
 
473
 
474
        $values = [$valueFormSections, $valueFormQuestions];
474
        $values = [$valueFormSections, $valueFormQuestions];
475
 
475
 
476
        $filenameGeneral = 'data' . DIRECTORY_SEPARATOR . 'tmp'. uniqid() . '.png';
476
        $filenameGeneral = 'data' . DIRECTORY_SEPARATOR . 'tmp' . uniqid() . '.png';
Línea 477... Línea 477...
477
        $pdf->barChart($labels, $values, '', $filenameGeneral);
477
        $pdf->barChart($labels, $values, '', $filenameGeneral);
478
        $pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
478
        $pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
479
        $pdf->setY($pdf->getY() + 60);
479
        $pdf->setY($pdf->getY() + 60);
480
 
480
 
481
        $pdf->SetFont('Arial','B', 10);
481
        $pdf->SetFont('Arial', 'B', 10);
482
        $pdf->Cell(190,10, utf8_decode('Comentarios finales'),0,0,'C');
482
        $pdf->Cell(190, 10, utf8_decode('Comentarios finales'), 0, 0, 'C');
483
        $pdf->setY($pdf->getY() + 10);
483
        $pdf->setY($pdf->getY() + 10);
Línea 484... Línea 484...
484
        
484
 
485
        $pdf->SetFont('Arial','', 8);
485
        $pdf->SetFont('Arial', '', 8);
Línea 519... Línea 519...
519
            }
519
            }
520
        }
520
        }
521
        return $ptos;
521
        return $ptos;
522
    }
522
    }
Línea 523... Línea -...
523
 
-
 
524
 
523