".$msg["finance_relance_1"]."
$finance_relance_1
 
".$msg["finance_relance_2"]."
$finance_relance_2
 
".$msg["finance_relance_3"]."
$finance_relance_3
 
".$msg["finance_statut_perdu"]."
".$statut_perdu."
 
"; } function show_lost_status_form() { global $dbh,$msg,$charset; global $finance_statut_perdu,$finance_recouvrement_lecteur_statut; $result ="

".$msg["finance_statut_perdu_expl_empr"]."

".$msg["finance_statut_expl_perdu"].":
!!statut_expl!!
".$msg["finance_statut_lecteur_en_recouvrement"].":
!!statut_empr!!
"; $requete="select idstatut,statut_libelle from docs_statut"; $resultat=mysql_query($requete, $dbh); $list_statut="\n"; $result = str_replace( "!!statut_expl!!",$list_statut,$result); $requete="select idstatut,statut_libelle from empr_statut"; $resultat=mysql_query($requete, $dbh); $list_statut="\n"; $result = str_replace( "!!statut_empr!!",$list_statut,$result); echo $result; } function update_loststatus_fromform() { global $statut_perdu, $dbh, $finance_statut_perdu,$statut_empr, $finance_recouvrement_lecteur_statut; $requete="update parametres set valeur_param='".$statut_perdu."' where type_param='finance' and sstype_param='statut_perdu'"; mysql_query($requete, $dbh); $finance_statut_perdu=stripslashes($statut_perdu); $requete="update parametres set valeur_param='".$statut_empr."' where type_param='finance' and sstype_param='recouvrement_lecteur_statut'"; mysql_query($requete, $dbh); $finance_recouvrement_lecteur_statut=stripslashes($statut_empr); } if ($pmb_gestion_amende==1) { $admin_layout = str_replace('!!menu_sous_rub!!', $msg["finance_amendes_relances"], $admin_layout); print $admin_layout; switch ($action) { case 'update': //Mise à jour !! $requete="update parametres set valeur_param='".$relance_1."' where type_param='finance' and sstype_param='relance_1'"; mysql_query($requete); $finance_relance_1=stripslashes($relance_1); $requete="update parametres set valeur_param='".$relance_2."' where type_param='finance' and sstype_param='relance_2'"; mysql_query($requete); $finance_relance_2=stripslashes($relance_2); $requete="update parametres set valeur_param='".$relance_3."' where type_param='finance' and sstype_param='relance_3'"; mysql_query($requete); $finance_relance_3=stripslashes($relance_3); $requete="update parametres set valeur_param='".$statut_perdu."' where type_param='finance' and sstype_param='statut_perdu'"; mysql_query($requete); $finance_statut_perdu=stripslashes($statut_perdu); show_amende_parameters(); break; case 'modif': //Formulaire de mise à jour $finance_amende_relance_form=str_replace("!!relance_1!!",htmlentities($finance_relance_1,ENT_QUOTES,$charset),$finance_amende_relance_form); $finance_amende_relance_form=str_replace("!!relance_2!!",htmlentities($finance_relance_2,ENT_QUOTES,$charset),$finance_amende_relance_form); $finance_amende_relance_form=str_replace("!!relance_3!!",htmlentities($finance_relance_3,ENT_QUOTES,$charset),$finance_amende_relance_form); $requete="select idstatut,statut_libelle from docs_statut"; $resultat=mysql_query($requete); $list_statut="\n"; $finance_amende_relance_form=str_replace("!!statut_perdu!!",$list_statut,$finance_amende_relance_form); print $finance_amende_relance_form; break; default: //Gestion simple show_amende_parameters(); break; } } else { $menu_sous_rub=$msg["finance_amendes"]; //Gestion par quotas if ($quota) $qt=new quota($quota,"$include_path/quotas/own/$lang/finances.xml"); else quota::parse_quotas("$include_path/quotas/own/$lang/finances.xml"); $admin_menu_quotas="".$msg["finance_statut_perdu_expl_empr"]." "; for ($i=0; $i".$_quotas_types_[$i]["SHORT_COMMENT"]."\n"; if ($quota==$_quotas_types_[$i]["ID"]) { $menu_sous_rub.=" > ".$_quotas_types_[$i]["SHORT_COMMENT"]; if ($elements) $menu_sous_rub.=" > ".$qt->get_title_by_elements_id($elements); } } } $admin_layout = str_replace('!!menu_sous_rub!!', $menu_sous_rub, $admin_layout); print $admin_layout; print "
".$admin_menu_quotas."
 
"; switch ($quota) { case "": switch ($action) { case "edit_loststatus": show_lost_status_form(); break; case "updateloststatus": update_loststatus_fromform(); show_lost_status_form(); break; default: break; } break; default: if (!$elements) { $query_compl=""a=$quota"; include("./admin/quotas/quotas_list.inc.php"); } else { $query_compl=""a=$quota"; include("./admin/quotas/quota_table.inc.php"); } break; } } ?>