Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6614 Rev 6615
Línea 419... Línea 419...
419
        // Set header secundary
419
        // Set header secundary
420
        $pdf->customHeader($headerFormName, $headerSurveyName);
420
        $pdf->customHeader($headerFormName, $headerSurveyName);
Línea 421... Línea 421...
421
 
421
 
Línea -... Línea 422...
-
 
422
        $countSection = 0;
-
 
423
 
-
 
424
        for ($i = 0; $i < count($sections); $i++) {
-
 
425
            if ($countSection > 1) {
-
 
426
                $countSection = 0;
422
        $countSection = 0;
427
                $pdf->AddPage();
-
 
428
                $pdf->customHeader($headerFormName, $headerUserName);
Línea 423... Línea 429...
423
 
429
            }
424
       
430
            $section = $sections[$i];
425
        
-
 
426
            foreach ($section['questions'] as $question) {
-
 
427
                
-
 
428
                for ($i = 0; $i < count($question); $i++) {
-
 
429
                    if ($countSection > 1) {
-
 
430
                        $countSection = 0;
-
 
431
                        $pdf->AddPage();
-
 
432
                        $pdf->customHeader($headerFormName, $headerUserName);
-
 
433
                    }
431
        
434
                    $question = $questions[$i]; 
432
            foreach ($section['questions'] as $question) {
435
                   
433
                    
436
                    switch ($question['type']) {
434
                    switch ($question['type']) {
Línea 470... Línea 468...
470
                            $pdf->Image($filename, 12, $pdf->getY());
468
                            $pdf->Image($filename, 12, $pdf->getY());
471
                            $pdf->setY($pdf->getY() + (count($values) * 13) + 10);
469
                            $pdf->setY($pdf->getY() + (count($values) * 13) + 10);
Línea 472... Línea 470...
472
 
470
 
473
                            break;
471
                            break;
474
                    }
-
 
475
                }
472
                    }
476
                $countSection++;
473
                $countSection++;   
Línea 477... Línea 474...
477
            }
474
            }
478
 
475
 
Línea 479... Línea 476...
479
           
476
            
480
        }
477
        }