projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring - renamed a variable.
[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
db59a3b
..
87f9ee8
100644
(file)
--- a/
WEB-INF/lib/form/DateField.class.php
+++ b/
WEB-INF/lib/form/DateField.class.php
@@
-40,7
+40,7
@@
class DateField extends TextField {
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
function __construct($name) {
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
function __construct($name) {
- $this->
mN
ame = $name;
+ $this->
n
ame = $name;
$this->mDateObj = new DateAndTime();
if (isset($GLOBALS["I18N"])) {
$this->mDateObj = new DateAndTime();
if (isset($GLOBALS["I18N"])) {
@@
-68,13
+68,13
@@
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;
@@
-86,10
+86,10
@@
class DateField extends TextField {
if (!$this->isEnable()) {
$html = htmlspecialchars($this->getValue()).
if (!$this->isEnable()) {
$html = htmlspecialchars($this->getValue()).
- "<input type=\"hidden\" name=\"$this->
mN
ame\" value=\"".htmlspecialchars($this->getValue())."\">\n";
+ "<input type=\"hidden\" name=\"$this->
n
ame\" value=\"".htmlspecialchars($this->getValue())."\">\n";
} else {
} else {
- if ($this->
mId=="") $this->mId = $this->mN
ame;
+ if ($this->
id=="") $this->id = $this->n
ame;
$html = "";
$html = "";
@@
-393,24
+393,21
@@
class DateField extends TextField {
$html .= "</script>\n";
$html .= "\n\t<input type=\"text\"";
$html .= "</script>\n";
$html .= "\n\t<input type=\"text\"";
- $html .= " name=\"$this->
mName\" id=\"$this->mI
d\"";
+ $html .= " name=\"$this->
name\" id=\"$this->i
d\"";
- if ($this->
mS
ize!="")
- $html .= " size=\"$this->
mS
ize\"";
+ if ($this->
s
ize!="")
+ $html .= " size=\"$this->
s
ize\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
$html .= " maxlength=\"50\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
$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 .= ">";
@@
-418,7
+415,7
@@
class DateField extends TextField {
if (APP_NAME)
$app_root = '/'.APP_NAME;
if (APP_NAME)
$app_root = '/'.APP_NAME;
- $html .= " <img src=\"".$app_root."/images/calendar.gif\" width=\"16\" height=\"16\" onclick=\"displayDatePicker('".$this->
mN
ame."');\">\n";
+ $html .= " <img src=\"".$app_root."/images/calendar.gif\" width=\"16\" height=\"16\" onclick=\"displayDatePicker('".$this->
n
ame."');\">\n";
}
return $html;
}
return $html;