Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 506 Rev 507
Línea 408... Línea 408...
408
        // Set Data
408
        // Set Data
409
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
409
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
410
        $headerUserName = utf8_decode('Informe de Auto-evaluación: ' . trim($userMapper->first_name . ' ' . $userMapper->last_name) . ' al ' . date("m-d-Y H:i:s", strtotime($companySelfEvaluationTest->added_on)));
410
        $headerUserName = utf8_decode('Informe de Auto-evaluación: ' . trim($userMapper->first_name . ' ' . $userMapper->last_name) . ' al ' . date("m-d-Y H:i:s", strtotime($companySelfEvaluationTest->added_on)));
411
        $sections = json_decode($companySelfEvaluationTest->content, true);
411
        $sections = json_decode($companySelfEvaluationTest->content, true);
412
        $comments = '';
412
        $comments = '';
-
 
413
        $labels = ['Total', 'Logrado'];
Línea 413... Línea 414...
413
 
414
 
414
 
415
 
Línea 444... Línea 445...
444
                if(isset($sections[$i]['questions'][$j]['comment'])){
445
                if(isset($sections[$i]['questions'][$j]['comment'])){
445
                    $comments += $sections[$i]['questions'][$j]['comment'].'\n';
446
                    $comments += $sections[$i]['questions'][$j]['comment'].'\n';
446
                }
447
                }
447
            }
448
            }
Línea 448... Línea -...
448
 
-
 
449
            $labels = ['Total', 'Logrado'];
449
 
450
            $values = [$valueSection, $totalQuestion];
450
            $values = [$valueSection, $totalQuestion];
Línea 451... Línea 451...
451
            $valueFormQuestions = $valueFormQuestions + $totalQuestion;
451
            $valueFormQuestions = $valueFormQuestions + $totalQuestion;
Línea 469... Línea 469...
469
        $pdf->SetFont('Arial', 'B', 10);
469
        $pdf->SetFont('Arial', 'B', 10);
470
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
470
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
471
        $pdf->setY($pdf->getY() + 10);
471
        $pdf->setY($pdf->getY() + 10);
Línea 472... Línea -...
472
 
-
 
473
 
472
 
Línea 474... Línea 473...
474
        $labels = ['Total', 'Logrado'];
473
 
475
        $values = [$valueFormSections, $valueFormQuestions];
474
        $values = [$valueFormSections, $valueFormQuestions];
476
 
475
 
477
        $filenameGeneral = $_SERVER['DOCUMENT_ROOT'] . '/../public/pdf/tmp/' . uniqid() . '.png';
476
        $filenameGeneral = $_SERVER['DOCUMENT_ROOT'] . '/../public/pdf/tmp/' . uniqid() . '.png';
Línea 478... Línea 477...
478
        //$pdf->barChart($labels, $values, $title, $filenameGeneral);
477
        //$pdf->barChart($labels, $values, '', $filenameGeneral);
479
        //$pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
478
        //$pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);