From 35072b99bf23ed1cfc320d137e3e484415e6c931 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 May 2009 14:56:03 +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/expedition/commande.php | 2 ++ htdocs/expedition/fiche.php | 1 + htdocs/expedition/index.php | 1 + htdocs/exports/export.php | 2 ++ htdocs/fichinter/contact.php | 2 ++ htdocs/fichinter/fiche.php | 3 +++ htdocs/fichinter/note.php | 2 ++ htdocs/fourn/commande/contact.php | 2 ++ htdocs/fourn/commande/dispatch.php | 1 + htdocs/fourn/commande/fiche.php | 5 +++++ htdocs/fourn/commande/note.php | 1 + htdocs/fourn/facture/contact.php | 2 ++ htdocs/fourn/facture/fiche.php | 5 +++++ htdocs/fourn/facture/note.php | 2 ++ htdocs/fourn/facture/paiement.php | 1 + htdocs/fourn/paiement/fiche.php | 2 ++ htdocs/fourn/product/fourn.php | 1 + htdocs/fourn/product/index.php | 1 + htdocs/fourn/product/liste.php | 1 + htdocs/fourn/product/photos.php | 1 + htdocs/imports/import.php | 5 ++++- htdocs/includes/barcode/html.formbarcode.class.php | 2 ++ htdocs/includes/modules/commande/mod_commande_saphir.php | 1 + htdocs/includes/modules/facture/mercure/mercure.modules.php | 1 + htdocs/includes/modules/fichinter/mod_arctic.php | 1 + htdocs/includes/modules/livraison/mod_livraison_saphir.php | 1 + htdocs/includes/modules/propale/mod_propale_saphir.php | 1 + htdocs/includes/modules/societe/mod_codeclient_elephant.php | 1 + .../supplier_order/mod_commande_fournisseur_orchidee.php | 1 + 29 files changed, 51 insertions(+), 1 deletion(-) diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index 3f9f65c1713..03b7e07174a 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -178,6 +178,7 @@ if ($id > 0 || ! empty($ref)) if ($user->rights->commande->creer && $_GET['action'] == 'RefCustomerOrder') { print '
'; + print ''; print ''; print ''; print ' '; @@ -251,6 +252,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/expedition/fiche.php b/htdocs/expedition/fiche.php index 30cf3e6fdcc..35c744c34bf 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -242,6 +242,7 @@ if ($_GET["action"] == 'create') * Document source */ print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/expedition/index.php b/htdocs/expedition/index.php index c5e32ac9630..edb212820dd 100644 --- a/htdocs/expedition/index.php +++ b/htdocs/expedition/index.php @@ -44,6 +44,7 @@ print ''; $var=false; print ''; print ''; +print ''; print ''; print ''; diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index 6c014e039c7..890f5820791 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -363,6 +363,7 @@ if ($step == 2 && $datatoexport) // Liste deroulante des modeles d'export print ''; + print ''; print ''; print ''; print ''; @@ -581,6 +582,7 @@ if ($step == 3 && $datatoexport) print $langs->trans("SaveExportModel"); print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/fichinter/contact.php b/htdocs/fichinter/contact.php index d44f2363da6..f5d2cf4177c 100644 --- a/htdocs/fichinter/contact.php +++ b/htdocs/fichinter/contact.php @@ -217,6 +217,7 @@ if ($id > 0) $var = false; print ''; + print ''; print ''; print ''; print ''; @@ -245,6 +246,7 @@ if ($id > 0) print ''; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 027932fc779..af676496a01 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -571,6 +571,7 @@ elseif ($_GET["id"] > 0) if ($_GET['action'] == 'editdescription') { print ''; + print ''; print ''; print '
'; print ''; @@ -679,6 +680,7 @@ elseif ($_GET["id"] > 0) if ($fichinter->statut == 0 && $_GET["action"] == 'editline' && $user->rights->ficheinter->creer && $_GET["ligne"] == $objp->rowid) { print 'rowid.'" method="post">'; + print ''; print ''; print ''; print ''; @@ -740,6 +742,7 @@ elseif ($_GET["id"] > 0) // Ajout ligne d'intervention print ''; + print ''; print ''; print ''; diff --git a/htdocs/fichinter/note.php b/htdocs/fichinter/note.php index 6ef8f2663a4..5ae80d49ca6 100644 --- a/htdocs/fichinter/note.php +++ b/htdocs/fichinter/note.php @@ -114,6 +114,7 @@ if ($_GET['id']) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; @@ -133,6 +134,7 @@ if ($_GET['id']) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php index b7808edf7df..791d0e1d310 100644 --- a/htdocs/fourn/commande/contact.php +++ b/htdocs/fourn/commande/contact.php @@ -224,6 +224,7 @@ if ($id > 0 || ! empty($ref)) $var = false; print ''; + print ''; print ''; print ''; print ''; @@ -252,6 +253,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index 2b91f6c16cb..f0f1990942c 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -166,6 +166,7 @@ if ($id > 0 || ! empty($ref)) if ($commande->statut == 3 || $commande->statut == 4 || $commande->statut == 5) { print ''; + print ''; print ''; print '
'.$langs->trans("SearchASending").'
'; print $langs->trans("Ref").':
'; diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 83ffb0de972..4334e61078a 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -777,6 +777,7 @@ if ($id > 0 || ! empty($ref)) if ($_GET["action"] == 'editline' && $user->rights->fournisseur->commande->creer && ($_GET["rowid"] == $commandline->id)) { print 'id.'" method="post">'; + print ''; print ''; print ''; print ''; @@ -842,6 +843,7 @@ if ($id > 0 || ! empty($ref)) // Add free products/services form print ''; + print ''; print ''; print ''; @@ -899,6 +901,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; + print ''; print ''; print ''; @@ -1010,6 +1013,7 @@ if ($id > 0 || ! empty($ref)) */ print '
'; print ''; + print ''; print ''; print '
'; print ''; @@ -1035,6 +1039,7 @@ if ($id > 0 || ! empty($ref)) */ print '
'; print ''; + print ''; print ''; print '
'.$langs->trans("ToOrder").'
'; print ''; diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php index 620d0e4ca64..fd2b74925de 100644 --- a/htdocs/fourn/commande/note.php +++ b/htdocs/fourn/commande/note.php @@ -98,6 +98,7 @@ if ($id > 0 || ! empty($ref)) * Commande */ print ''; + print ''; print ''; print '
'.$langs->trans("Receive").'
'; diff --git a/htdocs/fourn/facture/contact.php b/htdocs/fourn/facture/contact.php index 9ca5d05c2f4..81e6bce37ff 100644 --- a/htdocs/fourn/facture/contact.php +++ b/htdocs/fourn/facture/contact.php @@ -214,6 +214,7 @@ if ($id > 0) $var = false; print ''; + print ''; print ''; print ''; print ''; @@ -242,6 +243,7 @@ if ($id > 0) print ''; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 45fc5940d0b..1481772714c 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -386,6 +386,7 @@ if ($_GET['action'] == 'create') $dateinvoice=($datefacture==''?(empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0):$datefacture); print ''; + print ''; print ''; print '
'; @@ -478,6 +479,7 @@ else print_fiche_titre($langs->trans('SupplierInvoice')); print ''; + print ''; print ''; print '
'; @@ -812,6 +814,7 @@ else if ($fac->statut == 0 && $_GET['action'] == 'mod_ligne' && $_GET['etat'] == '0' && $_GET['ligne_id'] == $fac->lignes[$i]->rowid) { print ''; + print ''; print ''; print ''; @@ -954,6 +957,7 @@ else // Add free products/services form print ''; + print ''; print ''; print ''; @@ -1018,6 +1022,7 @@ else print ''; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/fourn/facture/note.php b/htdocs/fourn/facture/note.php index fca7a176f08..01e52d9d15e 100644 --- a/htdocs/fourn/facture/note.php +++ b/htdocs/fourn/facture/note.php @@ -118,6 +118,7 @@ if ($_GET["facid"]) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; @@ -137,6 +138,7 @@ if ($_GET["facid"]) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 0a9cfdd3c51..ef26fde6b30 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -221,6 +221,7 @@ if ($action == 'create' || $action == 'add_paiement') print_fiche_titre($langs->trans('DoPayment')); print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php index 4c84b6629dd..82a768acf32 100644 --- a/htdocs/fourn/paiement/fiche.php +++ b/htdocs/fourn/paiement/fiche.php @@ -193,6 +193,7 @@ else print ''; print ''; print '
'.$langs->trans('Date').''; print ''; + print ''; if (!empty($_POST['remonth']) && !empty($_POST['reday']) && !empty($_POST['reyear'])) $sel_date=dol_mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']); else @@ -224,6 +225,7 @@ else print ''.$langs->trans('Numero').''; print ''; + print ''; if (!empty($_POST['new_num'])) $num = $this->db->escape($_POST['new_num']); else diff --git a/htdocs/fourn/product/fourn.php b/htdocs/fourn/product/fourn.php index 728bd5167c3..44629d2eb67 100644 --- a/htdocs/fourn/product/fourn.php +++ b/htdocs/fourn/product/fourn.php @@ -173,6 +173,7 @@ if ($_GET["id"]) $action = 'fourn.php?id='.$product->id.'&id_fourn='.$product->fourn->id; print ''; + print ''; print ''; print '
'; print ''; diff --git a/htdocs/fourn/product/index.php b/htdocs/fourn/product/index.php index 9d0b1368950..31f4148213f 100644 --- a/htdocs/fourn/product/index.php +++ b/htdocs/fourn/product/index.php @@ -49,6 +49,7 @@ print '
'.$langs->trans("Price").'
'; * Zone recherche produit/service */ print ''; +print ''; print ''; print "\n"; print ''; diff --git a/htdocs/fourn/product/liste.php b/htdocs/fourn/product/liste.php index 347aacb5523..c1abf85fcb9 100644 --- a/htdocs/fourn/product/liste.php +++ b/htdocs/fourn/product/liste.php @@ -189,6 +189,7 @@ if ($resql) // Lignes des champs de filtre print ''; + print ''; if ($fourn_id > 0) print ''; print ''; print ''; diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php index f644aa0725f..e6528dc915b 100644 --- a/htdocs/fourn/product/photos.php +++ b/htdocs/fourn/product/photos.php @@ -116,6 +116,7 @@ if ($_GET["id"]) print_titre($langs->trans("AddPhoto")); print ''; + print ''; print ''; print '
'.$langs->trans("Search").'
'; diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 4f5ed4e2033..590a7ad6fc3 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -342,7 +342,8 @@ if ($step == 2 && $datatoimport) dol_fiche_head($head, $hselected, $langs->trans("NewImport")); - print ''; + print ''; + print ''; print ''; print '
'; @@ -398,6 +399,7 @@ if ($step == 2 && $datatoimport) // Liste deroulante des modeles d'import print ''; + print ''; print ''; print ''; print ''; @@ -616,6 +618,7 @@ if ($step == 3 && $datatoimport) print $langs->trans("SaveImportModel"); print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/includes/barcode/html.formbarcode.class.php b/htdocs/includes/barcode/html.formbarcode.class.php index d45b915afdd..dfd0c6673db 100644 --- a/htdocs/includes/barcode/html.formbarcode.class.php +++ b/htdocs/includes/barcode/html.formbarcode.class.php @@ -69,6 +69,7 @@ class FormBarCode } $select_encoder = ''; + $select_encoder.= ''; $select_encoder.= ''; $select_encoder.= ''; $select_encoder.= ''; print ''; print '
'; print '
'; diff --git a/htdocs/includes/modules/commande/mod_commande_saphir.php b/htdocs/includes/modules/commande/mod_commande_saphir.php index 90ad538d2ec..fd42edd4366 100644 --- a/htdocs/includes/modules/commande/mod_commande_saphir.php +++ b/htdocs/includes/modules/commande/mod_commande_saphir.php @@ -54,6 +54,7 @@ class mod_commande_saphir extends ModeleNumRefCommandes $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= ''; diff --git a/htdocs/includes/modules/facture/mercure/mercure.modules.php b/htdocs/includes/modules/facture/mercure/mercure.modules.php index 6d4c8edb0f0..8bb37566889 100644 --- a/htdocs/includes/modules/facture/mercure/mercure.modules.php +++ b/htdocs/includes/modules/facture/mercure/mercure.modules.php @@ -53,6 +53,7 @@ class mod_facture_mercure extends ModeleNumRefFactures $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= ''; diff --git a/htdocs/includes/modules/fichinter/mod_arctic.php b/htdocs/includes/modules/fichinter/mod_arctic.php index dfb8a4c6073..c0504a5fe34 100644 --- a/htdocs/includes/modules/fichinter/mod_arctic.php +++ b/htdocs/includes/modules/fichinter/mod_arctic.php @@ -59,6 +59,7 @@ class mod_arctic extends ModeleNumRefFicheinter $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= '
'; diff --git a/htdocs/includes/modules/livraison/mod_livraison_saphir.php b/htdocs/includes/modules/livraison/mod_livraison_saphir.php index 9bf9247e8b7..b18c95bd624 100644 --- a/htdocs/includes/modules/livraison/mod_livraison_saphir.php +++ b/htdocs/includes/modules/livraison/mod_livraison_saphir.php @@ -52,6 +52,7 @@ class mod_livraison_saphir extends ModeleNumRefDeliveryOrder $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= '
'; diff --git a/htdocs/includes/modules/propale/mod_propale_saphir.php b/htdocs/includes/modules/propale/mod_propale_saphir.php index 5b4ddad22f2..b70c4215754 100644 --- a/htdocs/includes/modules/propale/mod_propale_saphir.php +++ b/htdocs/includes/modules/propale/mod_propale_saphir.php @@ -54,6 +54,7 @@ class mod_propale_saphir extends ModeleNumRefPropales $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= '
'; diff --git a/htdocs/includes/modules/societe/mod_codeclient_elephant.php b/htdocs/includes/modules/societe/mod_codeclient_elephant.php index bb784aeb029..e178ad3edf3 100644 --- a/htdocs/includes/modules/societe/mod_codeclient_elephant.php +++ b/htdocs/includes/modules/societe/mod_codeclient_elephant.php @@ -76,6 +76,7 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= ''; diff --git a/htdocs/includes/modules/supplier_order/mod_commande_fournisseur_orchidee.php b/htdocs/includes/modules/supplier_order/mod_commande_fournisseur_orchidee.php index 9b2db4cce99..a4551267284 100644 --- a/htdocs/includes/modules/supplier_order/mod_commande_fournisseur_orchidee.php +++ b/htdocs/includes/modules/supplier_order/mod_commande_fournisseur_orchidee.php @@ -54,6 +54,7 @@ class mod_commande_fournisseur_orchidee extends ModeleNumRefSuppliersOrders $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; + $texte.= ''; $texte.= ''; $texte.= ''; $texte.= '
';