From 7bdef948d0011cbe2a572dbeaf21691e57496979 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 21 Oct 2003 17:06:53 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20suppression=20d'un=20classement=20dans?= =?UTF-8?q?=20une=20cat=E9gorie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/ligne.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index 69937aa0a28..f01c076c416 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -24,6 +24,13 @@ require("./pre.inc.php"); llxHeader(); +if ($HTTP_POST_VARS["action"] == 'confirm_delete_categ' && $HTTP_POST_VARS["confirm"] == yes) +{ + $sql = "DELETE FROM llx_bank_class WHERE lineid = $rowid AND fk_categ = $cat1"; + $db->query($sql); +} + + if ($action == 'class') { $sql = "DELETE FROM llx_bank_class WHERE lineid = $rowid AND fk_categ = $cat1"; @@ -93,6 +100,12 @@ if ($result) $db->free(); } +if ($action == 'delete_categ') +{ + $html = new Form($db); + $html->form_confirm("$PHP_SELF?rowid=$rowid&cat1=$fk_categ","Supprimer dans la catégorie","Etes-vous sûr de vouloir supprimer le classement dans la catégorie ?","confirm_delete_categ"); +} + print_titre("Edition de la ligne"); print ''; print ""; @@ -213,7 +226,7 @@ print "

Class print '

'; print ""; -print ''; +print ''; print "\n"; $sql = "SELECT c.label, c.rowid"; @@ -234,6 +247,7 @@ if ($result) print ""; print ""; + print ""; print ""; $i++;
DescriptionDescription
$objp->labelrowid\">voirrowid\">Supprimer