From fbd1ed1d9815760292ba198410557dd38896b7e0 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 13 Sep 2017 19:56:47 +0200 Subject: [PATCH] improve esthetic --- include/anc_pa.inc.php | 10 +++++----- include/lib/manage_table_sql.class.php | 2 +- scenario/scenario-1415995449.php | 20 -------------------- 3 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 scenario/scenario-1415995449.php diff --git a/include/anc_pa.inc.php b/include/anc_pa.inc.php index 3cc09cd37..dda04269a 100644 --- a/include/anc_pa.inc.php +++ b/include/anc_pa.inc.php @@ -92,19 +92,20 @@ if ($sa=="pa_write") // Update the PA if ($sa=="pa_update") { - $new=new Anc_Plan($cn, $_GET['pa_id']); + $pa_id=$http->get("pa_id","numeric"); + + $new=new Anc_Plan($cn, $pa_id); $new->name=$_POST['pa_name']; $new->description=$_POST['pa_description']; $new->update(); - $ret='
'; - $ret.='

'._('Mis à jour').'

'; - $ret.="
"; $sa="anc_menu"; } /* delete pa */ if ($sa=="pa_delete") { + $pa_id=$http->get("pa_id","numeric"); + $delete=new Anc_Plan($cn, $pa_id); $delete->delete(); $sa="anc_menu"; @@ -122,7 +123,6 @@ if ($sa=="pa_detail") $new->get(); $ret.= '
'; - $ret.= '

'._("Mise à jour").'

'; $ret.= '
'; $ret.=dossier::hidden(); diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index 087828e76..8c63542d4 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -585,7 +585,7 @@ function check() $virg=","; } } - echo HtmlInput::filter_table("tb".$this->object_name, $result, 1); + echo _('Cherche')." ".HtmlInput::filter_table("tb".$this->object_name, $result, 1); printf('', $this->object_name); for ($i=0; $i<$nb; $i++) { diff --git a/scenario/scenario-1415995449.php b/scenario/scenario-1415995449.php deleted file mode 100644 index 98fdd20fd..000000000 --- a/scenario/scenario-1415995449.php +++ /dev/null @@ -1,20 +0,0 @@ - 'PARAM/CFGPCMN', - 'p_start' => '4', - 'gDossier' => '42', -); -$_POST=array ( - 'p_valu' => '4519', - 'p_libu' => 'Compte TVA', - 'p_parentu' => '451', - 'p_typeu' => 'PAS', - 'p_oldu' => '4519', - 'gDossier' => '42', - 'update' => 'Sauve', -); -$_POST['gDossier']=$gDossierLogInput; -$_GET['gDossier']=$gDossierLogInput; - $_REQUEST=array_merge($_GET,$_POST); -include 'param_pcmn.inc.php';