".htmlentities($msg[103], ENT_QUOTES, $charset)." "; $res = paiements::listPaiements(); $nbr = mysql_num_rows($res); $parity=1; for($i=0;$i<$nbr;$i++) { $row=mysql_fetch_object($res); if ($parity % 2) { $pair_impair = "even"; } else { $pair_impair = "odd"; } $parity += 1; $tr_javascript=" onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='$pair_impair'\" onmousedown=\"document.location='./admin.php?categ=acquisition&sub=mode&action=modif&id=$row->id_paiement';\" "; print "".htmlentities($row->libelle, ENT_QUOTES, $charset).""; print ""; } print " "; } function show_mode_form($id=0) { global $msg; global $charset; global $mode_form; global $ptab; global $acquisition_gestion_tva; $mode_form = str_replace('!!id!!', $id, $mode_form); if(!$id) { $mode_form = str_replace('!!form_title!!', htmlentities($msg[acquisition_ajout_mode],ENT_QUOTES,$charset), $mode_form); $mode_form = str_replace('!!libelle!!', '', $mode_form); $mode_form = str_replace('!!commentaire!!', '', $mode_form); } else { $mode = new paiements($id); $mode_form = str_replace('!!form_title!!', htmlentities($msg[acquisition_modif_mode],ENT_QUOTES,$charset), $mode_form); $mode_form = str_replace('!!libelle!!', htmlentities($mode->libelle,ENT_QUOTES,$charset), $mode_form); $mode_form = str_replace('!!commentaire!!', $mode->commentaire, $mode_form); $ptab = str_replace('!!id!!', $id, $ptab); $ptab = str_replace('!!libelle_suppr!!', addslashes($mode->libelle), $ptab); $mode_form = str_replace('', $ptab, $mode_form); } print confirmation_delete("./admin.php?categ=acquisition&sub=mode&action=del&id="); print $mode_form; } $mode_form = "

!!form_title!!

 
"; $ptab = ""; ?> 0 ) { error_form_message($libelle.$msg["acquisition_mode_already_used"]); break; } $mode = new paiements($id); $mode->libelle = $libelle; $mode->commentaire = $comment; $mode->save(); show_list_mode(); break; case 'del': if($id) { $total1 = paiements::hasFournisseurs($id); if ($total1==0) { paiements::delete($id); } else { $msg_suppr_err = $msg[acquisition_mode_used] ; if ($total1) $msg_suppr_err .= "
- ".$msg[acquisition_mode_used_fou] ; error_message($msg[321], $msg_suppr_err, 1, 'admin.php?categ=acquisition&sub=mode'); } } else { show_list_mode(); } break; default: show_list_mode(); break; } ?>