From b1e630a3fab668a0240b87a1cfbc25f78ff3c2fa Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 May 2009 14:41:19 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20ajout=20d'un=20jeton=20al=E9atoire=20dan?= =?UTF-8?q?s=20les=20requetes=20POST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/fiche.php | 6 ++++++ htdocs/commande/index.php | 1 + htdocs/commande/note.php | 1 + htdocs/compta/bank/account.php | 2 ++ htdocs/compta/bank/bankid_fr.php | 1 + htdocs/compta/bank/categ.php | 1 + htdocs/compta/bank/fiche.php | 2 ++ htdocs/compta/bank/rappro.php | 1 + htdocs/compta/bank/search.php | 1 + htdocs/compta/commande/fiche.php | 2 ++ htdocs/compta/dons/fiche.php | 2 ++ htdocs/compta/facture.php | 5 +++++ htdocs/compta/facture/apercu.php | 1 + htdocs/compta/facture/contact.php | 2 ++ htdocs/compta/facture/fiche-rec.php | 1 + htdocs/compta/facture/impayees.php | 1 + htdocs/compta/facture/note.php | 2 ++ htdocs/compta/index.php | 2 ++ htdocs/compta/paiement.php | 1 + htdocs/compta/paiement/rapport.php | 1 + htdocs/compta/paiement_charge.php | 1 + htdocs/compta/param/comptes/fiche.php | 1 + htdocs/compta/param/comptes/index.php | 1 + htdocs/compta/prelevement/config.php | 2 ++ htdocs/compta/prelevement/fiche.php | 2 ++ htdocs/compta/prelevement/ligne.php | 1 + htdocs/compta/sociales/charges.php | 1 + htdocs/compta/ventilation/fiche.php | 1 + htdocs/compta/ventilation/fournisseur/fiche.php | 1 + 29 files changed, 47 insertions(+) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 4dd13d3be9a..2a23f0d3c36 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -921,6 +921,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) $nbrow=10; print '
'; + print ''; print ''; print '' ."\n"; print ''; @@ -1293,6 +1294,7 @@ else if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; + print ''; print ''; print ''; print ' '; @@ -1367,6 +1369,7 @@ else if ($_GET['action'] == 'editdate_livraison') { print ''; + print ''; print ''; $html->select_date($commande->date_livraison,'liv_','','','',"setdate_livraison"); print ''; @@ -1669,6 +1672,7 @@ else if ($_GET['action'] == 'editline' && $user->rights->commande->creer && $_GET['rowid'] == $objp->rowid) { print 'rowid.'" method="post">'; + print ''; print ''; print ''; print ''; @@ -1779,6 +1783,7 @@ else // Add free products/services form print ''; + print ''; print ''; print ''; @@ -1848,6 +1853,7 @@ else print ''; print ''; + print ''; print ''; print ''; diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php index 510ba60919b..737056e5852 100644 --- a/htdocs/commande/index.php +++ b/htdocs/commande/index.php @@ -66,6 +66,7 @@ print ''; $var=false; print ''; print ''; +print ''; print ''; print ''; diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index d73468cc269..6f50a6a5738 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -121,6 +121,7 @@ if ($id > 0 || ! empty($ref)) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; } diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 8aab077fada..93827dc894c 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -331,6 +331,7 @@ if ($account || $_GET["ref"]) if ($user->rights->banque->modifier && $_GET["action"]=='addline') { print ''; + print ''; print ''; print ''; print ''; @@ -395,6 +396,7 @@ if ($account || $_GET["ref"]) print ''; print ''; + print ''; print ''; print ''; diff --git a/htdocs/compta/bank/bankid_fr.php b/htdocs/compta/bank/bankid_fr.php index 5ad9ec80254..fe99f64b8ce 100644 --- a/htdocs/compta/bank/bankid_fr.php +++ b/htdocs/compta/bank/bankid_fr.php @@ -238,6 +238,7 @@ if ($_GET["id"] && $_GET["action"] == 'edit' && $user->rights->banque->configure if ($message) { print "$message
\n"; } print ''; + print ''; print ''; print ''."\n\n"; diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php index 5fb062d330a..a9f6ace57e3 100644 --- a/htdocs/compta/bank/categ.php +++ b/htdocs/compta/bank/categ.php @@ -89,6 +89,7 @@ print_fiche_titre($langs->trans("Rubriques")); print ''; +print ''; print ""; print '
'.$langs->trans("SearchOrder").'
'; print $langs->trans("Ref").':
'; print ''; diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php index f8eb0f57659..aff4369bc6c 100644 --- a/htdocs/compta/bank/fiche.php +++ b/htdocs/compta/bank/fiche.php @@ -166,6 +166,7 @@ if ($_GET["action"] == 'create') if ($message) { print "$message
\n"; } print ''; + print ''; print ''; print ''; @@ -393,6 +394,7 @@ else if ($message) { print "$message
\n"; } print ''; + print ''; print ''; print ''."\n\n"; diff --git a/htdocs/compta/bank/rappro.php b/htdocs/compta/bank/rappro.php index 79093fbe799..341e21dab5e 100644 --- a/htdocs/compta/bank/rappro.php +++ b/htdocs/compta/bank/rappro.php @@ -197,6 +197,7 @@ if ($resql) $var=!$var; print ""; print ''; + print ''; print ""; print ""; print "rowid."\">"; diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 6abedd3bf3d..68c8ec64b40 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -146,6 +146,7 @@ if ($resql) print "\n"; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index de382230e7d..5c4cb94b59c 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -161,6 +161,7 @@ if ($id > 0 || ! empty($ref)) if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; + print ''; print ''; print ''; print ' '; @@ -235,6 +236,7 @@ if ($id > 0 || ! empty($ref)) if ($_GET['action'] == 'editdate_livraison') { print ''; + print ''; print ''; $html->select_date($commande->date_livraison,'liv_','','','',"setdate_livraison"); print ''; diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php index 183b62fbe44..3e93b6fb7c3 100644 --- a/htdocs/compta/dons/fiche.php +++ b/htdocs/compta/dons/fiche.php @@ -212,6 +212,7 @@ if ($_GET["action"] == 'create') if ($mesg) print '
'.$mesg.'
'; print ''; + print ''; print '
  
'; print ''; @@ -278,6 +279,7 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit') dol_fiche_head($head, $hselected, $langs->trans("Ref")); print ''; + print ''; print '
'; print ''; diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index b8934c8e296..6a3d6239e47 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1424,6 +1424,7 @@ if ($_GET['action'] == 'create') if (empty($cond_reglement_id)) $cond_reglement_id=1; print ''; + print ''; print ''; print '' ."\n"; print ''; @@ -2193,6 +2194,7 @@ else if ($user->rights->facture->creer && $_GET['action'] == 'RefCustomerOrder') { print ''; + print ''; print ''; print ''; print ' '; @@ -2890,6 +2892,7 @@ else if ($_GET['action'] == 'editline' && $user->rights->facture->creer && $_GET['rowid'] == $objp->rowid) { print 'rowid.'" method="post">'; + print ''; print ''; print ''; print ''; @@ -3003,6 +3006,7 @@ else // Add free products/services form print ''; + print ''; print ''; print ''; @@ -3071,6 +3075,7 @@ else print ''; print ''; + print ''; print ''; print ''; diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php index d1d5ba0e819..74dd9f8a7b3 100644 --- a/htdocs/compta/facture/apercu.php +++ b/htdocs/compta/facture/apercu.php @@ -117,6 +117,7 @@ if ($_GET["facid"] > 0) if ($fac->brouillon == 1 && $user->rights->facture->creer) { print ''; + print ''; print ''; print ''; diff --git a/htdocs/compta/facture/contact.php b/htdocs/compta/facture/contact.php index de4a435cb3b..6ca4fcd6418 100644 --- a/htdocs/compta/facture/contact.php +++ b/htdocs/compta/facture/contact.php @@ -207,6 +207,7 @@ if ($id > 0) $var = false; print ''; + print ''; print ''; print ''; print ''; @@ -236,6 +237,7 @@ if ($id > 0) print ''; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php index 967216cf8e0..491c7c9632f 100644 --- a/htdocs/compta/facture/fiche-rec.php +++ b/htdocs/compta/facture/fiche-rec.php @@ -110,6 +110,7 @@ if ($_GET["action"] == 'create') if ($facture->fetch($_GET["facid"]) > 0) { print ''; + print ''; print ''; print ''; diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index f8dd006469b..b1d1be6c8f1 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -308,6 +308,7 @@ if ($result) $total_payed=0; print ''; + print ''; while ($i < $num) { diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 11023885a9b..461c3c54ecc 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -117,6 +117,7 @@ if ($_GET["facid"]) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; @@ -136,6 +137,7 @@ if ($_GET["facid"]) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index d3aa81e0bd7..20e494aab17 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -115,6 +115,7 @@ $max=3; if ($conf->facture->enabled && $user->rights->facture->lire) { print ''; + print ''; print '
% '; print '
'; print ""; print ''; @@ -128,6 +129,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire) if ($conf->fournisseur->enabled && $user->rights->fournisseur->lire) { print ''; + print ''; print '
'.$langs->trans("SearchACustomerInvoice").'
'; print ''; print ""; diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 020d6229a56..b1ebc23e0c5 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -266,6 +266,7 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P } print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index 032cdd6e5cc..f37424c153a 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -89,6 +89,7 @@ print_fiche_titre($titre); // Formulaire de génération print ''; +print ''; print ''; $cmonth = date("n", time()); $syear = date("Y", time()); diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php index 91ea9a9d4a5..0171f6bb8b7 100755 --- a/htdocs/compta/paiement_charge.php +++ b/htdocs/compta/paiement_charge.php @@ -172,6 +172,7 @@ if ($_GET["action"] == 'create') } print ''; + print ''; print "id\">"; print ''; diff --git a/htdocs/compta/param/comptes/fiche.php b/htdocs/compta/param/comptes/fiche.php index 8a3a9a19a0b..b07a6a83b7f 100644 --- a/htdocs/compta/param/comptes/fiche.php +++ b/htdocs/compta/param/comptes/fiche.php @@ -78,6 +78,7 @@ if ($_GET["action"] == 'create' && $user->rights->compta->ventilation->parametre print_fiche_titre($langs->trans("NewAccount")); print ''; + print ''; print ''; print ''."\n"; diff --git a/htdocs/compta/param/comptes/index.php b/htdocs/compta/param/comptes/index.php index f3c2fd89a71..8ba4c14bbaa 100644 --- a/htdocs/compta/param/comptes/index.php +++ b/htdocs/compta/param/comptes/index.php @@ -57,6 +57,7 @@ print '
'.$langs->trans("SearchASupplierInvoice").'
'; * Zone recherche facture */ print ''; +print ''; print ''; print ""; diff --git a/htdocs/compta/prelevement/config.php b/htdocs/compta/prelevement/config.php index 4b6c4b235af..819fa46e8ca 100644 --- a/htdocs/compta/prelevement/config.php +++ b/htdocs/compta/prelevement/config.php @@ -74,6 +74,7 @@ print "
"; if ($user->rights->prelevement->bons->configurer) print ''; +print ''; print '
'; print ''; @@ -193,6 +194,7 @@ if ($conf->global->MAIN_MODULE_NOTIFICATION) if ($user->rights->prelevement->bons->configurer) print ''; + print ''; print '
'; print ''; diff --git a/htdocs/compta/prelevement/fiche.php b/htdocs/compta/prelevement/fiche.php index c983e1b049e..51a3d2abe7d 100644 --- a/htdocs/compta/prelevement/fiche.php +++ b/htdocs/compta/prelevement/fiche.php @@ -195,6 +195,7 @@ if ($_GET["id"]) if($bon->date_trans == 0) { print ''; + print ''; print ''; print '
'; print '
Date Transmission'; @@ -216,6 +217,7 @@ if ($_GET["id"]) if($bon->date_trans <> 0 && $bon->date_credit == 0) { print ''; + print ''; print ''; print ''; print '
Crédité le'; diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php index e79fc18abb6..e61d4753aa6 100644 --- a/htdocs/compta/prelevement/ligne.php +++ b/htdocs/compta/prelevement/ligne.php @@ -148,6 +148,7 @@ if ($_GET["id"]) $rej = new RejetPrelevement($db, $user); print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 2f1784e83af..0bf2f242b7a 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -181,6 +181,7 @@ if ($_GET["action"] == 'create') $var=false; print ''; + print ''; print ''; print "
Rejet de prélèvement
"; diff --git a/htdocs/compta/ventilation/fiche.php b/htdocs/compta/ventilation/fiche.php index b855b7e83f6..317748f211a 100644 --- a/htdocs/compta/ventilation/fiche.php +++ b/htdocs/compta/ventilation/fiche.php @@ -112,6 +112,7 @@ if($_GET["id"]) if($objp->fk_code_ventilation == 0) { print ''."\n"; + print ''; print ''; } diff --git a/htdocs/compta/ventilation/fournisseur/fiche.php b/htdocs/compta/ventilation/fournisseur/fiche.php index bc3981d4570..9bc05e2b84b 100644 --- a/htdocs/compta/ventilation/fournisseur/fiche.php +++ b/htdocs/compta/ventilation/fournisseur/fiche.php @@ -101,6 +101,7 @@ if($_GET["id"]) if($objp->fk_code_ventilation == 0) { print ''."\n"; + print ''; print ''; }