From 8c194ac6af2accb4f45e35e93629037a0983cc3f Mon Sep 17 00:00:00 2001 From: anuko Date: Mon, 6 Feb 2017 21:05:20 +0000 Subject: [PATCH] More refactoring in Form.class.php. --- WEB-INF/lib/form/Form.class.php | 14 ++------------ WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 14680db4..4d6987f6 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -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) { diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index ec55d530..94f4e541 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.36.3567 | Copyright © Anuko | +  Anuko Time Tracker 1.9.36.3568 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1