// Référence numérique (pour la musique) for ($i = 0; $i <= $max_ref; $i++) { eval("\$val=\$f_ref" . $i . ";"); if ($val) { $titre_uniforme_val['ref'][] = $val; } } // Subdivision de forme for ($i = 0; $i <= $max_subdiv; $i++) { eval("\$val=\$f_subdiv" . $i . ";"); if ($val) { $titre_uniforme_val['subdiv'][] = $val; } } $titre_uniforme = new titre_uniforme($id); $titre_uniforme->update($titre_uniforme_val); include './autorites/titres_uniformes/titres_uniformes_list.inc.php'; break; case 'titre_uniforme_form': // création/modification d'un titre_uniforme if (!$id) { $titre_uniforme = new titre_uniforme(); } else { $titre_uniforme = new titre_uniforme($id); } // affichage du form pour modification $titre_uniforme->show_form(); break; case 'titre_uniforme_last': $last_param = 1; $tri_param = "order by tu_id desc ";
} if ($bt_ajouter == "no") { $bouton_ajouter = ""; } else { $bouton_ajouter = "<input type='button' class='bouton_small' onclick=\"document.location='{$base_url}&action=add&deb_rech='+this.form.f_user_input.value\" value='" . $msg["aut_titre_uniforme_ajouter"] . "'>"; } switch ($action) { case 'add': $titre_uniforme_form = str_replace("!!deb_saisie!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $titre_uniforme_form); $titre_uniforme = new titre_uniforme(0); $titre_uniforme->show_form(); break; case 'update': $value = array('name' => $name, 'oeuvre_nature' => $oeuvre_nature, 'oeuvre_type' => $oeuvre_type, 'statut' => $authority_statut); $titre_uniforme = new titre_uniforme(); $titre_uniforme->update($value); $sel_search_form = str_replace("!!bouton_ajouter!!", $bouton_ajouter, $sel_search_form); $sel_search_form = str_replace("!!deb_rech!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $sel_search_form); print $sel_search_form; print $jscript; show_results($dbh, $name, 0, 0, $titre_uniforme->id); break; default: $sel_search_form = str_replace("!!bouton_ajouter!!", $bouton_ajouter, $sel_search_form); $sel_search_form = str_replace("!!deb_rech!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $sel_search_form); print $sel_search_form; print $jscript; show_results($dbh, $user_input, $nbr_lignes, $page, 0); break; } print $sel_footer;