2011-08-30 13:15:25 -04:00
|
|
|
<?php
|
2017-08-11 11:10:27 -04:00
|
|
|
|
|
|
|
|
/**
|
2017-08-14 15:53:48 -04:00
|
|
|
* Class XmlFormFieldCheckBoxTable
|
2017-08-11 16:58:27 -04:00
|
|
|
*
|
|
|
|
|
*/
|
2017-08-14 15:53:48 -04:00
|
|
|
class XmlFormFieldCheckBoxTable extends XmlFormFieldCheckbox
|
2011-08-30 13:15:25 -04:00
|
|
|
{
|
2012-10-09 12:58:15 -04:00
|
|
|
|
2017-08-11 11:10:27 -04:00
|
|
|
/**
|
|
|
|
|
* Function render
|
|
|
|
|
*
|
|
|
|
|
* @author The Answer
|
|
|
|
|
* @access public
|
|
|
|
|
* @param eter string value
|
|
|
|
|
* @param eter string owner
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
2017-08-11 16:58:27 -04:00
|
|
|
public function render($value = null, $owner = null)
|
2012-10-09 12:58:15 -04:00
|
|
|
{
|
2017-08-11 11:10:27 -04:00
|
|
|
$optionName = $value;
|
2017-08-11 16:58:27 -04:00
|
|
|
$onclick = (($this->onclick) ? ' onclick="' . G::replaceDataField($this->onclick, $owner->values) . '" ' : '');
|
2017-08-11 11:10:27 -04:00
|
|
|
$html = '<input class="FormCheck" id="form[' . $this->name . '][' . $optionName . ']" name="form[' . $this->name . '][' . $optionName . ']" type=\'checkbox\' value="' . $value . '"' . $onclick . '> <span class="FormCheck"></span></input>';
|
|
|
|
|
return $html;
|
2012-10-09 12:58:15 -04:00
|
|
|
}
|
|
|
|
|
}
|