From 1aa7a44e9a10312efeb2d1526a2f4b16b964a8c8 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 24 Sep 2019 19:49:24 +0200 Subject: [PATCH] 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 4d0728363..745d3cf55 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -1512,7 +1512,6 @@ class Fiche "$old_exercice". td(''). td(''). - td(''). "".td(). "Totaux". td(). @@ -1560,8 +1559,8 @@ class Fiche td(). td(). td(). - td(). td(_('Totaux')). + td(). "".nbm($sum_deb)."". "".nbm($sum_cred)."". "".nbm($diff)."". diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php index 45be822ee..3b9555bae 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 '
'; echo '
'; -echo HtmlInput::hidden('ac',$_REQUEST['ac']); +echo HtmlInput::hidden('ac',$http->request("ac")); echo HtmlInput::hidden('type','poste'); echo dossier::hidden(); echo ''; @@ -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 ''; @@ -81,8 +81,8 @@ print ''; $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 '
'; $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) {