} else { $db->rollback(); $mesg = '<div class="error">' . $localtax->error . '</div>'; } } else { $mesg = '<div class="error">Error try do delete a line linked to a conciliated bank transaction</div>'; } } /* * View */ llxHeader(); $form = new Form($db); if ($id) { $vatpayment = new localtax($db); $result = $vatpayment->fetch($id); if ($result <= 0) { dol_print_error($db); exit; } } if ($_GET["action"] == 'create') { print "<form name='add' action=\"fiche.php\" method=\"post\">\n"; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="action" value="add">'; print_fiche_titre($langs->transcountry("newLT2Payment", $mysoc->country_code)); if ($mesg) { print $mesg; } print '<table class="border" width="100%">'; print "<tr>";