From f5ed86434f9baa4ce4f89b2a40d35e9d5677df67 Mon Sep 17 00:00:00 2001 From: anuko Date: Tue, 7 Feb 2017 01:04:41 +0000 Subject: [PATCH] More refactoring. --- WEB-INF/lib/form/Form.class.php | 12 ++---------- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 250f5313..0fcbd620 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -38,14 +38,13 @@ class Form { var $name = ''; // TODO: refactoring ongoing down from here. - var $mId = ""; var $error; var $debugFunction; var $mElements = array(); var $mRequest; - function __construct($formid) { - $this->name = $formid; + function __construct($formName) { + $this->name = $formName; } function setRequest(&$request) { @@ -67,12 +66,8 @@ class Form { // name // onsubmit // onreset - function setName($value) { $this->name = $value; } function getName() { return $this->name; } - function setId($value) { $this->mId = $value; } - function getId() { return $this->mId; } - function isSubmit() { if (!isset($this->mRequest)) return false; $result = false; @@ -246,9 +241,6 @@ class Form { function toStringOpenTag() { $html = "
name\""; - if ($this->mId!="") - $html .= " id=\"$this->mId\""; - $html .= ' method="post"'; // Add enctype for file upload forms. diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 78db2783..34cdc724 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.36.3569 | Copyright © Anuko | +  Anuko Time Tracker 1.9.36.3570 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1