From 50908eba1894ecc27b9fa3198a4f70d82745b57b Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 29 Oct 2010 22:55:40 +0000 Subject: [PATCH] =?UTF-8?q?task=20#5=20:=20am=C3=A9lioration=20des=20perfo?= =?UTF-8?q?rmances=20pour=20la=20recherche=20de=20fiche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/lettering.gestion.inc.php | 14 ++++++++------ include/template/letter_all.php | 12 ++++++------ include/template/letter_prop.php | 2 +- include/template/result_cat_card_summary.php | 6 ++++-- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/include/lettering.gestion.inc.php b/include/lettering.gestion.inc.php index e06a67db1..56fa50fcf 100644 --- a/include/lettering.gestion.inc.php +++ b/include/lettering.gestion.inc.php @@ -60,12 +60,14 @@ if ( isset($_POST['record'])) //-------------------------------------------------------------------------------- // Show the result //-------------------------------------------------------------------------------- -if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null ) -{ - echo alert(_('Date malformée, désolé')); - exit(); -} - +if ( isset($_GET['start']) && isset($_GET['end'])) + { + if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null ) + { + echo alert(_('Date malformée, désolé')); + exit(); + } + } echo '
'; $fiche=new Fiche($cn,$_REQUEST['f_id']); $quick_code=$fiche->get_quick_code(); diff --git a/include/template/letter_all.php b/include/template/letter_all.php index fc63beffe..1e7da0e0d 100644 --- a/include/template/letter_all.php +++ b/include/template/letter_all.php @@ -65,7 +65,7 @@ $r=sprintf(' content[$i]['j_montant'])?> content[$i]['j_debit']=='t')?'D':'C'?> content[$i]['j_debit']=='f')?$this->content[$i]['j_montant endfor; ?> -

Solde débit : -

Solde crédit : - Solde débit : +

Solde crédit : + 0 ) : ?> -

Solde débiteur : +

Solde débiteur : -

Solde créditeur : +

Solde créditeur : diff --git a/include/template/letter_prop.php b/include/template/letter_prop.php index 8b4693c44..322558b82 100644 --- a/include/template/letter_prop.php +++ b/include/template/letter_prop.php @@ -71,7 +71,7 @@ $r=sprintf(''; else echo ''; - $row->getAttribut(); - foreach($row->attribut as $attr) : + $fiche=new Fiche($cn); + $fiche->id=$row['f_id']; + $fiche->getAttribut(); + foreach($fiche->attribut as $attr) : echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;"'); endforeach; echo '';