projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some renaming.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
DateField.class.php
diff --git
a/WEB-INF/lib/form/DateField.class.php
b/WEB-INF/lib/form/DateField.class.php
index
24266a3
..
46ff7b8
100644
(file)
--- a/
WEB-INF/lib/form/DateField.class.php
+++ b/
WEB-INF/lib/form/DateField.class.php
@@
-35,7
+35,7
@@
class DateField extends TextField {
var $lToday = "Today";
var $mDateObj;
var $lToday = "Today";
var $mDateObj;
- var $c
ClassName = "DateField"
;
+ var $c
lass = 'DateField'
;
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
@@
-68,23
+68,22
@@
class DateField extends TextField {
function setValueSafe($value) {
if (isset($value) && (strlen($value) > 0)) {
$this->mDateObj->parseVal($value, DB_DATEFORMAT);
function setValueSafe($value) {
if (isset($value) && (strlen($value) > 0)) {
$this->mDateObj->parseVal($value, DB_DATEFORMAT);
- $this->
mV
alue = $this->mDateObj->toString($this->mDateFormat); //?
+ $this->
v
alue = $this->mDateObj->toString($this->mDateFormat); //?
}
}
// get value for storing in session or database
function getValueSafe() {
}
}
// get value for storing in session or database
function getValueSafe() {
- if (strlen($this->
mV
alue)>0) {
- $this->mDateObj->parseVal($this->
mV
alue, $this->mDateFormat); //?
+ if (strlen($this->
v
alue)>0) {
+ $this->mDateObj->parseVal($this->
v
alue, $this->mDateFormat); //?
return $this->mDateObj->toString(DB_DATEFORMAT);
} else {
return null;
}
}
return $this->mDateObj->toString(DB_DATEFORMAT);
} else {
return null;
}
}
- function toStringControl() {
- if (!$this->isRenderable()) return "";
+ function toStringControl() {
- if (!$this->isEnable()) {
+ if (!$this->isEnable
d
()) {
$html = htmlspecialchars($this->getValue()).
"<input type=\"hidden\" name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\">\n";
} else {
$html = htmlspecialchars($this->getValue()).
"<input type=\"hidden\" name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\">\n";
} else {
@@
-395,22
+394,19
@@
class DateField extends TextField {
$html .= "\n\t<input type=\"text\"";
$html .= " name=\"$this->name\" id=\"$this->id\"";
$html .= "\n\t<input type=\"text\"";
$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->
mS
tyle!="")
- $html .= " style=\"$this->
mS
tyle\"";
+ if ($this->
s
tyle!="")
+ $html .= " style=\"$this->
s
tyle\"";
$html .= " maxlength=\"50\"";
$html .= " maxlength=\"50\"";
- if ($this->
mOnC
hange!="")
- $html .= " onchange=\"$this->
mOnC
hange\"";
+ if ($this->
on_c
hange!="")
+ $html .= " onchange=\"$this->
on_c
hange\"";
- if ($this->mOnClick!="")
- $html .= " onclick=\"$this->mOnClick\"";
-
- if ($this->mOnFocus!="")
- $html .= " onfocus=\"$this->mOnFocus\"";
+ if ($this->on_click!="")
+ $html .= " onclick=\"$this->on_click\"";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";