projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added paid checkbox to desktop time edit page.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
Combobox.class.php
diff --git
a/WEB-INF/lib/form/Combobox.class.php
b/WEB-INF/lib/form/Combobox.class.php
index
082765e
..
88f0b50
100644
(file)
--- a/
WEB-INF/lib/form/Combobox.class.php
+++ b/
WEB-INF/lib/form/Combobox.class.php
@@
-44,13
+44,11
@@
class Combobox extends FormElement {
var $mCompareOn = "key"; // or "value"
var $mDataDeep = 1;
var $mDataKeys = array();
var $mCompareOn = "key"; // or "value"
var $mDataDeep = 1;
var $mDataKeys = array();
- var $cClassName = "Combobox";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name) {
+ $this->class = 'Combobox';
+ $this->name = $name;
+ }
function setMultiple($value) { $this->mMultiple = $value; }
function isMultiple() { return $this->mMultiple; }
function setMultiple($value) { $this->mMultiple = $value; }
function isMultiple() { return $this->mMultiple; }
@@
-65,30
+63,26
@@
class Combobox extends FormElement {
function getDataKeys() { return $this->mDataKeys; }
function getDataKeys() { return $this->mDataKeys; }
- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
+ function getHtml() {
+
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<select";
$html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<select";
$html .= " name=\"$this->name\" id=\"$this->id\"";
- if ($this->
mS
ize!="")
- $html .= " size=\"$this->
mS
ize\"";
+ if ($this->
s
ize!="")
+ $html .= " size=\"$this->
s
ize\"";
if ($this->mMultiple)
$html .= " multiple";
if ($this->mMultiple)
$html .= " multiple";
-
- if ($this->mTabindex!="")
- $html .= " tabindex=\"$this->mTabindex\"";
-
- if ($this->mOnChange!="")
- $html .= " onchange=\"$this->mOnChange\"";
+
+ if ($this->on_change!="")
+ $html .= " onchange=\"$this->on_change\"";
- if ($this->
mS
tyle!="")
- $html .= " style=\"$this->
mS
tyle\"";
+ if ($this->
s
tyle!="")
+ $html .= " style=\"$this->
s
tyle\"";
- if (!$this->isEnable())
+ if (!$this->isEnable
d
())
$html .= " disabled";
$html .= ">\n";
$html .= " disabled";
$html .= ">\n";
@@
-115,4
+109,3
@@
class Combobox extends FormElement {
return $html;
}
}
return $html;
}
}
-?>
\ No newline at end of file