More refactoring in Form.class.php.
authoranuko <support@anuko.com>
Mon, 6 Feb 2017 21:05:20 +0000 (21:05 +0000)
committeranuko <support@anuko.com>
Mon, 6 Feb 2017 21:05:20 +0000 (21:05 +0000)
WEB-INF/lib/form/Form.class.php
WEB-INF/templates/footer.tpl

index 14680db..4d6987f 100644 (file)
@@ -38,14 +38,12 @@ class Form {
   var $name = '';
   // TODO: refactoring ongoing down from here.
 
-       var $mMethod       = "post";
        var $mEnctype      = "";
        var $mId           = "";
     var $error;
        var $debugFunction;
        var $mElements     = array();
        var $mRequest;
-//     var $mFormBean;
     
     function __construct($formid) {
         $this->name = $formid;
@@ -54,11 +52,7 @@ class Form {
     function setRequest(&$request) {
         $this->mRequest = &$request;
     }
-    
-/*    function setFormBean(&$bean) {
-        $this->mFormBean = &$bean;
-    }
-*/    
+
     function &getElement($name) {
        return $this->mElements[$name];
     }
@@ -80,9 +74,6 @@ class Form {
     function setId($value) { $this->mId = $value; }
     function getId() { return $this->mId; }
     
-    function setMethod($value) { $this->mMethod = $value; }
-    function getMethod() { return $this->mMethod; }
-    
     function isSubmit()        {
        if (!isset($this->mRequest)) return false;
         $result = false;
@@ -259,8 +250,7 @@ class Form {
         if ($this->mId!="") 
             $html .= " id=\"$this->mId\"";
             
-        if ($this->mMethod!="") 
-            $html .= " method=\"$this->mMethod\"";
+        $html .= ' method="post"';
         
         // for upload forms
         foreach ($this->mElements as $elname=>$el) {
index ec55d53..94f4e54 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.9.36.3567 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.9.36.3568 | 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>