Refactoring - renamed a couple of variables.
authoranuko <support@anuko.com>
Sun, 19 Feb 2017 23:55:42 +0000 (23:55 +0000)
committeranuko <support@anuko.com>
Sun, 19 Feb 2017 23:55:42 +0000 (23:55 +0000)
WEB-INF/lib/form/Combobox.class.php
WEB-INF/lib/form/DateField.class.php
WEB-INF/lib/form/FormElement.class.php
WEB-INF/lib/form/TextArea.class.php
WEB-INF/lib/form/TextField.class.php
WEB-INF/templates/footer.tpl

index 082765e..4d8df25 100644 (file)
@@ -73,8 +73,8 @@ class Combobox extends FormElement {
                $html = "\n\t<select";
                $html .= " name=\"$this->name\" id=\"$this->id\"";
                
-               if ($this->mSize!="")
-                 $html .= " size=\"$this->mSize\"";
+               if ($this->size!="")
+                 $html .= " size=\"$this->size\"";
                 
                if ($this->mMultiple)
                  $html .= " multiple";
index 7075c42..cf1bb08 100644 (file)
@@ -395,8 +395,8 @@ class DateField extends TextField {
       $html .= "\n\t<input type=\"text\"";
       $html .= " name=\"$this->name\" id=\"$this->id\"";
 
-      if ($this->mSize!="")
-        $html .= " size=\"$this->mSize\"";
+      if ($this->size!="")
+        $html .= " size=\"$this->size\"";
 
       if ($this->mStyle!="")
          $html .= " style=\"$this->mStyle\"";
index 209578d..3cab655 100644 (file)
@@ -32,9 +32,9 @@ class FormElement {
   var $name;
   var $form_name = '';
   var $value = '';
+  var $size = '';
+  var $max_length = '';
   // TODO: refactoring ongoing down from here.
-       var $mSize                      = "";
-       var $mMaxLength         = "";
        var $mTabindex          = "";
        var $mAccesskey     = "";
        var $mOnSelect          = "";
@@ -66,22 +66,22 @@ class FormElement {
        function setValueSafe($value) { $this->value = $value;}
        function getValueSafe() { return $this->value; }
 
-       function setId($id)     { $this->id = $id;      }
+       function setId($id) { $this->id = $id;  }
        function getId() { return $this->id; }
        
-       function setSize($value)        { $this->mSize = $value; }
-       function getSize() { return $this->mSize; }
+       function setSize($value) { $this->size = $value; }
+       function getSize() { return $this->size; }
 
        function setLabel($label)       { $this->mLabel = $label; }
        function getLabel() { return $this->mLabel; }
        
-       function setMaxLength($value)   { $this->mMaxLength = $value; }
-       function getMaxLength() { return $this->mMaxLength; }
+       function setMaxLength($value) { $this->max_length = $value; }
+       function getMaxLength() { return $this->max_length; }
        
-       function setTabindex($value)    { $this->mTabindex = $value; }
+       function setTabindex($value) { $this->mTabindex = $value; }
        function getTabindex() { return $this->mTabindex; }
        
-       function setAccesskey($value)   { $this->mAccesskey = $value; }
+       function setAccesskey($value) { $this->mAccesskey = $value; }
        function getAccesskey() { return $this->mAccesskey; }
 
        function setStyle($value)       { $this->mStyle = $value; }
index 6b3b5ee..89eef4e 100644 (file)
@@ -62,11 +62,11 @@ class TextArea extends FormElement {
                if ($this->mRows!="")
                   $html .= " rows=\"$this->mRows\"";
                   
-               if ($this->mMaxLength!="") {
+               if ($this->max_length!="") {
                        if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
                        $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
                        $js_maxlen = $this->getExtraScript();
-                       $html .= " maxlength=\"$this->mMaxLength\"";
+                       $html .= " maxlength=\"$this->max_length\"";
                }
 
                if ($this->mStyle!="")
@@ -86,7 +86,7 @@ class TextArea extends FormElement {
                $s = "<script>\n";
                $s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
                $s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
-               $s .= "\tmaxlength=".$this->mMaxLength.";\n";
+               $s .= "\tmaxlength=".$this->max_length.";\n";
                $s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
                //$s .= "alert(iKey);";
                $s .= "\tvar re = new RegExp(\"".'\r\n'."\",\"g\");\n";
index 4766d91..88fb434 100644 (file)
@@ -54,14 +54,14 @@ class TextField extends FormElement {
                        $html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
                        $html .= " name=\"$this->name\" id=\"$this->id\"";
                        
-                       if ($this->mSize!="")
-                         $html .= " size=\"$this->mSize\"";
+                       if ($this->size!="")
+                         $html .= " size=\"$this->size\"";
                          
                        if ($this->mStyle!="")
                           $html .= " style=\"$this->mStyle\"";
                          
-                       if ($this->mMaxLength!="")
-                          $html .= " maxlength=\"$this->mMaxLength\"";
+                       if ($this->max_length!="")
+                          $html .= " maxlength=\"$this->max_length\"";
                           
                        if ($this->mOnChange!="")
                           $html .= " onchange=\"$this->mOnChange\"";
index fc9eb2b..102c648 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.10.38.3595 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.10.38.3596 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>