From 8efffebe2eef4bd1b659636179fb5201731ad966 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 May 2009 14:32:44 +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/categories/categorie.php | 1 + htdocs/categories/edit.php | 1 + htdocs/categories/fiche.php | 1 + htdocs/categories/index.php | 1 + htdocs/comm/action/fiche.php | 2 ++ htdocs/comm/action/index.php | 1 + htdocs/comm/action/listactions.php | 1 + htdocs/comm/adresse_livraison.php | 2 ++ htdocs/comm/index.php | 2 ++ htdocs/comm/mailing/cibles.php | 10 ++++++++-- htdocs/comm/mailing/fiche.php | 2 ++ htdocs/comm/mailing/index.php | 1 + htdocs/comm/multiprix.php | 1 + htdocs/comm/propal.php | 9 +++++++++ htdocs/comm/propal/contact.php | 2 ++ htdocs/comm/propal/note.php | 2 ++ htdocs/comm/prospect/index.php | 1 + htdocs/comm/remise.php | 1 + htdocs/comm/remx.php | 1 + htdocs/commande/contact.php | 2 ++ 20 files changed, 42 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index ab9f00014d8..11f75c4f3e5 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -284,6 +284,7 @@ function formCategory($db,$object,$type,$typeid) print '
'; print_fiche_titre($title,'',''); print '
'; + print ''; print ''; print ''; print '
'; diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index 885be31dce8..42a5aace8f9 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -114,6 +114,7 @@ print '
'; print "\n"; print ''; +print ''; print ''; print ''; print ''; diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index 6ea75c4c76b..6ef76012192 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -179,6 +179,7 @@ if ($user->rights->categorie->creer) print ''; } print ''; + print ''; print ''; print ''; //print ''; Mis dans origin diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index e120f5844c9..2671c53c10e 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -62,6 +62,7 @@ print '
'; * Zone recherche produit/service */ print ''; +print ''; print ''; print ''; print ''; diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index c67aabac974..0e3e8b6c61e 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -438,6 +438,7 @@ if ($_GET["action"] == 'create') } print ''; + print ''; print ''; if (! empty($_REQUEST["backtopage"])) print ''; @@ -651,6 +652,7 @@ if ($_GET["id"]) { // Fiche action en mode edition print ''; + print ''; print ''; print ''; if (! empty($_REQUEST["backtopage"])) print ''; diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 109c9cd897b..d736175b52e 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -161,6 +161,7 @@ print_fiche_titre($title,$nav); if ($canedit) { print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/comm/action/listactions.php b/htdocs/comm/action/listactions.php index 6b886b2f597..0fb1127828b 100644 --- a/htdocs/comm/action/listactions.php +++ b/htdocs/comm/action/listactions.php @@ -177,6 +177,7 @@ if ($resql) if ($canedit) { print ''; + print ''; print ''; print ''; print '
'; diff --git a/htdocs/comm/adresse_livraison.php b/htdocs/comm/adresse_livraison.php index 633dca01925..3c59386289a 100644 --- a/htdocs/comm/adresse_livraison.php +++ b/htdocs/comm/adresse_livraison.php @@ -214,6 +214,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') } print ''; + print ''; print ''; print ''; print ''; @@ -318,6 +319,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') } print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 162b2e3414d..0930ae5e132 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -104,6 +104,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire) { $var=false; print ''; + print ''; print '
'; print ''; print ''; @@ -122,6 +123,7 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire) { $var=false; print ''; + print ''; print '
'.$langs->trans("SearchAProposal").'
'; print ''; print ''; diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php index 3ad9476a92b..7b723da0320 100644 --- a/htdocs/comm/mailing/cibles.php +++ b/htdocs/comm/mailing/cibles.php @@ -240,7 +240,7 @@ if ($mil->fetch($_REQUEST["id"]) >= 0) if (! $conf->$key->enabled || (! $user->admin && $obj->require_admin)) { $qualified=0; - //print "Les pr�requis d'activation du module mailing ne sont pas respect�s. Il ne sera pas actif"; + //print "Les prerequis d'activation du module mailing ne sont pas respectes. Il ne sera pas actif"; break; } } @@ -251,7 +251,11 @@ if ($mil->fetch($_REQUEST["id"]) >= 0) $var = !$var; print ''; - if ($mil->statut == 0) print ''; + if ($mil->statut == 0) + { + print ''; + print ''; + } print '
'.$langs->trans("SearchAContract").'
'; if (! $obj->picto) $obj->picto='generic'; @@ -309,6 +313,7 @@ if ($mil->fetch($_REQUEST["id"]) >= 0) print '
'; print ''; + print ''; print_titre($langs->trans("ToClearAllRecipientsClickHere")); print ''; print ''; @@ -324,6 +329,7 @@ if ($mil->fetch($_REQUEST["id"]) >= 0) // List of selected targets print "\n\n"; print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index d1629161a9f..2215cda898a 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -466,6 +466,7 @@ if ($_GET["action"] == 'create') { // EMailing in creation mode print ''."\n"; + print ''; print ''; print_fiche_titre($langs->trans("NewMailing")); @@ -737,6 +738,7 @@ else * Mailing en mode edition */ print ''."\n"; + print ''; print ''; print ''; print '
'; diff --git a/htdocs/comm/mailing/index.php b/htdocs/comm/mailing/index.php index 73b0bdea375..4005f169b40 100644 --- a/htdocs/comm/mailing/index.php +++ b/htdocs/comm/mailing/index.php @@ -50,6 +50,7 @@ print '
'; // Recherche emails $var=false; print ''; +print ''; print ''; print ''; print '
'.$langs->trans("SearchAMailing").'
'; diff --git a/htdocs/comm/multiprix.php b/htdocs/comm/multiprix.php index ee4ab3caee8..510a26ee481 100644 --- a/htdocs/comm/multiprix.php +++ b/htdocs/comm/multiprix.php @@ -86,6 +86,7 @@ if ($_socid > 0) print ''; + print ''; print ''; print ''; print '
'; diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 12342673dc8..2718169d1b1 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -974,6 +974,7 @@ if ($id > 0 || ! empty($ref)) if ($user->rights->propale->creer && $_GET['action'] == 'refclient') { print ''; + print ''; print ''; print ''; print ' '; @@ -1034,6 +1035,7 @@ if ($id > 0 || ! empty($ref)) if ($propal->brouillon && $_GET['action'] == 'editdate') { print ''; + print ''; print ''; $html->select_date($propal->date,'re','','',0,"editdate"); print ''; @@ -1071,6 +1073,7 @@ if ($id > 0 || ! empty($ref)) if ($propal->brouillon && $_GET['action'] == 'editecheance') { print ''; + print ''; print ''; $html->select_date($propal->fin_validite,'ech','','','',"editecheance"); print ''; @@ -1103,6 +1106,7 @@ if ($id > 0 || ! empty($ref)) if ($_GET['action'] == 'editdate_livraison') { print ''; + print ''; print ''; $html->select_date($propal->date_livraison,'liv_','','','',"editdate_livraison"); print ''; @@ -1359,6 +1363,7 @@ if ($id > 0 || ! empty($ref)) if ($conf->global->PRODUIT_USE_MARKUP && $conf->use_javascript_ajax) { $formMarkup = ''."\n"; + $formMarkup.= ''."\n"; $formMarkup.= ''."\n"; if ($objp->fk_product > 0) { @@ -1494,6 +1499,7 @@ if ($id > 0 || ! empty($ref)) if ($propal->statut == 0 && $_GET["action"] == 'editline' && $user->rights->propale->creer && $_GET["lineid"] == $objp->rowid) { print 'rowid.'" method="post">'; + print ''; print ''; print ''; print ''; @@ -1594,6 +1600,7 @@ if ($id > 0 || ! empty($ref)) // Add free products/services form print ''; + print ''; print ''; print ''; @@ -1658,6 +1665,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; print ''; + print ''; print ''; print ''; @@ -1710,6 +1718,7 @@ if ($id > 0 || ! empty($ref)) * Formulaire cloture (signe ou non) */ $form_close = ''; + $form_close.= ''; $form_close.= '
 
'; $form_close.= '
'.$langs->trans('Note').'
"; print ''; @@ -173,6 +174,7 @@ if ($_GET['propalid']) if ($_GET["action"] == 'edit') { print ''; + print ''; print ''; print '
"; print ''; diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php index 05db92d4902..cb1934d7607 100644 --- a/htdocs/comm/prospect/index.php +++ b/htdocs/comm/prospect/index.php @@ -55,6 +55,7 @@ if ($conf->propal->enabled) $var=false; print ''; print ''; + print ''; print ''; print ''; diff --git a/htdocs/comm/remise.php b/htdocs/comm/remise.php index 97c77fc8966..f61fdebd14b 100644 --- a/htdocs/comm/remise.php +++ b/htdocs/comm/remise.php @@ -96,6 +96,7 @@ if ($_socid > 0) * */ print ''; + print ''; print ''; print '
'.$langs->trans("SearchAProposal").'
'; print $langs->trans("Ref").':
'; print '
'; diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php index 95bb336eeb6..d801e111263 100644 --- a/htdocs/comm/remx.php +++ b/htdocs/comm/remx.php @@ -127,6 +127,7 @@ if ($_socid > 0) print ''; + print ''; print ''; print ''; diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index 1562fe17a2f..ab8acab7dba 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -228,6 +228,7 @@ if ($id > 0 || ! empty($ref)) $var = false; print ''; + print ''; print ''; print ''; print ''; @@ -256,6 +257,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; + print ''; print ''; print ''; print '';