Exemple #1
0
$bul_cb_form = "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form) {\n\t\t{$num_exemplaire_rfid_test}\n\t\t{$num_exemplaire_test}\n\t\tif(form.noex.value.replace(/^\\s+|\\s+\$/g, '').length == 0) {\n\t\t\talert(\"{$msg['292']}\");\n\t\t\tdocument.forms['addex'].elements['noex'].focus();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n-->\n</script>\n<form class='form-{$current_module}' name='addex' method='post' action='./catalog.php?categ=serials&sub=bulletinage&action=expl_form&bul_id=!!bul_id!!&expl_id=0'>\n<div class='row'>\n\t<h3>{$msg['290']}</h3>\n\t</div>\n<!--\tContenu du form\t-->\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t!!etiquette!!\n\t\t</div>\n\t<div class='row'>\n\t\t!!saisie_num_expl!!\n\t\t</div>\n\t</div>\n<div class='row'>\n\t!!btn_ajouter!!\n\t<input type='button' class='bouton' value=' {$msg['explnum_ajouter_doc']} ' onClick=\"document.location='./catalog.php?categ=serials&sub=bulletinage&action=explnum_form&bul_id=!!bul_id!!&explnum_id=0'\">\n\t!!btn_print_ask!!\n\t</div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['addex'].elements['noex'].focus();\n</script>\n";
//	----------------------------------
//	$bul_expl_form :form de saisie/modif exemplaire de bulletin
if ($pmb_rfid_activate == 1 && $pmb_rfid_serveur_url) {
    if ($pmb_rfid_driver == "ident") {
        $script_erase = "init_rfid_erase(rfid_ack_erase);";
    } else {
        $script_erase = "rfid_ack_erase(1);";
    }
    $rfid_script_catalog = "\n\t\t{$rfid_js_header}\n\t\t<script type='text/javascript'>\n\t\t\tvar flag_cb_rfid=0;\n\t\t\tflag_program_rfid_ask=0;\n\t\t\tsetTimeout(\"init_rfid_read_cb(0,f_expl);\",0);;\n\t\t\tnb_part_readed=0;\n\n\t\t\tfunction f_expl(cb) {\n\t\t\t\tnb_part_readed=cb.length;\n\t\t\t\tif(flag_program_rfid_ask==1) {\n\t\t\t\t\tprogram_rfid();\n\t\t\t\t\tflag_cb_rfid=0;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(cb.length==0) {\n\t\t\t\t\tflag_cb_rfid=1;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!cb[0]) {\n\t\t\t\t\tflag_cb_rfid=0;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(document.getElementById('f_ex_cb').value\t== cb[0]) flag_cb_rfid=1;\n\t\t\t\telse  flag_cb_rfid=0;\n\t\t\t\tif(document.getElementById('f_ex_cb').value\t== '') {\n\t\t\t\t\tflag_cb_rfid=0;\n\t\t\t\t\tdocument.getElementById('f_ex_cb').value=cb[0];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction script_rfid_encode() {\n\t\t\t\tif(!flag_cb_rfid && flag_rfid_active) {\n\t\t\t\t\tvar confirmed = confirm(\"" . addslashes($msg['rfid_programmation_confirmation']) . "\");\n\t\t\t\t\tif (confirmed) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction program_rfid_ask() {\n\t\t\t\tif (flag_semaphore_rfid_read==1) {\n\t\t\t\t\tflag_program_rfid_ask=1;\n\t\t\t\t} else {\n\t\t\t\t\tprogram_rfid();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction program_rfid() {\n\t\t\t\tflag_semaphore_rfid=1;\n\t\t\t\tflag_program_rfid_ask=0;\n\t\t\t\tvar nbparts = document.getElementById('f_ex_nbparts').value;\n\t\t\t\tif(nb_part_readed!= nbparts) {\n\t\t\t\t\tflag_semaphore_rfid=0;\n\t\t\t\t\talert(\"" . addslashes($msg['rfid_programmation_nbpart_error']) . "\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t{$script_erase}\n\t\t\t}\n\n\t\t\tfunction rfid_ack_erase(ack) {\n\t\t\t\tvar cb = document.getElementById('f_ex_cb').value;\n\t\t\t\tvar nbparts = document.getElementById('f_ex_nbparts').value;\n\t\t\t\tif(!nbparts)nbparts=1;\n\t\t\t\tinit_rfid_write_etiquette(cb,nbparts,rfid_ack_write);\n\n\t\t\t}\n\n\t\t\tfunction rfid_ack_write(ack) {\n\t\t\t\tinit_rfid_antivol_all(1,rfid_ack_antivol_actif);\n\t\t\t}\n\n\t\t\tfunction rfid_ack_antivol_actif(ack) {\n\t\t\t\talert (\"" . addslashes($msg['rfid_etiquette_programmee_message']) . "\");\n\t\t\t\tflag_semaphore_rfid=0;\n\t\t\t}\n\n\t\t</script>\n";
    $rfid_program_button = "<input type=button class='bouton' value=' " . $msg['rfid_configure_etiquette_button'] . " ' onClick=\"program_rfid_ask();\">";
} else {
    $rfid_script_catalog = "";
    $rfid_program_button = "";
}
$bul_expl_form = jscript_unload_question();
$bul_expl_form .= "\n{$rfid_script_catalog}\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form) {\n\t\t!!questionrfid!!\n\t\tif((form.f_ex_cb.value.replace(/^\\s+|\\s+\$/g, '').length == 0) || (form.expl_cote.value.replace(/^\\s+|\\s+\$/g, '').length == 0)) {\n\t\t\talert(\"{$msg['304']}\");\n\t\t\treturn false;\n\t\t}\n\t\tif (typeof(form.expl_codestat) == 'undefined') {\n\t\t\talert(\"" . $msg["expl_codestat_mandatory"] . "\");\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn check_form();\n\t}\n\tfunction calcule_section(selectBox) {\n\t\tfor (i=0; i<selectBox.options.length; i++) {\n\t\t\tid=selectBox.options[i].value;\n\t\t\tlist=document.getElementById(\"docloc_section\"+id);\n\t\t\tlist.style.display=\"none\";\n\t\t}\n\n\t\tid=selectBox.options[selectBox.selectedIndex].value;\n\t\tlist=document.getElementById(\"docloc_section\"+id);\n\t\tlist.style.display=\"block\";\n\t}\n-->\n</script>\n<form class='form-{$current_module}' name='expl' id='expl-form' method='post' action='!!action!!'>\n<h3>{$msg['300']}</h3>\n<div class='form-contenu'>\n<div class='row'>\n\t<div class='colonne3'>\n\t\t<!-- code barre -->\n\t\t<label class='etiquette' for='f_ex_cb'>{$msg['291']}</label>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-20emr' id=\"f_ex_cb\" value='!!cb!!' name='f_ex_cb' readonly>\n\t\t\t<input type=button class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./catalog/expl/setcb.php', 'ex_getcb', 220, 100, -2, -2, 'toolbar=no')\">" . (file_exists("print_cb.php") ? "<input type='button' value='" . htmlentities($msg["print_print"], ENT_QUOTES, $charset) . "' onClick='h=new http_request(); h.request(\"print_cb.php?cb=\"+document.getElementById(\"f_ex_cb\").value, false,\"\", false, function(){},function(){},\"impr_cb\")' class='bouton'/>" : "") . "\n\t\t\t</div>\n\t\t</div>\n</div>\n<div class='row'>\n\t<div class='colonne3'>\n\t\t<!-- cote -->\n\t\t\t<label class='etiquette' for='f_ex_cote'>{$msg['296']}</label>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='text' id=\"f_ex_cote\" name='expl_cote' value='!!cote!!' />\n\t\t\t</div>\n\t\t</div>\n\t<div class='colonne3'>\n\t\t<!-- type document -->\n\t\t<label class='etiquette' for='f_ex_typdoc'>{$msg['294']}</label>\n\t\t<div class='row'>\n\t\t\t!!type_doc!!\n\t\t\t</div>\n\t\t</div>\n\t<div class='colonne3'>\n\t\t<!-- Nombre de parties -->\n\t\t<label class='etiquette' for='f_ex_nbparts'>" . $msg["expl_nbparts"] . "</label>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-5em' id=\"f_ex_nbparts\" value='!!nbparts!!' name='f_ex_nbparts' >\n\t\t\t</div>\n\t\t</div>\n\t</div>\n<div class='row'>\n\t<div class='colonne3'>\n\t\t<!-- localisation -->\n\t\t<label class='etiquette' for='f_ex_location'>{$msg['298']}</label>\n\t\t<div class='row'>\n\t\t\t!!localisation!!\n\t\t\t</div>\n\t\t</div>\n\n\t<div class='colonne3'>\n\t\t<!-- section -->\n\t\t<label class='etiquette' for='f_ex_section'>{$msg['295']}</label>\n\t\t<div class='row'>\n\t\t\t!!section!!\n\t\t\t</div>\n\t\t</div>\n\n\t<div class='colonne3'>\n\t\t<!-- propriétaire -->\n\t\t<label class='etiquette' for='f_ex_owner'>{$msg['651']}</label>\n\t\t<div class='row'>\n\t\t\t!!owner!!\n\t\t\t</div>\n\t\t</div>\n\t</div>\n<div class='row'>\n\t<div class='colonne3'>\n\t\t<!-- statut -->\n\t\t<label class='etiquette' for='f_ex_statut'>{$msg['297']}</label>\n\t\t<div class='row'>\n\t\t\t!!statut!!\n\t\t\t</div>\n\t\t</div>\n\t<div class='colonne3'>\n\t\t<!-- code stat -->\n\t\t<label class='etiquette' for='f_ex_cstat'>{$msg['299']}</label>\n\t\t<div class='row'>\n\t\t\t!!codestat!!\n\t\t\t</div>\n\t\t</div>\n\t!!type_antivol!!\n\t</div>\n\n<!-- notes -->\n<div class='row'>\n\t<div class='colonne1'>\n\t\t<label class='etiquette' for='f_ex_note'>{$msg['expl_message']}</label>\n\t</div>\n</div>\n<div class='row'>\n\t<div class='colonne1'>\n\t\t<textarea name='expl_note' id='f_ex_note' class='saisie-80em'>!!note!!</textarea>\n\t</div>\n</div>\n<div class='row'>\n\t<div class='colonne1'>\n\t\t<label class='etiquette' for='f_ex_comment'>{$msg['expl_zone_comment']}</label>\n\t</div>\n</div>\n<div class='row'>\n\t<div class='colonne1'>\n\t\t<textarea name='f_ex_comment' id='f_ex_comment' class='saisie-80em'>!!comment!!</textarea>\n\t</div>\n</div>\n\n<!-- prix et date -->\n<div class='row'>\n\t<div class='colonne3'><label class='etiquette' for='f_ex_prix'>{$msg['4050']}</label></div>\n\t<div class='colonne3'>\n\t\t<div class='colonne2'><!-- msg_exp_cre_date --></div>\n\t\t<div class='colonne2'><!-- msg_exp_upd_date --></div>\n\t</div>\n\t<div class='colonne3'>\n\t\t<div class='colonne2'><!-- msg_exp_filing_date --></div>\n\t\t<div class='colonne2'><!-- msg_exp_return_date --></div>\n\t</div>\n</div>\n<div class='row'>\n\t<div class='colonne3'><input type='text' class='text' name='expl_prix' id='f_ex_prix' value=\"!!prix!!\" /></div>\n\t<div class='colonne3'>\n\t\t<div class='colonne2'><!-- exp_cre_date --></div>\n\t\t<div class='colonne2'><!-- exp_upd_date --></div>\n\t</div>\n\t<div class='colonne3'>\n\t\t<div class='colonne2'><!-- exp_filing_date --></div>\n\t\t<div class='colonne2'><!-- exp_return_date --></div>\n\t</div>\n</div>\n<!-- index_concept_form -->\n<div class='row'></div>\n!!champs_perso!!\n<div class='row'></div>\n!!perio_circ_tpl!! \n<div class='row'></div>\n</div>\n<div class='row'>\n\t\t<br />\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value=' {$msg['76']} ' onClick=\"unload_off();history.go(-1);\" />\n\t\t!!bt_modifier!!\n\t\t{$rfid_program_button}\n\t\t!!bt_dupliquer!!\n\t\t!!link_audit!!\n\t</div>\n\t<div class='right'>!!del!!</div>\n\t\t<!-- chams de gestion -->\n\t\t<input type=\"hidden\" name=\"expl_bulletin\" value=\"!!bul_id!!\">\n\t\t<input type=\"hidden\" name=\"id_form\" value=\"!!id_form!!\">\n\t\t<input type=\"hidden\" name=\"org_cb\" value=\"!!org_cb!!\">\n\t\t<input type=\"hidden\" name=\"expl_id\" value=\"!!expl_id!!\">\n</div>\n<div class='row'></div>\n</form>\n<script type=\"text/javascript\">\n\t<!--\n\tdocument.forms['expl'].elements['expl_cote'].focus();\n\n\tfunction confirm_expl_delete() {\n\t\tphrase = \"{$msg[confirm_suppr_serial_expl]}\";\n\t\tresult = confirm(phrase);\n\t\tif(result) {\n\t\t\tunload_off();\n\t\t\tdocument.location = './catalog.php?categ=serials&sub=bulletinage&action=expl_delete&bul_id=!!bul_id!!&expl_id=!!expl_id!!';\n\t\t}\n\t}\n\t-->\n</script>\n";
$serial_edit_access = "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.user_query.value.replace(/^\\s+|\\s+\$/g, '').length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['141']}\");\n\t\t\t\tform.user_query.focus();\n\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}\n-->\n</script>\n<form class='form-{$current_module}' name='serial_search' method='post' action='./edit.php?categ=serials&sub=!!etat!!'>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_cb'>!!message!!</label>\n\t</div>\n\t<div class='row'>\n\t\t<input class='saisie-80em' id='user_query' type='text' name='user_query' value='!!user_query!!' />\n\t</div>\n\t</div>\n<div class='row'>\n\t<input class='bouton' type='submit' value='{$msg['89']}' onClick='return test_form(this.form)' />\n\t</div>\n</form>\n<script type=\"text/javascript\">\n\tdocument.forms['serial_search'].elements['user_query'].focus();\n</script>\n";
$serial_edit_access = str_replace('!!user_query!!', htmlentities(stripslashes($user_query), ENT_QUOTES, $charset), $serial_edit_access);
$serial_list_tmpl = "\n<h1>{$msg['1152']} \"<strong>!!cle!!</strong>\"</h1>\n<table border='0' width='100%'>\n!!list!!\n</table>\n<div class='row'>\n!!nav_bar!!\n</div>\n";
// $perio_replace : form remplacement periodique
$perio_replace = "\n<form class='form-{$current_module}' name='perio_replace' method='post' action='./catalog.php?categ=serials&sub=serial_replace&serial_id=!!serial_id!!'>\n<h3>{$msg['159']} !!old_perio_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' value='' name='perio_libelle' readonly>\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=perio&caller=perio_replace&param1=by&param2=perio_libelle&no_display=!!serial_id!!', 'select_perio', 600, 400, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.perio_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' value=''>\n\t</div>\n\t!!perio_replace_categories!!\n</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"history.go(-1);\">\n\t<input type='submit' class='bouton' value='{$msg['159']}'>\n\t</div>\n</form>\n";
// $bulletin_replace : form remplacement bulletin
$bulletin_replace = "\n<form class='form-{$current_module}' name='bulletin_replace' method='post' action='./catalog.php?categ=serials&sub=bulletin_replace&serial_id=!!serial_id!!&bul_id=!!bul_id!!'>\n<h3>{$msg['159']} !!old_bulletin_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' value='' name='bulletin_libelle' readonly>\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=bulletin&caller=bulletin_replace&param1=by&param2=bulletin_libelle&no_display=!!bul_id!!', 'select_bulletin', 600, 500, -2, -2, 'toolbar=no, dependent=yes, resizable=yes, scrollbars=yes')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.bulletin_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' value=''>\n\t</div>\n\t<div class='row'>\n\t!!del_depouillement!!\n\t</div>\n\t!!bulletin_replace_categories!!\n</div>\n\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"history.go(-1);\">\n\t<input type='submit' class='bouton' value='{$msg['159']}'>\n\t</div>\n</form>\n";
//	----------------------------------
//	$bul_expl_form1 :form de saisie/modif exemplaire bulletinage
if ($pmb_rfid_activate == 1 && $pmb_rfid_serveur_url) {
    if ($pmb_rfid_driver == "ident") {
        $script_erase = "init_rfid_erase(rfid_ack_erase);";
    } else {
        $script_erase = "rfid_ack_erase(1);";
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: authperso.tpl.php,v 1.10 2015-11-04 15:25:01 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$authperso_list_tpl = "\t\n<h1>" . htmlentities($msg["admin_authperso"], ENT_QUOTES, $charset) . "</h1>\t\t\t\n<table>\n\t<tr>\t\t\t\n\t\t<th>\t" . htmlentities($msg["admin_authperso_name"], ENT_QUOTES, $charset) . "\t\t\t\n\t\t</th> \t\t\n\t\t<th>\t" . htmlentities($msg["admin_authperso_action"], ENT_QUOTES, $charset) . "\t\t\t\n\t\t</th> \t\t\t \t\t\t\n\t</tr>\t\t\t\t\t\t\n\t!!list!!\t\t\t\n</table> \t\t\t\n<input type='button' class='bouton' name='add_button' value='" . htmlentities($msg["admin_authperso_add"], ENT_QUOTES, $charset) . "' \n\tonclick=\"document.location='./admin.php?categ=authorities&sub=authperso&auth_action=form'\" />\t\n";
$authperso_list_line_tpl = "\n<tr  class='!!odd_even!!' onmouseout=\"this.className='!!odd_even!!'\" onmouseover=\"this.className='surbrillance'\">\t\n\t<td valign='top' style=\"cursor: pointer\"  onmousedown=\"document.location='./admin.php?categ=authorities&sub=authperso&auth_action=form&id_authperso=!!id!!';\" >\t\t\t\t\n\t\t!!name!!\n\t</td> \n\t<td valign='top'>\t\t\t\t\n\t\t<input type='button' class='bouton' value='" . $msg['admin_authperso_edition'] . "'  onclick=\"document.location='./admin.php?categ=authorities&sub=authperso&auth_action=edition&id_authperso=!!id!!'\"  />\n\t</td> \t\t\n\t\n</tr> \t\n";
$authperso_form_tpl = "\t\t\n<script type='text/javascript'>\n\tfunction test_form(form){\n\t\tif((form.name.value.length == 0) )\t\t{\n\t\t\talert('" . $msg["admin_authperso_name_error"] . "');\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n</script>\n<h1>!!msg_title!!</h1>\t\t\n<form class='form-" . $current_module . "' id='authperso' name='authperso'  method='post' action=\"admin.php?categ=authorities&sub=authperso\" >\n\n\t<input type='hidden' name='auth_action' id='auth_action' />\n\t<input type='hidden' name='id_authperso' id='id_authperso' value='!!id_authperso!!'/>\n\t<div class='form-contenu'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='name'>" . $msg['admin_authperso_form_name'] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-50em' name='name' id='name' value='!!name!!' />\n\t\t</div>\t\t\t\t\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='comment'>" . $msg['admin_authperso_form_comment'] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<textarea type='text' name='comment' id='comment' class='saisie-50em' rows='4' cols='50' >!!comment!!</textarea>\n\t\t</div>\n\t\t<div class='row'> \n\t\t</div>\n\t</div>\t\n\t<div class='row'>\t\n\t\t<div class='left'>\n\t\t\t<input type='button' class='bouton' value='" . $msg['admin_authperso_save'] . "' onclick=\"document.getElementById('auth_action').value='save';if (test_form(this.form)) this.form.submit();\" />\n\t\t\t<input type='button' class='bouton' value='" . $msg['admin_authperso_exit'] . "'  onclick=\"document.location='./admin.php?categ=authorities&sub=authperso'\"  />\n\t\t</div>\n\t\t<div class='right'>\n\t\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\t\t\n";
$authperso_form_edition_tpl = "\t\t\n<script type='text/javascript'>\n\tfunction test_form(form){\n\t\t\n\t\treturn true;\n\t}\n</script>\n<h1>!!msg_title!!</h1>\t\t\n<form class='form-" . $current_module . "' id='authperso_edition' name='authperso_edition'  method='post' action=\"admin.php?categ=authorities&sub=authperso\" >\n\n\t<input type='hidden' name='action' id='action' />\n\t<input type='hidden' name='id_authperso' id='id_authperso' value='!!id_authperso!!'/>\n\t<div class='form-contenu'>\t\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='authperso_tpl_form'>" . $msg['admin_authperso_tpl_form'] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<table width=100%>\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<th></th><th>" . $msg["parperso_field_name"] . "</th><th>" . $msg["parperso_field_title"] . "</th><th>" . $msg["parperso_input_type"] . "</th><th>" . $msg["parperso_data_type"] . "</th>\n\t\t\t\t</tr>\t\n\t\t\t\t!!fields_list!!\n\t\t\t\t\n\t\t\t</table>\n\t\t</div>\n\t\n\t\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='authperso_tpl_form'>" . $msg['admin_authperso_tpl_form'] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<textarea type='text' name='authperso_tpl_form' id='authperso_tpl_form' class='saisie-50em' rows='5' cols='80' >!!authperso_tpl_form!!</textarea>\n\t\t</div>\n\t\t<div class='row'> \n\t\t</div>\n\t</div>\t\n\t<div class='row'>\t\n\t\t<div class='left'>\n\t\t\t<input type='button' class='bouton' value='" . $msg['admin_authperso_save'] . "' onclick=\"document.getElementById('action').value='save_edition';if (test_form(this.form)) this.form.submit();\" />\n\t\t\t<input type='button' class='bouton' value='" . $msg['admin_authperso_exit'] . "'  onclick=\"document.location='./admin.php?categ=authorities&sub=authperso'\"  />\n\t\t</div>\n\t\t<div class='right'>\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\t\t\n";
$authperso_form_edition_field_tpl = "\n<tr class='{$pair_impair}' style='cursor: pointer' {$tr_javascript}>\n\t<td>\n\t\t<input type='button' class='bouton_small' value='-' onClick='document.location=\"" . $base_url . "&action=up&id=" . $r->idchamp . "\"'/></a>\n\t\t<input type='button' class='bouton_small' value='+' onClick='document.location=\"" . $base_url . "&action=down&id=" . $r->idchamp . "\"'/>\n\t</td>\n\t<td><b>!!name!!</b></td>\n\t<td>!!>titre!!</td>\n\t<td>!!type!!</td>\n\t<td>!!datatype!!</td>\n</tr>\n";
$authperso_form = jscript_unload_question() . "\n<script type='text/javascript' src='./javascript/ajax.js'></script>\n<script type='text/javascript'>\n\trequire(['dojo/ready', 'apps/pmb/gridform/FormEdit'], function(ready, FormEdit){\n\t     ready(function(){\n\t     \tnew FormEdit();\n\t     });\n\t});\n</script>\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form){\n\t\tif(form.ed_nom.value.length == 0){\n\t\t\talert(\"{$msg['144']}\");\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=authperso&sub=delete&id_authperso=!!id_authperso!!&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else{\n            //document.forms['saisie_editeur'].elements['ed_nom'].focus();\n        }\n    }\n\tfunction check_link(id) {\n\t\tw=window.open(document.getElementById(id).value);\n\t\tw.focus();\n\t}\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_authperso' name='saisie_authperso' method='post' action='!!action!!' onSubmit=\"return false\" >\n<div class='left'><h3>!!libelle!!</h3></div>\n<div class='right'>";
$authperso_form .= '
<!-- Selecteur de statut -->
    <label class="etiquette" for="authority_statut">' . $msg['authorities_statut_label'] . '</label>
     !!auth_statut_selector!!
';
if ($PMBuserid == 1 && $pmb_form_authorities_editables == 1) {
    $authperso_form .= "<input type='button' class='bouton_small' value='" . $msg["authorities_edit_format"] . "' id=\"bt_inedit\"/>";
}
if ($pmb_form_authorities_editables == 1) {
    $authperso_form .= "<input type='button' class='bouton_small' value=\"" . $msg["authorities_origin_format"] . "\" id=\"bt_origin_format\"/>";
}
$authperso_form .= "\n</div>\n<div class='form-contenu'>\n\t<div id='zone-container'>\n\t\t!!list_field!!\n\t\t<!-- index_concept_form -->\n\t\t<!-- aut_link -->\n\t</div>\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=authperso&sub=reach&id_authperso=!!id_authperso!!&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"unload_off(); this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t</div>\n</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\t//document.forms['saisie_editeur'].elements['ed_nom'].focus();\n</script>\n";
$authperso_form_select = jscript_unload_question() . "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.ed_nom.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['144']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=authperso&sub=delete&id_authperso=!!id_authperso!!&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else{\n            //document.forms['saisie_editeur'].elements['ed_nom'].focus();\n        }\n    }\n\tfunction check_link(id) {\n\t\tw=window.open(document.getElementById(id).value);\n\t\tw.focus();\n\t}\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_authperso' name='saisie_authperso' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\t\t!!list_field!!\n\t\t<!-- index_concept_form -->\n\t\t<!-- aut_link -->\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='!!retour!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"unload_off(); this.form.submit();\" />\n\n\t</div>\n\t<div class='right'>\n\t</div>\n</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\t//document.forms['saisie_editeur'].elements['ed_nom'].focus();\n</script>\n";
// $authperso_replace : form remplacement
$authperso_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='authperso_replace' method='post' action='./autorites.php?categ=authperso&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!old_authperso_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' id='authperso_libelle' name='authperso_libelle' value=\"\" completion=\"authpersos\" autfield=\"by\" autexclude=\"!!id!!\"\n    \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=authperso&caller=authperso_replace&param1=by&param2=authperso_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=authperso&caller=authperso_replace&authperso_id=!!id_authperso!!&p1=by&p2=authperso_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.authperso_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' id='by' value=''>\n\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=authperso&sub=authperso_form&id_authperso=!!id_authperso!!&id=!!id!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['authperso_replace'].elements['authperso_libelle'].focus();\n</script>\n";
Exemple #3
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: collections.tpl.php,v 1.24 2014-07-30 09:54:05 apetithomme Exp $
// templates pour gestion des autorités collections
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes, width={$selector_x_size}, height={$selector_y_size}, resizable=yes, scrollbars=yes";
//	----------------------------------
// $collection_form : form saisie collection
$collection_form = jscript_unload_question() . "\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.collection_nom.value.length == 0) {\n\t\t\talert(\"{$msg['166']}\");\n\t\t\treturn false;\n\t\t}\n\t\tif(form.ed_id.value == 0) {\n\t\t\talert(\"{$msg['172']}\");\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='autorites.php?categ=collections&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else\n            document.forms['saisie_collection'].elements['collection_nom'].focus();\n    }\nfunction check_link(id) {\n\tw=window.open(document.getElementById(id).value);\n\tw.focus();\n}\n-->\n</script>\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' id='saisie_collection' name='saisie_collection' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\n<!-- nom -->\n<div class='colonne2'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_nom'>{$msg['714']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' size='40' name='collection_nom' value=\"!!collection_nom!!\" />\n\t\t</div>\n\t</div>\n<!-- issn -->\n<div class='colonne_suite'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_issn'>{$msg['165']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-20em' name='issn' value=\"!!issn!!\" maxlength='50' />\n\t\t</div>\n\t</div>\n\n<!-- edparent -->\n<div class='row'>\n\t<label class='etiquette' for='form_edparent'>{$msg['164']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-50emr' id='ed_libelle' name='ed_libelle' value=\"!!ed_libelle!!\" completion=\"publishers\" autfield=\"ed_id\" autexclude=\"!!id!!\"\n    onkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=editeur&caller=saisie_collection&p1=ed_id&p2=ed_libelle&p3=dcoll_id&p4=dcoll_lib&p5=dsubcoll_id&p6=dsubcoll_lib', 'select', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=editeur&caller=saisie_collection&p1=ed_id&p2=ed_libelle&p3=dcoll_id&p4=dcoll_lib&p5=dsubcoll_id&p6=dsubcoll_lib', 'select', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.ed_libelle.value=''; this.form.ed_id.value='0'; \" />\n\t<input type='hidden' name='ed_id' id='ed_id' value='!!ed_id!!' />\n\t<input type='hidden' name='dcoll_id' />\n\t<input type='hidden' name='dcoll_lib' />\n\t<input type='hidden' name='dsubcoll_id' />\n\t<input type='hidden' name='dsubcoll_lib' />\n\t</div>\n\n<!-- web -->\n<div class='row'>\n\t<label class='etiquette' for='form_web'>{$msg['147']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' name='collection_web' id='collection_web' value=\"!!collection_web!!\" maxlength='255' />\n\t<input class='bouton' type='button' onClick=\"check_link('collection_web')\" title='{$msg['CheckLink']}' value='{$msg['CheckButton']}' />\n</div>\n\n<!-- Commentaire -->\n<div class='row'>\n\t<label class='etiquette' for='comment'>{$msg['collection_comment']}</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='comment' name='comment' cols='62' rows='4' wrap='virtual'>!!comment!!</textarea>\n</div>\n!!concept_form!!\n!!aut_pperso!!\n<!-- aut_link -->\n</div>\n\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=collections&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['saisie_collection'].elements['collection_nom'].focus();\n</script>\n";
//	----------------------------------
// $sub_collection_form : form saisie sous collection
$sub_collection_form = jscript_unload_question() . "\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n<!--\nfunction test_form(form) {\n\tif(form.collection_nom.value.length == 0) {\n\t\talert(\"{$msg['166']}\");\n\t\treturn false;\n\t}\n\tif(form.coll_id.value == 0) {\n\t\talert(\"{$msg['180']}\");\n\t\treturn false;\n\t}\n\tunload_off();\n\treturn true;\n}\n\nfunction confirm_delete() {\n\tresult = confirm(\"{$msg[confirm_suppr]}\");\n    if(result) {\n\t\tunload_off();\n\t\tdocument.location='./autorites.php?categ=souscollections&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t} else\n\t\tdocument.forms['saisie_sub_collection'].elements['collection_nom'].focus();\n}\n\nfunction check_link(id) {\n\tw=window.open(document.getElementById(id).value);\n\tw.focus();\n}\n-->\n</script>\n<form class='form-{$current_module}' name='saisie_sub_collection' method='post' action='!!action!!'>\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\t<!-- nom -->\n\t<div class='colonne2'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='form_nom'>{$msg['67']}</label>\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-30em' size='40' name='collection_nom' value=\"!!collection_nom!!\" />\n\t\t\t</div>\n\t\t</div>\n\t<!-- issn -->\n\t<div class='colonne_suite'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='form_issn'>{$msg['165']}</label>\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-20em' name='issn' value=\"!!issn!!\" maxlength='50' />\n\t\t\t</div>\n\t\t</div>\n\t<div class='row'></div>\n\t<!-- collparent -->\n\t<div class='colonne2'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='form_collparent'>{$msg['179']}</label>\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-30emr' size='34' name='coll_libelle' readonly value=\"!!coll_libelle!!\" />\n\t\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=collection&caller=saisie_sub_collection&p1=ed_id&p2=ed_libelle&p3=coll_id&p4=coll_libelle&p5=dsubcoll_id&p6=dsubcoll_lib', 'select_coll', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.coll_libelle.value=''; this.form.ed_libelle.value=''; this.form.coll_id.value='0'; \" />\n\t\t\t<input type='hidden' name='coll_id' value='!!coll_id!!' />\n\t\t\t<input type='hidden' name='dsubcoll_id' />\n\t\t\t<input type='hidden' name='dsubcoll_lib' />\n\t\t\t</div>\n\t        </div>        \n\t<!-- colledparent -->\n\t<div class='colonne_suite'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='form_colledparent'>{$msg['164']}</label>\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-30emr' size='34' name='ed_libelle' readonly value=\"!!ed_libelle!!\" />\n\t\t\t<input type='hidden' name='ed_id' value='!!ed_id!!' />\n\t\t\t</div>\n\t\t</div>\n<!-- web -->\n<div class='row'>\n\t<label class='etiquette' for='form_web'>{$msg['147']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' name='subcollection_web' id='subcollection_web' value=\"!!subcollection_web!!\" />\n\t<input class='bouton' type='button' onClick=\"check_link('subcollection_web')\" title='{$msg['CheckLink']}' value='{$msg['CheckButton']}' />\n</div>\n\n<!-- Commentaire -->\n<div class='row'>\n\t<label class='etiquette' for='comment'>{$msg['subcollection_comment']}</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='comment' name='comment' cols='62' rows='4' wrap='virtual'>!!comment!!</textarea>\n</div>\n!!concept_form!!\n!!aut_pperso!!\n<!-- aut_link -->\n\t\t<div class='row'></div>\n\t</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=souscollections&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='submit' value='{$msg['77']}' class='bouton' onClick=\"return test_form(this.form)\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['saisie_sub_collection'].elements['collection_nom'].focus();\n\tajax_parse_dom();\n</script>\n";
// $collection_replace_form : form remplacement collection
$collection_replace_form = "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.by.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['180']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}\n-->\n</script>\n<form class='form-{$current_module}' name='coll_replace' method='post' action='./autorites.php?categ=collections&sub=replace&id=!!id!!'>\n<h3>{$msg['159']} !!coll_name!! (!!coll_editeur!!)</h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['186']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30emr' class='list' name='coll_libelle' readonly value='' />\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=collection&caller=coll_replace&p1=ed_id&p2=ed_libelle&p3=by&p4=coll_libelle&p5=dsubcoll_id&p6=dsubcoll_lib&no_display=!!id!!', 'select_coll', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.coll_libelle.value=''; this.form.ed_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' value=''>\n\t\t</div>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['164']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30emr' class='list' name='ed_libelle' readonly value='' />\n\t\t<input type='hidden' name='dsubcoll_id'>\n\t\t<input type='hidden' name='dsubcoll_lib'>\n\t\t<input type='hidden' name='ed_id' value='!!ed_id!!'>\n\t\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=collections&sub=collection_form&id=!!id!!'\">\n\t<input type='submit' class='bouton' value='{$msg['159']}' onClick=\"return test_form(this.form)\">\n\t</div>\n</form>\n";
// $sub_coll_rep_form : form remplacement sous collection
$sub_coll_rep_form = "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.by.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['180']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}\n-->\n</script>\n<form class='form-{$current_module}' name='saisie_sub_collection' method='post' action='./autorites.php?categ=souscollections&sub=replace&id={$id}'>\n<h3>{$msg['159']} !!subcoll_name!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['192']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' name='sub_coll_nom'  class='saisie-30emr' readonly value='' />\n\t\t<input type='hidden' name='by' value=''>\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=subcollection&caller=saisie_sub_collection&p1=ed_id&p2=ed_libelle&p3=coll_id&p4=coll_libelle&p5=by&p6=sub_coll_nom', 'select_sub_coll', {$selector_x_size}, {$selector_y_size}, -2, -2, 'toolbar=no, resizable=yes')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.sub_coll_nom.value=''; this.form.coll_libelle.value=''; this.form.ed_libelle.value=''; this.form.ed_id.value=''; this.form.coll_id.value=''; this.form.by.value='0'; \" />\n\t\t</div>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['179']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30emr' name='coll_libelle' readonly value='' />\n\t\t<input type='hidden' name='coll_id' value='!!coll_id!!' />\n\t\t</div>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['164']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30emr' name='ed_libelle' readonly value='' />\n\t\t<input type='hidden' name='ed_id' value=''>\n\t\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=souscollections&sub=collection_form&id=!!id!!'\">\n\t<input type='submit' class='bouton' value='{$msg['159']}' onClick=\"return test_form(this.form)\">\n\t</div>\n</form>\n";
Exemple #4
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: editeurs.tpl.php,v 1.26 2014-01-23 13:52:36 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes, resizable=yes, scrollbars=yes";
// $publisher_form : form saisie éditeur
$publisher_form = jscript_unload_question() . "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.ed_nom.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['144']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=editeurs&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else\n            document.forms['saisie_editeur'].elements['ed_nom'].focus();\n    }\n\tfunction check_link(id) {\n\t\tw=window.open(document.getElementById(id).value);\n\t\tw.focus();\n\t}\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_editeur' name='saisie_editeur' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\t<!-- nom -->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_nom'>" . $msg["editeur_nom"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80em' name='ed_nom' value=\"!!ed_nom!!\" />\n\t\t</div>\n\t<!-- adr1 -->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_adr1'>" . $msg["editeur_adr1"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80em' name='ed_adr1' value=\"!!ed_adr1!!\" />\n\t\t</div>\n\t<!-- adr2 -->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_adr2'>" . $msg["editeur_adr2"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80em' name='ed_adr2' value=\"!!ed_adr2!!\" />\n\t\t</div>\n\t\n\t<!-- cp -->\n\t<div class='colonne4'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_cp'>" . $msg["editeur_cp"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-10em' name='ed_cp' value=\"!!ed_cp!!\" maxlength='10' />\n\t\t</div>\n\t</div>\n\t\n\t<!-- ville -->\n\t<div class='colonne_suite'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_ville'>" . $msg["editeur_ville"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-20em' name='ed_ville' value=\"!!ed_ville!!\" />\n\t\t</div>\n\t\n\t</div>\n\t<!-- pays -->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_pays'>{$msg['146']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-20em' name='ed_pays' value=\"!!ed_pays!!\" />\n\t\t</div>\n\t\n\t<!-- web -->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_web'>" . $msg["editeur_web"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80em' name='ed_web' id='ed_web' value=\"!!ed_web!!\" />\n\t\t<input class='bouton' type='button' onClick=\"check_link('ed_web')\" title='" . $msg["CheckLink"] . "' value='" . $msg["CheckButton"] . "' />\n\t\t</div>\n\n\t<!-- Commentaire -->\n\t<div class='row'>\n\t\t<label class='etiquette'>" . $msg["ed_comment"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<textarea class='saisie-80em' name='ed_comment' cols='62' rows='4' wrap='virtual'>!!ed_comment!!</textarea>\n\t\t</div>\n\t!!aut_pperso!!\n\t<!-- aut_link -->\n\t</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=editeurs&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['saisie_editeur'].elements['ed_nom'].focus();\n</script>\n";
// $publisher_replace : form remplacement éditeur
$publisher_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='publisher_replace' method='post' action='./autorites.php?categ=editeurs&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!ed_name!! </h3>\n<div class='form-contenu'>\n<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-50emr' id='ed_libelle' name='ed_libelle' value=\"\" completion=\"publishers\" autfield=\"ed_id\" autexclude=\"!!id!!\"\n   \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=editeur&caller=publisher_replace&p1=ed_id&p2=ed_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_y_size}, -2 ,-2, '{$selector_prop}'); }\" />\n\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=editeur&caller=publisher_replace&p1=ed_id&p2=ed_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_y_size}, -2 ,-2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.ed_libelle.value=''; this.form.ed_id.value='0'; \" />\n\t<input type='hidden' name='ed_id' id='ed_id'>\n\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=editeurs&sub=editeur_form&id=!!id!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['publisher_replace'].elements['ed_libelle'].focus();\n</script>\n";
Exemple #5
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: indexint.tpl.php,v 1.22 2014-07-30 09:54:05 apetithomme Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes, resizable=yes, scrollbars=yes";
// $indexint_form : form saisie titre de série
$indexint_form = jscript_unload_question() . "\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.indexint_nom.value.length == 0) {\n\t\t\talert(\"{$msg['indexint_name_oblig']}\");\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=indexint&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!&exact=!!exact!!&id_pclass=!!id_pclass!!';\n\t\t} else\n            document.forms['saisie_indexint'].elements['indexint_nom'].focus();\n    }\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_indexint' name='saisie_indexint' method='post' action='!!action!!'>\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n<div class='row'>\n\t<label class='etiquette' for='form_nom'>{$msg['indexint_nom']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-50em' name='indexint_nom' value=\"!!indexint_nom!!\" />\n\t</div>\n<div class='row'>\n\t<label class='etiquette' for='form_comment'>{$msg['indexint_comment']}</label>\n\t</div>\n<div class='row'>\n\t<textarea id='indexint_comment' class='saisie-80em' name='indexint_comment' cols='62' rows='6' wrap='virtual'>!!indexint_comment!!</textarea>\n\t</div>\t\n!!concept_form!!\n!!aut_pperso!!\n<!-- aut_link -->\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=indexint&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!&id_pclass=!!id_pclass!!&exact=!!exact!!';\" />\n\t\t<input type='submit' value='{$msg['77']}' class='bouton' onClick=\"return test_form(this.form)\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t<input type='hidden' name='exact' value=\"!!exact!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['saisie_indexint'].elements['indexint_nom'].focus();\n\tajax_parse_dom();\n</script>\n";
// $indexint_replace : form remplacement Indexation interne
$indexint_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='indexint_replace' method='post' action='./autorites.php?categ=indexint&sub=replace&id=!!id!!&id_pclass=!!id_pclass!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!indexint_name!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' id='indexint_libelle' name='indexint_libelle' value=\"\" completion=\"indexint\" autfield=\"n_indexint_id\" autexclude=\"!!id!!\"\n    \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=indexint&caller=indexint_replace&param1=n_indexint_id&param2=indexint_libelle&no_display=!!id!!&id_pclass=!!id_pclass!!', 'select_indexint', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=indexint&caller=indexint_replace&param1=n_indexint_id&param2=indexint_libelle&no_display=!!id!!&id_pclass=!!id_pclass!!', 'select_indexint', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.indexint_libelle.value=''; this.form.n_indexint_id.value='0'; \" />\n\t\t<input type='hidden' name='n_indexint_id' id='n_indexint_id' value='0' />\n\t\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=indexint&sub=indexint_form&id=!!id!!&id_pclass=!!id_pclass!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['indexint_replace'].elements['indexint_libelle'].focus();\n</script>\n<br />\n<div class='row'>\n\t!!liste_remplacantes!!\n\t</div>\n";
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: indexint.tpl.php,v 1.25 2015-11-04 15:25:01 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes, resizable=yes, scrollbars=yes";
// $indexint_form : form saisie titre de série
$indexint_form = jscript_unload_question() . "\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n\trequire(['dojo/ready', 'apps/pmb/gridform/FormEdit'], function(ready, FormEdit){\n\t     ready(function(){\n\t     \tnew FormEdit();\n\t     });\n\t});\n</script>\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.indexint_nom.value.length == 0) {\n\t\t\talert(\"{$msg['indexint_name_oblig']}\");\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=indexint&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!&exact=!!exact!!&id_pclass=!!id_pclass!!';\n\t\t} else\n            document.forms['saisie_indexint'].elements['indexint_nom'].focus();\n    }\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_indexint' name='saisie_indexint' method='post' action='!!action!!'>\n<div class='left'><h3>!!libelle!!</h3></div>\n<div class='right'>";
$indexint_form .= '
<!-- Selecteur de statut -->
    <label class="etiquette" for="authority_statut">' . $msg['authorities_statut_label'] . '</label>
     !!auth_statut_selector!!
';
if ($PMBuserid == 1 && $pmb_form_authorities_editables == 1) {
    $indexint_form .= "<input type='button' class='bouton_small' value='" . $msg["authorities_edit_format"] . "' id=\"bt_inedit\"/>";
}
if ($pmb_form_authorities_editables == 1) {
    $indexint_form .= "<input type='button' class='bouton_small' value=\"" . $msg["authorities_origin_format"] . "\" id=\"bt_origin_format\"/>";
}
$indexint_form .= "\n</div>\n<div class='form-contenu'>\n\t<div id='zone-container'>\n\t\t<div id='el0Child_0' class='row' movable='yes' title=\"" . htmlentities($msg['indexint_nom'], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_nom'>{$msg['indexint_nom']}</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-50em' name='indexint_nom' value=\"!!indexint_nom!!\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div id='el0Child_1' class='row' movable='yes' title=\"" . htmlentities($msg['indexint_comment'], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_comment'>{$msg['indexint_comment']}</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<textarea id='indexint_comment' class='saisie-80em' name='indexint_comment' cols='62' rows='6' wrap='virtual'>!!indexint_comment!!</textarea>\n\t\t\t</div>\n\t\t</div>\n\t\t!!concept_form!!\n\t\t!!aut_pperso!!\n\t\t<!-- aut_link -->\n\t</div>\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=indexint&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!&id_pclass=!!id_pclass!!&exact=!!exact!!';\" />\n\t\t<input type='submit' value='{$msg['77']}' class='bouton' onClick=\"return test_form(this.form)\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t<input type='hidden' name='exact' value=\"!!exact!!\" />\n\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t</div>\n</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['saisie_indexint'].elements['indexint_nom'].focus();\n\tajax_parse_dom();\n</script>\n";
// $indexint_replace : form remplacement Indexation interne
$indexint_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='indexint_replace' method='post' action='./autorites.php?categ=indexint&sub=replace&id=!!id!!&id_pclass=!!id_pclass!!' onSubmit=\"return false\" >\n\t<h3>{$msg['159']} !!indexint_name!! </h3>\n\t<div class='form-contenu'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-50emr' id='indexint_libelle' name='indexint_libelle' value=\"\" completion=\"indexint\" autfield=\"n_indexint_id\" autexclude=\"!!id!!\"\n\t    \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=indexint&caller=indexint_replace&param1=n_indexint_id&param2=indexint_libelle&no_display=!!id!!&id_pclass=!!id_pclass!!', 'select_indexint', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}'); }\" />\n\t\n\t\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=indexint&caller=indexint_replace&param1=n_indexint_id&param2=indexint_libelle&no_display=!!id!!&id_pclass=!!id_pclass!!', 'select_indexint', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.indexint_libelle.value=''; this.form.n_indexint_id.value='0'; \" />\n\t\t\t<input type='hidden' name='n_indexint_id' id='n_indexint_id' value='0' />\n\t\t</div>\n\t\t<div class='row'>\t\t\n\t\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t\t</div>\t\n\t</div>\n\t<div class='row'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=indexint&sub=indexint_form&id=!!id!!&id_pclass=!!id_pclass!!';\">\n\t\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['indexint_replace'].elements['indexint_libelle'].focus();\n</script>\n<br />\n<div class='row'>\n\t!!liste_remplacantes!!\n</div>\n";
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: category.tpl.php,v 1.50 2015-12-07 10:38:52 dgoron Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
// templates pour la gestion des catégories
require_once "{$base_path}/javascript/misc.inc.php";
require_once "{$include_path}/misc.inc.php";
// $categ_browser : template du browser de catégories
$categ_browser = "\n\n<br />\n<div class='row'>\n\t!!browser_top!!\n\t!!browser_header!!<hr />\n</div>\n<div class='row'>\n\t<script type='text/javascript' src='./javascript/sorttable.js'></script>\n\t<table border='0' class='sortable'>\n\t\t!!browser_content!!\n\t</table>\n</div>";
// $category_form : template du form de catégories
$selector_prop = "dependent=yes, width={$selector_x_size}, height={$selector_y_size}, resizable=1, scrollbars=yes, resizable=yes";
$select_categ_prop = "scrollbars=yes, location=no, toolbar=no, dependent=yes, resizable=yes";
$category_form = jscript_unload_question() . "\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n\trequire(['dojo/ready', 'apps/pmb/gridform/FormEdit'], function(ready, FormEdit){\n\t     ready(function(){\n\t     \tnew FormEdit();\n\t     });\n\t});\n</script>\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form){\n\t\tif(document.getElementById('category_libelle_defaut').value.replace(/^\\s+|\\s+\$/g, '').length == 0){\n\t\t\tvar msg = \"{$msg['thes_libelle_categ_ref_manquant']}\"+\"\\n!!lang_def_js!!\";\n\t\t\talert(msg);\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\n\t\n\tfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=categories&sub=delete&parent=!!parent!!&id=!!id!!';\n\t\t} else\n            document.forms['categ_form'].elements['category_libelle!!lang_def_cle!!'].focus();\n    }\n-->\n</script>\n<form class='form-{$current_module}' id='categ_form' name='categ_form' method='post' action='!!action!!'>\n<div class='left'><h3>!!form_title!!</h3></div>\n<div class='right'>";
$category_form .= '
<!-- Selecteur de statut -->
    <label class="etiquette" for="authority_statut">' . $msg['authorities_statut_label'] . '</label>
     !!auth_statut_selector!!
';
if ($PMBuserid == 1 && $pmb_form_authorities_editables == 1) {
    $category_form .= "<input type='button' class='bouton_small' value='" . $msg["authorities_edit_format"] . "' id=\"bt_inedit\"/>";
}
if ($pmb_form_authorities_editables == 1) {
    $category_form .= "<input type='button' class='bouton_small' value=\"" . $msg["authorities_origin_format"] . "\" id=\"bt_origin_format\"/>";
}
$category_form .= "\n</div>\n<div class='form-contenu'>\n\t<div id='zone-container'>\n\t\t<!-- libelle defaut -->\n\t\t<div id='el0Child_0' class='row'>\n\t\t\t<div id='el0Child_0_a' class='colonne2' movable='yes' title=\"" . htmlentities($msg[103], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<label class='etiquette' >" . htmlentities($msg[103], ENT_QUOTES, $charset) . "</label><label class='etiquette'>!!lang_def!!</label>\n\t\t\t\t\t<!-- bt_lib_trad -->\n\t\t\t\t</div>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<input type='text' class='saisie-80em' id='category_libelle_defaut' name='category_libelle!!lang_def_cle!!' value=\"!!lang_def_libelle!!\" />\n\t\t\t\t\t<!--\tlibelle traductions-->\n\t\t\t\t\t<div id='lib_trad' class='form-{$current_module}' style='display:none' >\n\t\t\t\t\t\t!!c_libelle_trad!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id='el0Child_0_b' class='colonne_suite' movable='yes' title=\"" . htmlentities($msg['not_use_in_indexation'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<label class='etiquette'>" . htmlentities($msg['not_use_in_indexation'], ENT_QUOTES, $charset) . "</label><input type=\"checkbox\" id=\"not_use_in_indexation\"  name=\"not_use_in_indexation\" value='1' !!not_use_in_indexation!! />\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div id='el0Child_1' class='row'>\n\t\t\t<!--\tnote application defaut -->\n\t\t\t<div id='el0Child_1_a' class='colonne2' movable='yes' title=\"" . htmlentities($msg['categ_na'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<label class='etiquette'>" . htmlentities($msg['categ_na'], ENT_QUOTES, $charset) . "</label><label class='etiquette'>!!lang_def!!</label>\n\t\t\t\t\t<!-- bt_na_trad -->\n\t\t\t\t</div>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<textarea class='saisie-50em' id='category_na' name='category_na!!lang_def_cle!!' cols='40' rows='2' wrap='virtual'>!!lang_def_na!!</textarea>\n\t\t\t\t</div>\n\t\t\t\t<div id='na_trad' class='row' style='display:none' >\n\t\t\t\t\t<!--note application traductions -->\n\t\t\t\t\t!!na_trad!!\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\n\t\t\t<!--\tcommentaire defaut -->\n\t\t\t<div id='el0Child_1_b' class='colonne_suite' movable='yes' title=\"" . htmlentities($msg['categ_commentaire'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<label class='etiquette'>" . htmlentities($msg['categ_commentaire'], ENT_QUOTES, $charset) . "</label><label class='etiquette'>!!lang_def!!</label>\n\t\t\t\t\t<!-- bt_cm_trad -->\n\t\t\t\t</div>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<textarea class='saisie-50em' id='category_comment' name='category_cm!!lang_def_cle!!' cols='40' rows='2' wrap='virtual'>!!lang_def_cm!!</textarea>\n\t\t\t\t</div>\n\t\t\t\t<div id='cm_trad' class='row' style='display:none' >\n\t\t\t\t\t<!--commentaire traductions -->\n\t\t\t\t\t!!cm_trad!!\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\t\n\t\t<!--categ_parent -->\n\t\t<!-- renvoivoir -->\n\t\t<!-- renvoivoiraussi -->\n\t\t<!-- liaison -->\n\t\t!!aut_pperso!!\n\t\t<div id='el0Child_5' class='row'>\n\t\t\t<div id='el0Child_5_a' class='left' movable='yes' title=\"" . htmlentities($msg['categ_num_aut'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<label class='etiquette' >" . htmlentities($msg['categ_num_aut'], ENT_QUOTES, $charset) . "</label>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<!-- numero_autorite -->\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id='el0Child_5_b' class='right' movable='yes' title=\"" . htmlentities($msg['print_thesaurus'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<!-- imprimer_thesaurus -->\n\t\t\t</div>\n\t\t</div>\n\t\t!!concept_form!!\n\t\t<div id='el0Child_6' class='row' movable='yes' title=\"" . htmlentities($msg['authority_import_denied'], ENT_QUOTES, $charset) . "\">\n\t\t\t<label class='etiquette' for='authority_import_denied'>" . $msg['authority_import_denied'] . "</label> &nbsp;\n\t\t\t<input type='checkbox' id='authority_import_denied' name='authority_import_denied' value='1' !!authority_import_denied!!/>\n\t\t</div>\n\t\t<!-- aut_link -->\n\t\t<!-- map -->\n\t</div>\n</div>\n\n<!--boutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=categories&sub=&parent=!!id_parent!!'\" />\n\t\t<input type='submit' class='bouton' value='{$msg['77']}' onClick=\"return test_form(this.form)\" />\n\t\t<!-- remplace_categ -->\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t<input type='hidden' name='nb_per_page' value=\"!!nb_per_page!!\" />\n\t</div>\n\t<div class='right'>\n\t\t<!-- delete_button -->\n\t</div>\n</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['categ_form'].elements['category_libelle!!lang_def_cle!!'].focus();\n\tajax_parse_dom();\n\n\tfunction bascule_trad(item) {\n\t\tvar elt = document.getElementById(item);\n\t\tif (elt.style.display == 'none') elt.style.display = ''; else elt.style.display = 'none'; \n\t}\n</script>";
$select_categ_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
$add_see_also = "\n<script>\n\tfunction fonction_selecteur_categ() {\n\t\tname=this.getAttribute('id').substring(4);\n\t\tname_id = name.substr(0,7)+'_id'+name.substr(7);\n\t\topenPopUp('./select.php?what=categorie&caller=categ_form&p1='+name_id+'&p2='+name+'&dyn=1', 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}');\n\t}\n\tfunction fonction_raz_categ() {\n\t\tname=this.getAttribute('id').substring(4);\n\t\tname_id = name.substr(0,7)+'_id'+name.substr(7);\n\t\tname_rec = name.substr(0,7)+'_rec'+name.substr(7);\n\t\tdocument.getElementById(name_id).value=0;\n\t\tdocument.getElementById(name).value='';\n\t\tdocument.getElementById(name_rec).checked=false;\n\t}\n\tfunction add_categ() {\n\t\ttemplate = document.getElementById('addcateg');\n\t\tcateg=document.createElement('div');\n\t\tcateg.className='row';\n\n\t\tsuffixe = eval('document.categ_form.max_categ.value')\n\t\tnom_id = 'f_categ'+suffixe\n\t\tf_categ = document.createElement('input');\n\t\tf_categ.setAttribute('name',nom_id);\n\t\tf_categ.setAttribute('id',nom_id);\n\t\tf_categ.setAttribute('type','text');\n\t\tf_categ.className='saisie-80emr';\n\t\tf_categ.setAttribute('readonly','');\n\t\tf_categ.setAttribute('value','');\n\t\t\n\t\tf_categ_rec = document.createElement('input');\n\t\tf_categ_rec.name = 'f_categ_rec'+suffixe;\n\t\tf_categ_rec.setAttribute('id','f_categ_rec'+suffixe);\n\t\tf_categ_rec.setAttribute('type','checkbox');\n\t\tf_categ_rec.setAttribute('value','1');\t\t\n\n\t\tdel_f_categ = document.createElement('input');\n\t\tdel_f_categ.setAttribute('id','del_f_categ'+suffixe);\n\t\tdel_f_categ.onclick=fonction_raz_categ;\n\t\tdel_f_categ.setAttribute('type','button');\n\t\tdel_f_categ.className='bouton_small';\n\t\tdel_f_categ.setAttribute('readonly','');\n\t\tdel_f_categ.setAttribute('value','{$msg['raz']}');\n\t\t\n\t\tf_categ_id = document.createElement('input');\n\t\tf_categ_id.name='f_categ_id'+suffixe;\n\t\tf_categ_id.setAttribute('type','hidden');\n\t\tf_categ_id.setAttribute('id','f_categ_id'+suffixe);\n\t\tf_categ_id.setAttribute('value','');\n\t\t\n\t\tcateg.appendChild(f_categ);\n\t\tspace=document.createTextNode(' ');\n\t\tcateg.appendChild(space);\n\t\tcateg.appendChild(f_categ_rec);\n\t\tcateg.appendChild(space);\n\t\tcateg.appendChild(del_f_categ);\n\t\tcateg.appendChild(f_categ_id);\n\n\t\ttemplate.appendChild(categ);\n\t\t\n\t\tif(document.getElementById('tab_categ_order')) {\n\t\t\ttab_categ_order = document.getElementById('tab_categ_order');\n\t\t\tif (tab_categ_order.value != '') tab_categ_order.value += ','+suffixe;\n\t\t}\n\n\t\tdocument.categ_form.max_categ.value=suffixe*1+1*1 ;\n\t}\n</script>";
$categ0 = "\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' readonly value=\"!!categ_libelle!!\" /><input type='checkbox' id='f_categ_rec!!icateg!!' name='f_categ_rec!!icateg!!' !!chk!! />\n\t\t<input type='button' class='bouton_small' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=categorie&caller=categ_form&p1=f_categ_id!!icateg!!&p2=f_categ!!icateg!!&dyn=1&parent=!!parent!!&id2=!!id!!', 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}')\" />\n\t\t<input type='button' class='bouton_small' value='{$msg['raz']}' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; this.form.f_categ_rec!!icateg!!.checked=false; \" />\n\t\t<input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' /><input type='button' class='bouton_small' value='+' onClick=\"add_categ();\"/>\n\t</div>";
Exemple #8
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: notice_tpl.tpl.php,v 1.3.2.1 2014-07-23 12:14:00 dgoron Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
// Affichage de la liste des templates de notices
$notice_tpl_liste = "\n<table width='100%'>\n\t<tbody>\n\t\t<tr>\n\t\t\t<th width='3%'>" . $msg["notice_tpl_id"] . "</th>\n\t\t\t<th>" . $msg["notice_tpl_name"] . "</th>\n\t\t\t<th>" . $msg["notice_tpl_description"] . "</th>\n\t\t\t<th>" . $msg["notice_tpl_show_opac"] . "</th>\n\t\t\t<th></th>\n\t\t</tr>\n\t\t!!notice_tpl_liste!!\n\t</tbody>\n</table>\n<div class='row'>&nbsp;</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input class='bouton' value='" . $msg["notice_tpl_ajouter"] . "' onclick=\"document.location='!!link_ajouter!!'\" type='button'>\n\t</div>\n</div>\n";
$notice_tpl_liste_ligne = "\n<tr <tr class='!!pair!!' onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='!!pair!!'\" style=\"cursor: pointer;\" >\n\t<td onmousedown=\"document.location='!!link_edit!!';\" align='right'><b>!!id!!</b></td>\n\t<td onmousedown=\"document.location='!!link_edit!!';\">!!name!!</td>\n\t<td onmousedown=\"document.location='!!link_edit!!';\">!!comment!!</td>\n\t<td onmousedown=\"document.location='!!link_edit!!';\">!!show_opac!!</td>\n\t<td ><input class='bouton' value='" . $msg["notice_tpl_evaluer"] . "' onclick=\"document.location='!!link_eval!!'\" type='button'></td>\n</tr>\n";
$notice_tpl_form = jscript_unload_question() . "\n<script type='text/javascript'>\n\n\tfunction test_form(form) {\n\t\tif(form.name.value.length == 0)\t{\n\t\t\talert('" . $msg["notice_tpl_nom_erreur"] . "');\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\t\n\t\treturn true;\n\t}\n\t\n\tfunction confirm_delete() {\n\t    result = confirm(\"{$msg[confirm_suppr]}\");\n\t    if(result) {\n\t        unload_off();\n\t        document.location='!!action_delete!!';\n\t\t} else\n\t        document.forms['notice_tpl_form'].elements['titre_uniforme'].focus();\n\t}\n\t\n\t\n</script>\n<script type='text/javascript' src='./javascript/tabform.js'></script>\n<form class='form-{$current_module}' id='notice_tpl_form' name='notice_tpl_form' method='post' action='!!action!!' onSubmit=\"return false\" >\n\t<h3>!!libelle!!</h3>\n\t<div class='form-contenu'>\n\t\t<!--\tnom\t-->\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='name'>" . $msg["notice_tpl_name"] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-80em' id='name' name='name' value=\"!!name!!\" />\n\t\t</div>\t\t\n\t\t<!-- \tCommentaire -->\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='comment'>" . $msg["notice_tpl_description"] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<textarea class='saisie-80em' id='comment' name='comment' cols='62' rows='4' wrap='virtual'>!!comment!!</textarea>\n\t\t</div>\t\t\n\t\t<!-- \tCode -->\n\t\t<div class='row'>\n\t\t\t<label class='etiquette'>" . $msg["notice_tpl_code"] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t!!code_part!!\n\t\t</div>\n\t\t<!--\tid notice pour test\t-->\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='id_test'>" . $msg["notice_tpl_id_test"] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-10em' id='id_test' name='id_test' value=\"!!id_test!!\" />\n\t\t</div>\t\t\n\t\t<!--\tVisible en OPAC\t-->\n\t\t<div class='row'>\n\t\t\t<input name='show_opac' value='1' id='show_opac'  type='checkbox' !!show_opac!!>\n\t\t\t<label class='etiquette' for='show_opac'>" . $msg["notice_tpl_show_opac"] . "</label>\n\t\t</div>\t\t\n\t</div>\n\t<!--\tboutons\t-->\n\t<div class='row'>\n\t\t<div class='left'>\n\t\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();history.go(-1);\" />\n\t\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t\t!!duplicate!!\n\t\t\t</div>\n\t\t<div class='right'>\n\t\t\t!!delete!!\n\t\t\t</div>\n\t\t</div>\n\t<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['notice_tpl_form'].elements['name'].focus();\t\n</script>\t\n";
$notice_tpl_form_code = "\n\t\t<div class='row'>\n\t\t\t<textarea class='saisie-80em' id='code_!!loc!!_!!typenotice!!_!!typedoc!!' name='code_!!loc!!_!!typenotice!!_!!typedoc!!' cols='62' rows='30' wrap='virtual'>!!code!!</textarea>\n\t\t\t<input type='hidden' name='code_list[]' value='code_!!loc!!_!!typenotice!!_!!typedoc!!' />\n\t\t</div>\t\t\n";
$notice_tpl_eval = "\n<h3>" . $msg["notice_tpl_eval"] . "</h3>\n<div class='row'>&nbsp;</div>\n!!tpl!!\n<div class='row'>&nbsp;</div>\n<input type='button' class='bouton' value='{$msg['654']}' onClick=\"history.go(-1);\" />\n";
Exemple #9
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: series.tpl.php,v 1.20 2014-01-23 13:52:36 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes, resizable=yes, scrollbars=yes";
// $serie_form : form saisie titre de série
$serie_form = jscript_unload_question() . "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.serie_nom.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['338']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=series&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else\n            document.forms['saisie_serie'].elements['serie_nom'].focus();\n    }\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_serie' name='saisie_serie' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n<div class='row'>\n\t<label class='etiquette' for='form_nom'>{$msg['233']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' name='serie_nom' value=\"!!serie_nom!!\" />\n\t</div>\n<!-- aut_link -->\t\n!!aut_pperso!!\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=series&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['saisie_serie'].elements['serie_nom'].focus();\n</script>\n";
// $serie_replace : form remplacement titre de série
$serie_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='serie_replace' method='post' action='./autorites.php?categ=series&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!serie_name!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' id='serie_libelle' name='serie_libelle' value=\"\" completion=\"series\" autfield=\"n_serie_id\" autexclude=\"!!id!!\"\n    \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=serie&caller=serie_replace&param1=n_serie_id&param2=serie_libelle&no_display=!!id!!', 'select_serie', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=serie&caller=serie_replace&param1=n_serie_id&param2=serie_libelle&no_display=!!id!!', 'select_serie', {$selector_x_size}, {$selector_y_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.serie_libelle.value=''; this.form.n_serie_id.value='0'; \" />\n\t\t<input type='hidden' name='n_serie_id' id='n_serie_id' value='0' />\n\t\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=series&sub=serie_form&id=!!id!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['serie_replace'].elements['serie_libelle'].focus();\n</script>\n";
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: titres_uniformes.tpl.php,v 1.42 2015-12-31 10:39:18 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes,resizable=yes, scrollbars=yes";
$mapping_dojo_inclusion_tu = '';
if (form_mapper::isMapped('tu')) {
    $mapping_dojo_inclusion_tu .= '
	     	var formMapper = new FormMapper("tu");
	     	window["formMapperCallback"] = lang.hitch(formMapper, formMapper.expressionFromCallback);';
}
$titre_uniforme_form = jscript_unload_question() . "\n<script type='text/javascript'>\n\nfunction test_form(form) {\n\tif(form.name.value.length == 0)\t{\n\t\talert(\"{$msg['213']}\");\n\t\treturn false;\n\t}\n\tunload_off();\t\n\treturn true;\n}\n\nfunction confirm_delete() {\n    result = confirm(\"{$msg[confirm_suppr]}\");\n    if(result) {\n        unload_off();\n        document.location='./autorites.php?categ=titres_uniformes&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t} else\n        document.forms['saisie_titre_uniforme'].elements['form_nom'].focus();\n}\nfunction check_link(id) {\n\tw=window.open(document.getElementById(id).value);\n\tw.focus();\n}\n</script>\n\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n\trequire(['dojo/ready', 'apps/pmb/gridform/FormEdit','dojo/dom-attr','dojo/dom','apps/form_mapper/FormMapper', 'dojo/_base/lang'], function(ready, FormEdit, domAttr, dom, FormMapper, lang){\n\t     ready(function(){\n\t     \tdomAttr.set(dom.byId('oeuvre_type'),'backbone','yes');\n\t     \tdomAttr.set(dom.byId('oeuvre_nature'),'backbone','yes');\n\t     \tnew FormEdit();\n\t     \t" . $mapping_dojo_inclusion_tu . "\n\t     });\n\t});\n</script>\n<form class='form-{$current_module}' id='saisie_titre_uniforme' name='saisie_titre_uniforme' method='post' action='!!action!!' onSubmit=\"return false\" >\n<div class='left'><h3>!!libelle!!</h3></div>\n<div class='right'>";
$titre_uniforme_form .= '
<!-- Selecteur de statut -->
    <label class="etiquette" for="authority_statut">' . $msg['authorities_statut_label'] . '</label>
     !!auth_statut_selector!!
';
if ($PMBuserid == 1 && $pmb_form_authorities_editables == 1) {
    $titre_uniforme_form .= "<input type='button' class='bouton_small' value='" . $msg["authorities_edit_format"] . "' id=\"bt_inedit\"/>";
}
if ($pmb_form_authorities_editables == 1) {
    $titre_uniforme_form .= "<input type='button' class='bouton_small' value=\"" . $msg["authorities_origin_format"] . "\" id=\"bt_origin_format\"/>";
}
$titre_uniforme_form .= "\n</div>\n<div class='form-contenu'>\n\t<div id='zone-container'>\n\t\t<div id='el0Child_0' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_oeuvre_type"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='oeuvre_type'>" . $msg["aut_oeuvre_form_oeuvre_type"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!oeuvre_type!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div id='el0Child_1' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_oeuvre_nature"], ENT_QUOTES, $charset) . "\">\t\t\t\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='oeuvre_nature'>" . $msg["aut_oeuvre_form_oeuvre_nature"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!oeuvre_nature!!\n\t\t\t</div>\n\t\t</div>\n\t\t<!--\tnom\t-->\n\t\t<div id='el0Child_2' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_form_nom"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_nom'>" . $msg["aut_titre_uniforme_form_nom"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-80em' id='form_nom' name='name' value=\"!!nom!!\" data-form-name='name'/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div id='el0Child_3' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_oeuvre_expression"], ENT_QUOTES, $charset) . "\">\t\t\t\t\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' >" . $msg["aut_oeuvre_form_oeuvre_expression"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!oeuvre_expression!!\n\t\t\t</div>\t\n\t\t</div>\n\t\t<div id='el0Child_4' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_other_link"], ENT_QUOTES, $charset) . "\">\t\t\t\t\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' >" . $msg["aut_oeuvre_form_other_link"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t!!other_link!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div id='el0Child_5' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_oeuvre_event"], ENT_QUOTES, $charset) . "\">\t\t\t\t\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' >" . $msg["aut_oeuvre_form_oeuvre_event"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\t\t\t\n\t\t\t\t!!oeuvre_event!!\n\t\t\t</div>\n\t\t</div>\n\t\t!!authors!!\n\t\t\n\t\t<!--\tForme de l'oeuvre\t-->\n\t\t<div id='el0Child_6' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_forme"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_form'>" . $msg["aut_oeuvre_form_forme"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-30em' id='form_form' name='form' data-form-name='form' value='!!form!!'>\n\t\t\t</div>\t\n\t\t</div>\n\t\t\n\t\t<!--\tForme de l'oeuvre liste controlée -->\n\t\t<div id='el0Child_7' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_forme_list"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_form'>" . $msg["aut_oeuvre_form_forme_list"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' completion='music_form' autfield='form_form_selector' id='music_form' class='saisie-30emr' name='music_form' data-form-name='music_form' value=\"!!music_form!!\" />\n\t            <input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=music_form&caller=saisie_titre_uniforme&p1=form_form_selector&p2=music_form&deb_rech='+" . pmb_escape() . "(this.form.music_form.value), 'select_tonalite', 500, 400, -2, -2, '{$select1_prop}')\" />\n\t            <input type='hidden' name='form_form_selector' data-form-name='form_form_selector' id='form_form_selector' value=\"!!music_form_id!!\" />  \n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tDate de l'oeuvre\t-->\n\t\t<div id='el0Child_8' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_date"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_dates'>" . $msg["aut_oeuvre_form_date"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-30em' id='form_dates' name='date' data-form-name='date' value='!!date!!'>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tLieu d'origine de l'oeuvre\t-->\n\t\t<div id='el0Child_9' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_lieu"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_place'>" . $msg["aut_oeuvre_form_lieu"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-30em' id='form_place' name='place' data-form-name='place' value='!!place!!'>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tSujet de l'oeuvre\t-->\n\t\t<div id='el0Child_10' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_sujet"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_subject'>" . $msg["aut_oeuvre_form_sujet"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<textarea class='saisie-80em' id='form_subject' name='subject' data-form-name='subject' cols='62' rows='4' wrap='virtual'>!!subject!!</textarea>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tComplétude visée de l'oeuvre\t-->\n\t\t<div id='el0Child_11' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_completude"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_completude'>" . $msg["aut_oeuvre_form_completude"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<select id='form_intended_termination' name='intended_termination' data-form-name='intended_termination' class='saisie-20em'>\n\t\t\t\t\t<option value='0' !!intended_termination_0!!>--</option>\n\n\t\t\t\t\t<option value='1' !!intended_termination_1!!>" . $msg['aut_oeuvre_form_completude_finished'] . "</option>\n\n\t\t\t\t\t<option value='2' !!intended_termination_2!!>" . $msg['aut_oeuvre_form_completude_infinite'] . "</option>\n\n\t\t\t\t</select>\t\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tPublic visé de l'oeuvre\t-->\n\t\t<div id='el0Child_12' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_public"], ENT_QUOTES, $charset) . "\">\t\t\n\t\t\t<div class='colonne_suite'>\n\t\t\t\t<label class='etiquette' for='form_intended_audience'>" . $msg["aut_oeuvre_form_public"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-30em' id='form_intended_audience' name='intended_audience' data-form-name='intended_audience' value='!!intended_audience!!'>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tHistoire de l'oeuvre\t-->\n\t\t<div id='el0Child_13' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_histoire"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_history'>" . $msg["aut_oeuvre_form_histoire"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<textarea class='saisie-80em' id='form_history' name='history'  data-form-name='history' cols='62' rows='4' wrap='virtual'>!!history!!</textarea>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tContexte de l'oeuvre\t-->\n\t\t<div id='el0Child_14' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_contexte"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_context'>" . $msg["aut_oeuvre_form_contexte"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<textarea class='saisie-80em' id='form_context' name='context' data-form-name='context' cols='62' rows='4' wrap='virtual'>!!context!!</textarea>\n\t\t\t</div>\n\t\t</div>\n\t\t\t\t\t\t\n\t\t<div id='el0Child_15' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_form_distribution"], ENT_QUOTES, $charset) . "\">\t\t\t\t\t\n\t\t\t<!--\tDistribution instrumentale et vocale (pour la musique)\t-->\n\t\t</div>\n\t\t\t\t\n\t\t<div id='el0Child_16' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_form_ref_numerique"], ENT_QUOTES, $charset) . "\">\n\t\t\t<!--\tRéférence numérique (pour la musique)\t-->\n\t\t</div>\n\t\t\t\t\n\t\t<!--\tTonalité (Saisie Libre)\t-->\n\t\t<div id='el0Child_17' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_form_tonalite"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_tonalite'>" . $msg["aut_titre_uniforme_form_tonalite"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-80em' id='form_tonalite' name='tonalite' value='!!tonalite!!'>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tTonalité (Liste controlée)\t-->\n\t\t<div id='el0Child_18' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_form_tonalite_list"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_tonalite'>" . $msg["aut_titre_uniforme_form_tonalite_list"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' completion='music_key' autfield='form_tonalite_selector' id='music_key' class='saisie-30emr' name='music_key' data-form-name='music_key' value=\"!!music_key!!\" />\n\t            <input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=music_key&caller=saisie_titre_uniforme&p1=form_tonalite_selector&p2=music_key&deb_rech='+" . pmb_escape() . "(this.form.music_key.value), 'select_tonalite', 500, 400, -2, -2, '{$select1_prop}')\" />\n\t            <input type='hidden' name='form_tonalite_selector' data-form-name='form_tonalite_selector' id='form_tonalite_selector' value=\"!!music_key_id!!\" />  \n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!--\tCoordonnées (oeuvre cartographique)\t-->\n\t\t<div id='el0Child_19' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_coordonnees"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_coordinates'>" . $msg["aut_oeuvre_form_coordonnees"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-80em' id='form_coordinates' name='coordinates' data-form-name='coordinates' value='!!coordinates!!'>\n\t\t\t</div>\n\t\t</div>\n\t\t\t\t\n\t\t<!--\tEquinoxe (oeuvre cartographique)\t-->\n\t\t<div id='el0Child_20' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_equinoxe"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_equinox'>" . $msg["aut_oeuvre_form_equinoxe"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' class='saisie-80em' id='form_equinox' name='equinox' data-form-name='equinox' value='!!equinox!!'>\n\t\t\t</div>\n\t\t</div>\n\t\n\t\t<div id='el0Child_21' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_form_subdivision_forme"], ENT_QUOTES, $charset) . "\">\n\t\t\t<!-- Subdivision de forme -->\n\t\t</div>\n\t\t\t\t\n\t\t<!--\tAutres caractéristiques distinctives de l'oeuvre\t-->\n\t\t<div id='el0Child_22' class='row' movable='yes' title=\"" . htmlentities($msg["aut_oeuvre_form_caracteristique"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='form_carac'>" . $msg["aut_oeuvre_form_caracteristique"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<textarea class='saisie-80em' id='form_carac' name='characteristic' cols='62' rows='4' wrap='virtual'>!!characteristic!!</textarea>\n\t\t\t</div>\n\t\t</div>\n\t\t\t\t\n\t\t<!-- \tCommentaire -->\n\t\t<div id='el0Child_23' class='row' movable='yes' title=\"" . htmlentities($msg["aut_titre_uniforme_commentaire"], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='comment'>" . $msg["aut_titre_uniforme_commentaire"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<textarea class='saisie-80em' id='comment' name='comment' data-form-name='comment' cols='62' rows='4' wrap='virtual'>!!comment!!</textarea>\n\t\t\t</div>\n\t\t</div>\n\t\t\t\t\t\t\n\t\t!!concept_form!!\n\t\t!!aut_pperso!!\n\t\t\t\t\t\t\n\t\t<div id='el0Child_24' class='row' movable='yes' title=\"" . htmlentities($msg["authority_import_denied"], ENT_QUOTES, $charset) . "\">\t\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='tu_import_denied'>" . $msg['authority_import_denied'] . "</label> &nbsp;\n\t\t\t\t<input type='checkbox' id='tu_import_denied' name='tu_import_denied' value='1' data-form-name='tu_import_denied' !!tu_import_denied!!/>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<!-- aut_link -->\n\t</div>\n</div>\n<!--\tboutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=titres_uniformes&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t</div>\n</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['saisie_titre_uniforme'].elements['name'].focus();\n</script>\n";
$oeuvre_expression_tpl = "\n<script type='text/javascript'>\n\nfunction fonction_selecteur_oeuvre_expression() {\n\tname=this.getAttribute('id').substring(4);\n\tname_id = name.substr(0,19)+'_code'+name.substr(19);\n\topenPopUp('./select.php?what=titre_uniforme&caller=saisie_titre_uniforme&param1='+name_id+'&param2='+name, 'select_titre_uniforme', 500, 400, -2, -2, '{$select2_prop}');\n}\nfunction fonction_raz_oeuvre_expression() {\n\tname=this.getAttribute('id').substring(4);\n\tname_id = name.substr(0,19)+'_code'+name.substr(19);\n\tdocument.getElementById(name_id).value=0;\n\tdocument.getElementById(name).value='';\n}\nfunction add_oeuvre_expression() {\n\ttemplate = document.getElementById('addoeuvre_expression');\n\toeuvre_expression=document.createElement('div');\n\toeuvre_expression.className='row';\n\tsuffixe = eval('document.saisie_titre_uniforme.max_oeuvre_expression.value')\n\t\n    var new_sel_oeuvre_expression_type = document.createElement('select');\n    new_sel_oeuvre_expression_type = document.getElementById('f_oeuvre_expression_type0').cloneNode(true);\t\n    new_sel_oeuvre_expression_type.setAttribute('name', 'f_oeuvre_expression_type' + suffixe);\n    new_sel_oeuvre_expression_type.setAttribute('id', 'f_oeuvre_expression_type' + suffixe);\n\n\tnom_id = 'f_oeuvre_expression'+suffixe\n\tf_oeuvre_expression = document.createElement('input');\n\tf_oeuvre_expression.setAttribute('name',nom_id);\n\tf_oeuvre_expression.setAttribute('id',nom_id);\n\tf_oeuvre_expression.setAttribute('type','text');\n\tf_oeuvre_expression.className='saisie-30emr';\n\tf_oeuvre_expression.setAttribute('value','');\n\tf_oeuvre_expression.setAttribute('completion','titre_uniforme');\n\tf_oeuvre_expression.setAttribute('autfield','f_oeuvre_expression_code'+suffixe);\n\n\tdel_f_oeuvre_expression = document.createElement('input');\n\tdel_f_oeuvre_expression.setAttribute('id','del_f_oeuvre_expression'+suffixe);\n\tdel_f_oeuvre_expression.onclick=fonction_raz_oeuvre_expression;\n\tdel_f_oeuvre_expression.setAttribute('type','button');\n\tdel_f_oeuvre_expression.className='bouton';\n\tdel_f_oeuvre_expression.setAttribute('readonly','');\n\tdel_f_oeuvre_expression.setAttribute('value','{$msg['raz']}');\n\n\tf_oeuvre_expression_input = document.createElement('input');\n\tf_oeuvre_expression_input.name='f_oeuvre_expression_code'+suffixe;\n\tf_oeuvre_expression_input.setAttribute('type','hidden');\n\tf_oeuvre_expression_input.setAttribute('id','f_oeuvre_expression_code'+suffixe);\n\tf_oeuvre_expression_input.setAttribute('value','');\n\n\toeuvre_expression.appendChild(new_sel_oeuvre_expression_type);\n\tspace=document.createTextNode(' ');\n\toeuvre_expression.appendChild(space);\n\toeuvre_expression.appendChild(space.cloneNode(false));\n\toeuvre_expression.appendChild(f_oeuvre_expression);\n\toeuvre_expression.appendChild(space.cloneNode(false));\n\toeuvre_expression.appendChild(space.cloneNode(false));\n\toeuvre_expression.appendChild(del_f_oeuvre_expression);\n\toeuvre_expression.appendChild(f_oeuvre_expression_input);\n\n\ttemplate.appendChild(oeuvre_expression);\n\n\tdocument.saisie_titre_uniforme.max_oeuvre_expression.value=suffixe*1+1*1 ;\n\tajax_pack_element(f_oeuvre_expression);\n}\n\n</script>";
$oeuvre_expression_tpl_first = "\n<input type='button' class='bouton' value='{$msg['parcourir']}' \n\tonclick=\"openPopUp('./select.php?what=titre_uniforme&caller=saisie_titre_uniforme&field_id=f_oeuvre_expression_code&field_name_id=f_oeuvre_expression&dyn=3&max_field=max_oeuvre_expression&add_field=add_oeuvre_expression&callback=formMapperCallback', 'select_titre_uniforme', 500, 400, -2, -2, '{$select2_prop}')\" />\n<input type='button' class='bouton' value='+' onClick=\"add_oeuvre_expression();\"/>\t\n<div class='row'>\n\t!!expression_type!!\n\t<input type='text' class='saisie-30emr' callback='formMapperCallback' id='f_oeuvre_expression!!ioeuvre_expression!!' name='f_oeuvre_expression!!ioeuvre_expression!!' data-form-name='f_oeuvre_expression' value=\"!!oeuvre_expression!!\" completion=\"titre_uniforme\" autfield=\"f_oeuvre_expression_code!!ioeuvre_expression!!\" />\n\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_oeuvre_expression!!ioeuvre_expression!!.value=''; this.form.f_oeuvre_expression_code!!ioeuvre_expression!!.value=''; \" />\n\t<input type='hidden' name='f_oeuvre_expression_code!!ioeuvre_expression!!'  data-form-name='f_oeuvre_expression_code'  id='f_oeuvre_expression_code!!ioeuvre_expression!!' value='!!oeuvre_expression_code!!' />\n</div>\n";
$oeuvre_expression_tpl_other = "\n<div class='row'>\n\t!!expression_type!!\n\t<input type='text' class='saisie-30emr' id='f_oeuvre_expression!!ioeuvre_expression!!' name='f_oeuvre_expression!!ioeuvre_expression!!' value=\"!!oeuvre_expression!!\" completion=\"titre_uniforme\" autfield=\"f_oeuvre_expression_code!!ioeuvre_expression!!\" />\n\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_oeuvre_expression!!ioeuvre_expression!!.value=''; this.form.f_oeuvre_expression_code!!ioeuvre_expression!!.value=''; \" />\n\t<input type='hidden' name='f_oeuvre_expression_code!!ioeuvre_expression!!' id='f_oeuvre_expression_code!!ioeuvre_expression!!' value='!!oeuvre_expression_code!!' />\n</div>\n";
Exemple #11
0
$empr_tmpl_consultation = "\n<div id=\"el!!id!!Parent\" class=\"notice-parent\">\n\t<div class='left'>\n\t\t<img src=\"./images/plus.gif\" class=\"img_plus\" name=\"imEx\" id=\"el!!id!!Img\" title=\"" . $msg['admin_param_detail'] . "\" border=\"0\" onClick=\"expandBase('el!!id!!', true); return false;\">\n   \t\t!!image_suppr_caddie_empr!!&nbsp;!!image_caddie_empr!! &nbsp; <a href=!!lien_vers_empr!!>!!nom!! !!prenom!!</a>\n   \t</div>\n   \t<div class='right'>\n   \t\t!!empr_statut_libelle!!\n   \t</div>\n</div>\n<div id=\"el!!id!!Child\" class=\"notice-child\" style=\"margin-left:7px;display:none;\"!!depliee!!>\n<div class='left'>\n\t<div id='bloc_adresse_empr' class='row'>\n\t\t<div class='colonne3'>\n\t\t\t<div class='row'>\n\t\t\t\t!!adr1!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!adr2!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!cp!!&nbsp;!!ville!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!pays!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>!!tel1!!</strong> / <strong>!!tel2!!</strong>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t{$msg['58']}{$msg['1901']} !!mail_all!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='colonne3'>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['74']} : </strong>!!prof!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['75']} : </strong>!!date!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['125']} : </strong>!!sexe!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='colonne_suite'>\n\t\t</div>\n\t</div>\n\t<div id='bloc_adhesion' class='row'>\n\t\t<div class='colonne3'>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['1403']}</strong>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['1401']} : </strong>!!adhesion!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['1402']} : </strong>!!expiration!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>" . $msg['date_dern_emprunt'] . " : </strong>!!last_loan_date!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='colonne3'>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['60']} : </strong>!!codestat!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['59']} : </strong>!!categ!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>{$msg['38']} : </strong>!!cb!!\n\t\t\t</div>\n\t\t\t!!abonnement!!\n\t\t</div>\n\t\t<div class='colonne_suite'>\n\t\t\t<!-- !!localisation!! -->\n\t\t\t<div class='row'>\n\t\t\t\t!!groupes!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<strong>" . $msg['empr_login'] . " : </strong>!!empr_login!!\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!empr_pwd!!\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div id=bloc_suite class='row'>\n\t\t<div class='row'></div>\n\t\t!!perso!!\n\t\t<div class='row'></div>\n\t\t!!empr_msg!!";
if ($ldap_accessible) {
    $empr_tmpl_consultation .= "\n\t\t<div class='row'>\n\t\t\t<strong>" . $msg['empr_authldap'] . ": </strong>!!info_authldap!!\n\t\t</div>";
}
$empr_tmpl_consultation .= "\n\t</div>\n</div><div class='right'>!!empr_picture!!</div>\n<div class='row'></div>\n</div>\n<div class='row'></div>\n";
// propriété du sélecteur de groupe
$select2_prop = "scrollbars=yes, toolbar=no, dependent=yes, width=300, height=400, resizable=yes";
if ($pmb_rfid_activate == 1 && $pmb_rfid_serveur_url) {
    $rfid_script_empr = "\n\t\t{$rfid_js_header}\t\n\t\t<script type='text/javascript'>\n\t\t\tvar flag_cb_rfid=0;\n\t\t\tflag_program_rfid_ask=0;\n\n\t\t\tsetTimeout('init_rfid_read_cb(f_empr,0);',0);\n\t\t\t\n\t\t\tfunction f_empr(cb) {\n\t\t\t\tif(flag_program_rfid_ask==1) {\n\t\t\t\t\tprogram_rfid();\n\t\t\t\t\tflag_cb_rfid=0; \n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(cb.length==0) {\n\t\t\t\t\tflag_cb_rfid=1;\n\t\t\t\t\treturn;\n\t\t\t\t} \n\t\t\t\tif(!cb[0]) {\n\t\t\t\t\tflag_cb_rfid=0; \n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(document.getElementById('f_cb').value == cb[0]) flag_cb_rfid=1;\n\t\t\t\telse  flag_cb_rfid=0;\n\t\t\t\tif(document.getElementById('f_cb').value == '') {\t\n\t\t\t\t\tflag_cb_rfid=0;\t\t\t\t\n\t\t\t\t\tdocument.getElementById('f_cb').value=cb[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfunction script_rfid_encode() {\n\t\t\t\tif(!flag_cb_rfid && flag_rfid_active) {\n\t\t\t\t    var confirmed = confirm(\"" . addslashes($msg['rfid_programmation_confirmation']) . "\");\n\t\t\t\t    if (confirmed) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t    } \n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction program_rfid_ask() {\n\t\t\t\tif (flag_semaphore_rfid_read==1) {\n\t\t\t\t\tflag_program_rfid_ask=1;\n\t\t\t\t} else {\n\t\t\t\t\tprogram_rfid();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction program_rfid() {\n\t\t\t\tflag_semaphore_rfid=1;\n\t\t\t\tflag_program_rfid_ask=0;\n\t\t\t\tvar cb = document.getElementById('f_cb').value;\t\n\t\t\t\tinit_rfid_erase(rfid_ack_erase);\n\t\t\t}\n\t\t\t\n\t\t\tfunction rfid_ack_erase(ack) {\n\t\t\t\tvar cb = document.getElementById('f_cb').value;\n\t\t\t\tinit_rfid_write_empr(cb,rfid_ack_write);\n\t\t\t\t\n\t\t\t}\n\t\t\tfunction rfid_ack_write(ack) {\t\t\t\t\n\t\t\t\talert (\"" . addslashes($msg['rfid_etiquette_programmee_message']) . "\");\n\t\t\t\tflag_semaphore_rfid=0;\n\t\t\t}\n\t\t\t\n\t\t</script>\n";
    $rfid_program_button = "<input  type=button class='bouton' value=' " . $msg['rfid_configure_etiquette_button'] . " ' onClick=\"program_rfid_ask();\">";
} else {
    $rfid_script_empr = "";
    $rfid_program_button = "";
}
// $empr_form : template pour le form lecteur
$empr_form = jscript_unload_question() . "\n{$rfid_script_empr}\n<script type='text/javascript'>\n\tfunction test_form(form) {\n\t\t!!questionrfid!!\n\t\tif(form.form_nom.value.replace(/^\\s+|\\s+\$/g,'').length == 0) {\n\t\t\talert(\"{$msg['65']}\");\n\t\t\tform.form_nom.focus();\n\t\t\treturn false;\n\t\t}\n\t\tunload_off();\n\t\treturn check_form();\n\t}\n</script>\n<script type='text/javascript' src='javascript/tablist.js'></script>\n<script type='text/javascript' src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n\tno_init_drag=true;\n\twidths=new Array(" . $msg['empr_field_widths'] . ");\n\tvar msg_move_width='" . addslashes($msg['move_width']) . "';\n\tvar msg_move_save='" . addslashes($msg['move_save']) . "';\n\tvar msg_move_invisible='" . addslashes($msg['move_invisible']) . "';\n\tvar msg_move_visible='" . addslashes($msg['move_visible']) . "';\n\tvar msg_move_saved_ok='" . addslashes($msg['move_saved_ok']) . "';\n\tvar msg_move_saved_error='" . addslashes($msg['move_saved_error']) . "';\n\t\n</script>\n<script type='text/javascript' src='javascript/move_empr.js'></script>\n<h1>!!entete!!</h1>\n<form class='form-{$current_module}' id='empr_form' name='empr_form' method='post' action='!!form_action!!&id=!!id!!&groupID={$groupID}'>\n\n\t<input type='hidden' name='form_cb' value='!!cb!!' />\n\t<input type='hidden' name='groupID' value='{$groupID}' />\n\t<input type='hidden' name='debit' value='0' />\n\t\n\t<div style='float:left'><h3>!!nom!!&nbsp;!!prenom!!</h3></div>\n\t<div style='float:right'><label for='form_statut' class='etiquette'>" . $msg['empr_statut_menu'] . "</label>&nbsp;<select id='form_statut' name='form_statut'>!!statut!!</select>&nbsp;";
if ($PMBuserid == 1 && $pmb_form_editables == 1) {
    $empr_form .= "<input type='button' class='bouton_small' value='" . $msg['empr_edit_format'] . "' onClick=\"if (inedit){get_pos()};move_parse_dom();init_drag();\" id='bt_inedit'/>";
}
if ($pmb_form_editables == 1) {
    $empr_form .= "<input type='button' class='bouton_small' value=\"" . $msg['empr_origin_format'] . "\" onClick=\"get_pos(1); if (inedit) {move_parse_dom();init_drag();} \" />";
}
$empr_form .= "\n\t</div>\n\t<div class='row'></div>\n\t\n\t<div class='form-contenu'>\n\t\t\n\t\t<div class='row'>\n\t\t\t<!-- empr_grille_categ -->\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<!-- empr_grille_location -->\n\t\t</div>\n\t\n\t\t<div class='form-empr-fgrp' id='g0'>\n\t\t\n\t\t\t<div class='row' id='g0_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Nom   -->\n\t\t\t\t<div class='colonne3' id='g0_r0_f0' movable='yes' title='" . $msg[67] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label class='etiquette' for='form_nom'>" . $msg[67] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-20em' style='width:99%' id='form_nom' name='form_nom' value='!!nom!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Prénom   -->\n\t\t\t\t<div class='colonne3' id='g0_r0_f1' movable='yes' title='" . $msg[68] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_prenom' class='etiquette'>" . $msg[68] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-20em' id='form_prenom' name='form_prenom' value='!!prenom!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   CB   -->\n\t\t\t\t<div class='colonne'  id='g0_r0_f2' movable='yes' title='" . $msg[38] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_cb' class='etiquette'>" . $msg[38] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input class='saisie-10emr' id='f_cb' name='f_cb' readonly value=\"!!cb!!\" />\n\t\t\t\t\t\t<input type='button' class='bouton' value='" . $msg['parcourir'] . "' onclick=\"openPopUp('./circ/setcb.php?f_cb='+this.form.f_cb.value, 'getcb', 220, 200, -2, -2, 'toolbar=no, resizable=yes')\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\n\t\t\t<div class='row' id='g0_r1' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Adresse 1   -->\n\t\t\t\t<div class='colonne2'  id='g0_r1_f0' movable='yes' title='" . $msg[69] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_adr1' class='etiquette'>" . $msg[69] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-40em' id='form_adr1' name='form_adr1' maxlength='255' value='!!adr1!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Code postal   -->\n\t\t\t\t<div class='colonne10' id='g0_r1_f1' movable='yes' title='" . $msg[71] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_cp' class='etiquette'>" . $msg[71] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-5em' id='form_cp' name='form_cp' maxlength='10' value='!!cp!!' onchange=\"openPopUp('./select.php?what=codepostal&caller=empr_form&param1=form_ville&param2=form_cp&deb_rech='+this.form.form_cp.value, 'select_codepostal', 400, 400, -2, -2, '{$select1_prop}')\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Ville   -->\n\t\t\t\t<div class='colonne_suite' id='g0_r1_f2' movable='yes' title='" . $msg[72] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_ville' class='etiquette'>" . $msg[72] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-20em' id='form_ville' name='form_ville' value=\"!!ville!!\" />\n\t\t\t\t\t\t<input type='button'  class='bouton' value='" . $msg['parcourir'] . "' onclick=\"openPopUp('./select.php?what=codepostal&caller=empr_form&param1=form_ville&param2=form_cp&deb_rech='+this.form.form_cp.value, 'select_codepostal', 400, 400, -2, -2, '{$select1_prop}')\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\t\n\t\t\t<div class='row' id='g0_r2' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Adresse 2   -->\n\t\t\t\t<div class='colonne2' id='g0_r2_f0' movable='yes' title='" . $msg[70] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_adr2' class='etiquette'>" . $msg[70] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-40em' id='form_adr2' name='form_adr2' maxlength='255' value='!!adr2!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Pays   -->\n\t\t\t\t<div class='colonne_suite' id='g0_r2_f1' movable='yes' title='" . $msg['empr_pays'] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_pays' class='etiquette'>" . $msg['empr_pays'] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-40em' id='form_pays' name='form_pays' maxlength='255' value='!!pays!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class='row'>&nbsp;</div>\n\t\t\t\n\t\t\t<div class='row' id='g0_r3' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Téléphone 1   -->\n\t\t\t\t<div class='colonne4' id='g0_r3_f0' movable='yes' title='" . $msg[73] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_tel1' class='etiquette'>" . $msg[73] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-15em' id='form_tel1' name='form_tel1' value='!!tel1!!' />\n\t\t\t\t\t\t" . ($empr_sms_activation ? "<label for='form_sms' class='etiquette'>" . $msg['send_sms'] . "</label>\n\t\t\t\t\t\t<input type='checkbox' id='form_sms' name='form_sms' value='1' !!sms!! />" : "") . "\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Téléphone 2   -->\n\t\t\t\t<div class='colonne4' id='g0_r3_f1' movable='yes' title='" . $msg['73tel2'] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_tel2' class='etiquette'>" . $msg['73tel2'] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-15em' id='form_tel2' name='form_tel2' value='!!tel2!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   E-mail   -->\n\t\t\t\t<div class='colonne_suite' id='g0_r3_f2' movable='yes' title='" . $msg[58] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_mail' class='etiquette'>" . $msg[58] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text'  class='saisie-40em' size=50 id='form_mail' name='form_mail' value='!!mail!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\t\n\t\t\t\n\t\t</div>\n\t\t\t\t\n\t\t<div class='form-empr-fgrp' id='g1' >\t\n\t\t\n\t\t\t<div class='row' id='g1_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Profession   -->\n\t\t\t\t<div class='colonne4' id='g1_r0_f0' movable='yes' title='" . $msg[74] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_prof' class='etiquette'>" . $msg[74] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-20em' id='form_prof' name='form_prof' value='!!prof!!'>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Sexe   -->\n\t\t\t\t<div class='colonne4' id='g1_r0_f1' movable='yes' title='" . $msg[125] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label class='etiquette' for='form_sexe'>" . $msg[125] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<select class='saisie-15em' id='form_sexe' name='form_sexe'>\n\t\t\t\t\t\t\t<option value='1' sexe_select_1>" . $msg[126] . "</option>\n\t\t\t\t\t\t\t<option value='2' sexe_select_2>" . $msg[127] . "</option>\n\t\t\t\t\t\t\t<option value='0' sexe_select_0>" . $msg[128] . "</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Date de naissance   -->\n\t\t\t\t<div class='colonne_suite' id='g1_r0_f2' movable='yes' title='" . $msg[75] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_year' class='etiquette'>" . $msg[75] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text'  class='saisie-10em' id='form_year' name='form_year' maxlength='4' value='!!year!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\n\t\t</div>\n\t\t\n\t\t<div class='form-empr-fgrp' id='g2' >\n\t\t\t\n\t\t\t<div class='row' id='g2_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Categorie   -->\n\t\t\t\t<div class='colonne4' id='g2_r0_f0' movable='yes' title='" . $msg[59] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_categ' class='etiquette'>" . $msg[59] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<select id='form_categ' name='form_categ' class='saisie-20em'>!!categ!!</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Code statistique   -->\n\t\t\t\t<div class='colonne4' id='g2_r0_f1' movable='yes' title='" . $msg[60] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_codestat' class='etiquette'>" . $msg[60] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<select name='form_codestat' id='form_codestat' class='saisie-20em'>!!cstat!!</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Ajout à un groupe existant   -->\n\t\t\t\t<div class='colonne_suite' id='g2_r0_f2' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='" . htmlentities($msg['empr_form_ajoutgroupe'], ENT_QUOTES, $charset) . "' >\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_ajoutgroupe' class='etiquette'>" . $msg['empr_form_ajoutgroupe'] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t!!groupe_ajout!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\n\t\t\t\t<!--   Localisation du lecteur   -->\n\t\t\t\t<!-- !!localisation!! -->\n\t\t\n\t\t</div>\n\t\t\n\t\t<div class='form-empr-fgrp' id='g3' >\n\t\t\n\t\t\t<div class='row' id='g3_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Adhésion   -->\n\t\t\t\t<div class='colonne4' id='g3_r0_f0' movable='yes' title='" . $msg[1403] . " : " . $msg[1401] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_adhe_ini' class='etiquette'>" . $msg[1403] . " : " . $msg[1401] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<strong>!!adhesion!!</strong>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='colonne4' id='g3_r0_f1' movable='yes' title='" . $msg[1403] . " : " . $msg[1402] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_adhe_end' class='etiquette'>" . $msg[1403] . " : " . $msg[1402] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<strong>!!expiration!!</strong>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!--   Relance adhesion -->\n\t\t\t\t<div class='colonne_suite' id='g3_r0_f2' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='" . htmlentities($msg['empr_exp_adh'], ENT_QUOTES, $charset) . "'>\n\t\t\t\t\t&nbsp;!!adhesion_proche_depassee!!\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\n\t\t\t<div class='row' id='g3_r1' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<div class='colonne' id='g3_r1_f1' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='" . htmlentities($msg['finance_type_abt'], ENT_QUOTES, $charset) . "'>\n\t\t\t\t<!--Type d'abonnement -->\n\t\t\t\t!!typ_abonnement!!\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\t\n\t\t</div>\n\t\n\t\t<div class='form-empr-fgrp' id='g4'>\n\t\t\n\t\t\t<div class='row' id='g4_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Langue   -->\n\t\t\t\t<div class='colonne4' id='g4_r0_f0' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='" . htmlentities($msg['empr_langue_opac'], ENT_QUOTES, $charset) . "'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='' class='etiquette'>" . $msg['empr_langue_opac'] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t!!combo_empr_lang!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='colonne4' id='g4_r0_f1' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='" . htmlentities($msg['empr_login'], ENT_QUOTES, $charset) . "'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_empr_login' class='etiquette'>" . $msg['empr_login'] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-15em' id='form_empr_login' name='form_empr_login' value='!!empr_login!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
if ($ldap_accessible) {
    $empr_form .= "<!-- AuthLDAP - MaxMan -->\n\t\t\t\t<div class='colonne4' id='g4_r0_f2' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='AuthLDAP' >\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_ldap' class='etiquette'>AuthLDAP</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='checkbox' id='form_ldap' name='form_ldap' !!ldap!! />\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
}
$empr_form .= "\n\t\t\t\t<div class='colonne_suite' id='g4_r0_f3' movable='yes' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight' title='" . htmlentities($msg['empr_password'], ENT_QUOTES, $charset) . "' >\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_empr_password' class='etiquette'>" . $msg['empr_password'] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<input type='text' class='saisie-15em' id='form_empr_password' name='form_empr_password' value='' maxlength='255' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>";
if ($pmb_opac_view_activate) {
    $empr_form .= "\n\t\t\t\t<div class='row' id='g4_r1' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   vue Opac du lecteur   -->\n\t\t\t\t<!-- !!opac_view!! -->\n\t\t\t\t<div class='row'></div>\n\t\t\t\t</div>";
}
$empr_form .= "\t\n\t\t</div>\n\t\n\t\t<div class='form-empr-fgrp' id='g5' >\n\t\t\n\t\t\t<div class='row' id='g5_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t<!--   Message   -->\n\t\t\t\t<div class='colonne' id='g5_r0_f0' movable='yes' title='" . $msg[523] . "' draggable='yes' dragtype='circcell' recept='yes' recepttype='circcell' highlight='circcell_highlight' downlight='circcell_downlight'>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<label for='form_codestat' class='etiquette'>" . $msg[523] . "</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t<textarea id='f_message_empr' class='saisie-80em' name='form_empr_msg' cols='62' rows='2' wrap='virtual'>!!empr_msg!!</textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\t\t\n\t\t</div>\n\t\n\t\t<div class='form-empr-fgrp' id='g6' >\t\n\t\t\t<div class='row' id='g6_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\n\t\t\t\t!!champs_perso!!\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\n\t\t\t\n\t\t</div>\n\n\t\t<div class='form-empr-fgrp' id='g7' >\r\n\t\t\t<div class='row' id='g7_r0' etirable='yes' recept='yes' recepttype='circrow' highlight='circrow_highlight' downlight='circrow_downlight' >\r\n\t\t\t\t!!empr_notice_override!!\r\n\t\t\t\t<div class='row'></div>\n\t\t\t</div>\r\n\t\t</div>\r\n\n\t</div>\n\t\n\t<div class='row'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onclick='unload_off();history.go(-1);' />\n\t\t<input type='submit' class='bouton' value='{$msg['77']}' onClick=\"return test_form(this.form)\" />\n\t\t{$rfid_program_button}\n\t\t<input type='hidden' name='group_id' value='{$group_id}' />\n\t</div>\n\t\n</form>\n\n<script type='text/javascript'>\n\t" . ($pmb_form_editables ? "get_pos(); " : "") . "\n\tdocument.forms['empr_form'].elements['form_nom'].focus();\n\t</script>\n";
Exemple #12
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: titres_uniformes.tpl.php,v 1.12 2015-06-19 07:31:05 vtouchard Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes,resizable=yes, scrollbars=yes";
$titre_uniforme_form = jscript_unload_question() . "\n<script type='text/javascript'>\n\nfunction test_form(form) {\n\tif(form.name.value.length == 0)\t{\n\t\talert(\"{$msg['213']}\");\n\t\treturn false;\n\t}\n\tunload_off();\t\n\treturn true;\n}\n\nfunction confirm_delete() {\n    result = confirm(\"{$msg[confirm_suppr]}\");\n    if(result) {\n        unload_off();\n        document.location='./autorites.php?categ=titres_uniformes&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t} else\n        document.forms['saisie_titre_uniforme'].elements['titre_uniforme'].focus();\n}\nfunction check_link(id) {\n\tw=window.open(document.getElementById(id).value);\n\tw.focus();\n}\n\n</script>\n\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' id='saisie_titre_uniforme' name='saisie_titre_uniforme' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\n<!--\tnom\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_nom'>" . $msg["aut_titre_uniforme_form_nom"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_nom' name='name' value=\"!!nom!!\" />\n</div>\n\n!!authors!!\n\n<!--\tForme de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_form'>" . $msg["aut_oeuvre_form_forme"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_form' name='form' value='!!form!!'>\n</div>\t\n\n<!--\tForme de l'oeuvre liste controlée -->\t\t\n<div class='row'>\n\t<label class='etiquette' for='form_form'>" . $msg["aut_oeuvre_form_forme_list"] . "</label>\n</div>\n<div class='row'>\n\t!!form_selector!!\n</div>\n\t\t\t<!--\tDate de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_dates'>" . $msg["aut_oeuvre_form_date"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_dates' name='date' value='!!date!!'>\n</div>\n\t\t\t\n<!--\tLieu d'origine de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_place'>" . $msg["aut_oeuvre_form_lieu"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_place' name='place' value='!!place!!'>\n</div>\n\t\t\t\n<!--\tSujet de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_subject'>" . $msg["aut_oeuvre_form_sujet"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_subject' name='subject' cols='62' rows='4' wrap='virtual'>!!subject!!</textarea>\n</div>\n\n<!--\tComplétude visée de l'oeuvre\t-->\n<div class='colonne2'>\n\t<label class='etiquette' for='form_completude'>" . $msg["aut_oeuvre_form_completude"] . "</label>\n</div>\n<div class='row'>\n\t<select id='form_intended_termination' name='intended_termination' class='saisie-20em'>\n\t\t<option value='0' !!intended_termination_0!!>--</option>\n\n\t\t<option value='1' !!intended_termination_1!!>Oeuvre finie</option>\n\n\t\t<option value='2' !!intended_termination_2!!>Oeuvre infinie</option>\n\n\t</select>\t\n</div>\n\t\t\t\n<!--\tPublic visé de l'oeuvre\t-->\n<div class='colonne_suite'>\n\t<label class='etiquette' for='form_intended_audience'>" . $msg["aut_oeuvre_form_public"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_intended_audience' name='intended_audience' value='!!intended_audience!!'>\n</div>\n\n<!--\tHistoire de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_history'>" . $msg["aut_oeuvre_form_histoire"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_history' name='history' cols='62' rows='4' wrap='virtual'>!!history!!</textarea>\n</div>\n\t\t\n<!--\tContexte de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_context'>" . $msg["aut_oeuvre_form_contexte"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_context' name='context' cols='62' rows='4' wrap='virtual'>!!context!!</textarea>\n</div>\t\t\t\n\n<!--\tDistribution instrumentale et vocale (pour la musique)\t-->\n<!--\tRéférence numérique (pour la musique)\t-->\n\n<!--\tTonalité (Saisie Libre)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_tonalite'>" . $msg["aut_titre_uniforme_form_tonalite"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_tonalite' name='tonalite' value='!!tonalite!!'>\n</div>\n\t\t\t\n<!--\tTonalité (Liste controlée)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_tonalite'>" . $msg["aut_titre_uniforme_form_tonalite_list"] . "</label>\n</div>\n<div class='row'>\n\t!!tonalite_selector!!\n</div>\n\t\n<!--\tCoordonnées (oeuvre cartographique)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_coordinates'>" . $msg["aut_oeuvre_form_coordonnees"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_coordinates' name='coordinates' value='!!coordinates!!'>\n</div>\n\t\t\t\n<!--\tEquinoxe (oeuvre cartographique)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_equinox'>" . $msg["aut_oeuvre_form_equinoxe"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_equinox' name='equinox' value='!!equinox!!'>\n</div>\n\n<!-- Subdivision de forme -->\n\t\t\t\t\t\n<!--\tAutres caractéristiques distinctives de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_carac'>" . $msg["aut_oeuvre_form_caracteristique"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_carac' name='characteristic' cols='62' rows='4' wrap='virtual'>!!characteristic!!</textarea>\n</div>\n\t\t\t\n<!-- \tCommentaire -->\n<div class='row'>\n\t<label class='etiquette' for='comment'>" . $msg["aut_titre_uniforme_commentaire"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='comment' name='comment' cols='62' rows='4' wrap='virtual'>!!comment!!</textarea>\n</div>\n!!concept_form!!\n!!aut_pperso!!\n<div class='row'>\n\t<label class='etiquette' for='tu_import_denied'>" . $msg['authority_import_denied'] . "</label> &nbsp;\n\t<input type='checkbox' id='tu_import_denied' name='tu_import_denied' value='1' !!tu_import_denied!!/>\n</div>\n<!-- aut_link -->\n</div>\n<!--\tboutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=titres_uniformes&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['saisie_titre_uniforme'].elements['name'].focus();\n</script>\n";
$tu_authors_tpl = "\n<!--\tAuteurs de l'oeuvre\t-->\r\n<div id='el1Child_2b_first' class='colonne2'>\r\n\t<div class='row'>\r\n\t\t<input type='text' class='saisie-30emr' completion='authors' autfield='f_aut0_id!!iaut!!' id='f_aut0!!iaut!!' name='f_aut0!!iaut!!' value=\"!!aut0!!\" />\r\n\t\t<input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=auteur&caller=saisie_titre_uniforme&param1=f_aut0_id!!iaut!!&param2=f_aut0!!iaut!!&deb_rech='+" . pmb_escape() . "(this.form.f_aut0!!iaut!!.value), 'select_author2', 500, 400, -2, -2, '{$select1_prop}')\" />\r\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_aut0!!iaut!!.value=''; this.form.f_aut0_id!!iaut!!.value='0'; \" />\r\n\t\t<input type='hidden' name='f_aut0_id!!iaut!!' id='f_aut0_id!!iaut!!' value=\"!!aut0_id!!\" />\r\n\t</div>\r\n</div>\r\n<!--    Fonction    -->\r\n<div  id='el1Child_2b_others' class='colonne_suite'>\r\n\t<div class='row'>\r\n\t\t<input type='text' class='saisie-15emr' id='f_f0!!iaut!!' name='f_f0!!iaut!!' completion='fonction' autfield='f_f0_code!!iaut!!' value=\"!!f0!!\" />\r\n\t\t<input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=function&caller=saisie_titre_uniforme&p1=f_f0_code!!iaut!!&p2=f_f0!!iaut!!', 'select_func2', 500, 400, -2, -2, '{$select2_prop}')\" />\r\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_f0!!iaut!!.value=''; this.form.f_f0_code!!iaut!!.value='0'; \" />\r\n\t\t<input type='hidden' name='f_f0_code!!iaut!!' id='f_f0_code!!iaut!!' value=\"!!f0_code!!\" />\r\n\t\t<input type='button' class='bouton' value='+' onClick=\"add_aut(0);\"/>\r\n\t</div>\r\n</div>\n";
$aut_fonctions = new marc_list('function');
$tu_authors_all_tpl = "\r\n<script>\n    function fonction_selecteur_auteur() {\n        name=this.getAttribute('id').substring(4);\n        name_id = name.substr(0,6)+'_id'+name.substr(6);\n        openPopUp('./select.php?what=auteur&caller=saisie_titre_uniforme&param1='+name_id+'&param2='+name+'&dyn=1&deb_rech='+" . pmb_escape() . "(document.getElementById(name).value), 'select_author2', 500, 400, -2, -2, '{$select1_prop}');\n    }\n    function fonction_selecteur_auteur_change(field) {\n    \t// id champ text = 'f_aut'+n+suffixe\n    \t// id champ hidden = 'f_aut'+n+'_id'+suffixe; \n    \t// select.php?what=auteur&caller=saisie_titre_uniforme&param1=f_aut0_id&param2=f_aut0&deb_rech='+t\n        name=field.getAttribute('id');\n        name_id = name.substr(0,6)+'_id'+name.substr(6);\n        openPopUp('./select.php?what=auteur&caller=saisie_titre_uniforme&param1='+name_id+'&param2='+name+'&dyn=1&deb_rech='+" . pmb_escape() . "(document.getElementById(name).value), 'select_author2', 500, 400, -2, -2, '{$select1_prop}');\n    }\n    function fonction_raz_auteur() {\n        name=this.getAttribute('id').substring(4);\n        name_id = name.substr(0,6)+'_id'+name.substr(6);\n        document.getElementById(name_id).value=0;\n        document.getElementById(name).value='';\n    }\n    function fonction_selecteur_fonction() {\n        name=this.getAttribute('id').substring(4);\n        name_code = name.substr(0,4)+'_code'+name.substr(4);\n        openPopUp('./select.php?what=function&caller=saisie_titre_uniforme&param1='+name_code+'&param2='+name+'&dyn=1', 'select_fonction2', 500, 400, -2, -2, '{$select1_prop}');\n    }\n    function fonction_raz_fonction() {\n        name=this.getAttribute('id').substring(4);\n        name_code = name.substr(0,4)+'_code'+name.substr(4);\n        document.getElementById(name_code).value=0;\n        document.getElementById(name).value='';\n    }\n\nfunction add_aut(n) {\n\ttemplate = document.getElementById('addaut'+n);\n\taut=document.createElement('div');\n\taut.className='row';\n\t\n\t// auteur\n\tcolonne=document.createElement('div');\n\tcolonne.className='colonne2';\n\trow=document.createElement('div');\n\trow.className='row';\n\tsuffixe = eval('document.saisie_titre_uniforme.max_aut'+n+'.value')\n\tnom_id = 'f_aut'+n+suffixe\n\tf_aut0 = document.createElement('input');\n\tf_aut0.setAttribute('name',nom_id);\n\tf_aut0.setAttribute('id',nom_id);\n\tf_aut0.setAttribute('type','text');\n\tf_aut0.className='saisie-30emr';\n\tf_aut0.setAttribute('value','');\n\tf_aut0.setAttribute('completion','authors');\n\tf_aut0.setAttribute('autfield','f_aut'+n+'_id'+suffixe);\n\t\n\tsel_f_aut0 = document.createElement('input');\n\tsel_f_aut0.setAttribute('id','sel_f_aut'+n+suffixe);\n\tsel_f_aut0.setAttribute('type','button');\n\tsel_f_aut0.className='bouton';\n\tsel_f_aut0.setAttribute('readonly','');\n\tsel_f_aut0.setAttribute('value','{$msg['parcourir']}');\n\tsel_f_aut0.onclick=fonction_selecteur_auteur;\n\t\n\tdel_f_aut0 = document.createElement('input');\n\tdel_f_aut0.setAttribute('id','del_f_aut'+n+suffixe);\n\tdel_f_aut0.onclick=fonction_raz_auteur;\n\tdel_f_aut0.setAttribute('type','button');\n\tdel_f_aut0.className='bouton';\n\tdel_f_aut0.setAttribute('readonly','');\n\tdel_f_aut0.setAttribute('value','{$msg['raz']}');\n\t\n\tf_aut0_id = document.createElement('input');\n\tf_aut0_id.name='f_aut'+n+'_id'+suffixe;\n\tf_aut0_id.setAttribute('type','hidden');\n\tf_aut0_id.setAttribute('id','f_aut'+n+'_id'+suffixe);\n\tf_aut0_id.setAttribute('value','');\n\t\n\t//f_aut0_content.appendChild(f_aut0);\n\trow.appendChild(f_aut0);\n\tspace=document.createTextNode(' ');\n\trow.appendChild(space);\n\trow.appendChild(sel_f_aut0);\n\tspace=document.createTextNode(' ');\n\trow.appendChild(space);\n\trow.appendChild(del_f_aut0);\n\trow.appendChild(f_aut0_id);\n\tcolonne.appendChild(row);\n\taut.appendChild(colonne);\n\t\t\t\n\t// fonction\t\n\tcolonne=document.createElement('div');\n\tcolonne.className='colonne_suite';\n\trow=document.createElement('div');\n\trow.className='row';\n\tsuffixe = eval('document.saisie_titre_uniforme.max_aut'+n+'.value');\n\tnom_id = 'f_f'+n+suffixe;\n\tf_f0 = document.createElement('input');\n\tf_f0.setAttribute('name',nom_id);\n\tf_f0.setAttribute('id',nom_id);\n\tf_f0.setAttribute('type','text');\n\tf_f0.className='saisie-15emr';\n\tf_f0.setAttribute('value','" . $aut_fonctions->table[$value_deflt_fonction] . "');\n\tf_f0.setAttribute('completion','fonction');\n\tf_f0.setAttribute('autfield','f_f'+n+'_code'+suffixe);\n\t\n\tsel_f_f0 = document.createElement('input');\n\tsel_f_f0.setAttribute('id','sel_f_f'+n+suffixe);\n\tsel_f_f0.setAttribute('type','button');\n\tsel_f_f0.className='bouton';\n\tsel_f_f0.setAttribute('readonly','');\n\tsel_f_f0.setAttribute('value','{$msg['parcourir']}');\n\tsel_f_f0.onclick=fonction_selecteur_fonction;\n\t\n\tdel_f_f0 = document.createElement('input');\n\tdel_f_f0.setAttribute('id','del_f_f'+n+suffixe);\n\tdel_f_f0.onclick=fonction_raz_fonction;\n\tdel_f_f0.setAttribute('type','button');\n\tdel_f_f0.className='bouton';\n\tdel_f_f0.setAttribute('readonly','readonly');\n\tdel_f_f0.setAttribute('value','{$msg['raz']}');\n\t\t\t\n\tf_f0_code = document.createElement('input');\n\tf_f0_code.name='f_f'+n+'_code'+suffixe;\n\tf_f0_code.setAttribute('type','hidden');\n\tf_f0_code.setAttribute('id','f_f'+n+'_code'+suffixe);\n\tf_f0_code.setAttribute('value','{$value_deflt_fonction}');\n\t\n\trow.appendChild(f_f0);\n\tspace=document.createTextNode(' ');\n\trow.appendChild(space);\n\trow.appendChild(sel_f_f0);\n\tspace=document.createTextNode(' ');\n\trow.appendChild(space);\n\trow.appendChild(del_f_f0);\n\trow.appendChild(f_f0_code);\n\tcolonne.appendChild(row);\n\t\n\taut.appendChild(colonne);\n\ttemplate.appendChild(aut);\n\teval('document.saisie_titre_uniforme.max_aut'+n+'.value=suffixe*1+1*1');\n\tajax_pack_element(f_aut0);\n\tajax_pack_element(f_f0);\n}\n\n</script>\n    <div id='authors_list' title='" . htmlentities($msg["tu_authors_list"], ENT_QUOTES, $charset) . "' movable='yes'>\n\t    <!--    auteurs    -->\n\t    <div class='row'>\n\t    \t<div class='row'>\n\t\t        <label for='f_aut0' class='etiquette'>" . $msg["tu_authors_list"] . "</label>\n\t\t        <input type='hidden' name='max_aut0' value=\"!!max_aut0!!\" />\n\t        </div>\n\t        <div class='row' id='addaut0'>\n\t\t        !!authors_list!!\n\t\t\t</div>\n\t\t</div>\n\t</div>\n";
// $titre_uniforme_replace : form remplacement titre_uniforme
$titre_uniforme_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='titre_uniforme_replace' method='post' action='./autorites.php?categ=titres_uniformes&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!old_titre_uniforme_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='titre_uniforme_libelle'>{$msg['160']}</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' id='titre_uniforme_libelle' name='titre_uniforme_libelle' value=\"\" completion=\"titres_uniformess\" autfield=\"by\" autexclude=\"!!id!!\"\n    \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=titre_uniforme&caller=titre_uniforme_replace&param1=by&param2=titre_uniforme_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=titre_uniforme&caller=titre_uniforme_replace&param1=by&param2=titre_uniforme_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.titre_uniforme_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' id='by' value=''>\n\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=titres_uniformes&sub=titre_uniforme_form&id=!!id!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['titre_uniforme_replace'].elements['titre_uniforme_libelle'].focus();\n</script>\n";
Exemple #13
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: collstate.tpl.php,v 1.8 2013-08-07 13:54:44 dgoron Exp $
// templates pour gestion des autorités collections
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
require_once $base_path . "/javascript/misc.inc.php";
$selector_prop = "toolbar=no, dependent=yes, width={$selector_x_size}, height={$selector_y_size}, resizable=yes, scrollbars=yes";
//	----------------------------------
// $collection_form : form saisie collection
$collstate_form = jscript_unload_question() . "\n<script type='text/javascript'>\n\tfunction test_form(form)\n\t{\n\t\tunload_off();\n\t\t!!return_form!!\n\t}\n\tfunction confirm_delete() {\n        result = confirm(\"" . $msg["confirm_suppr"] . "\");\n        if(result) {\n        \tunload_off();\n          \tdocument.location='./catalog.php?categ=serials&sub=collstate_delete&id=!!id!!&serial_id=!!serial_id!!&location=!!location_id!!';\n\t\t}\n    }\n    function calculate_collections_state() {\n\t\tvar url= \"./ajax.php?module=catalog&categ=collections_state&fname=calculate_collections_state\";\n\t\tvar state_col = new http_request();\n\t\tvar separator = '';\n\t\n\t\tif(state_col.request(url,1,\"&id_serial=!!serial_id!!&id_location=\"+document.getElementById('location_id').value)) alert(state_col.get_text());\n\t\telse {\n\t\t\tif (document.getElementById('state_collections').value) separator=' ';\n\t\t\ttemp=state_col.get_text();\n\t\t\tdocument.getElementById('state_collections').value=document.getElementById('state_collections').value + separator + temp;\n\t\t}\n\t}\t\t\t\t\n</script>\n<script src='javascript/ajax.js'></script>\n\n<form class='form-{$current_module}' id='saisie_collstate' name='saisie_collstate' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\n!!location_field!!\n!!emplacement_field!!\n\n<!-- state_collections -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='state_collections'>" . $msg["collstate_form_collections"] . "</label>\n\t\t<input id='btn_calc_1' class='bouton_small' value='Calculer' style='visibility: visible;' onclick=\"calculate_collections_state();\" type='button'>\n\t\t</div>\n\t<div class='row'>\n\t\t<textarea rows='5' class='saisie-80em' id='state_collections' name='state_collections'>!!state_collections!!</textarea>\n\t</div>\n</div>\n\n<!-- cote -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='cote'>" . $msg["collstate_form_cote"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80em' size='80' id='cote' name='cote' value=\"!!cote!!\" />\n\t</div>\n</div>\n\n<!-- archive -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='archive'>" . $msg["collstate_form_archive"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t<input type='text' class='saisie-80em' size='80' id='archive' name='archive' value=\"!!archive!!\" />\n\t</div>\n</div>\n\n<!-- origine -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='origine'>" . $msg["collstate_form_origine"] . "</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80em' size='80' id='origine' name='origine' value=\"!!origine!!\" />\n\t</div>\n</div>\n\n<!-- note -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='note'>" . $msg["collstate_form_note"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<textarea rows='2' class='saisie-80em' id='note' name='note'>!!note!!</textarea>\n\t</div>\n</div>\n\n<!-- lacune -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='lacune'>" . $msg["collstate_form_lacune"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<textarea rows='2' class='saisie-80em' id='lacune' name='lacune'>!!lacune!!</textarea>\n\t</div>\n</div>\n!!support_field!!\n!!statut_field!!\n\n!!parametres_perso!!\n\n</div>\n\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' !!annul!! />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n";
$location_field = "\n<!-- localisation -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='location'>" . $msg["collstate_form_localisation"] . "</label>\n\t</div>\n\t<div class='row'>\n\t\t!!location!!\n\t</div>\n</div>";
$statut_field = "\n<!-- statut -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='statut'>" . $msg["collstate_form_statut"] . "</label>\n\t</div>\n\t<div class='row'>\n\t\t!!statut!!\n\t</div>\n</div>";
$emplacement_field = "\n<!-- emplacement -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='emplacement'>" . $msg["collstate_form_emplacement"] . "</label>\n\t</div>\n\t<div class='row'>\n\t\t!!emplacement!!\n\t</div>\n</div>";
$support_field = "\n<!-- support -->\n<div class='row'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='support'>" . $msg["collstate_form_support"] . "</label>\n\t</div>\n\t<div class='row'>\n\t\t!!support!!\n\t</div>\n</div>";
$tpl_collstate_liste_script = "\n<script>\n\tfunction show_collstate(id) {\n\t\tif (document.getElementById(id).style.display=='none') {\n\t\t\tdocument.getElementById(id).style.display='';\t\t\n\t\t} else {\n\t\t\tdocument.getElementById(id).style.display='none';\n\t\t}\n\t} \n</script>";
$tpl_collstate_liste_form = "\n<form action='!!base_url!!' method='post' name='filter_form'><input type='hidden' name='location' value='!!location!!'/>\n\t!!collstate_table!!\n</form>";
$tpl_collstate_liste[0] = "\n<table>\t\n\t<tr>\t\t\n\t\t<!-- surloc -->\n\t\t<th>" . $msg["collstate_form_emplacement"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_cote"] . "</th>\n\t\t<th>" . $msg["collstate_form_support"] . "</th>\n\t\t<th>" . $msg["collstate_form_statut"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_origine"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_collections"] . "</th>\n\t\t<th>" . $msg["collstate_form_archive"] . "</th>\n\t\t<th>" . $msg["collstate_form_lacune"] . "</th>\t\t\n\t</tr>\n\t!!collstate_liste!!\n</table>";
$tpl_collstate_liste_line[0] .= "\n<tr class='!!pair_impair!!' !!tr_surbrillance!! style='cursor: pointer'>\n\t<!-- surloc -->\n\t<td !!tr_javascript!! >!!emplacement_libelle!!</td>\n\t<td !!tr_javascript!! >!!cote!!</td>\n\t<td !!tr_javascript!! >!!type_libelle!!</td>\n\t<td !!tr_javascript!! >!!statut_libelle!!</td>\t\n\t<td !!tr_javascript!! >!!origine!!</td>\n\t<td !!tr_javascript!! >!!state_collections!!</td>\n\t<td !!tr_javascript!! >!!archive!!</td>\n\t<td !!tr_javascript!! >!!lacune!!</td>\n</tr>";
$tpl_collstate_liste[1] = "\n{$tpl_collstate_liste_script}\n<table>\t\n\t<tr>\n\t\t<!-- surloc -->\n\t\t<th>" . $msg["collstate_form_localisation"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_emplacement"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_cote"] . "</th>\n\t\t<th>" . $msg["collstate_form_support"] . "</th>\n\t\t<th>" . $msg["collstate_form_statut"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_origine"] . "</th>\t\t\n\t\t<th>" . $msg["collstate_form_collections"] . "</th>\n\t\t<th>" . $msg["collstate_form_archive"] . "</th>\n\t\t<th>" . $msg["collstate_form_lacune"] . "</th>\t\t\n\t</tr>\n\t!!collstate_liste!!\n</table>\n";
$tpl_collstate_liste_line[1] .= "\n<tr class='!!pair_impair!!' !!tr_surbrillance!! style='cursor: pointer'>\t\n\t<!-- surloc -->\n\t<td !!tr_javascript!! >!!localisation!!</td>\n\t<td !!tr_javascript!! >!!emplacement_libelle!!</td>\n\t<td !!tr_javascript!! >!!cote!!</td>\n\t<td !!tr_javascript!! >!!type_libelle!!</td>\n\t<td !!tr_javascript!! >!!statut_libelle!!</td>\n\t<td !!tr_javascript!! >!!origine!!</td>\n\t<td !!tr_javascript!! >!!state_collections!!</td>\n\t<td !!tr_javascript!! >!!archive!!</td>\n\t<td !!tr_javascript!! >!!lacune!!</td>\n</tr>";
$tpl_collstate_surloc_liste = "<th>" . $msg["collstate_surloc"] . "</th>";
$tpl_collstate_surloc_liste_line = "<td !!tr_javascript!! >!!surloc!!</td>";
Exemple #14
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: category.tpl.php,v 1.40.2.2 2014-08-01 12:51:39 Alexandre Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
// templates pour la gestion des catégories
require_once "{$base_path}/javascript/misc.inc.php";
require_once "{$include_path}/misc.inc.php";
// $categ_browser : template du browser de catégories
$categ_browser = "\n\n<br />\n<div class='row'>\n\t!!browser_top!!\n\t!!browser_header!!<hr />\n</div>\n<div class='row'>\n\t<script type='text/javascript' src='./javascript/sorttable.js'></script>\n\t<table border='0' class='sortable'>\n\t\t!!browser_content!!\n\t</table>\n</div>";
// $category_form : template du form de catégories
$selector_prop = "dependent=yes, width={$selector_x_size}, height={$selector_y_size}, resizable=1, scrollbars=yes, resizable=yes";
$select_categ_prop = "scrollbars=yes, location=no, toolbar=no, dependent=yes, resizable=yes";
$category_form = jscript_unload_question() . "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(document.getElementById('category_libelle_defaut').value.replace(/^\\s+|\\s+\$/g, '').length == 0)\n\t\t\t{\n\t\t\t\tvar msg = \"{$msg['thes_libelle_categ_ref_manquant']}\"+\"\\n!!lang_def_js!!\";\n\t\t\t\talert(msg);\n\t\t\t\treturn false;\n\t\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\n\t\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=categories&sub=delete&parent=!!parent!!&id=!!id!!';\n\t\t} else\n            document.forms['categ_form'].elements['category_libelle!!lang_def_cle!!'].focus();\n    }\n-->\n</script>\n<form class='form-{$current_module}' id='categ_form' name='categ_form' method='post' action='!!action!!'>\n<h3>!!form_title!!</h3>\n<div class='form-contenu'>\n\n\t<!-- libelle defaut -->\n\t<div class='row'>\n\t\t<label class='etiquette' >" . htmlentities($msg[103], ENT_QUOTES, $charset) . "</label><label class='etiquette'>!!lang_def!!</label>\n\t\t<!-- bt_lib_trad -->\n\t</div>\n\t<div class='row'>\n\t\t<div class='colonne2'>\n\t\t\t<input type='text' class='saisie-80em' id='category_libelle_defaut' name='category_libelle!!lang_def_cle!!' value=\"!!lang_def_libelle!!\" />\n\t\t</div>\n\t\t<div class='colonne2'>\n\t\t\t<label class='etiquette'>" . htmlentities($msg[not_use_in_indexation], ENT_QUOTES, $charset) . "</label><input type=\"checkbox\" id=\"not_use_in_indexation\"  name=\"not_use_in_indexation\" value='1' !!not_use_in_indexation!! />\n\t\t</div>\n\t</div>\n\t<!--\tlibelle traductions-->\n\t<div id='lib_trad' class='form-{$current_module}' style='display:none' >\n\t\t!!c_libelle_trad!!\n\t</div>\n\t\n\t<div class='row'>\n\t\t<!--\tnote application defaut -->\n\t\t<div class='colonne2'>\n\t\t\t<label class='etiquette'>" . htmlentities($msg[categ_na], ENT_QUOTES, $charset) . "</label><label class='etiquette'>!!lang_def!!</label>\n\t\t</div>\n\t\n\t\t<!--\tcommentaire defaut -->\n\t\t<div class='colonne_suite'>\n\t\t\t<label class='etiquette'>" . htmlentities($msg[categ_commentaire], ENT_QUOTES, $charset) . "</label><label class='etiquette'>!!lang_def!!</label>\n\t\t\t<!-- bt_cm_na_trad -->\n\t\t</div>\n\t\n\t</div>\n\t\n\t<div class='row'>\n\t\t<!-- note application defaut -->\n\t\t<div class='colonne2'>\n\t\t\t<textarea class='saisie-50em' id='category_na' name='category_na!!lang_def_cle!!' cols='40' rows='2' wrap='virtual'>!!lang_def_na!!</textarea>\n\t\t</div>\n\t\t<!-- commentaire defaut -->\n\t\t<div class='colonne_suite'>\n\t\t\t<textarea class='saisie-50em' id='category_comment' name='category_cm!!lang_def_cle!!' cols='40' rows='2' wrap='virtual'>!!lang_def_cm!!</textarea>\n\t\t</div>\n\t</div>\n\t\n\t<div id='cm_na_trad' class='row' style='display:none' >\n\t\t<!--note application et commentaire traductions -->\n\t\t!!cm_na_trad!!\n\t</div>\n\t\n\t<!--categ_parent -->\n\t<!-- renvoivoir -->\n\t<!-- renvoivoiraussi -->\n\t<!-- liaison -->\n\t!!aut_pperso!!\n\t<div class='row'>\n\t\t<div class='left'>\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' >" . htmlentities($msg[categ_num_aut], ENT_QUOTES, $charset) . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<!-- numero_autorite -->\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<label class='etiquette' for='authority_import_denied'>" . $msg['authority_import_denied'] . "</label> &nbsp;\n\t\t\t\t<input type='checkbox' id='authority_import_denied' name='authority_import_denied' value='1' !!authority_import_denied!!/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='right'>\n\t\t\t<!-- imprimer_thesaurus -->\n\t\t</div>\n\t</div>\n\t<!-- aut_link -->\n\t<div class='row'>\n\t</div>\n</div>\n\n<!--boutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=categories&sub=&parent=!!id_parent!!'\" />\n\t\t<input type='submit' class='bouton' value='{$msg['77']}' onClick=\"return test_form(this.form)\" />\n\t\t<!-- remplace_categ -->\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t<input type='hidden' name='nb_per_page' value=\"!!nb_per_page!!\" />\n\t</div>\n\t<div class='right'>\n\t\t<!-- delete_button -->\n\t</div>\n</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['categ_form'].elements['category_libelle!!lang_def_cle!!'].focus();\n\n\tfunction bascule_trad(item) {\n\t\tvar elt = document.getElementById(item);\n\t\tif (elt.style.display == 'none') elt.style.display = ''; else elt.style.display = 'none'; \n\t}\n</script>";
$select_categ_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
$add_see_also = "\n<script>\n\tfunction fonction_selecteur_categ() {\n\t\tname=this.getAttribute('id').substring(4);\n\t\tname_id = name.substr(0,7)+'_id'+name.substr(7);\n\t\topenPopUp('./select.php?what=categorie&caller=categ_form&p1='+name_id+'&p2='+name+'&dyn=1', 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}');\n\t}\n\tfunction fonction_raz_categ() {\n\t\tname=this.getAttribute('id').substring(4);\n\t\tname_id = name.substr(0,7)+'_id'+name.substr(7);\n\t\tname_rec = name.substr(0,7)+'_rec'+name.substr(7);\n\t\tdocument.getElementById(name_id).value=0;\n\t\tdocument.getElementById(name).value='';\n\t\tdocument.getElementById(name_rec).checked=false;\n\t}\n\tfunction add_categ() {\n\t\ttemplate = document.getElementById('addcateg');\n\t\tcateg=document.createElement('div');\n\t\tcateg.className='row';\n\n\t\tsuffixe = eval('document.categ_form.max_categ.value')\n\t\tnom_id = 'f_categ'+suffixe\n\t\tf_categ = document.createElement('input');\n\t\tf_categ.setAttribute('name',nom_id);\n\t\tf_categ.setAttribute('id',nom_id);\n\t\tf_categ.setAttribute('type','text');\n\t\tf_categ.className='saisie-80emr';\n\t\tf_categ.setAttribute('readonly','');\n\t\tf_categ.setAttribute('value','');\n\t\t\n\t\tf_categ_rec = document.createElement('input');\n\t\tf_categ_rec.name = 'f_categ_rec'+suffixe;\n\t\tf_categ_rec.setAttribute('id','f_categ_rec'+suffixe);\n\t\tf_categ_rec.setAttribute('type','checkbox');\n\t\tf_categ_rec.setAttribute('value','1');\t\t\n\n\t\tdel_f_categ = document.createElement('input');\n\t\tdel_f_categ.setAttribute('id','del_f_categ'+suffixe);\n\t\tdel_f_categ.onclick=fonction_raz_categ;\n\t\tdel_f_categ.setAttribute('type','button');\n\t\tdel_f_categ.className='bouton_small';\n\t\tdel_f_categ.setAttribute('readonly','');\n\t\tdel_f_categ.setAttribute('value','{$msg['raz']}');\n\t\t\n\t\tf_categ_id = document.createElement('input');\n\t\tf_categ_id.name='f_categ_id'+suffixe;\n\t\tf_categ_id.setAttribute('type','hidden');\n\t\tf_categ_id.setAttribute('id','f_categ_id'+suffixe);\n\t\tf_categ_id.setAttribute('value','');\n\t\t\n\t\tcateg.appendChild(f_categ);\n\t\tspace=document.createTextNode(' ');\n\t\tcateg.appendChild(space);\n\t\tcateg.appendChild(f_categ_rec);\n\t\tcateg.appendChild(space);\n\t\tcateg.appendChild(del_f_categ);\n\t\tcateg.appendChild(f_categ_id);\n\n\t\ttemplate.appendChild(categ);\n\t\t\n\t\tif(document.getElementById('tab_categ_order')) {\n\t\t\ttab_categ_order = document.getElementById('tab_categ_order');\n\t\t\tif (tab_categ_order.value != '') tab_categ_order.value += ','+suffixe;\n\t\t}\n\n\t\tdocument.categ_form.max_categ.value=suffixe*1+1*1 ;\n\t}\n</script>";
$categ0 = "\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' readonly value=\"!!categ_libelle!!\" /><input type='checkbox' id='f_categ_rec!!icateg!!' name='f_categ_rec!!icateg!!' !!chk!! />\n\t\t<input type='button' class='bouton_small' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=categorie&caller=categ_form&p1=f_categ_id!!icateg!!&p2=f_categ!!icateg!!&dyn=1&parent=!!parent!!&id2=!!id!!', 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}')\" />\n\t\t<input type='button' class='bouton_small' value='{$msg['raz']}' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; this.form.f_categ_rec!!icateg!!.checked=false; \" />\n\t\t<input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' /><input type='button' class='bouton_small' value='+' onClick=\"add_categ();\"/>\n\t</div>";
$categ1 = "\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' readonly value=\"!!categ_libelle!!\" /><input type='checkbox' id='f_categ_rec!!icateg!!' name='f_categ_rec!!icateg!!' !!chk!! />&nbsp;<input type='button' class='bouton_small' value='{$msg['raz']}' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; \" /><input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' />\n\t</div>";
$form_categ_parent = "\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_categparent'>" . htmlentities($msg[categ_parent], ENT_QUOTES, $charset) . "</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' name='category_parent' readonly value=\"!!parent_libelle!!\" />\n\t\t<input type='button' class='bouton_small' onclick=\"openPopUp('./select.php?what=categorie&caller=categ_form&p1=category_parent_id&p2=category_parent&keep_tilde=1&parent=!!parent!!&id2='+document.categ_form.category_parent_id.value, 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton_small' value='{$msg['raz']}' onclick=\"this.form.category_parent.value=''; this.form.category_parent_id.value='0'; \" />\n\t\t<input type='hidden' name='category_parent_id' value='!!parent_value!!' />\n\t</div>";
$form_renvoivoir = "\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_renvoivoir'>" . htmlentities($msg[categ_renvoi], ENT_QUOTES, $charset) . "</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' name='category_voir' size='48' readonly value=\"!!voir_libelle!!\" />\n\t\t<input type='button' class='bouton_small' onclick=\"openPopUp('./select.php?what=categorie&caller=categ_form&p1=category_voir_id&p2=category_voir&parent=!!parent!!&id2='+document.categ_form.category_voir_id.value, 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton_small' value='{$msg['raz']}' onclick=\"this.form.category_voir.value=''; this.form.category_voir_id.value='0'; \" />\n\t\t<input type='hidden' name='category_voir_id' value='!!voir_value!!' />\n\t</div>";
$form_renvoivoiraussi = "\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_renvoivoir'>" . $msg['renvoi_voir_aussi'] . $msg['renvoi_reciproque'] . "</label>\n\t</div>\n\t!!renvoi_voir_aussi!!";
$form_num_aut = "\n\t<input type='text' class='saisie-20em' id='num_aut' name='num_aut' value=\"!!num_aut!!\" />";
// $categ_replace : form remplacement categorie
$form_categ_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='categ_replace' method='post' action='./autorites.php?categ=categories&sub=categ_replace&id=!!id!!&parent=!!parent!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!old_categ_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>" . htmlentities($msg[160], ENT_QUOTES, $charset) . "</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-80emr' name='by_libelle' id='by_libelle' value=\"\" completion=\"categories_mul\" autfield=\"by\" />\n\t\t<input type='button' class='bouton_small' value='{$msg['raz']}' onclick=\"this.form.by_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='button' class='bouton_small' onclick=\"openPopUp('./select.php?what=categorie&caller=categ_replace&p1=by&p2=by_libelle&keep_tilde=1&parent=0&deb_rech='+" . pmb_escape() . "(this.form.by_libelle.value), 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}')\" value='{$msg['parcourir']}' />\n\t\t<input type='hidden' name='by' id='by' value='0'>\n\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=categories&sub=categ_form&id=!!id!!&parent=!!parent!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['categ_replace'].elements['by_libelle'].focus();\n</script>\n";
$liaison_tpl = "\n<div id='el0Parent' class='parent' >\n\t<h3>\n    \t<img src='./images/plus.gif' class='img_plus' align='bottom' name='imEx' id='el0Img' title='{$msg['categ_links']}' border='0' onClick=\"expandBase('el0', true); return false;\" />\n    \t{$msg['categ_links']}\n    </h3>\n</div>\n<div id='el0Child' class='child'>\n    <!-- categ_child -->\n    <!-- categ_renvoivoir -->\n    <!-- categ_renvoivoiraussi -->\n</div>\n<div class='row'></div>";
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: editeurs.tpl.php,v 1.31 2016-01-07 15:03:09 vtouchard Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes, resizable=yes, scrollbars=yes";
// $publisher_form : form saisie éditeur
$publisher_form = jscript_unload_question() . "\n<script src='javascript/ajax.js'></script>\n<script type='text/javascript'>\n\trequire(['dojo/ready', 'apps/pmb/gridform/FormEdit'], function(ready, FormEdit){\n\t     ready(function(){\n\t     \tnew FormEdit();\n\t     });\n\t});\n</script>\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.ed_nom.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['144']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\tunload_off();\n\t\treturn true;\n\t}\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=editeurs&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else\n            document.forms['saisie_editeur'].elements['ed_nom'].focus();\n    }\n\tfunction check_link(id) {\n\t\tw=window.open(document.getElementById(id).value);\n\t\tw.focus();\n\t}\n-->\n</script>\n<form class='form-{$current_module}' id='saisie_editeur' name='saisie_editeur' method='post' action='!!action!!' onSubmit=\"return false\" >\n<div class='left'><h3>!!libelle!!</h3></div>\n<div class='right'>";
$publisher_form .= '
<!-- Selecteur de statut -->
    <label class="etiquette" for="authority_statut">' . $msg['authorities_statut_label'] . '</label>
     !!auth_statut_selector!!
';
if ($PMBuserid == 1 && $pmb_form_authorities_editables == 1) {
    $publisher_form .= "<input type='button' class='bouton_small' value='" . $msg["authorities_edit_format"] . "' id=\"bt_inedit\"/>";
}
if ($pmb_form_authorities_editables == 1) {
    $publisher_form .= "<input type='button' class='bouton_small' value=\"" . $msg["authorities_origin_format"] . "\" id=\"bt_origin_format\"/>";
}
$publisher_form .= "\n</div>\n<div class='form-contenu'>\n\t<div id='zone-container'>\n\t\t<!-- nom -->\n\t\t<div id='el0Child_0' movable='yes' class='row' title=\"" . htmlentities($msg['editeur_nom'], ENT_QUOTES, $charset) . "\">\n\t\t\t<div class='row'>\n        \t\t<label class='etiquette' for='form_nom'>" . $msg["editeur_nom"] . "</label>\n        \t\t</div>\n        \t<div class='row'>\n        \t\t<input type='text' class='saisie-80em' name='ed_nom' value=\"!!ed_nom!!\" />\n    \t\t</div>\n        </div>\n\t\t<!-- adr1 -->\n\t\t<div id='el0Child_1' movable='yes' class='row' title=\"" . htmlentities($msg['editeur_adr1'], ENT_QUOTES, $charset) . "\">        \t\t    \n    \t   <div class='row'>\n    \t\t  <label class='etiquette' for='form_adr1'>" . $msg["editeur_adr1"] . "</label>\n    \t   </div>\n    \t   <div class='row'>\n    \t\t  <input type='text' class='saisie-80em' name='ed_adr1' value=\"!!ed_adr1!!\" />\n\t\t   </div>\n        </div>\n\t\t<!-- adr2 -->\n\t\t<div id='el0Child_2' movable='yes' class='row' title=\"" . htmlentities($msg['editeur_adr2'], ENT_QUOTES, $charset) . "\">    \t\t      \n        \t<div class='row'>\n        \t\t<label class='etiquette' for='form_adr2'>" . $msg["editeur_adr2"] . "</label>\n        \t\t</div>\n        \t<div class='row'>\n        \t\t<input type='text' class='saisie-80em' name='ed_adr2' value=\"!!ed_adr2!!\" />\n        \t</div>\n    \t</div>\n\t\t\n\t\t<div id='el0Child_3' class='row'>\t\t\t\t\n\t\t\t<!-- cp -->\n\t\t\t<div id='el0Child_3_a' movable='yes' class='colonne2' title=\"" . htmlentities($msg['editeur_cp'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<label class='etiquette' for='form_cp'>" . $msg["editeur_cp"] . "</label>\n\t\t\t\t</div>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<input type='text' class='saisie-10em' name='ed_cp' value=\"!!ed_cp!!\" maxlength='10' />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<!-- ville -->\n        \t<div id='el0Child_3_b' movable='yes' class='colonne2' title=\"" . htmlentities($msg['editeur_ville'], ENT_QUOTES, $charset) . "\">\n\t\t\t\t<div class='row'>\n            \t\t<label class='etiquette' for='form_ville'>" . $msg["editeur_ville"] . "</label>\n        \t\t</div>\n            \t<div class='row'>\n            \t\t<input type='text' class='saisie-20em' name='ed_ville' value=\"!!ed_ville!!\" />\n            \t</div>\t\n        \t</div>\n\t\t</div>\n\n\t\t<!-- pays -->\n        <div id='el0Child_4' movable='yes' class='row' title=\"" . htmlentities($msg[146], ENT_QUOTES, $charset) . "\">\n        \t<div class='row'>\n        \t\t<label class='etiquette' for='form_pays'>{$msg['146']}</label>\n    \t\t</div>\n        \t<div class='row'>\n        \t\t<input type='text' class='saisie-20em' name='ed_pays' value=\"!!ed_pays!!\" />\n    \t\t</div>\n    \t</div>\n    \t<!-- web -->\n        <div id='el0Child_5' movable='yes' class='row' title=\"" . htmlentities($msg['editeur_web'], ENT_QUOTES, $charset) . "\">\n        \t<div class='row'>\n        \t\t<label class='etiquette' for='form_web'>" . $msg["editeur_web"] . "</label>\n    \t\t</div>\n        \t<div class='row'>\n        \t\t<input type='text' class='saisie-80em' name='ed_web' id='ed_web' value=\"!!ed_web!!\" />\n        \t\t<input class='bouton' type='button' onClick=\"check_link('ed_web')\" title='" . $msg["CheckLink"] . "' value='" . $msg["CheckButton"] . "' />\n    \t\t</div>\n        </div>\n    \t<!-- Commentaire -->\n    \t<div id='el0Child_6' movable='yes' class='row' title=\"" . htmlentities($msg['ed_comment'], ENT_QUOTES, $charset) . "\">\n    \t    <div class='row'>\n        \t\t<label class='etiquette'>" . $msg["ed_comment"] . "</label>\n    \t\t</div>\n        \t<div class='row'>\n        \t\t<textarea class='saisie-80em' name='ed_comment' cols='62' rows='4' wrap='virtual'>!!ed_comment!!</textarea>\n    \t\t</div>\n    \t</div>\n\t\t!!concept_form!!\n\t\t!!aut_pperso!!\n\t\t<!-- aut_link -->\n\t</div>\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=editeurs&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tdocument.forms['saisie_editeur'].elements['ed_nom'].focus();\n\tajax_parse_dom();\n</script>\n";
// $publisher_replace : form remplacement éditeur
$publisher_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='publisher_replace' method='post' action='./autorites.php?categ=editeurs&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n\t<h3>{$msg['159']} !!ed_name!! </h3>\n\t<div class='form-contenu'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-50emr' id='ed_libelle' name='ed_libelle' value=\"\" completion=\"publishers\" autfield=\"ed_id\" autexclude=\"!!id!!\"\n\t\t   \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=editeur&caller=publisher_replace&p1=ed_id&p2=ed_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_y_size}, -2 ,-2, '{$selector_prop}'); }\" />\n\t\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=editeur&caller=publisher_replace&p1=ed_id&p2=ed_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_y_size}, -2 ,-2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.ed_libelle.value=''; this.form.ed_id.value='0'; \" />\n\t\t\t<input type='hidden' name='ed_id' id='ed_id'>\n\t\t</div>\n\t\t<div class='row'>\t\t\n\t\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t\t</div>\t\n\t</div>\n\t<div class='row'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=editeurs&sub=editeur_form&id=!!id!!';\">\n\t\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['publisher_replace'].elements['ed_libelle'].focus();\n</script>\n";
Exemple #16
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: search_perso.tpl.php,v 1.2 2009-05-16 11:19:55 dbellamy Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
//*******************************************************************
// Définition des templates pour les listes en edition
//*******************************************************************
$tpl_search_perso_liste_tableau = "\n<h1>" . $msg["search_perso_title"] . "</h1>\n<div class='hmenu'>\n\t<span><a href='./catalog.php?categ=search_perso'>" . $msg["search_perso_list_title"] . "</a></span>!!preflink!!\n</div>\n<hr />\n<h3>" . $msg["search_perso_list"] . "</h3>\n\n\t<div class='row'>\n\t\t<table>\n\t\t<tr>\n\t\t\t<th>" . $msg["search_perso_table_preflink"] . "</th>\n\t\t\t<th>" . $msg["search_perso_table_name"] . "</th>\n\t\t\t<th>" . $msg["search_perso_table_shortname"] . "</th>\n\t\t\t<th>" . $msg["search_perso_table_humanquery"] . "</th>\n\t\t\t<th>" . $msg["search_perso_table_edit"] . "</th>\n\t\t</tr>\n\t\t!!lignes_tableau!!\n\t\t</table>\n\t</div>\t\t\n<hr />\t\n<!--\tBouton Ajouter\t-->\n<div class='row'>\n\t<input class='bouton' value='" . $msg["search_perso_add"] . "' type='button'  onClick=\"document.location='./catalog.php?categ=search&mode=6&search_perso=add'\" >\n</div>\n";
$tpl_search_perso_liste_tableau_ligne = "\n<tr class='!!pair_impair!!' '!!tr_surbrillance!!'  style='cursor: pointer'>\n\t<td !!td_javascript!! >!!directlink!!</td>\n\t<td !!td_javascript!! >!!name!!</td>\n\t<td !!td_javascript!! >!!shortname!!</td>\n\t<td !!td_javascript!! >!!human!!</td>\t\n\t<td><input class='bouton_small' value='" . $msg["search_perso_modifier"] . "' type='button'  onClick=\"document.location='./catalog.php?categ=search_perso&sub=form&id=!!id!!'\" ></td>\n</tr>\n";
$tpl_search_perso_form = jscript_unload_question() . "\n<script type='text/javascript'>\n\nfunction test_form(form) {\n\tif(form.name.value.length == 0)\t{\n\t\talert(\"" . $msg["search_perso_form_name_empty"] . "\");\n\t\treturn false;\n\t}\n\tunload_off();\t\n\treturn true;\n}\n\nfunction confirm_delete() {\n    result = confirm(\"{$msg[confirm_suppr]}\");\n    if(result) {\n        unload_off();\n        document.location='./catalog.php?categ=search_perso&sub=delete&id=!!id!!';\n\t} else\n        document.forms['search_perso_form'].elements['name'].focus();\n}\nfunction check_link(id) {\n\tw=window.open(document.getElementById(id).value);\n\tw.focus();\n}\n</script>\n\n<h1>" . $msg["search_perso_form_title"] . "</h1>\n<form class='form-{$current_module}' name='search_perso_form' method='post' action='./catalog.php?categ=search_perso&sub=save'>\n\t<h3>!!libelle!!</h3>\n\t<div class='form-contenu'>\n\t\t<!--\tnom\t-->\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='name'>" . $msg["search_perso_form_name"] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-80em' id='form_nom' name='name' value=\"!!name!!\" />\n\t\t</div>\t\n\t\t\n\t\t<!--\tshort nom\t-->\n\t\t<div class='row'>\n\t\t\t<label class='etiquette' for='shortname'>" . $msg["search_perso_form_shortname"] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='saisie-80em' id='shortname' name='shortname' value=\"!!shortname!!\" />\n\t\t</div>\t\t\t\n\t\t\n\t\t<div class='row'>\n\t\t\t<input value='1' name='directlink' !!directlink!! type='checkbox'>\n\t\t\t<label for='directlink' class='etiquette'>" . $msg["search_perso_form_direct_search"] . "</label>  \n\t\t</div>\t\n\t</div>\n\t<input type='hidden' name='query' value='!!query!!' />\n\t<input type='hidden' name='id' value='!!id!!' />\n\t<input type='hidden' name='human' value='!!human!!' />\n<!--\tBoutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='" . $msg["search_perso_form_annuler"] . "' !!annul!! />\n\t\t<input type='button' value='" . $msg["search_perso_form_save"] . "' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n\n</form>\n<script type='text/javascript'>\n\tdocument.forms['search_perso_form'].elements['name'].focus();\n</script>\n";
Exemple #17
0
//       $ptab[10] : Contenu de l'onglet 10 (champs de gestion)
//    ----------------------------------------------------
$ptab[10] = "\n<!-- onglet 10 -->\n<div id='el10Parent' class='parent'>\n<h3>\n    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el10Img' onClick=\"expandBase('el10', true); return false;\" title='" . $msg["notice_champs_gestion"] . "' border='0' /> " . $msg["notice_champs_gestion"] . "\n</h3>\n</div>\n\n<div id='el10Child' class='child' etirable='yes' title='" . htmlentities($msg[notice_champs_gestion], ENT_QUOTES, $charset) . "'>\n\t<div id='el10Child_0' title='" . htmlentities($msg[notice_statut_gestion], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t<div id='el10Child_0a' class='row'>\n\t\t    <label for='f_notice_statut' class='etiquette'>{$msg['notice_statut_gestion']}</label>\n\t\t</div>\n\t\t<div id='el10Child_0b' class='row'>\n\t\t\t!!notice_statut!!\n\t    </div>\n\t</div>\n\t<div id='el10Child_7' title='" . htmlentities($msg["notice_is_new_gestion"], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t<!--    Nouveauté    -->\n\t\t<div id='el10Child_7a' class='row'>\n\t\t    <label for='f_new_gestion' class='etiquette'>" . $msg["notice_is_new_gestion"] . "</label>\n\t\t</div>\n\t\t<div id='el10Child_7b' class='row'>\n\t\t    <input type='radio' name='f_notice_is_new' !!checked_no!! value='0'>" . $msg["notice_is_new_gestion_no"] . "<br>\n\t\t    <input type='radio' name='f_notice_is_new' !!checked_yes!! value='1'>" . $msg["notice_is_new_gestion_yes"] . "<br>\n\t\t</div>\n\t</div>\t\n\t<div id='el10Child_1' title='" . htmlentities($msg[notice_commentaire_gestion], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t<!--    commentaire de gestion    -->\n\t\t<div id='el10Child_1a' class='row'>\n\t\t    <label for='f_commentaire_gestion' class='etiquette'>{$msg['notice_commentaire_gestion']}</label>\n\t\t</div>\n\t\t<div id='el10Child_1b' class='row'>\n\t\t    <textarea class='saisie-80em' id='f_commentaire_gestion' name='f_commentaire_gestion' rows='1' wrap='virtual'>!!commentaire_gestion!!</textarea>\n\t\t</div>\n\t</div>\n\t\n\t<div id='el10Child_2' title='" . htmlentities($msg[notice_thumbnail_url], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t<!--    URL vignette speciale    -->\n\t\t<div id='el10Child_2a' class='row'>\n\t\t    <label for='f_thumbnail_url' class='etiquette'>{$msg['notice_thumbnail_url']}</label>\n\t\t</div>\n\t\t<div id='el10Child_2b' class='row'>\n\t\t    <input type='text' class='saisie-80em' id='f_thumbnail_url' name='f_thumbnail_url' rows='1' wrap='virtual' value=\"!!thumbnail_url!!\" />\n\t\t</div>\n\t</div>";
global $pmb_notice_img_folder_id;
if ($pmb_notice_img_folder_id) {
    $ptab[10] .= "\n\t\t<div id='el10Child_6' title='" . htmlentities($msg[notice_img_load], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t\t<!--    Vignette upload    -->\n\t\t\t<div id='el10Child_6a' class='row'>\n\t\t\t    <label for='f_img_load' class='etiquette'>{$msg['notice_img_load']}</label>!!message_folder!!\n\t\t\t</div>\n\t\t\t<div id='el10Child_6b' class='row'>\n\t\t\t    <input type='file' class='saisie-80em' id='f_img_load' name='f_img_load' rows='1' wrap='virtual' value='' />\n\t\t\t</div>\n\t\t</div>";
}
$ptab[10] .= "\n\t<div id='el10Child_3' title='" . htmlentities($msg['admin_menu_acces'], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t<!-- Droits d'acces -->\t\t\n\t\t<!-- rights_form -->\n\t</div>\n\t<div id='el10Child_4' title='" . htmlentities($msg[indexation_lang_select], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t<div id='el10Child_4a' class='row'>\n\t\t    <label for='f_notice_lang' class='etiquette'>" . $msg["indexation_lang_select"] . "</label>\n\t\t</div>\n\t\t<div id='el10Child_4b' class='row'>\n\t\t   !!indexation_lang!!\n\t\t</div>\n\t</div>\n";
global $pmb_notices_show_dates;
if ($pmb_notices_show_dates) {
    $ptab[10] .= "\n\t\t<div id='el10Child_9' title='" . htmlentities($msg[noti_crea_date], ENT_QUOTES, $charset) . "' movable='yes'>\n\t\t\t<div id='el10Child_9a' class='row'>\n\t\t\t\t!!dates_notice!!\n\t\t\t</div>\n\t\t</div>";
}
$ptab[10] .= "\n</div>\n";
// $form_notice : formulaire de notice
global $pmb_catalog_verif_js;
$form_notice = jscript_unload_question();
$form_notice .= "\n<!-- script de gestion des onglets -->\n<script type='text/javascript' src='./javascript/tabform.js'></script>\n" . ($pmb_catalog_verif_js != "" ? "<script type='text/javascript' src='{$base_path}/javascript/{$pmb_catalog_verif_js}'></script>" : "") . "\n<script type='text/javascript'>\n<!--\n    function test_notice(form)\n    {\n    ";
if ($pmb_catalog_verif_js != "") {
    $form_notice .= "\n\t\tvar check = check_perso_form()\n\t\tif(check == false) return false;";
}
$form_notice .= "\n\t\ttitre1 = form.f_tit1.value; \n\t\ttitre1 = titre1.replace(/^\\s+|\\s+\$/g, ''); //trim la valeur\n        if(titre1.length == 0) {\n           alert(\"{$msg['277']}\");  \n           return false;\n\t\t}\n\t\treturn check_form();\n    }\n-->\n</script>\n<script src='javascript/ajax.js'></script>\n<script src='javascript/move.js'></script>\n<script type='text/javascript'>\n\tvar msg_move_to_absolute_pos='" . addslashes($msg['move_to_absolute_pos']) . "';\n\tvar msg_move_to_relative_pos='" . addslashes($msg['move_to_relative_pos']) . "';\n\tvar msg_move_saved_ok='" . addslashes($msg['move_saved_ok']) . "';\n\tvar msg_move_saved_error='" . addslashes($msg['move_saved_error']) . "';\n\tvar msg_move_up_tab='" . addslashes($msg['move_up_tab']) . "';\n\tvar msg_move_down_tab='" . addslashes($msg['move_down_tab']) . "';\n\tvar msg_move_position_tab='" . addslashes($msg['move_position_tab']) . "';\n\tvar msg_move_position_absolute_tab='" . addslashes($msg['move_position_absolute_tab']) . "';\n\tvar msg_move_position_relative_tab='" . addslashes($msg['move_position_relative_tab']) . "';\n\tvar msg_move_invisible_tab='" . addslashes($msg['move_invisible_tab']) . "';\n\tvar msg_move_visible_tab='" . addslashes($msg['move_visible_tab']) . "';\n\tvar msg_move_inside_tab='" . addslashes($msg['move_inside_tab']) . "';\n\tvar msg_move_save='" . addslashes($msg['move_save']) . "';\n\tvar msg_move_first_plan='" . addslashes($msg['move_first_plan']) . "';\n\tvar msg_move_last_plan='" . addslashes($msg['move_last_plan']) . "';\n\tvar msg_move_first='" . addslashes($msg['move_first']) . "';\n\tvar msg_move_last='" . addslashes($msg['move_last']) . "';\n\tvar msg_move_infront='" . addslashes($msg['move_infront']) . "';\n\tvar msg_move_behind='" . addslashes($msg['move_behind']) . "';\n\tvar msg_move_up='" . addslashes($msg['move_up']) . "';\n\tvar msg_move_down='" . addslashes($msg['move_down']) . "';\n\tvar msg_move_invisible='" . addslashes($msg['move_invisible']) . "';\n\tvar msg_move_visible='" . addslashes($msg['move_visible']) . "';\n</script>\n<script type='text/javascript'>\n\tfunction focus_tit1(){\n\t\tvar f_tit1 = document.getElementById('f_tit1');\n\t\tif (f_tit1) {\n\t\t\tf_tit1.focus();\n\t\t}\n\t}\n</script>\n<form class='form-{$current_module}' id='notice' name='notice' method='post' action='!!action!!' enctype='multipart/form-data' >\n<h3><div class='left'>!!libelle_form!!</div><div class='right'>";
if ($PMBuserid == 1 && $pmb_form_editables == 1) {
    $form_notice .= "<input type='button' class='bouton_small' value='" . $msg["catal_edit_format"] . "' onClick=\"expandAll(); move_parse_dom(relative)\" id=\"bt_inedit\"/><input type='button' class='bouton_small' value='Relatif' onClick=\"expandAll(); move_parse_dom((!relative))\" style=\"display:none\" id=\"bt_swap_relative\"/>";
}
if ($pmb_form_editables == 1) {
    $form_notice .= "<input type='button' class='bouton_small' value=\"" . $msg["catal_origin_format"] . "\" onClick=\"get_default_pos(); expandAll();  ajax_parse_dom(); if (inedit) move_parse_dom(relative); else initIt();\"/>";
}
$form_notice .= "</div></h3>&nbsp; \n<div class='form-contenu'>\n<div class='row'>\n    \t!!doc_type!! !!location!!\n    </div>\n<div class='row'>\n\t<a href=\"#\" onclick=\"expandAll();return false;\"><img src='./images/expand_all.gif' border='0' id=\"expandall\"></a>\n\t<a href=\"#\" onclick=\"collapseAll();return false;\"><img src='./images/collapse_all.gif' border='0' id=\"collapseall\"></a>";
$form_notice .= "\t<input type='hidden' name='b_level' value='!!b_level!!' />\n\t<input type='hidden' name='h_level' value='!!h_level!!' />\n\t</div>\n!!tab0!!\n<hr class='spacer' />\n!!tab1!!\n<hr class='spacer' />\n!!tab2!!\n<hr class='spacer' />\n!!tab3!!\n<hr class='spacer' />\n!!tab4!!\n<hr class='spacer' />\n!!tab5!!\n<hr class='spacer' />\n!!tab6!!";
global $pmb_use_uniform_title;
if ($pmb_use_uniform_title) {
Exemple #18
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: authors.tpl.php,v 1.31.2.2 2014-08-05 12:26:19 apetithomme Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
    die("no access");
}
$selector_prop = "toolbar=no, dependent=yes,resizable=yes, scrollbars=yes";
global $pmb_autorites_verif_js, $base_path;
//	----------------------------------
// $author_form : form saisie auteur
// champs :
//	author_type : 70/71 (select)
//	author_nom element d'entrée
//	author_rejete element rejeté
//	date1 (text max:4) date 1
//	date2 (text max:4) date 2
//	voir_id (hidden) id de la forme retenue
//	voir_libelle
$author_form = jscript_unload_question() . "\n" . ($pmb_autorites_verif_js != "" ? "<script type='text/javascript' src='{$base_path}/javascript/{$pmb_autorites_verif_js}'></script>" : "") . "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{";
if ($pmb_autorites_verif_js != "") {
    $author_form .= "\n\t\tvar check = check_perso_author_form(form);\n\t\tif (check == false) return false;";
}
$author_form .= "\n\t\tif(form.author_nom.value.length == 0)\n\t\t\t{\n\t\t\t\talert(\"{$msg['213']}\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\tif(form.voir_libelle.value.length == 0)\n\t\t\t{\n\t\t\t\tform.voir_id.value='';\n\t\t\t}\n\t\tunload_off();\t\n\t\treturn true;\n\t}\n\nfunction confirm_delete() {\n        result = confirm(\"{$msg[confirm_suppr]}\");\n        if(result) {\n        \tunload_off();\n            document.location='./autorites.php?categ=auteurs&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t\t} else\n            document.forms['saisie_auteur'].elements['author_nom'].focus();\n    }\n\tfunction check_link(id) {\n\t\tw=window.open(document.getElementById(id).value);\n\t\tw.focus();\n\t}\n-->\n</script>\n<script type='text/javascript'>\n\nfunction display_part(type)\n{\n\t\n\tvar collectivite_part = document.getElementById('collectivite_part');\n\t\n\tvar dupli_exist = document.getElementById('dupli_btn');\n\t\n\tif(type == '70'){\n\t\tcollectivite_part.style.display = 'none';\n\t\tif(dupli_exist)\n\t\t\tdocument.getElementById('dupli_btn').style.visibility = 'hidden';\n\t\t\n\t\tdocument.getElementById('author_nom').setAttribute('completion', '');\t\n\t\t\n\t} else {\t\t\n\t\tcollectivite_part.style.display = 'table-cell';\n\t\tif(dupli_exist)\t\n\t\t\tdocument.getElementById('dupli_btn').style.visibility = 'visible';\n\t\tif(type == '71') \n\t\t\tdocument.getElementById('author_nom').setAttribute('completion', 'collectivite_name');\n\t\telse  document.getElementById('author_nom').setAttribute('completion', 'congres_name');\t\n\t}  \n\t\t\n\tvar libelle_titre = document.getElementById('libelle_titre');\n\tif(type == '70') {\n\t\tlibelle_titre.innerHTML='" . addslashes($msg[207]) . "';\n\t} else if(type == '71'){\n\t\tlibelle_titre.innerHTML='" . addslashes($msg["aut_ajout_collectivite"]) . "';\n\t} else if(type == '72'){\n\t\tlibelle_titre.innerHTML='" . addslashes($msg["aut_ajout_congres"]) . "';\n\t}\n} \n\n</script>\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' id='saisie_auteur' name='saisie_auteur' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3><label id='libelle_titre'>!!libelle!!</label></h3>\n<div class='form-contenu'>\n<!--\ttype\t-->\n<div class='row'>\n\t<label class='etiquette' for='author_type_sel'>{$msg['205']}</label>\n\t</div>\n<div class='row'>\n\t<select name='author_type' id='author_type_sel'  onchange='display_part(this.value)'>\n\t\t<option value='70'!!sel_pp!!>{$msg['203']}</option>\n\t\t<option value='71'!!sel_coll!!>{$msg['204']}</option>\n\t\t<option value='72'!!sel_congres!!>" . $msg["congres_libelle"] . "</option>\t\t\n\t</select>\n\t</div>\n\n<div class='colonne2'>\n\t<!--\tnom\t-->\n\t<div class='row'>\n\t\t<label class='etiquette' for='author_nom'>{$msg['201']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' id='author_nom' name='author_nom' autfield='rien' completion='!!completion_name!!' value=\"!!author_nom!!\" />\n\t\t<input id='rien' name='rien' value='' type='hidden'>\n\t\t</div>\n        </div>\n<div class='colonne_suite'>\n\t<!--\trejete\t-->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_rejete'>{$msg['202']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' id='form_rejete' name='author_rejete' value=\"!!author_rejete!!\"  />\n\t\t</div>\n        </div>\n<!--\tdates\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_dates'>{$msg['713']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_dates' name='date' value='!!date!!'>\n\t</div>\n\t\n<div id='collectivite_part' style='!!display!!'>\t\n\t\n<!--\tlieu\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_lieu'>" . $msg["congres_lieu_libelle"] . "</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_lieu' name='lieu' value='!!lieu!!'>\n\t</div>\t\n<div class='colonne2'>\n\t<!--\tville\t-->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_ville'>" . $msg["congres_ville_libelle"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' id='form_ville' name='ville' value=\"!!ville!!\" />\n\t\t</div>\n        </div>\n<div class='colonne_suite'>\n\t<!--\tpays\t-->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_pays'>" . $msg["congres_pays_libelle"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' id='form_pays' name='pays' value=\"!!pays!!\"  />\n\t\t</div>\n        </div>\n<div class='colonne2'>\n\t<!--\tsubdivision\t-->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_subdivision'>" . $msg["congres_subdivision_libelle"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' id='form_subdivision' name='subdivision' value=\"!!subdivision!!\" />\n\t\t</div>\n        </div>\n<div class='colonne_suite'>\n\t<!--\tnumero\t-->\n\t<div class='row'>\n\t\t<label class='etiquette' for='form_numero'>" . $msg["congres_numero_libelle"] . "</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-30em' id='form_numero' name='numero' value=\"!!numero!!\"  />\n\t\t</div>\n        </div>\t\t\n</div>\t\n<!--\tforme retenue\t-->\n<div class='row'>\n\t<label class='etiquette' for='voir_libelle'>{$msg['206']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-50emr' id='voir_libelle' name='voir_libelle' value=\"!!voir_libelle!!\" completion=\"authors\" autfield=\"voir_id\" autexclude=\"!!id!!\"\n    onkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=auteur&caller=saisie_auteur&param1=voir_id&param2=voir_libelle', 'select_author', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=auteur&caller=saisie_auteur&param1=voir_id&param2=voir_libelle', 'select_author', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.voir_libelle.value=''; this.form.voir_id.value='0'; \" />\n\t<input type='hidden' value='!!voir_id!!' name='voir_id' id='voir_id' />\n\t</div>\n<!-- web -->\n<div class='row'>\n\t<label class='etiquette' for='author_web'>{$msg['147']}</label>\n\t</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' name='author_web' id='author_web' value=\"!!author_web!!\" maxlength='255' />\n\t<input class='bouton' type='button' onClick=\"check_link('author_web')\" title='{$msg['CheckLink']}' value='{$msg['CheckButton']}' />\n</div>\n\n<!-- Commentaire -->\n<div class='row'>\n\t<label class='etiquette' for='author_comment'>{$msg['author_comment']}</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='author_comment' name='author_comment' cols='62' rows='4' wrap='virtual'>!!author_comment!!</textarea>\n</div>\n!!aut_pperso!!\n<div class='row'>\n\t<label class='etiquette' for='author_import_denied'>" . $msg['authority_import_denied'] . "</label> &nbsp;\n\t<input type='checkbox' id='author_import_denied' name='author_import_denied' value='1' !!author_import_denied!!/>\n</div>\n<!-- aut_link -->\n</div>\n<!--\tboutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=auteurs&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!&type_autorite=!!type_autorite!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!dupliquer!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['saisie_auteur'].elements['author_nom'].focus();\n</script>\n!!liste_des_renvoyes_vers!!\n";
// $author_replace : form remplacement auteur
$author_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='author_replace' method='post' action='./autorites.php?categ=auteurs&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!old_author_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='par'>{$msg['160']}</label>\n\t\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' id='author_libelle' name='author_libelle' value=\"\" completion=\"authors\" autfield=\"by\" autexclude=\"!!id!!\"\n    \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=auteur&caller=author_replace&param1=by&param2=author_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=auteur&caller=author_replace&param1=by&param2=author_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.author_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' id='by' value=''>\n\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox'  value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=auteurs&sub=author_form&id=!!id!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['author_replace'].elements['author_libelle'].focus();\n</script>\n";