Fix missing $form

This commit is contained in:
Laurent Destailleur 2017-08-22 10:02:45 +02:00
parent 4a310f36d8
commit 9be342bd25
8 changed files with 23 additions and 9 deletions

View File

@ -145,12 +145,12 @@ else if ($action == 'update') {
* View * View
*/ */
$form = new Form($db);
$title = $langs->trans("Fiscalyear") . " - " . $langs->trans("Card"); $title = $langs->trans("Fiscalyear") . " - " . $langs->trans("Card");
$helpurl = ""; $helpurl = "";
llxHeader("",$title,$helpurl); llxHeader("",$title,$helpurl);
$form = new Form($db);
if ($action == 'create') if ($action == 'create')
{ {
print load_fiche_titre($langs->trans("NewFiscalYear")); print load_fiche_titre($langs->trans("NewFiscalYear"));

View File

@ -39,6 +39,8 @@ $ref=GETPOST("ref",'alpha');
* View * View
*/ */
$form = new Form($db);
$title = $langs->trans('InvoiceCustomer') . " - " . $langs->trans('Info'); $title = $langs->trans('InvoiceCustomer') . " - " . $langs->trans('Info');
$helpurl = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes"; $helpurl = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes";
llxHeader('', $title, $helpurl); llxHeader('', $title, $helpurl);

View File

@ -60,6 +60,8 @@ if ($action == 'setlib' && $user->rights->tax->charges->creer)
* View * View
*/ */
$form = new Form($db);
if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); } if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); }
$title = $langs->trans("SocialContribution") . ' - ' . $langs->trans("Info"); $title = $langs->trans("SocialContribution") . ' - ' . $langs->trans("Info");

View File

@ -42,6 +42,8 @@ $result = restrictedArea($user, 'contrat', $id, '');
* View * View
*/ */
$form = new Form($db);
llxHeader('',$langs->trans("Contract"),""); llxHeader('',$langs->trans("Contract"),"");
$object = new Contrat($db); $object = new Contrat($db);

View File

@ -52,6 +52,8 @@ if (! $object->fetch($id, $ref) > 0)
* View * View
*/ */
$form = new Form($db);
llxHeader('',$langs->trans("Intervention")); llxHeader('',$langs->trans("Intervention"));
$object->fetch_thirdparty(); $object->fetch_thirdparty();

View File

@ -46,6 +46,8 @@ $object = new FactureFournisseur($db);
* View * View
*/ */
$form = new Form($db);
$title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('Info'); $title = $langs->trans('SupplierInvoice') . " - " . $langs->trans('Info');
$helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores"; $helpurl = "EN:Module_Suppliers_Invoices|FR:Module_Fournisseurs_Factures|ES:Módulo_Facturas_de_proveedores";
llxHeader('', $title, $helpurl); llxHeader('', $title, $helpurl);

View File

@ -43,6 +43,8 @@ $result = restrictedArea($user, 'loan', $id, '','');
* View * View
*/ */
$form = new Form($db);
$title = $langs->trans("Loan") . ' - ' . $langs->trans("Info"); $title = $langs->trans("Loan") . ' - ' . $langs->trans("Info");
$help_url = 'EN:Module_Loan|FR:Module_Emprunt'; $help_url = 'EN:Module_Loan|FR:Module_Emprunt';
llxHeader("",$title,$help_url); llxHeader("",$title,$help_url);

View File

@ -43,6 +43,8 @@ $result = restrictedArea($user, 'supplier_proposal', $id);
* View * View
*/ */
$form = new Form($db);
llxHeader('',$langs->trans('CommRequest'),'EN:Ask_Price_Supplier|FR:Demande_de_prix_fournisseur'); llxHeader('',$langs->trans('CommRequest'),'EN:Ask_Price_Supplier|FR:Demande_de_prix_fournisseur');
$object = new SupplierProposal($db); $object = new SupplierProposal($db);