From 3a3400116a8a2156761695acfabf81e50cc6d952 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 16 Feb 2010 18:22:02 +0000 Subject: [PATCH] Correction suppression, issue #0000175 Tester ajout et edition --- www/pages/ajax_surveillance.php | 4 ++-- www/pages/options_surv.php | 25 +++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/www/pages/ajax_surveillance.php b/www/pages/ajax_surveillance.php index 4c9e9d64a..f08917c23 100644 --- a/www/pages/ajax_surveillance.php +++ b/www/pages/ajax_surveillance.php @@ -27,9 +27,9 @@ elseif($_REQUEST['q']=='getsurv') elseif($_REQUEST['q']=='ajouter') { $firephp->log($_REQUEST, 'REQUEST'); - $siren = $_REQUEST['siren']; + $siret = $_REQUEST['siret']; $source = ( isset($_REQUEST['source']) && !empty($_REQUEST['source']) ) ? $_REQUEST['source'] : '' ; - $return = formSurveillance($source, $siren, array(), false); + $return = formSurveillance($source, $siret, array(), false); } echo $return; exit; diff --git a/www/pages/options_surv.php b/www/pages/options_surv.php index fbe05c938..2bb5da71b 100644 --- a/www/pages/options_surv.php +++ b/www/pages/options_surv.php @@ -14,8 +14,8 @@ isset($_REQUEST['siret'])? $siret=$_REQUEST['siret'] : $siret=''; if($_REQUEST['action']=='supprimer'){ require_once 'surveillance/surveillance.php'; - deleteSurveillance($_REQUEST['siren'], $_REQUEST['email'], $_REQUEST['ref'], $_REQUEST['source'], true); - header('Location: ./?page=surveillance&idEntreprise='.$idEntreprise.'&siret='.$siret); + deleteSurveillance($siret, $_REQUEST['email'], $_REQUEST['ref'], $_REQUEST['source'], true); + header('Location: ./?page=surveillance'); } isset($_REQUEST['vue']) ? $vue = $_REQUEST['vue'] : $vue = 'default' ; isset($_REQUEST['tri']) ? $tri = $_REQUEST['tri'] : $tri = 'siren' ; @@ -283,6 +283,7 @@ if($totPage != 1) if($vue=='default'){ foreach($listTrier as $item) { +$firephp->log($item, 'item'); ?> @@ -319,9 +320,9 @@ foreach($listTrier as $item) ?>

- - - + + +
-
-

- +
+

+
- -
+ +

- - + +