public function __construct($name = 'textbox', $value = '', $readonly = false, $maxlength = 255) { parent::__construct('text', $name, $value); $this->setReadonly($readonly); $this->caption = null; $this->setAttribute('maxlength', $maxlength); }
public function __construct($name = 'number', $value = '0', $maxlength = 20, $readonly = false, $allowempty = false, $allownegative = true) { parent::__construct('text', $name, $value); $this->setReadonly($readonly); $this->setAttribute('maxlength', $maxlength); $this->setAttribute('style', 'text-align: right;'); $this->onChange('validateNumericBox(this, ' . ($allowempty ? 'true' : 'false') . ', ' . ($allownegative ? 'true' : 'false') . ');'); }
public function __construct($name = 'number', $value = '0', $size = 20, $readonly = 'no', $allowempty = false, $allownegative = true) { parent::__construct('text', $name, $value); $this->setReadonly($readonly); $this->attr('size', $size); $this->attr('maxlength', $size); $this->attr('style', 'text-align: right;'); $this->addAction('onchange', 'validateNumericBox(this, ' . ($allowempty ? 'true' : 'false') . ', ' . ($allownegative ? 'true' : 'false') . ');'); }
public function __construct($name = 'textbox', $value = '', $size = 20, $readonly = false, $maxlength = 255) { parent::__construct('text', $name, $value); $this->setReadonly($readonly); $this->caption = null; $this->tag_body_start = ''; $this->setAttribute('size', $size); $this->setAttribute('maxlength', $maxlength); // require for align input field using css width if ($size == ZBX_TEXTBOX_STANDARD_SIZE) { $this->setAttribute('style', 'width: ' . ZBX_TEXTAREA_STANDARD_WIDTH . 'px;'); } }
public function __construct($name = 'file', $value = '') { parent::__construct('file', $name, $value); $this->setFile($value); }
public function __construct($name = 'checkbox', $checked = 'no', $action = null, $value = 'yes') { parent::__construct('checkbox', $name, $value, 'checkbox pointer'); $this->setAttribute('onclick', $action); $this->setChecked($checked); }
public function __construct($name = 'button', $caption = '', $action = null, $class = null) { parent::__construct('button', $name, $caption, $class); $this->addAction('onclick', $action); return $this; }
public function __construct($name = 'password', $value = '', $size = 50, $maxlength = 255) { parent::__construct('password', $name, $value); $this->setAttribute('size', $size); $this->setAttribute('maxlength', $maxlength); }
public function __construct($name = 'file') { parent::__construct('file', $name); }
public function __construct($name = 'checkbox', $value = '1') { parent::__construct('checkbox', $name, $value); $this->setChecked(false); }