diff --git a/html/js/sorttable.js b/html/js/sorttable.js index 036e728b9..d2de7e58c 100644 --- a/html/js/sorttable.js +++ b/html/js/sorttable.js @@ -190,12 +190,25 @@ sorttable = { for (var j = 0; j < row_array.length; j++) { tb.appendChild(row_array[j][1]); } - delete row_array; + // Highlight odd and even rows properly + sorttable.highlight_body(this); }); } } }, + highlight_body:function(p_heading) { + var p_table=p_heading.parentNode.parentNode.parentNode; + var nb_row=p_table.rows; + var e=0; + for (e=1;eget_array($sql,array($_SESSION['g_user'])); Code AD -  ▾ +   diff --git a/include/class/class_fiche.php b/include/class/class_fiche.php index 062daeb6c..820f9b567 100644 --- a/include/class/class_fiche.php +++ b/include/class/class_fiche.php @@ -1600,7 +1600,7 @@ class Fiche '._('Quick Code').HtmlInput::infobulle(17).''. ''._('Poste comptable').''. - ''._('Nom').' ▴'.' + ''._('Nom').''.' '._('Adresse').' '._('Total débit').' '._('Total crédit').' diff --git a/include/compta_fin_rec.inc.php b/include/compta_fin_rec.inc.php index 966458a4c..795d46104 100644 --- a/include/compta_fin_rec.inc.php +++ b/include/compta_fin_rec.inc.php @@ -232,7 +232,8 @@ echo ''; echo ''; echo ''; -$r =''; + +$r =''; $r.=th('Libellé'); $r.=th('N° interne'); $r.=th('Montant', ' style="text-align:right"'); diff --git a/include/compta_fin_saldo.inc.php b/include/compta_fin_saldo.inc.php index 378c34764..10276ac10 100644 --- a/include/compta_fin_saldo.inc.php +++ b/include/compta_fin_saldo.inc.php @@ -37,7 +37,7 @@ require_once NOALYSS_INCLUDE.'/class/class_acc_parm_code.php'; echo dossier::hidden(); echo _('Cherche').' : '.HtmlInput::filter_table("fin_saldo_tb", '0,1,2,3', '1'); echo '
'.'Date '.HtmlInput::infobulle(17).' ▴'.''.'Date '.HtmlInput::infobulle(17).''.'
'; - echo tr(th('Quick Code',' class=" sorttable_sorted_reverse"',HtmlInput::infobulle(17).' ▴') + echo tr(th('Quick Code',' class=" sorttable_sorted"',HtmlInput::infobulle(17).'') .th('Compte en banque',' style="text-align:left"') .th('Journal',' style="text-align:center"') .th('Description',' style="text-align:center"')