get_exercice(); if ($g_user->check_module("LETCARD")==0 && $g_user->check_module("LETACC")==0) exit(); $periode=new Periode($cn); list($first_per, $last_per)=$periode->get_limit($exercice); $ret=new IButton('return'); $ret->label=_('Retour'); $ret->javascript="$('detail').hide();$('list').show();$('search').show();"; // retrieve info for the given j_id (date, amount,side and comment) $sql="select j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,J_POSTE,j_qcode,jr_id, jr_comment,j_montant, j_debit,jr_internal from jrnx join jrn on (j_grpt=jr_grpt_id) where j_id=$1"; $arow=$cn->get_array($sql, array($j_id)); $row=$arow[0]; $r=''; $r.='
'; $r.='detail