- fix undefined index in customer_domains.php
- add possibility to disable form-buttons if not needed - corrected ticket-categories order-counter begin-value - beautify domains-add and e-mail add form for customers - added various missing hidden-fields in templates (Classic-theme) Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -27,6 +27,7 @@ class htmlform
|
||||
public static function genHTMLForm($data = array())
|
||||
{
|
||||
global $lng;
|
||||
$nob = false;
|
||||
|
||||
self::$_form = '';
|
||||
|
||||
@@ -47,7 +48,11 @@ class htmlform
|
||||
continue;
|
||||
}
|
||||
|
||||
eval("self::\$_form .= \"" . getTemplate("misc/form/table_section", "1") . "\";");
|
||||
if (!isset($section['nobuttons']) || $section['nobuttons'] == false) {
|
||||
eval("self::\$_form .= \"" . getTemplate("misc/form/table_section", "1") . "\";");
|
||||
} else {
|
||||
$nob = true;
|
||||
}
|
||||
|
||||
$nexto = false;
|
||||
foreach($section['fields'] as $fieldname => $fielddata)
|
||||
@@ -89,7 +94,9 @@ class htmlform
|
||||
}
|
||||
|
||||
// add save/reset buttons at the end of the form
|
||||
eval("self::\$_form .= \"" . getTemplate("misc/form/table_end", "1") . "\";");
|
||||
if (!$nob) {
|
||||
eval("self::\$_form .= \"" . getTemplate("misc/form/table_end", "1") . "\";");
|
||||
}
|
||||
|
||||
return self::$_form;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user