noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/01: Esthetic correct column


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/01: Esthetic correct column
Date: Tue, 24 Sep 2019 13:50:59 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 1aa7a44e9a10312efeb2d1526a2f4b16b964a8c8
Author: Dany De Bontridder <address@hidden>
Date:   Tue Sep 24 19:49:24 2019 +0200

    Esthetic correct column
---
 include/class/fiche.class.php |  3 +--
 include/impress_poste.inc.php | 18 +++++++++---------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 4d07283..745d3cf 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -1512,7 +1512,6 @@ class Fiche
                       "<TD>$old_exercice</TD>".
                      td('').
                      td('').
-                     td('').
                      "<TD></TD>".td().
                      "<TD>Totaux</TD>".
                             td().
@@ -1560,8 +1559,8 @@ class Fiche
                td().
                td().
                td().
-               td().
         td(_('Totaux')).
+               td().
         "<TD  style=\"text-align:right\">".nbm($sum_deb)."</TD>".
         "<TD  style=\"text-align:right\">".nbm($sum_cred)."</TD>".
          "<TD style=\"text-align:right\">".nbm($diff)."</TD>".
diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php
index 45be822..3b9555b 100644
--- a/include/impress_poste.inc.php
+++ b/include/impress_poste.inc.php
@@ -36,14 +36,14 @@ require_once 
NOALYSS_INCLUDE.'/class/acc_operation.class.php';
 require_once NOALYSS_INCLUDE.'/class/database.class.php';
 require_once NOALYSS_INCLUDE.'/lib/ipopup.class.php';
 global $g_user;
-
+$http=new HttpInput();
 //-----------------------------------------------------
 // Form
 //-----------------------------------------------------
 echo '<div class="content">';
 
 echo '<FORM action="?" METHOD="GET">';
-echo HtmlInput::hidden('ac',$_REQUEST['ac']);
+echo HtmlInput::hidden('ac',$http->request("ac"));
 echo HtmlInput::hidden('type','poste');
 echo dossier::hidden();
 echo '<TABLE><TR>';
@@ -54,7 +54,7 @@ $w->set_attribute('ipopup','ipop_account');
 $w->set_attribute('label','poste_id_label');
 $w->set_attribute('account','poste_id');
 $w->table=0;
-$w->value=(isset($_REQUEST['poste_id']))?$_REQUEST['poste_id']:"";
+$w->value=$http->request("poste_id","string","");
 $w->label=_("Choisissez le poste");
 print td(_('Choisissez un poste')).td($w->input());
 echo td($span->input('poste_id_label'));
@@ -72,7 +72,7 @@ $w_poste->set_function('fill_data');
 $w_poste->set_dblclick("fill_ipopcard(this);");
 
 
-$w_poste->value=(isset($_REQUEST['f_id']))?$_REQUEST['f_id']:"";
+$w_poste->value=$http->request("f_id","string","");
 print td($w_poste->input().$w_poste->search());
 echo td($span->input('f_id_label'));
 print '</TR>';
@@ -81,8 +81,8 @@ print '<TR>';
 $date_from=new IDate('from_periode');
 $date_to=new IDate('to_periode');
 $year=$g_user->get_exercice();
-$date_from->value=(isset($_REQUEST['from_periode']))?$_REQUEST['from_periode']:"01.01.".$year;
-$date_to->value=(isset($_REQUEST['to_periode']))?$_REQUEST['to_periode']:"31.12.".$year;
+$date_from->value=$http->request("from_periode","string","01.01.".$year);
+$date_to->value=$http->request("to_periode","string","31.12.".$year);
 echo td(_('Depuis').$date_from->input());
 echo td(_('Jusque ').$date_to->input());
 //
@@ -107,7 +107,7 @@ $a_let=array(
 echo '</TABLE>';
 $salet=new ISelect('ople');
 $salet->value=$a_let;
-$salet->selected=(isset ($_GET['ople']))?$_GET['ople']:0;
+$salet->selected=$http->get("ople","number",0);
 
 echo $salet->input();
 
@@ -143,7 +143,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
         // Check if the post is numeric and exists
         elseif (  $cn->count_sql('select * from tmp_pcmn where 
pcm_val=$1',array($_GET['poste_id'])) != 0 )
         {
-            $Poste=new Acc_Account_Ledger($cn,$_GET['poste_id']);
+            $Poste=new Acc_Account_Ledger($cn,$http->get("poste_id","number"));
             $go=1;
         }
     }
@@ -152,7 +152,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
         require_once NOALYSS_INCLUDE.'/class/fiche.class.php';
         // thanks the qcode we found the poste account
         $fiche=new Fiche($cn);
-        $qcode=$fiche->get_by_qcode($_GET['f_id']);
+        $qcode=$fiche->get_by_qcode($http->get('f_id'));
         $p=$fiche->strAttribut(ATTR_DEF_ACCOUNT);
         if ( $p != NOTFOUND)
         {



reply via email to

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