".$msg["finance_amende_mnt"]."
$finance_amende_jour
".$msg["finance_amende_delai"]."
$finance_delai_avant_amende
".$msg["finance_amende_delai_1_2"]."
$finance_delai_1_2
".$msg["finance_amende_delai_2_3"]."
$finance_delai_2_3
".$msg["finance_amende_delai_recouvrement"]."
$finance_delai_recouvrement
".$msg["finance_amende_max"]."
$finance_amende_maximum
";
}
if ($pmb_gestion_amende==1) {
$admin_layout = str_replace('!!menu_sous_rub!!', $msg["finance_amendes"], $admin_layout);
print $admin_layout;
switch ($action) {
case 'update':
//Mise à jour !!
parameter::update('finance', 'amende_jour', stripslashes($amende_jour));
parameter::update('finance', 'delai_avant_amende', stripslashes($amende_delai));
parameter::update('finance', 'delai_recouvrement', stripslashes($amende_delai_recouvrement));
parameter::update('finance', 'amende_maximum', stripslashes($amende_max));
parameter::update('finance', 'delai_1_2', stripslashes($amende_1_2));
parameter::update('finance', 'delai_2_3', stripslashes($amende_2_3));
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_parameters"]);
$content_form=$finance_amende_content_form;
$content_form=str_replace("!!amende_jour!!",htmlentities($finance_amende_jour,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!amende_delai!!",htmlentities($finance_delai_avant_amende,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!amende_delai_recouvrement!!",htmlentities($finance_delai_recouvrement,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!amende_max!!",htmlentities($finance_amende_maximum,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!amende_1_2!!",htmlentities($finance_delai_1_2,ENT_QUOTES,$charset),$content_form);
$content_form=str_replace("!!amende_2_3!!",htmlentities($finance_delai_2_3,ENT_QUOTES,$charset),$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="";
$_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 "":
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;
}
}
?>