error) { print $cpte->error_message; exit; } switch ($show_transactions) { case "2": $t=$cpte->get_transactions("","",0,0); break; case "3": $date_debut_=extraitdate($date_debut); $t=$cpte->get_transactions($date_debut_,"",0,-1,0,"asc"); break; case "1": default: $t=$cpte->get_transactions("","",0,-1, 10); break; } print "
"; if (empty($t) || !count($t)) print $msg["finance_list_tr_no_tr"]; else { print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; for ($i=0; $i"; print pmb_bidi(""); print pmb_bidi(""); print pmb_bidi(""); print pmb_bidi(""); $payment_method = ''; if ($t[$i]->transaction_payment_method_num) { $transaction_payment_method = new transaction_payment_method($t[$i]->transaction_payment_method_num); $payment_method = ' (' . $transaction_payment_method->get_name() . ')'; } print pmb_bidi(""); print pmb_bidi(""); print pmb_bidi(""); print ""; print "\n"; } print "
".$msg["finance_list_tr_date_enrgt"]." ".$msg["finance_list_tr_comment"]."".$msg["finance_montant"]."".$msg["finance_list_tr_deb_cred"]."".$msg["finance_list_tr_validee"]."".$msg["finance_date_valid"]."
".formatdate($t[$i]->date_enrgt)."".($t[$i]->encaissement?"*":"")."".$t[$i]->commentaire."".($t[$i]->sens==-1? "":"").comptes::format($t[$i]->montant).($t[$i]->sens==-1? "":"")."".($t[$i]->sens==1 ? $msg["finance_form_empr_libelle_credit"]: $msg["finance_form_empr_libelle_debit"]) . $payment_method . "".($t[$i]->realisee ? "X":"")."".formatdate($t[$i]->date_effective).""; if (!$t[$i]->realisee) { print "id_transaction; //if (${$trans}) print "checked"; print ">"; } print "
\n"; } print "
"; print ""; print ""; ?>