'; $amount_idx=0; for ($e = 0; $e < count($obj->det->array); $e++) { $row = ''; $q = $obj->det->array; $view_history = HtmlInput::history_account($q[$e]['j_poste'], $q[$e]['j_poste'], "", $exercice); $row.=td($view_history); if ($q[$e]['j_qcode'] != '') { $fiche = new Fiche($cn); $fiche->get_by_qcode($q[$e]['j_qcode']); $view_history=HtmlInput::history_card($fiche->id, $q[$e]['j_qcode'], "", $exercice); } else $view_history = ''; $row.=td($view_history); $l_lib = $q[$e]['j_text']; if ($l_lib != '') { $l_lib = $q[$e]['j_text']; } else if ($q[$e]['j_qcode'] != '') { // nom de la fiche $ff = new Fiche($cn); $ff->get_by_qcode($q[$e]['j_qcode']); $l_lib = $ff->strAttribut(ATTR_DEF_NAME); } else { // libellé du compte $name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q[$e]['j_poste'])); $l_lib = $name; } $l_lib = strip_tags($l_lib); $input = new ISpan("e_march" . $q[$e]['j_id'] . "_label"); $input->value = $l_lib; $hidden = HtmlInput::hidden("j_id[]", $q[$e]['j_id']); $row.=td($input->input() . $hidden); $montant = td(nbm($q[$e]['j_montant']), 'class="num"'); $row.=($q[$e]['j_debit'] == 't') ? $montant : td(''); $row.=($q[$e]['j_debit'] == 'f') ? $montant : td(''); echo tr($row); } ?>