Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15150 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15150 Rev 15154
Línea 474... Línea 474...
474
            @mkdir($target_path, 0755, true);
474
            @mkdir($target_path, 0755, true);
475
        }
475
        }
Línea 476... Línea 476...
476
        
476
        
477
        // Set Data
477
        // Set Data
-
 
478
        $headerFormName = $this->cleanStringToPdf($surveyForm->name);
-
 
479
        
-
 
480
        
-
 
481
 
-
 
482
        
-
 
483
        if($survey->identity == Survey::IDENTITY_YES) {
478
        $headerFormName = $this->cleanStringToPdf($surveyForm->name);
484
            $headerUserName = $this->cleanStringToPdf(
-
 
485
                trim($surveyTest->first_name . ' ' . $surveyTest->last_name) 
-
 
486
                . ' (' . $surveyTest->email . ')'
-
 
487
                
-
 
488
            );
-
 
489
        } else {
-
 
490
            $headerUserName = '';
479
        $headerSurveyName = $this->cleanStringToPdf('Informe de Encuesta: ' . trim($survey->name) . ' al ' . date("m-d-Y H:i:s", strtotime($survey->added_on)));
491
        }
Línea 480... Línea 492...
480
        $sections = json_decode($surveyForm->content, true);
492
        $sections = json_decode($surveyForm->content, true);
Línea 481... Línea 493...
481
        
493
        
482
        $test = json_decode($surveyTest->content, true);
494
        $test = json_decode($surveyTest->content, true);
Línea 483... Línea 495...
483
        
495
        
484
 
496
 
Línea 485... Línea 497...
485
        $pdf->AliasNbPages();
497
        $pdf->AliasNbPages();
Línea 486... Línea 498...
486
        $pdf->AddPage();
498
        $pdf->AddPage();
487
 
499
 
488
        // Set header secundary
500
        // Set header secundary
489
        $pdf->customHeader($headerFormName, $headerSurveyName);
501
        $pdf->customHeader($headerFormName, $headerUserName);
490
 
502
 
491
        $countSection = 0;
503
        $countSection = 0;
492
 
504
 
Línea 493... Línea 505...
493
        for ($i = 0; $i < count($sections); $i++) {
505
        for ($i = 0; $i < count($sections); $i++) {