当前位置: 首页>>代码示例>>PHP>>正文


PHP jscript_unload_question函数代码示例

本文整理汇总了PHP中jscript_unload_question函数的典型用法代码示例。如果您正苦于以下问题:PHP jscript_unload_question函数的具体用法?PHP jscript_unload_question怎么用?PHP jscript_unload_question使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了jscript_unload_question函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: test_form

$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);";
开发者ID:hogsim,项目名称:PMB,代码行数:31,代码来源:serials.tpl.php

示例2: die

<?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";
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:30,代码来源:authperso.tpl.php

示例3: die

<?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";
开发者ID:hogsim,项目名称:PMB,代码行数:21,代码来源:collections.tpl.php

示例4: die

<?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";
开发者ID:bouchra012,项目名称:PMB,代码行数:14,代码来源:editeurs.tpl.php

示例5: die

<?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";
开发者ID:hogsim,项目名称:PMB,代码行数:14,代码来源:indexint.tpl.php

示例6: die

<?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";
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:26,代码来源:indexint.tpl.php

示例7: die

// +-------------------------------------------------+
// © 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>";
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:31,代码来源:category.tpl.php

示例8: die

<?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";
开发者ID:bouchra012,项目名称:PMB,代码行数:15,代码来源:notice_tpl.tpl.php

示例9: die

<?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";
开发者ID:bouchra012,项目名称:PMB,代码行数:14,代码来源:series.tpl.php

示例10: die

<?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>";
开发者ID:hogsim,项目名称:PMB,代码行数:27,代码来源:collstate.tpl.php

示例11: die

<?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>";
开发者ID:bouchra012,项目名称:PMB,代码行数:29,代码来源:category.tpl.php

示例12: die

<?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";
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:26,代码来源:editeurs.tpl.php

示例13: die

<?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";
开发者ID:bouchra012,项目名称:PMB,代码行数:15,代码来源:search_perso.tpl.php

示例14: htmlentities

//       $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) {
开发者ID:hogsim,项目名称:PMB,代码行数:31,代码来源:catal_form.tpl.php

示例15: die

<?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";
开发者ID:bouchra012,项目名称:PMB,代码行数:28,代码来源:authors.tpl.php


注:本文中的jscript_unload_question函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。