| getMainPageWidth() . "mm\" class=\"questionnaireInfo\">{$questionnaire['infobefore']} |
| getMainPageWidth() . "mm\" class=\"questionnaireInfo\">{$questionnaire['infoafter']} |
| getMainPageWidth() . "mm\" class=\"questionHelpAfter\">{$question['helptextafter']} |
| $text |
| $text |
| "; + + //First draw a background of height $this->responseLabelHeight + $html = ""; + $this->setBackground('question'); + $this->writeHTMLCell($this->getMainPageWidth(), $this->responseLabelHeight, $this->getMainPageX(), $currentY , $this->style . $html,0,1,true,true); + + $this->setDefaultFont($this->responseLabelFontSize); + + $count = 0; + //Draw a Cell for each rwidth from $textwidth + $this->getMainPageX(),currentY foreach ($categories as $r) { - $html .= " | {$r['text']} | "; + $y = $currentY; + $x = ($textwidth + $this->getMainPageX() + ($rwidth * $count)); + $this->MultiCell($rwidth,$this->responseLabelHeight,$r['text'],0,'C',false,0,$x,$y,true,0,false,true,$this->responseLabelHeight,'B',true); + $count++; } - $html .= "
| " . $s['text'] . " |
| " . $s['text'] . " |
| "; + $isempty = true; + $count = 0; + + //First draw a background of height $this->responseLabelHeight + $html = ""; + $this->setBackground('question'); + $this->writeHTMLCell($this->getMainPageWidth(), $this->responseLabelHeight, $this->getMainPageX(), $currentY , $this->style . $html,0,1,true,true); + + + $this->setDefaultFont($this->responseLabelFontSize); + + //Draw a Cell for each rwidth from $textwidth + $this->getMainPageX(),currentY foreach ($subquestions as $r) { - $html .= " | {$r['text']} | "; + $y = $currentY; + $x = ($textwidth + $this->getMainPageX() + ($rwidth * $count)); + $this->MultiCell($rwidth,$this->responseLabelHeight,$r['text'],0,'C',false,0,$x,$y,true,0,false,true,$this->responseLabelHeight,'B',true); + if (!empty($r['text'])) $isempty = false; + $count++; } - $html .= "
| " . $r['text'] . " |