Example #1
0
 /**
  * tag : SELECT
  * mode : CLOSE
  *
  * @param  array $param
  * @return boolean
  */
 protected function _tag_close_SELECT()
 {
     // position of the select
     $x = $this->pdf->getX();
     $y = $this->pdf->getY();
     $f = 1.08 * $this->parsingCss->value['font-size'];
     // width
     $w = $this->parsingCss->value['width'];
     if (!$w) {
         $w = 50;
     }
     // height (automatic)
     $h = $f * 1.07 * $this->_lstSelect['size'] + 1;
     $prop = $this->parsingCss->getFormStyle();
     // multy select
     if ($this->_lstSelect['multi']) {
         $prop['multipleSelection'] = 'true';
     }
     // single or multi select
     if ($this->_lstSelect['size'] > 1) {
         $this->pdf->ListBox($this->_lstSelect['name'], $w, $h, $this->_lstSelect['options'], $prop);
     } else {
         $this->pdf->ComboBox($this->_lstSelect['name'], $w, $h, $this->_lstSelect['options'], $prop);
     }
     $this->_maxX = max($this->_maxX, $x + $w);
     $this->_maxY = max($this->_maxY, $y + $h);
     $this->_maxH = max($this->_maxH, $h);
     $this->_maxE++;
     $this->pdf->setX($x + $w);
     $this->parsingCss->load();
     $this->parsingCss->fontSet();
     $this->_lstSelect = array();
     return true;
 }