. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ /** * @package gulliver.system */ class XmlForm_Field_Label extends XmlForm_Field { var $withoutValue = true; var $align = 'left'; } /** * Special class for pagedTable * condition: PHP expression whose result defines whether to "mark" * the following columns (that is if true) * @package gulliver.system */ class XmlForm_Field_cellMark extends XmlForm_Field { /* Defines the style of the next tds of the pagedTable. */ var $showInTable = "0"; var $style = ""; var $styleAlt = ""; var $className = ""; var $classNameAlt = ""; var $condition = 'false'; /** * tdStyle * * @param string $values * @param string $owner * * @return string $value */ function tdStyle( $values , $owner ) { $value = G::replaceDataField( $this->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 */ 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:''; } } /** * XmlForm_Field_DVEditor * * extends XmlForm_Field * @package gulliver.system * */ class XmlForm_Field_DVEditor extends XmlForm_Field { var $toolbarSet = 'toolbar2lines.html'; var $width = '90%'; var $height = '200' ; /** * render * * @param string $value * @param string $owner default value NULL * * @return string '
...
' */ function render( $value, $owner = NULL ) { return '
'; } /** * attachEvents * * @param string $element * * @return $html */ 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 XmlForm_Field_FastSearch extends XmlForm_Field_Text { var $onkeypress = "if (event.keyCode===13)@#PAGED_TABLE_ID.doFastSearch(this.value);if (event.keyCode===13)return false;"; var $colAlign = "right"; var $colWidth = "180"; var $label = "@G::LoadTranslation(ID_SEARCH)"; }