function setPosition($name, $title = '') { $title = !empty($title) ? $title : $name; $legend = '<input class="thin blue" type="text" name="ffp[pos-' . $name . '][legend]" value="' . htmlspecialchars(@$this->positions[$name]->legend) . '" size="22" />'; $variat = Jhtml::_('select.genericlist', $this->variations, 'ffp[pos-' . $name . '][variation]', 'size="1" class="thin blue c_var_ck"', 'value', 'text', $this->positions[$name]->variation, 'pos-' . $name . '_variation'); $variat .= '<input type="hidden" id="pos-' . $name . '_variation_options" name="ffp[pos-' . $name . '][variation_options]" value="' . htmlspecialchars(@$this->positions[$name]->variation_options) . '" />'; $width = '<input class="thin blue" type="text" name="ffp[pos-' . $name . '][width]" value="' . @$this->positions[$name]->width . '" size="8" style="text-align:center;" /> x '; $height = '<input class="thin blue" type="text" name="ffp[pos-' . $name . '][height]" value="' . @$this->positions[$name]->height . '" size="8" style="text-align:center;" />'; $css = ''; Helper_Workshop::displayPosition($this->p, $name, '# ' . $title, $legend, $variat, @$this->positions[$name]->variation, $width, $height, $css); $this->p++; return $name; }