".$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 $msg,$charset;
global $finance_statut_perdu,$finance_recouvrement_lecteur_statut;
$result ="
";
$requete="select idstatut,statut_libelle from docs_statut order by statut_libelle";
$resultat=pmb_mysql_query($requete);
$list_statut="\n";
$result = str_replace( "!!statut_expl!!",$list_statut,$result);
$requete="select idstatut,statut_libelle from empr_statut";
$resultat=pmb_mysql_query($requete);
$list_statut="\n";
$result = str_replace( "!!statut_empr!!",$list_statut,$result);
echo $result;
}
function update_loststatus_fromform() {
global $statut_perdu, $statut_empr;
parameter::update('finance', 'statut_perdu', stripslashes($statut_perdu));
parameter::update('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 !!
parameter::update('finance', 'relance_1', stripslashes($relance_1));
parameter::update('finance', 'relance_2', stripslashes($relance_2));
parameter::update('finance', 'relance_3', stripslashes($relance_3));
parameter::update('finance', 'statut_perdu', stripslashes($statut_perdu));
show_amende_parameters();
break;
case 'modif':
//Formulaire de mise à jour
$interface_form = new interface_admin_form('finance_amende_form');
$interface_form->set_label($msg["finance_amende_relance_parameters"]);
$content_form=$finance_amende_relance_content_form;
$content_form=str_replace("!!relance_1!!",htmlentities($finance_relance_1,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!relance_2!!",htmlentities($finance_relance_2,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!relance_3!!",htmlentities($finance_relance_3,ENT_QUOTES,$charset),$content_form);
$requete="select idstatut,statut_libelle from docs_statut order by statut_libelle";
$resultat=pmb_mysql_query($requete);
$list_statut="\n";
$content_form=str_replace("!!statut_perdu!!",$list_statut,$content_form);
$interface_form->set_content_form($content_form);
print $interface_form->get_display_parameters();
break;
default:
//Gestion simple
show_amende_parameters();
break;
}
} else {
$menu_sous_rub=$msg["finance_amendes"];
//Gestion par quotas
$descriptor = "$include_path/quotas/own/$lang/finances.xml";
if ($quota) $qt=new quota($quota,$descriptor); else quota::parse_quotas($descriptor);
$admin_menu_quotas="".$msg["finance_statut_perdu_expl_empr"]." ";
$_quotas_types_ = quota::$_quotas_[$descriptor]['_types_'];
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;
}
}
?>