From 0cc29d18818b715f0ef659b885fbee5520f065a9 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 29 Jul 2010 17:11:39 +0000 Subject: [PATCH] Bug : autocomplete do not work with FIN Bug impress date were not verified Cosmetic bug : table too large for impress->fiche->balance Cosmetic bug : table too large for impress->rapprochement Bug : protection against special char in card name, in autocomplete (fid.php fid_card.php) Improve : progression for the historic of card --- html/fid.php | 2 +- html/fid_card.php | 8 +-- html/index.php | 4 +- html/style-color.css | 18 +++--- html/style-light.css | 66 +++++++++------------ html/style-print.css | 6 +- html/style.css | 15 +++-- include/class_acc_ledger_fin.php | 4 +- include/impress_fiche.inc.php | 14 +++-- include/impress_gl_comptes.inc.php | 5 +- include/impress_poste.inc.php | 4 ++ include/template/impress_reconciliation.php | 2 +- 12 files changed, 72 insertions(+), 76 deletions(-) diff --git a/html/fid.php b/html/fid.php index 7f6a186ae..9feb250e0 100644 --- a/html/fid.php +++ b/html/fid.php @@ -117,7 +117,7 @@ if ( isset($_SESSION['isValid']) && $_SESSION['isValid'] == 1) /* store the answer in an array and transform it later into a JSON object */ $tmp=array(); $tmp[]=array('flabel',$fLabel); - $tmp[]=array('name',$name); + $tmp[]=array('name',h($name)); $tmp[]=array('ftva_id',$fTva_id); $tmp[]=array('tva_id',$tva_id); $tmp[]=array('fPrice_sale',$fPrice_sale); diff --git a/html/fid_card.php b/html/fid_card.php index c85e6e518..9de8b902a 100644 --- a/html/fid_card.php +++ b/html/fid_card.php @@ -68,7 +68,6 @@ if ( $jrn != -1 ) { case 'cred': $filter_jrn=$cn->make_list("select jrn_def_fiche_cred from jrn_def where jrn_def_id=$1",array($jrn)); $filter_card=($filter_jrn != "")?" and fd_id in ($filter_jrn)":' and false '; - break; case 'deb': $filter_jrn=$cn->make_list("select jrn_def_fiche_deb from jrn_def where jrn_def_id=$1",array($jrn)); @@ -106,13 +105,14 @@ $sql_str="select f_id, vw_name,quick_code,vw_description ". $sql=$cn->get_array($sql_str ,array($_REQUEST['FID'],$_REQUEST['FID'],$_REQUEST['FID'])); + if (sizeof($sql) != 0 ) { echo "