function get_form_select($id, $base_url) { global $msg, $charset, $authperso_form_select; global $user_query, $user_input, $page, $nbr_lignes; global $pmb_type_audit; global $thesaurus_concepts_active; $p_perso = new custom_parametres_perso("authperso", "authperso", $this->id, "./autorites.php?categ=authperso&sub=update&id_authperso=" . $this->id, $option_navigation, $option_visibilite); $authperso_fields = $p_perso->show_editable_fields($id); $authperso_field_tpl = "\t\n\t\t<div class='row'>\n\t\t\t<label class='etiquette'>!!titre!! </label>!!comment!!\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!aff!!\n\t\t</div>"; foreach ($authperso_fields['FIELDS'] as $field) { //printr($field); $field_tpl = $authperso_field_tpl; $field_tpl = str_replace("!!titre!!", $field['TITRE'], $field_tpl); $field_tpl = str_replace("!!aff!!", $field['AFF'], $field_tpl); $field_tpl = str_replace("!!comment!!", $field['COMMENT_DISPLAY'], $field_tpl); $tpl .= $field_tpl; } $button_remplace = "<input type='button' class='bouton' value='{$msg['158']}' onclick='unload_off();document.location=\"./autorites.php?categ=authperso&sub=replace&id_authperso=" . $this->id . "&id={$id}\"'>"; $button_voir = "<input type='button' class='bouton' value='{$msg['voir_notices_assoc']}' onclick='unload_off();document.location=\"./catalog.php?categ=search&mode=" . ($this->id + 1000) . "&etat=aut_search&aut_type=authperso&aut_id={$id}\"'>"; if ($pmb_type_audit && $id) { $bouton_audit = " <input class='bouton' type='button' onClick=\"openPopUp('./audit.php?type_obj=" . ($this->id + 1000) . "&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'] . "\" /> "; } $aut_link = new aut_link($this->id + 1000, $id); $authperso_form_select = str_replace('<!-- aut_link -->', $aut_link->get_form('saisie_authperso'), $authperso_form_select); // Indexation concept if ($thesaurus_concepts_active == 1) { $index_concept = new index_concept($id, TYPE_AUTHPERSO); $authperso_form_select = str_replace('<!-- index_concept_form -->', $index_concept->get_form('saisie_authperso'), $authperso_form_select); } $authperso_form_select = str_replace("!!libelle!!", $msg['authperso_form_titre_new'], $authperso_form_select); $authperso_form_select = str_replace("!!list_field!!", $tpl, $authperso_form_select); $authperso_form_select = str_replace("!!retour!!", "{$base_url}&action=", $authperso_form_select); $authperso_form_select = str_replace("!!action!!", "{$base_url}&action=update", $authperso_form_select); $authperso_form_select = str_replace("!!id_authperso!!", $this->id, $authperso_form_select); $authperso_form_select = str_replace("!!id!!", $id, $authperso_form_select); return $authperso_form_select; }