'; echo '
'; // if $_REQUEST[sa] == del delete the predefined operation if ( $request_sa == 'del') { $op=new Pre_operation($cn); $op->od_id=$_REQUEST['od_id']; $op->delete(); $request_sa='jrn'; } // if $_REQUEST[sa] == jrn show the predefined operation for this // ledger if ( $request_sa== 'jrn' ) { $op=new Pre_operation($cn); $op->set_jrn($get_jrn); $is_ods = $cn->get_value("select count(*) from jrn_def where jrn_def_id=$1 and jrn_def_type='ODS'", array($get_jrn)); $op->od_direct = ($is_ods > 0) ? 't' : 'f'; $array = $op->get_list_ledger(); if (empty($array) == true) { echo _("Aucun enregistrement"); return; } echo ''.h($row['od_name']).' | '; echo ''.h($row['od_description']).' | '; echo ''; echo ''; echo ' | '; $b=HtmlInput::button('mod'.$row['od_id'],"Modifier","onclick=\"mod_predf_op('".dossier::id()."','".$row['od_id']."');\""); echo td($b); echo '