Take values as parameter when editing something

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2015-02-02 19:13:52 +01:00
parent 609bd557c5
commit 72ce20224d
7 changed files with 87 additions and 186 deletions

View File

@@ -988,7 +988,7 @@ if ($page == 'customers'
} else {
$customer_add_data = include_once dirname(__FILE__).'/lib/formfields/admin/formfield.customer.php';
$customer_add_form = HTMLform2::genHTMLform($customer_add_data, true);
$customer_add_form = HTMLform2::genHTMLform($customer_add_data);
eval("echo \"" . getTemplate("customers/customers_add") . "\";");
}
@@ -1561,7 +1561,7 @@ if ($page == 'customers'
$result = htmlentities_array($result);
$customer_edit_data = include_once dirname(__FILE__).'/lib/formfields/admin/formfield.customer.php';
$customer_edit_form = HTMLform2::genHTMLform($customer_edit_data);
$customer_edit_form = HTMLform2::genHTMLform($customer_edit_data, $result);
eval("echo \"" . getTemplate("customers/customers_edit") . "\";");
}