get_subfield("900","a","l","n"); } function param_perso_form(&$p_perso) { global $dbh; global $param_perso_900; for($i=0;$iidchamp){ if($perso->type == 'list'){ $requete="select notices_custom_list_value from notices_custom_lists where notices_custom_list_lib='".addslashes($param_perso_900[$i]['a'])."' and notices_custom_champ=$perso->idchamp"; $resultat=pmb_mysql_query($requete); if (pmb_mysql_num_rows($resultat)) { $value=pmb_mysql_result($resultat,0,0); } else { $requete="select max(notices_custom_list_value*1) from notices_custom_lists where notices_custom_champ=$perso->idchamp"; $resultat=pmb_mysql_query($requete); $max=@pmb_mysql_result($resultat,0,0); $n=$max+1; $requete="insert into notices_custom_lists (notices_custom_champ,notices_custom_list_value,notices_custom_list_lib) values($perso->idchamp,$n,'".addslashes($param_perso_900[$i]['a'])."')"; pmb_mysql_query($requete); $value=$n; } $p_perso->values[$perso->idchamp][]=$value; } else { $p_perso->values[$perso->idchamp][]=$param_perso_900[$i]['a']; } } } } } // enregistrement de la notices dans les catégories function traite_categories_enreg($notice_retour,$categories,$thesaurus_traite=0) { } function traite_categories_for_form($tableau_600="",$tableau_601="",$tableau_602="",$tableau_605="",$tableau_606="",$tableau_607="",$tableau_608="") { } function traite_categories_from_form() { } function traite_concepts_for_form($tableau_606 = array()) { } ?>