From 3f54dc26b4a50fc32a1f210470a6912b635e32c9 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 13 Jul 2004 17:25:31 +0000 Subject: [PATCH] Suppression du PHP_SELF --- htdocs/comm/propal/document.php | 4 ++-- htdocs/comm/propal/note.php | 15 +++++++++------ htdocs/comm/prospect/prospects.php | 16 ++++++++-------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 11b5763629e..cbd5876a761 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2004 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -116,7 +116,7 @@ if ($id > 0) } else { - echo 'Supprimer'; + echo 'Supprimer'; } print "\n"; } diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php index 4ce220399de..f1f4f1d8a92 100644 --- a/htdocs/comm/propal/note.php +++ b/htdocs/comm/propal/note.php @@ -40,7 +40,7 @@ require("../../propal.class.php"); */ if ($user->societe_id > 0) { - $action = ''; + unset($_GET["action"]); $socidp = $user->societe_id; } @@ -48,13 +48,12 @@ if ($user->societe_id > 0) /* Actions */ /******************************************************************************/ -if ($_GET["valid"] == 1 && $user->rights->propale->valider) +if ($_POST["action"] == 'update' && $user->rights->propale->creer) { $propal = new Propal($db); $propal->fetch($_GET["propalid"]); - $propal->update_price($_GET["propalid"]); - propale_pdf_create($db, $_GET["propalid"], $propal->modelpdf); - $propal->valid($user); + $propal->update_note($_POST["note"]); + } llxHeader(); @@ -113,7 +112,11 @@ if ($_GET["propalid"]) if ($_GET["action"] == 'edit') { + print '
'; + print ''; print '"; + print ''; + print '
'; } @@ -128,7 +131,7 @@ if ($_GET["propalid"]) if ($user->rights->propale->creer && $_GET["action"] <> 'edit') { - print "id&action=edit\">Editer"; + print "id&action=edit\">Editer"; } print ""; diff --git a/htdocs/comm/prospect/prospects.php b/htdocs/comm/prospect/prospects.php index f35381b4935..34f22b36878 100644 --- a/htdocs/comm/prospect/prospects.php +++ b/htdocs/comm/prospect/prospects.php @@ -117,13 +117,13 @@ if ($result) $urladd="page=$page&stcomm=$stcomm"; - print_barre_liste("Liste des prospects", $page, $PHP_SELF,'&stcomm='.$_GET["stcomm"],"","",'',$num); + print_barre_liste("Liste des prospects", $page, "prospects.php",'&stcomm='.$_GET["stcomm"],"","",'',$num); print '
'; - print "| *\n| "; + print "| *\n| "; for ($ij = 65 ; $ij < 91; $ij++) { - print ""; + print ""; if ($user->page_param["begin"] == chr($ij) ) { @@ -151,16 +151,16 @@ if ($result) print ''; print ''; print ""; print "'; print "\n"; $var=True;
"; - print_liste_field_titre("Société",$PHP_SELF,"s.nom"); + print_liste_field_titre("Société","prospects.php","s.nom"); print ""; - print_liste_field_titre("Ville",$PHP_SELF,"s.ville"); + print_liste_field_titre("Ville","prospects.php","s.ville"); print ""; - print_liste_field_titre("Département",$PHP_SELF,"s.fk_departement"); + print_liste_field_titre("Département","prospects.php","s.fk_departement"); print ""; - print_liste_field_titre("Statut",$PHP_SELF,"s.fk_stcomm"); + print_liste_field_titre("Statut","prospects.php","s.fk_stcomm"); print ""; - print_liste_field_titre("Insertion",$PHP_SELF,"s.datec"); + print_liste_field_titre("Insertion","prospects.php","s.datec"); print '