2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
|
|
|
|
2008-01-09 05:18:36 +01:00
|
|
|
/**
|
|
|
|
* @package forms
|
|
|
|
* @subpackage fields-basic
|
|
|
|
*/
|
2007-09-16 03:55:04 +02:00
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
/**
|
2008-01-09 05:18:36 +01:00
|
|
|
* Single checkbox field, disabled
|
|
|
|
* @package forms
|
|
|
|
* @subpackage fields-basic
|
2007-07-19 12:40:28 +02:00
|
|
|
*/
|
|
|
|
class CheckboxFieldDisabled extends CheckboxField {
|
|
|
|
/**
|
|
|
|
* Returns a single checkbox field - used by templates.
|
|
|
|
*/
|
|
|
|
function Field() {
|
2008-04-06 06:08:45 +02:00
|
|
|
$attributes = array(
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'class' => $this->extraClass() . " text",
|
|
|
|
'id' => $this->id(),
|
|
|
|
'name' => $this->attrName(),
|
|
|
|
'tabindex' => $this->getTabIndexHTML(),
|
|
|
|
'checked' => ($this->value) ? 'checked' : false,
|
|
|
|
'disabled' => 'disabled'
|
|
|
|
);
|
|
|
|
|
|
|
|
return $this->createTag('input', $attributes);
|
2007-07-19 12:40:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-09-16 03:55:04 +02:00
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
?>
|