From 9f8d9ddc3026d4f557e9e8f9fca67fcc0dc7cf07 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 21 Apr 2016 14:14:50 +0000 Subject: [PATCH] form : fieldwidth is now functionnal git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2701 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- form.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/form.php b/form.php index b7c459a..50d36b7 100644 --- a/form.php +++ b/form.php @@ -321,7 +321,7 @@ class formfield /** The Bootstrap width of the column of titles */ public $titlewidth = 2; /** The Bootstrap width of the column of fields */ - public $fieldswidth = 10; + public $fieldwidth = 10; /** When adding a field, the name and the label are the minimum mandatory @param string $name Name of the field @param string $label Label of the field */ @@ -362,7 +362,7 @@ class formfield else $res .= " "; $res .= "\n"; - $res .= "
\n"; + $res .= "
\n"; if (count ($this->titles) === 0) $this->titles = array (""); foreach ($this->titles as $key=>$val) @@ -485,7 +485,7 @@ class formfield else $res .= " "; $res .= "\n"; - $res .= "
\n"; + $res .= "
\n"; $res .= " name, ENT_QUOTES)."]'"; @@ -548,7 +548,7 @@ class formfield else $res .= " "; $res .= "\n"; - $res .= "
\n"; + $res .= "
\n"; if (is_string ($this->defaults)) $this->defaults = array ($this->defaults); $res .= " defaults) && is_array ($this->defaults)) { if (isset ($this->readonly) && $this->readonly !== FALSE) @@ -716,7 +716,7 @@ class formfield // No $this->label, $this->multiple, $this->error, $this->rows, // $this->cols $this->placeholder $res .= "
\n"; - $res .= "
titlewidth+$this->fieldwidth). "'>\n"; $res .= " name, ENT_QUOTES)."]'"; @@ -826,7 +826,7 @@ class formfield else $res .= " "; $res .= "\n"; - $res .= "
\n"; + $res .= "
\n"; $res .= " name, ENT_QUOTES)."]'";