$pdf->SetFont($pdf->FontStd, '', 8); $pdf->Cell(10, 5 * $hLine + ($MyRow->FrqTip || $AllQuestions ? 4 : 0), $MyRow->FrqId . ".", 'LTB', 0, 'L', 0); $pdf->Cell(60, 5 * $hLine, $MyRow->FrqQuestion, 'T' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 0, 'L', 0); switch ($MyRow->FrqType) { case 0: $pdf->Cell(120, 5 * $hLine, get_text('jrTextBox', 'Common', $MyRow->FrqOptions > 0 ? $MyRow->FrqOptions : 255), 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); break; case 1: $pdf->Cell(120, 5 * $hLine, get_text('jrTextArea', 'Common', explode('|', $MyRow->FrqOptions)), 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); break; case 2: $pdf->Cell(120, 5 * $hLine, get_text('jrYesNo', 'Common'), 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); break; case 3: if ($hLine != 1) { $pdf->MultiCell(120, 5, get_text('jrSingleChoice', 'Common', str_replace("|", " / ", $MyRow->FrqOptions)), 0, 'L', 0, 0, '', '', true, 1, false, true, 5 * $hLine); $pdf->SetX($pdf->GetX() - 120); $pdf->Cell(120, 5 * $hLine, '', 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); } else { $pdf->Cell(120, 5 * $hLine, get_text('jrSingleChoice', 'Common', str_replace("|", " / ", $MyRow->FrqOptions)), 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); } break; case 4: if ($hLine != 1) { $pdf->MultiCell(120, 5, get_text('jrMultiChoice', 'Common', str_replace("|", " / ", $MyRow->FrqOptions)), 0, 'L', 0, 0, '', '', true, 1, false, true, 5 * $hLine); $pdf->SetX($pdf->GetX() - 120); $pdf->Cell(120, 5 * $hLine, '', 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); } else { $pdf->Cell(120, 5 * $hLine, get_text('jrMultiChoice', 'Common', str_replace("|", " / ", $MyRow->FrqOptions)), 'RT' . ($MyRow->FrqTip || $AllQuestions ? '' : 'B'), 1, 'L', 0); } break;