condition, $owner->values);
$value = @eval('return (' . $value . ');');
$row = $values['row__'];
$style = ((($row % 2) == 0) && ($this->styleAlt != 0)) ? $this->styleAlt : $this->style;
return ($value) ? $style : '';
}
/**
* tdClass
*
* @param string $values
* @param string $owner
*
* @return $value
*/
public function tdClass($values, $owner)
{
$value = G::replaceDataField($this->condition, $owner->values);
$value = @eval('return (' . $value . ');');
$row = $values['row__'];
$style = (($row % 2) == 0) ? $this->classNameAlt : $this->className;
return ($value) ? $style : '';
}
}
/**
* XmlFormFieldDVEditor
*
* extends XmlFormField
*
* @package gulliver.system
*
*/
class XmlFormFieldDVEditor extends XmlFormField
{
public $toolbarSet = 'toolbar2lines.html';
public $width = '90%';
public $height = '200';
/**
* render
*
* @param string $value
* @param string $owner default value NULL
*
* @return string '
...
'
*/
public function render($value = null, $owner = null)
{
return '';
}
/**
* attachEvents
*
* @param string $element
*
* @return $html
*/
public function attachEvents($element)
{
$html = 'var _editor' . $this->name . '=new DVEditor(getField("form[' . $this->name . ']").parentNode,getField("form[' . $this->name . ']").value)';
return $html;
}
}
/**
* Special field: Add a search box (fast search) for the related pagedTable
*
* The PAGED_TABLE_ID reserved field must be defined in the xml.
* Use PAGED_TABLE_FAST_SEARCH reserved field, it contains the saved value for each table.
* example:
* Ex1.
*
*
* Search
*
* Ex2 (Using type="text").
*
*
* Search
*
*
* @package gulliver.system
*/
class XmlFormFieldFastSearch extends XmlFormFieldText
{
public $onkeypress = "if (event.keyCode===13)@#PAGED_TABLE_ID.doFastSearch(this.value);if (event.keyCode===13)return false;";
public $colAlign = "right";
public $colWidth = "180";
public $label = "@G::LoadTranslation(ID_SEARCH)";
}