noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 49/219: improve esthetic


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 49/219: improve esthetic
Date: Mon, 18 Dec 2017 13:22:36 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit fbd1ed1d9815760292ba198410557dd38896b7e0
Author: Dany De Bontridder <address@hidden>
Date:   Wed Sep 13 19:56:47 2017 +0200

    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(-)

diff --git a/include/anc_pa.inc.php b/include/anc_pa.inc.php
index 3cc09cd..dda0426 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='<div class="content">';
-    $ret.='<h2 class="info">'._('Mis à jour').'</h2>';
-    $ret.="</div>";
     $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.= '<div class="content">';
-    $ret.= '<h2 class="info">'._("Mise à jour").'</h2>';
     $ret.= '<form method="post">';
     $ret.=dossier::hidden();
 
diff --git a/include/lib/manage_table_sql.class.php 
b/include/lib/manage_table_sql.class.php
index 087828e..8c63542 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('<table class="result" id="tb%s">', $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 98fdd20..0000000
--- a/scenario/scenario-1415995449.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php 
-//@description:CFGPCMN
-$_GET=array (
-  'ac' => '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';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]