} if ($section_param != $param->section_param && $allow_section) { $section_param = $param->section_param; $creer_section = 1; } else { $creer_section = 0; } if ($fincreer) { print "</tbody></tgroup></table></sect2>\n"; } if ($creer) { $lab_param = $msg["param_" . $type_param]; if ($lab_param == "") { $lab_param = $type_param; } print "<sect2 id=\"admin_outils_parametres_z3950\"><title lang=\"fr\">" . $lab_param . "</title>\n" . "<table><title lang=\"fr\">" . $msg['admin_param_detail'] . "</title>\n" . $desc["description_" . $type_param] . "<tgroup cols=\"3\"><colspec colname='c1'/><colspec colname='c2'/><colspec colname='c3'/><thead><row>\n" . "<entry lang=\"fr\">sous-type</entry>\n" . "<entry lang=\"fr\">valeur par défaut</entry>\n" . "<entry lang=\"fr\">commentaire</entry>\n" . "</row></thead>\n" . "<tbody>"; } if ($creer_section) { print "\n<row><entry lang=\"fr\" namest=\"c1\" nameend=\"c3\" align=\"center\"><emphasis role=\"bold\">" . "<![CDATA[" . $section_table[$section_param]["LIB"] . "]]></emphasis></entry></row>"; } print "\n<row>\n" . "<entry lang=\"fr\"><![CDATA[" . $param->sstype_param . "]]></entry>\n" . "<entry lang=\"fr\"><![CDATA[" . $param->valeur_param . "]]></entry>\n" . "<entry lang=\"fr\"><![CDATA[" . $param->comment_param . "]]></entry>\n" . "</row>\n"; } // fin while print "</tbody></tgroup></table></sect2>\n"; } $admin_layout = str_replace('!!menu_sous_rub!!', $msg[1600], $admin_layout); //print "<div class='row'>"; //echo window_title($database_window_title.$msg[1600].$msg[1003].$msg[1001]); show_param($dbh); // deconnection MYSql mysql_close($dbh);
pmb_mysql_query($rqt); $rqt = "UPDATE parametres SET valeur_param ='{$pret_deja_prete_msg}' where type_param= 'selfservice' and sstype_param='pret_deja_prete_msg' "; $selfservice_pret_deja_prete_msg = stripslashes($pret_deja_prete_msg); pmb_mysql_query($rqt); $rqt = "UPDATE parametres SET valeur_param ='{$pret_deja_reserve_msg}' where type_param= 'selfservice' and sstype_param='pret_deja_reserve_msg' "; $selfservice_pret_deja_reserve_msg = stripslashes($pret_deja_reserve_msg); pmb_mysql_query($rqt); $rqt = "UPDATE parametres SET valeur_param ='{$pret_quota_bloc_msg}' where type_param= 'selfservice' and sstype_param='pret_quota_bloc_msg' "; $selfservice_pret_quota_bloc_msg = stripslashes($pret_quota_bloc_msg); pmb_mysql_query($rqt); $rqt = "UPDATE parametres SET valeur_param ='{$pret_non_pretable_msg}' where type_param= 'selfservice' and sstype_param='pret_non_pretable_msg' "; $selfservice_pret_non_pretable_msg = stripslashes($pret_non_pretable_msg); pmb_mysql_query($rqt); $rqt = "UPDATE parametres SET valeur_param ='{$pret_expl_inconnu_msg}' where type_param= 'selfservice' and sstype_param='pret_expl_inconnu_msg' "; $selfservice_pret_expl_inconnu_msg = stripslashes($pret_expl_inconnu_msg); pmb_mysql_query($rqt); $rqt = "UPDATE parametres SET valeur_param ='{$pret_prolonge_non_msg}' where type_param= 'selfservice' and sstype_param='pret_prolonge_non_msg' "; $selfservice_pret_prolonge_non_msg = stripslashes($pret_prolonge_non_msg); pmb_mysql_query($rqt); } switch ($action) { case 'update': if ($form_actif) { memo_param(); } show_param($action); break; default: show_param(); break; }