Example #1
0
 function show_form()
 {
     global $msg;
     global $charset;
     global $indexint_form;
     global $exact;
     global $pmb_type_audit;
     global $thesaurus_concepts_active;
     if ($this->indexint_id) {
         $action = "./autorites.php?categ=indexint&sub=update&id=" . $this->indexint_id . "&id_pclass=" . $this->id_pclass;
         $libelle = $msg[indexint_update];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=indexint&sub=replace&id=" . $this->indexint_id . "&id_pclass=" . $this->id_pclass . "\"'>";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=1&etat=aut_search&aut_type=indexint&aut_id=" . $this->indexint_id . "\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
     } else {
         $action = './autorites.php?categ=indexint&sub=update&id=&id_pclass=' . $this->id_pclass;
         $libelle = $msg[indexint_create];
         $button_remplace = '';
         $button_delete = '';
     }
     $aut_link = new aut_link(AUT_TABLE_INDEXINT, $this->indexint_id);
     $indexint_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_indexint'), $indexint_form);
     $aut_pperso = new aut_pperso("indexint", $this->indexint_id);
     $indexint_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $indexint_form);
     $indexint_form = str_replace('!!id_pclass!!', $this->id_pclass, $indexint_form);
     $indexint_form = str_replace('!!id!!', $this->indexint_id, $indexint_form);
     $indexint_form = str_replace('!!libelle!!', $libelle, $indexint_form);
     $indexint_form = str_replace('!!action!!', $action, $indexint_form);
     $indexint_form = str_replace('!!id!!', $this->s_id, $indexint_form);
     $indexint_form = str_replace('!!indexint_nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $indexint_form);
     $indexint_form = str_replace('!!indexint_comment!!', htmlentities($this->comment, ENT_QUOTES, $charset), $indexint_form);
     $indexint_form = str_replace('!!remplace!!', $button_remplace, $indexint_form);
     $indexint_form = str_replace('!!voir_notices!!', $button_voir, $indexint_form);
     $indexint_form = str_replace('!!delete!!', $button_delete, $indexint_form);
     // pour retour à la bonne page en gestion d'autorités
     // &user_input=".rawurlencode(stripslashes($user_input))."&nbr_lignes=$nbr_lignes&page=$page
     global $user_input, $nbr_lignes, $page, $axact;
     $indexint_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $indexint_form);
     $indexint_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $indexint_form);
     $indexint_form = str_replace('!!exact!!', htmlentities($exact, ENT_QUOTES, $charset), $indexint_form);
     $indexint_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $indexint_form);
     $indexint_form = str_replace('!!page!!', $page, $indexint_form);
     if ($thesaurus_concepts_active == 1) {
         $index_concept = new index_concept($this->indexint_id, TYPE_INDEXINT);
         $indexint_form = str_replace('!!concept_form!!', $index_concept->get_form('saisie_indexint'), $indexint_form);
     } else {
         $indexint_form = str_replace('!!concept_form!!', "", $indexint_form);
     }
     if ($pmb_type_audit && $this->indexint_id) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_INDEXINT . "&object_id=" . $this->indexint_id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $indexint_form = str_replace('!!audit_bt!!', $bouton_audit, $indexint_form);
     print $indexint_form;
 }
Example #2
0
    }
    //Remplacement
    $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
    $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=categories&sub=categ_replace&id={$id}&parent={$parent}\"'/>";
    $category_form = str_replace("<!-- remplace_categ -->", $button_remplace, $category_form);
    //Suppression
    $category_form = str_replace('<!-- delete_button -->', $delete_button, $category_form);
} else {
    $category_form = str_replace("<!-- numero_autorite -->", $num_aut, $category_form);
}
if ($import_denied == 1) {
    $import_denied_checked = "checked='checked'";
} else {
    $import_denied_checked = "";
}
$category_form = str_replace('!!authority_import_denied!!', $import_denied_checked, $category_form);
require_once "{$class_path}/aut_link.class.php";
$aut_link = new aut_link(AUT_TABLE_CATEG, $id);
$category_form = str_replace('<!-- aut_link -->', $aut_link->get_form('categ_form'), $category_form);
$aut_pperso = new aut_pperso("categ", $id);
$category_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $category_form);
$category_form = str_replace('!!voir_notices!!', $button_voir, $category_form);
if ($pmb_type_audit && $id) {
    $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_CATEG . "&object_id=" . $id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
}
$category_form = str_replace('!!audit_bt!!', $bouton_audit, $category_form);
$category_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $category_form);
$category_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $category_form);
$category_form = str_replace('!!page!!', $page, $category_form);
$category_form = str_replace('!!nb_per_page!!', $nb_per_page, $category_form);
print $category_form;
 function show_form($duplicate = false)
 {
     global $msg;
     global $collection_form;
     global $charset;
     global $pmb_type_audit;
     global $thesaurus_concepts_active;
     if ($this->id && !$duplicate) {
         $action = "./autorites.php?categ=collections&sub=update&id={$this->id}";
         $libelle = $msg[168];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=collections&sub=replace&id={$this->id}\"'>";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=2&etat=aut_search&aut_type=collection&aut_id={$this->id}\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
     } else {
         $action = './autorites.php?categ=collections&sub=update&id=';
         $libelle = $msg[167];
         $button_remplace = '';
         $button_delete = '';
     }
     $aut_link = new aut_link(AUT_TABLE_COLLECTIONS, $this->id);
     $collection_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_collection'), $collection_form);
     $aut_pperso = new aut_pperso("collection", $this->id);
     $collection_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $collection_form);
     $collection_form = str_replace('!!id!!', $this->id, $collection_form);
     $collection_form = str_replace('!!libelle!!', $libelle, $collection_form);
     $collection_form = str_replace('!!action!!', $action, $collection_form);
     $collection_form = str_replace('!!collection_nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $collection_form);
     $collection_form = str_replace('!!ed_libelle!!', htmlentities($this->editeur, ENT_QUOTES, $charset), $collection_form);
     $collection_form = str_replace('!!ed_id!!', $this->parent, $collection_form);
     $collection_form = str_replace('!!issn!!', $this->issn, $collection_form);
     $collection_form = str_replace('!!delete!!', $button_delete, $collection_form);
     $collection_form = str_replace('!!remplace!!', $button_remplace, $collection_form);
     $collection_form = str_replace('!!voir_notices!!', $button_voir, $collection_form);
     $collection_form = str_replace('!!collection_web!!', htmlentities($this->collection_web, ENT_QUOTES, $charset), $collection_form);
     $collection_form = str_replace('!!comment!!', htmlentities($this->comment, ENT_QUOTES, $charset), $collection_form);
     /**
      * Gestion du selecteur de statut d'autorité
      */
     $collection_form = str_replace('!!auth_statut_selector!!', authorities_statuts::get_form_for(AUT_TABLE_COLLECTIONS, $this->num_statut), $collection_form);
     // pour retour à la bonne page en gestion d'autorités
     // &user_input=".rawurlencode(stripslashes($user_input))."&nbr_lignes=$nbr_lignes&page=$page
     global $user_input, $nbr_lignes, $page;
     $collection_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $collection_form);
     $collection_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $collection_form);
     $collection_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $collection_form);
     $collection_form = str_replace('!!page!!', $page, $collection_form);
     if ($thesaurus_concepts_active == 1) {
         $index_concept = new index_concept($this->id, TYPE_COLLECTION);
         $collection_form = str_replace('!!concept_form!!', $index_concept->get_form('saisie_collection'), $collection_form);
     } else {
         $collection_form = str_replace('!!concept_form!!', "", $collection_form);
     }
     if ($pmb_type_audit && $this->id && !$duplicate) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_COLLECTION . "&object_id=" . $this->id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $collection_form = str_replace('!!audit_bt!!', $bouton_audit, $collection_form);
     print $collection_form;
 }
 function show_form($duplicate = false)
 {
     global $msg;
     global $titre_uniforme_form;
     global $charset;
     global $user_input, $nbr_lignes, $page;
     global $pmb_type_audit;
     global $thesaurus_concepts_active;
     global $value_deflt_fonction;
     global $tu_authors_tpl, $tu_authors_all_tpl;
     global $pmb_authors_qualification;
     $fonction = new marc_list('function');
     $music_key = new marc_list('music_key');
     $music_form = new marc_list('music_form');
     if ($this->id && !$duplicate) {
         $action = "./autorites.php?categ=titres_uniformes&sub=update&id={$this->id}";
         $libelle = $msg["aut_titre_uniforme_modifier"];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=titres_uniformes&sub=replace&id={$this->id}\"'>";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=9&etat=aut_search&aut_type=titre_uniforme&aut_id={$this->id}\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
     } else {
         $action = './autorites.php?categ=titres_uniformes&sub=update&id=';
         $libelle = $msg["aut_titre_uniforme_ajouter"];
         $button_remplace = '';
         $button_delete = '';
     }
     if ($this->import_denied == 1) {
         $import_denied_checked = "checked='checked'";
     } else {
         $import_denied_checked = "";
     }
     // Auteurs
     $as = array_keys($this->responsabilites["responsabilites"], "0");
     $max_aut0 = count($as);
     $tu_auteurs = "";
     if ($max_aut0 == 0) {
         $max_aut0 = 1;
     }
     for ($i = 0; $i < $max_aut0; $i++) {
         $indice = $as[$i];
         $auteur_0 = $this->responsabilites["auteurs"][$indice];
         $auteur = new auteur($auteur_0["id"]);
         if ($value_deflt_fonction && $auteur_0["id"] == 0 && $i == 0) {
             $auteur_0["fonction"] = $value_deflt_fonction;
         }
         $ptab_aut_tu = $tu_authors_tpl;
         $ptab_aut_tu = str_replace('!!n!!', 0, $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!iaut!!', $i, $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!title!!', $msg["tu_authors_list"], $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!vedettetype!!', 'role', $ptab_aut_tu);
         if ($i) {
             $ptab_aut_tu = str_replace('!!title_display!!', 'display:none', $ptab_aut_tu);
             $ptab_aut_tu = str_replace('!!bouton_add_display!!', 'display:none', $ptab_aut_tu);
         } else {
             $ptab_aut_tu = str_replace('!!title_display!!', 'display:block', $ptab_aut_tu);
             $ptab_aut_tu = str_replace('!!bouton_add_display!!', '', $ptab_aut_tu);
         }
         $ptab_aut_tu = str_replace('!!aut0_id!!', $auteur_0["id"], $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!aut0!!', htmlentities($auteur->isbd_entry, ENT_QUOTES, $charset), $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!f0_code!!', $auteur_0["fonction"], $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!f0!!', $fonction->table[$auteur_0["fonction"]], $ptab_aut_tu);
         if ($pmb_authors_qualification) {
             $vedette_ui = new vedette_ui(new vedette_composee(vedette_composee::get_vedette_id_from_object($auteur_0["id_responsability_tu"], TYPE_TU_RESPONSABILITY), 'tu_authors'));
             $ptab_aut_tu = str_replace('!!vedette_author!!', $vedette_ui->get_form('role', $i, 'saisie_titre_uniforme'), $ptab_aut_tu);
         } else {
             $ptab_aut_tu = str_replace('!!vedette_author!!', "", $ptab_aut_tu);
         }
         $tu_auteurs .= $ptab_aut_tu;
     }
     $tu_authors_all_tpl = str_replace('!!max_aut0!!', $max_aut0, $tu_authors_all_tpl);
     $tu_authors_all_tpl = str_replace('!!authors_list0!!', $tu_auteurs, $tu_authors_all_tpl);
     // Interpretes
     $as = array_keys($this->responsabilites["responsabilites"], "1");
     $max_aut1 = count($as);
     $tu_auteurs = "";
     if ($max_aut1 == 0) {
         $max_aut1 = 1;
     }
     for ($i = 0; $i < $max_aut1; $i++) {
         $indice = $as[$i];
         $auteur_1 = $this->responsabilites["auteurs"][$indice];
         $auteur = new auteur($auteur_1["id"]);
         if ($value_deflt_fonction && $auteur_1["id"] == 0 && $i == 0) {
             $auteur_1["fonction"] = $value_deflt_fonction;
         }
         $ptab_aut_tu = $tu_authors_tpl;
         $ptab_aut_tu = str_replace('!!n!!', 1, $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!iaut!!', $i, $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!title!!', $msg["tu_interpreter_list"], $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!vedettetype!!', 'role_autre', $ptab_aut_tu);
         if ($i) {
             $ptab_aut_tu = str_replace('!!title_display!!', 'display:none', $ptab_aut_tu);
             $ptab_aut_tu = str_replace('!!bouton_add_display!!', 'display:none', $ptab_aut_tu);
         } else {
             $ptab_aut_tu = str_replace('!!title_display!!', 'display:block', $ptab_aut_tu);
             $ptab_aut_tu = str_replace('!!bouton_add_display!!', '', $ptab_aut_tu);
         }
         $ptab_aut_tu = str_replace('!!aut1_id!!', $auteur_1["id"], $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!aut1!!', htmlentities($auteur->isbd_entry, ENT_QUOTES, $charset), $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!f1_code!!', $auteur_1["fonction"], $ptab_aut_tu);
         $ptab_aut_tu = str_replace('!!f1!!', $fonction->table[$auteur_1["fonction"]], $ptab_aut_tu);
         if ($pmb_authors_qualification) {
             $vedette_ui = new vedette_ui(new vedette_composee(vedette_composee::get_vedette_id_from_object($auteur_1["id_responsability_tu"], TYPE_TU_RESPONSABILITY_INTERPRETER), 'tu_authors'));
             $ptab_aut_tu = str_replace('!!vedette_author!!', $vedette_ui->get_form('role_autre', $i, 'saisie_titre_uniforme'), $ptab_aut_tu);
         } else {
             $ptab_aut_tu = str_replace('!!vedette_author!!', "", $ptab_aut_tu);
         }
         $tu_auteurs .= $ptab_aut_tu;
     }
     $tu_authors_all_tpl = str_replace('!!max_aut1!!', $max_aut1, $tu_authors_all_tpl);
     $tu_authors_all_tpl = str_replace('!!authors_list1!!', $tu_auteurs, $tu_authors_all_tpl);
     $aut_link = new aut_link(AUT_TABLE_TITRES_UNIFORMES, $this->id);
     $titre_uniforme_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_titre_uniforme'), $titre_uniforme_form);
     $aut_pperso = new aut_pperso("tu", $this->id);
     $titre_uniforme_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!id!!', $this->id, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!action!!', $action, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!libelle!!', $libelle, $titre_uniforme_form);
     $select_oeuvre_type = new marc_select('oeuvre_type', 'oeuvre_type', $this->oeuvre_type, "", '', '', array(array('name' => 'data-form-name', 'value' => 'oeuvre_type')));
     $titre_uniforme_form = str_replace('!!oeuvre_type!!', $select_oeuvre_type->display, $titre_uniforme_form);
     $select_oeuvre_nature = new marc_select('oeuvre_nature', 'oeuvre_nature', $this->oeuvre_nature, "", '', '', array(array('name' => 'data-form-name', 'value' => 'oeuvre_nature')));
     $titre_uniforme_form = str_replace('!!oeuvre_nature!!', $select_oeuvre_nature->display, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!oeuvre_expression!!', $this->gen_oeuvre_expression_form(), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!other_link!!', $this->gen_other_link_form(), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!oeuvre_event!!', $this->gen_oeuvre_event_form(), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!authors!!', $tu_authors_all_tpl, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!aut_id!!', htmlentities($this->num_author, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!form!!', htmlentities($this->form, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!music_form_id!!', $this->form_marclist, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!music_form!!', $music_form->table[$this->form_marclist], $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!date!!', htmlentities($this->date, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!subject!!', htmlentities($this->subject, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!place!!', htmlentities($this->place, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!history!!', htmlentities($this->history, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!intended_audience!!', htmlentities($this->intended_audience, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!context!!', htmlentities($this->context, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!tonalite!!', htmlentities($this->tonalite, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!music_key_id!!', $this->tonalite_marclist, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!music_key!!', $music_key->table[$this->tonalite_marclist], $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!coordinates!!', htmlentities($this->coordinates, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!equinox!!', htmlentities($this->equinox, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!characteristic!!', htmlentities($this->characteristic, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!comment!!', htmlentities($this->comment, ENT_QUOTES, $charset), $titre_uniforme_form);
     /**
      * Gestion du selecteur de statut d'autorité
      */
     $titre_uniforme_form = str_replace('!!auth_statut_selector!!', authorities_statuts::get_form_for(AUT_TABLE_TITRES_UNIFORMES, $this->num_statut), $titre_uniforme_form);
     // auteur
     $tu_auteur_id = $this->num_author;
     if ($tu_auteur_id) {
         $tu_auteur = new auteur($tu_auteur_id);
     }
     $titre_uniforme_form = str_replace('!!aut_name!!', htmlentities($tu_auteur->display, ENT_QUOTES, $charset), $titre_uniforme_form);
     // complétude
     $intended_termination_id = $this->intended_termination;
     $select_0 = "";
     $select_1 = "";
     $select_2 = "";
     if ($intended_termination_id == 1) {
         $select_1 = "selected";
     } elseif ($intended_termination_id == 2) {
         $select_2 = "selected";
     } else {
         $select_0 = "selected";
     }
     $titre_uniforme_form = str_replace('!!intended_termination_0!!', htmlentities($select_0, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!intended_termination_1!!', htmlentities($select_1, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!intended_termination_2!!', htmlentities($select_2, ENT_QUOTES, $charset), $titre_uniforme_form);
     // distribution
     $distribution_form = $this->gen_input_selection($msg["aut_titre_uniforme_form_distribution"], "saisie_titre_uniforme", "distrib", $this->distrib, "", "saisie-80em");
     $titre_uniforme_form = str_replace("<!--\tDistribution instrumentale et vocale (pour la musique)\t-->", $distribution_form, $titre_uniforme_form);
     // reference
     $ref_num_form = $this->gen_input_selection($msg["aut_titre_uniforme_form_ref_numerique"], "saisie_titre_uniforme", "ref", $this->ref, "", "saisie-80em");
     $titre_uniforme_form = str_replace("<!--\tRéférence numérique (pour la musique)\t-->", $ref_num_form, $titre_uniforme_form);
     // subdivision
     $sub_form = $this->gen_input_selection($msg["aut_titre_uniforme_form_subdivision_forme"], "saisie_titre_uniforme", "subdiv", $this->subdiv, "", "saisie-80em");
     $titre_uniforme_form = str_replace('<!-- Subdivision de forme -->', $sub_form, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!remplace!!', $button_remplace, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!voir_notices!!', $button_voir, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!delete!!', $button_delete, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!page!!', $page, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!tu_import_denied!!', $import_denied_checked, $titre_uniforme_form);
     if ($thesaurus_concepts_active == 1) {
         $index_concept = new index_concept($this->id, TYPE_TITRE_UNIFORME);
         $titre_uniforme_form = str_replace('!!concept_form!!', $index_concept->get_form('saisie_titre_uniforme'), $titre_uniforme_form);
     } else {
         $titre_uniforme_form = str_replace('!!concept_form!!', "", $titre_uniforme_form);
     }
     if ($pmb_type_audit && $this->id && !$duplicate) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_TITRE_UNIFORME . "&object_id=" . $this->id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $titre_uniforme_form = str_replace('!!audit_bt!!', $bouton_audit, $titre_uniforme_form);
     print $titre_uniforme_form;
 }
Example #5
0
 function show_form()
 {
     global $msg;
     global $publisher_form;
     global $charset;
     global $pmb_type_audit;
     global $thesaurus_concepts_active;
     if ($this->id) {
         $action = "./autorites.php?categ=editeurs&sub=update&id={$this->id}";
         $libelle = $msg[148];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=editeurs&sub=replace&id={$this->id}\"'>";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=2&etat=aut_search&aut_type=publisher&aut_id={$this->id}\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
     } else {
         $action = './autorites.php?categ=editeurs&sub=update&id=';
         $libelle = $msg[145];
         $button_remplace = '';
         $button_delete = '';
     }
     $aut_link = new aut_link(AUT_TABLE_PUBLISHERS, $this->id);
     $publisher_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_editeur'), $publisher_form);
     $aut_pperso = new aut_pperso("publisher", $this->id);
     $publisher_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $publisher_form);
     $publisher_form = str_replace('!!libelle!!', $libelle, $publisher_form);
     $publisher_form = str_replace('!!action!!', $action, $publisher_form);
     $publisher_form = str_replace('!!id!!', $this->id, $publisher_form);
     $publisher_form = str_replace('!!ed_nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!ed_adr1!!', htmlentities($this->adr1, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!ed_adr2!!', htmlentities($this->adr2, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!ed_cp!!', htmlentities($this->cp, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!ed_ville!!', htmlentities($this->ville, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!ed_pays!!', htmlentities($this->pays, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!ed_web!!', htmlentities($this->web, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!remplace!!', $button_remplace, $publisher_form);
     $publisher_form = str_replace('!!voir_notices!!', $button_voir, $publisher_form);
     $publisher_form = str_replace('!!delete!!', $button_delete, $publisher_form);
     // pour retour a la bonne page en gestion d'autorites
     // &user_input=".rawurlencode(stripslashes($user_input))."&nbr_lignes=$nbr_lignes&page=$page
     global $user_input, $nbr_lignes, $page;
     $publisher_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $publisher_form);
     $publisher_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $publisher_form);
     $publisher_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $publisher_form);
     $publisher_form = str_replace('!!page!!', $page, $publisher_form);
     $publisher_form = str_replace('!!ed_comment!!', $this->ed_comment, $publisher_form);
     if ($thesaurus_concepts_active == 1) {
         $index_concept = new index_concept($this->id, TYPE_PUBLISHER);
         $publisher_form = str_replace('!!concept_form!!', $index_concept->get_form('saisie_editeur'), $publisher_form);
     } else {
         $publisher_form = str_replace('!!concept_form!!', "", $publisher_form);
     }
     if ($pmb_type_audit && $this->id) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_PUBLISHER . "&object_id=" . $this->id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $publisher_form = str_replace('!!audit_bt!!', $bouton_audit, $publisher_form);
     print $publisher_form;
 }
Example #6
0
 function show_form($type_autorite = 70)
 {
     global $msg;
     global $author_form;
     global $dbh;
     global $charset;
     global $pmb_type_audit;
     global $thesaurus_concepts_active;
     $liste_renvoyes = "";
     if ($this->id) {
         $action = "./autorites.php?categ=auteurs&sub=update&id={$this->id}";
         $libelle = $msg[199];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=auteurs&sub=replace&id={$this->id}\"'>";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=0&etat=aut_search&aut_id={$this->id}\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
         $requete = "SELECT * FROM authors WHERE ";
         $requete .= "author_see = '{$this->id}' ";
         $requete .= "ORDER BY author_name, author_rejete ";
         $res = @pmb_mysql_query($requete, $dbh);
         $nbr_lignes = pmb_mysql_num_rows($res);
         if ($nbr_lignes) {
             $liste_renvoyes = "<br /><div class='row'><h3>{$msg['aut_list_renv_titre']}</h3><table>";
             $parity = 1;
             while ($author_renvoyes = pmb_mysql_fetch_object($res)) {
                 $author_renvoyes->author_name = $author_renvoyes->author_name;
                 $author_renvoyes->author_rejete = $author_renvoyes->author_rejete;
                 if ($author_renvoyes->author_rejete) {
                     $author_entry = $author_renvoyes->author_name . ',&nbsp;' . $author_renvoyes->author_rejete;
                 } else {
                     $author_entry = $author_renvoyes->author_name;
                 }
                 if ($author_renvoyes->author_date) {
                     $author_entry .= "&nbsp;({$author_renvoyes->author_date})";
                 }
                 $link_auteur = "./autorites.php?categ=auteurs&sub=author_form&id={$author_renvoyes->author_id}";
                 if ($parity % 2) {
                     $pair_impair = "even";
                 } else {
                     $pair_impair = "odd";
                 }
                 $parity += 1;
                 $tr_javascript = " onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='{$pair_impair}'\" onmousedown=\"document.location='{$link_auteur}';\" ";
                 $liste_renvoyes .= "<tr class='{$pair_impair}' {$tr_javascript} style='cursor: pointer'>\n\t\t\t\t\t\t\t\t\t<td valign='top'>\n\t\t\t\t\t\t\t\t{$author_entry}\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>";
             }
             // fin while
             $liste_renvoyes .= "</table></div>";
         }
     } else {
         $action = './autorites.php?categ=auteurs&sub=update&id=';
         $libelle = $msg[207];
         $button_remplace = '';
         $button_delete = '';
     }
     // Si on est en modif ou non
     if (!$this->id) {
         $this->type = $type_autorite;
         $author_form = str_replace('!!dupliquer!!', "", $author_form);
     }
     // mise à jour de la zone type
     switch ($this->type) {
         case 71:
             $sel_coll = " SELECTED";
             // Si on est en modif ou non
             if ($this->id) {
                 $libelle = $msg["aut_modifier_coll"];
                 $bouton_dupliquer = "<input type='button' id='dupli_btn' value='" . $msg["aut_duplicate"] . "' class='bouton' onClick='unload_off();document.location=\"./autorites.php?categ=auteurs&sub=duplicate&type_autorite=" . $this->type . "&id=" . $this->id . "\"'/>";
                 $author_form = str_replace('!!dupliquer!!', $bouton_dupliquer, $author_form);
             } else {
                 $libelle = $msg["aut_ajout_collectivite"];
             }
             $completion_name = "collectivite_name";
             break;
         case 72:
             // Si on est en modif ou non
             if ($this->id) {
                 $libelle = $msg["aut_modifier_congres"];
                 $bouton_dupliquer = "<input type='button' id='dupli_btn' value='" . $msg["aut_duplicate"] . "' class='bouton' onClick='unload_off();document.location=\"./autorites.php?categ=auteurs&sub=duplicate&type_autorite=" . $this->type . "&id=" . $this->id . "\"'/>";
                 $author_form = str_replace('!!dupliquer!!', $bouton_dupliquer, $author_form);
             } else {
                 $libelle = $msg["aut_ajout_congres"];
             }
             $sel_congres = " SELECTED";
             $completion_name = "congres_name";
             break;
         default:
             $author_form = str_replace('!!display!!', "display:none", $author_form);
             $author_form = str_replace('!!dupliquer!!', "", $author_form);
             $sel_pp = " SELECTED";
             $completion_name = " ";
             break;
     }
     if ($this->import_denied == 1) {
         $import_denied_checked = "checked='checked'";
     } else {
         $import_denied_checked = "";
     }
     if ($pmb_type_audit && $this->id) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_AUTHOR . "&object_id=" . $this->id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $aut_link = new aut_link(AUT_TABLE_AUTHORS, $this->id);
     $author_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_auteur'), $author_form);
     $aut_link = new aut_link(AUT_TABLE_AUTHORS, $this->id);
     $author_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_auteur'), $author_form);
     $aut_pperso = new aut_pperso("author", $this->id);
     $author_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $author_form);
     $author_form = str_replace('!!id!!', $this->id, $author_form);
     $author_form = str_replace('!!action!!', $action, $author_form);
     $author_form = str_replace('!!libelle!!', $libelle, $author_form);
     $author_form = str_replace('!!author_nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!author_rejete!!', htmlentities($this->rejete, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!voir_id!!', $this->see, $author_form);
     $author_form = str_replace('!!voir_libelle!!', htmlentities($this->see_libelle, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!date!!', htmlentities($this->date, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!lieu!!', htmlentities($this->lieu, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!ville!!', htmlentities($this->ville, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!pays!!', htmlentities($this->pays, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!subdivision!!', htmlentities($this->subdivision, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!numero!!', htmlentities($this->numero, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!author_web!!', htmlentities($this->author_web, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!sel_pp!!', $sel_pp, $author_form);
     $author_form = str_replace('!!sel_coll!!', $sel_coll, $author_form);
     $author_form = str_replace('!!sel_congres!!', $sel_congres, $author_form);
     $author_form = str_replace('!!remplace!!', $button_remplace, $author_form);
     $author_form = str_replace('!!voir_notices!!', $button_voir, $author_form);
     $author_form = str_replace('!!delete!!', $button_delete, $author_form);
     $author_form = str_replace('!!liste_des_renvoyes_vers!!', $liste_renvoyes, $author_form);
     $author_form = str_replace('!!completion_name!!', $completion_name, $author_form);
     $author_form = str_replace('!!type_autorite!!', $this->type, $author_form);
     // pour retour à la bonne page en gestion d'autorités
     // &user_input=".rawurlencode(stripslashes($user_input))."&nbr_lignes=$nbr_lignes&page=$page
     global $user_input, $nbr_lignes, $page;
     $author_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $author_form);
     $author_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $author_form);
     $author_form = str_replace('!!nbr_lignes!!', "", $author_form);
     $author_form = str_replace('!!page!!', $page, $author_form);
     $author_form = str_replace('!!author_comment!!', $this->author_comment, $author_form);
     $author_form = str_replace('!!author_import_denied!!', $import_denied_checked, $author_form);
     $author_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $author_form);
     $author_form = str_replace('!!audit_bt!!', $bouton_audit, $author_form);
     if ($thesaurus_concepts_active == 1) {
         $index_concept = new index_concept($this->id, TYPE_AUTHOR);
         $author_form = str_replace('!!concept_form!!', $index_concept->get_form('saisie_auteur'), $author_form);
     } else {
         $author_form = str_replace('!!concept_form!!', "", $author_form);
     }
     print $author_form;
 }
Example #7
0
 function show_form()
 {
     global $msg;
     global $charset;
     global $serie_form;
     global $pmb_type_audit;
     if ($this->s_id) {
         $action = "./autorites.php?categ=series&sub=update&id={$this->s_id}";
         $libelle = $msg[337];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=series&sub=replace&id={$this->s_id}\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=10&etat=aut_search&aut_type=tit_serie&aut_id={$this->s_id}\"'>";
     } else {
         $action = './autorites.php?categ=series&sub=update&id=';
         $libelle = $msg[336];
         $button_remplace = '';
         $button_delete = '';
         $button_voir = "";
     }
     $aut_link = new aut_link(AUT_TABLE_SERIES, $this->s_id);
     $serie_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_serie'), $serie_form);
     $aut_pperso = new aut_pperso("serie", $this->s_id);
     $serie_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $serie_form);
     $serie_form = str_replace('!!id!!', $this->s_id, $serie_form);
     $serie_form = str_replace('!!libelle!!', $libelle, $serie_form);
     $serie_form = str_replace('!!action!!', $action, $serie_form);
     $serie_form = str_replace('!!id!!', $this->s_id, $serie_form);
     $serie_form = str_replace('!!serie_nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $serie_form);
     $serie_form = str_replace('!!remplace!!', $button_remplace, $serie_form);
     $serie_form = str_replace('!!voir_notices!!', $button_voir, $serie_form);
     $serie_form = str_replace('!!delete!!', $button_delete, $serie_form);
     // pour retour à la bonne page en gestion d'autorités
     // &user_input=".rawurlencode(stripslashes($user_input))."&nbr_lignes=$nbr_lignes&page=$page
     global $user_input, $nbr_lignes, $page;
     $serie_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $serie_form);
     $serie_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $serie_form);
     $serie_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $serie_form);
     $serie_form = str_replace('!!page!!', $page, $serie_form);
     if ($pmb_type_audit && $this->s_id) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_SERIE . "&object_id=" . $this->s_id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $serie_form = str_replace('!!audit_bt!!', $bouton_audit, $serie_form);
     print $serie_form;
 }
Example #8
0
 function show_form()
 {
     global $msg;
     global $titre_uniforme_form;
     global $charset;
     global $user_input, $nbr_lignes, $page;
     global $pmb_type_audit;
     if ($this->id) {
         $action = "./autorites.php?categ=titres_uniformes&sub=update&id={$this->id}";
         $libelle = $msg["aut_titre_uniforme_modifier"];
         $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' ";
         $button_remplace .= "onclick='unload_off();document.location=\"./autorites.php?categ=titres_uniformes&sub=replace&id={$this->id}\"'>";
         $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' ";
         $button_voir .= "onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=9&etat=aut_search&aut_type=titre_uniforme&aut_id={$this->id}\"'>";
         $button_delete = "<input type='button' class='bouton' value='{$msg['63']}' ";
         $button_delete .= "onClick=\"confirm_delete();\">";
     } else {
         $action = './autorites.php?categ=titres_uniformes&sub=update&id=';
         $libelle = $msg["aut_titre_uniforme_ajouter"];
         $button_remplace = '';
         $button_delete = '';
     }
     if ($this->import_denied == 1) {
         $import_denied_checked = "checked='checked'";
     } else {
         $import_denied_checked = "";
     }
     // remplacement de tous les champs du formulaire par les données
     $aut_link = new aut_link(AUT_TABLE_TITRES_UNIFORMES, $this->id);
     $titre_uniforme_form = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_titre_uniforme'), $titre_uniforme_form);
     $aut_pperso = new aut_pperso("tu", $this->id);
     $titre_uniforme_form = str_replace('!!aut_pperso!!', $aut_pperso->get_form(), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!id!!', $this->id, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!action!!', $action, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!libelle!!', $libelle, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!nom!!', htmlentities($this->name, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!aut_id!!', htmlentities($this->num_author, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!form!!', htmlentities($this->form, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!date!!', htmlentities($this->date, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!subject!!', htmlentities($this->subject, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!place!!', htmlentities($this->place, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!history!!', htmlentities($this->history, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!intended_audience!!', htmlentities($this->intended_audience, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!context!!', htmlentities($this->context, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!tonalite!!', htmlentities($this->tonalite, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!coordinates!!', htmlentities($this->coordinates, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!equinox!!', htmlentities($this->equinox, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!characteristic!!', htmlentities($this->characteristic, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!comment!!', htmlentities($this->comment, ENT_QUOTES, $charset), $titre_uniforme_form);
     // auteur
     $tu_auteur_id = $this->num_author;
     if ($tu_auteur_id) {
         $tu_auteur = new auteur($tu_auteur_id);
     }
     $titre_uniforme_form = str_replace('!!aut_name!!', htmlentities($tu_auteur->display, ENT_QUOTES, $charset), $titre_uniforme_form);
     // complétude
     $intended_termination_id = $this->intended_termination;
     $select_0 = "";
     $select_1 = "";
     $select_2 = "";
     if ($intended_termination_id == 1) {
         $select_1 = "selected";
     } elseif ($intended_termination_id == 2) {
         $select_2 = "selected";
     } else {
         $select_0 = "selected";
     }
     $titre_uniforme_form = str_replace('!!intended_termination_0!!', htmlentities($select_0, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!intended_termination_1!!', htmlentities($select_1, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!intended_termination_2!!', htmlentities($select_2, ENT_QUOTES, $charset), $titre_uniforme_form);
     // distribution
     $distribution_form = $this->gen_input_selection($msg["aut_titre_uniforme_form_distribution"], "saisie_titre_uniforme", "distrib", $this->distrib, "", "saisie-80em");
     $titre_uniforme_form = str_replace("<!--\tDistribution instrumentale et vocale (pour la musique)\t-->", $distribution_form, $titre_uniforme_form);
     // reference
     $ref_num_form = $this->gen_input_selection($msg["aut_titre_uniforme_form_ref_numerique"], "saisie_titre_uniforme", "ref", $this->ref, "", "saisie-80em");
     $titre_uniforme_form = str_replace("<!--\tRéférence numérique (pour la musique)\t-->", $ref_num_form, $titre_uniforme_form);
     // subdivision
     $sub_form = $this->gen_input_selection($msg["aut_titre_uniforme_form_subdivision_forme"], "saisie_titre_uniforme", "subdiv", $this->subdiv, "", "saisie-80em");
     $titre_uniforme_form = str_replace('<!-- Subdivision de forme -->', $sub_form, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!remplace!!', $button_remplace, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!voir_notices!!', $button_voir, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!delete!!', $button_delete, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!user_input_url!!', rawurlencode(stripslashes($user_input)), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!user_input!!', htmlentities($user_input, ENT_QUOTES, $charset), $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!nbr_lignes!!', $nbr_lignes, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!page!!', $page, $titre_uniforme_form);
     $titre_uniforme_form = str_replace('!!tu_import_denied!!', $import_denied_checked, $titre_uniforme_form);
     if ($pmb_type_audit && $this->id) {
         $bouton_audit = "&nbsp;<input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . AUDIT_TITRE_UNIFORME . "&object_id=" . $this->id . "', 'audit_popup', 700, 500, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" title=\"" . $msg['audit_button'] . "\" value=\"" . $msg['audit_button'] . "\" />&nbsp;";
     }
     $titre_uniforme_form = str_replace('!!audit_bt!!', $bouton_audit, $titre_uniforme_form);
     print $titre_uniforme_form;
 }