本文整理汇总了PHP中pmb_escape函数的典型用法代码示例。如果您正苦于以下问题:PHP pmb_escape函数的具体用法?PHP pmb_escape怎么用?PHP pmb_escape使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pmb_escape函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetchDisplay
function fetchDisplay()
{
global $visionneuse_path, $base_path;
//le titre
$this->toDisplay["titre"] = $this->doc->titre;
//la visionneuse pdf
$this->toDisplay["doc"] = "\n \t<script type='text/javascript' src='visionneuse/classes/mimetypes/flexpdf/flexpaper/js/jquery.min.js'></script>\n \t<script type='text/javascript' src='visionneuse/classes/mimetypes/flexpdf/flexpaper/js/flexpaper.js'></script>\n \t<script type='text/javascript' src='visionneuse/classes/mimetypes/flexpdf/flexpaper/js/flexpaper_handlers.js'></script>\n \t<div id='flexpaperFrameViewer' class='flexpaper_viewer' style='margin:auto;display:block'></div>\n \t<script type='text/javascript'> \n \t\t\twindow.onload = function(){\n\t\t\t\t\tvar iframe= document.getElementById('flexpaperFrameViewer');\n\t\t\t\t\tiframe.style.width = '" . $this->parameters["size_x"] . "%';\n\t\t\t\t\tiframe.style.height = ((getFrameHeight()-40-80)*" . $this->parameters["size_y"] / 100 . ")+'px';\t\t\t\t\n\t\t\t\t\t\$('#flexpaperFrameViewer').FlexPaperViewer({ config : {\n\t\t\t\t\t\t\t SWFFile : " . pmb_escape() . "('" . $this->driver->getVisionneuseUrl("lvl=afficheur&explnum=" . $this->doc->id) . "'),\n\t\t\t\t\t\t\t jsDirectory : 'visionneuse/classes/mimetypes/flexpdf/flexpaper/js/',\n\t\t\t\t\t\t\t Scale : 0.6, \n\t\t\t\t\t\t\t ZoomTransition : 'easeOut',\n\t\t\t\t\t\t\t ZoomTime : 0.5,\n\t\t\t\t\t\t\t ZoomInterval : 0.2,\n\t\t\t\t\t\t\t FitPageOnLoad : true,\n\t\t\t\t\t\t\t FitWidthOnLoad : false,\n\t\t\t\t\t\t\t PrintEnabled : " . ($this->parameters["print_allowed"] ? "true" : "false") . ",\n\t\t\t\t\t\t\t FullScreenAsMaxWindow : false,\n\t\t\t\t\t\t\t ProgressiveLoading : true,\n\t\t\t\t\t\t\t MinZoomSize : 0.2,\n\t\t\t\t\t\t\t MaxZoomSize : 5,\n\t\t\t\t\t\t\t SearchMatchAll : true,\n\t\t\t\t\t\t\t InitViewMode : 'Portrait',\n\t\t\t\t\t\t\t RenderingOrder : 'flash,html,html5',\n\t\t\t\t\t\t\t ViewModeToolsVisible : true,\n\t\t\t\t\t\t\t ZoomToolsVisible : true,\n\t\t\t\t\t\t\t NavToolsVisible : true,\n\t\t\t\t\t\t\t CursorToolsVisible : true,\n\t\t\t\t\t\t\t SearchToolsVisible : true,\n\t \t\t\t\t\t\t localeChain: 'fr_FR'\n\t\t\t\t\t\t\t}});\n\t\t\t\t}";
if ($this->doc->search) {
$this->toDisplay["doc"] .= "\t\n\t\t\t\twindow.onDocumentLoaded=function() {\n\t\t\t\t\tgetDocViewer().searchText('" . addslashes(substr($this->doc->search, 9, strlen($this->doc->search) - 10)) . "');\n\t\t\t\t}";
}
$this->toDisplay["doc"] .= "\n\t </script>\n\t \n \t";
//if ($this->parameters['autoresize'] == 1)
//la description
$this->toDisplay["desc"] = $this->doc->desc;
return $this->toDisplay;
}
示例2: render
function render()
{
global $visionneuse_path;
$subst_style = "";
if (file_exists($visionneuse_path . "/classes/mimetypes/bookreader/BookReader/BookReader_subst.css")) {
$subst_style = "<link rel='stylesheet' type='text/css' href='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/BookReader_subst.css'/>";
}
//$doc = new docbnf_zip($visionneuse_path."/temp/".$this->doc->id);
print "\n<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n<html>\n <head>\n \t<link rel='stylesheet' type='text/css' href='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/BookReader.css'/>\n \t<link rel='stylesheet' type='text/css' href='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/BookReaderPerso.css'/>\n \t<link rel='stylesheet' type='text/css' href='" . $this->driver->getVisionneuseUrl("lvl=ajax&explnum_id=" . $this->doc->id . "&method=getCSS'/>") . "\n\t {$subst_style}\n\t <script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/excanvas.compiled.js'></script>\n \t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/jquery-1.4.2.min.js'></script>\n\t\t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/jquery-ui-1.8.5.custom.min.js?v=3.0.9'></script>\n\t\t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/dragscrollable.js'></script>\n\t\t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/jquery.colorbox-min.js'></script>\n\t\t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/jquery.ui.ipad.js'></script>\n\t\t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/jquery.bt.min.js'></script>\t\n\t\t<script type='text/javascript' src='{$visionneuse_path}/classes/mimetypes/bookreader/BookReader/BookReader.js?v=3.0.9'></script>\t\n \t<script type='text/javascript'>\n \t\t\$(document).ready(function() {\n\t \t\tbr = new BookReader();\n\t \t\t\n\t\t\t\t//Ici on génère le bloc d'informations...\n\t\t\t\t" . $this->genereInfos() . "\n\t\t\t\t\n\t\t\t\t//mode par défaut\n\t\t\t\tbr.mode = br." . $this->parameters['mode_affichage'] . ";\n\t\t\t\t\n\t \t\tbr.pagesSizes= " . $this->getJSPagesSizes() . ";\n\t\t\t\t\n\t\t\t\tbr.getPageWidth = function(index) {\n\t\t\t\t\tif(this.pagesSizes[this.getPageNum(index)]){\n\t\t\t\t \t\treturn this.pagesSizes[this.getPageNum(index)].width;\n\t\t\t\t \t}else return 480;\n\t\t\t\t}\n\t\n\t\t\t\tbr.getPageHeight = function(index) {\n\t\t\t\t\tif(this.pagesSizes[this.getPageNum(index)]){\n\t\t\t\t \treturn this.pagesSizes[this.getPageNum(index)].height;\n\t\t\t\t \t}else return 640;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbr.getPageURI = function(index, reduce, rotate) {\n\t\t\t\t // reduce and rotate are ignored in this simple implementation, but we\n\t\t\t\t // could e.g. look at reduce and load images from a different directory\n\t\t\t\t // or pass the information to an image server\n\t\t\t\t var url = '" . $this->driver->getVisionneuseUrl("lvl=ajax&explnum_id=" . $this->doc->id . "&method=getPage") . "&page='+(index+1);\n\t\t\t\t return url;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Return which side, left or right, that a given page should be displayed on\n\t\t\t\tbr.getPageSide = function(index) {\n\t\t\t\t\tif (0 == (index & 0x1)) {\n\t\t\t\t\t\treturn 'R';\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn 'L';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbr.getSpreadIndices = function(pindex) { \n\t\t\t\t\tvar spreadIndices = [null, null]; \n\t\t\t\t\tif ('rl' == this.pageProgression) {\n\t\t\t\t\t\t// Right to Left\n\t\t\t\t\t\tif (this.getPageSide(pindex) == 'R') {\n\t\t\t\t\t\t\tspreadIndices[1] = pindex;\n\t\t\t\t\t\t\tspreadIndices[0] = pindex + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Given index was LHS\n\t\t\t\t\t\t\tspreadIndices[0] = pindex;\n\t\t\t\t\t\t\tspreadIndices[1] = pindex - 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Left to right\n\t\t\t\t\t\tif (this.getPageSide(pindex) == 'L') {\n\t\t\t\t\t\t\tspreadIndices[0] = pindex;\n\t\t\t\t\t\t\tspreadIndices[1] = pindex + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Given index was RHS\n\t\t\t\t\t\t\tspreadIndices[1] = pindex;\n\t\t\t\t\t\t\tspreadIndices[0] = pindex - 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn spreadIndices;\n\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\tbr.getPageNum = function(index) {\n\t\t\t\t return index+1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbr.leafNumToIndex = function(leaf) {\n\t\t\t\t return leaf-1;\n\t\t\t\t}\n\t\n\t\t\t\tbr.numLeafs = " . $this->getPageCount() . " ;\n\t\t\t\t\n\t\t\t\t// Book title and the URL used for the book title link\n\t\t\t\tbr.bookTitle= '" . addslashes($this->doc->titre) . "';\n\t\t\t\tbr.bookUrl = '" . addslashes($this->getBookURL()) . "';\n\t\t\t\tbr.logoURL = '" . addslashes($this->driver->getUrlBase()) . "';\n\t\t\t\t\n\t\t\t\t// Override the path used to find UI images\n\t\t\t\tbr.imagesBaseURL = '" . $visionneuse_path . "/classes/mimetypes/bookreader/BookReader/images/';\n\t\t\t\t\n\t\t\t\tbr.getEmbedCode = function(frameWidth, frameHeight, viewParams) {\n\t\t\t\t return \"\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbr.search = function(term){\n\t\t\t\t\t\$('#textSrch').blur();\n\t\t\t\t\tvar url = '" . $this->driver->getVisionneuseUrl("lvl=ajax&explnum_id=" . $this->doc->id . "&method=search") . "&user_query='+" . pmb_escape() . "(term);\n\t\t\t\t\tterm = term.replace(/\\//g, ' '); // strip slashes, since this goes in the url\n\t\t\t\t\tthis.searchTerm = term;\n\t\t\t\t\tthis.showProgressPopup('<img id=\"searchmarker\" src=\"'+this.imagesBaseURL + 'marker_srch-on.png'+'\"> Recherche en cours');\n\t\t\t\t\t\$.ajax({url:url, dataType:'json',success : br.BRSearchCallback}); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbr.getBookmarksCallback = function(result){\n\t\t\t\t\tif(result){\n\t\t\t\t\t\tfor(var i=0 ; i<result.length ; i++){\n\t\t\t\t\t\t\tif(result[i].deep>0)\n\t\t\t\t\t\t\tbr.addChapter(result[i].label, result[i].analysis_page*1, result[i].page*1-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Let's go!\n\t\t\t\tbr.init();\n\t\t\t\t\n\t\t\t\t\$('#BRreturn a').attr('target', '_blank');\n\t\t\t\t\$('#BRtoolbar').find('.read').hide();\n\t\t\t\t\$('#BRtoolbar .play').show();\n\t\t\t\t\$('#BRtoolbar .share').hide();\n\t\n\t\t\t\t//affichage des Bookmarks !\n\t\t\t\t\$.ajax({url:'" . $this->driver->getVisionneuseUrl("lvl=ajax&explnum_id=" . $this->doc->id . "&method=getBookmarks") . "', dataType:'json',success : br.getBookmarksCallback});";
if ($this->driver->params['page']) {
print "\n \t\t\tbr.jumpToIndex(" . ($this->driver->params['page'] - 1) . ");";
}
if ($this->parameters['allow_search']) {
print "\t\t\t\n\t\t\t\t//Recherche auto à l'ouverture\n\t\t\t\tvar user_query = '" . $this->driver->params['user_query'] . "';\n\t\t\t\tif ((user_query) && (user_query != '*')) {\n\t\t\t\t\tbr.search(user_query);\n\t\t\t\t}";
}
print "\n\t \t});\n \t</script>\n </head>\n <body>\n \t<div id='BookReader'></div>\n </body>\n</html>";
}
示例3: gen_input_selection
function gen_input_selection($label, $form_name, $item, $values, $what_sel, $class = 'saisie-80em')
{
global $msg, $charset;
$select_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
$link = "'./select.php?what={$what_sel}&caller={$form_name}¶m1=f_" . $item . "_code!!num!!¶m2=f_" . $item . "!!num!!&deb_rech='+" . pmb_escape() . "(this.form.f_" . $item . "!!num!!.value), '{$what_sel}', 400, 400, -2, -2, '{$select_prop}'";
$size_item = strlen($item) + 2;
$script_js = "\n\t\t<script>\n\t\tvar memo_id='';\n\t\t\t\t\n\t\tfunction tu_add_callback(field,tu_id){\n\t\t\tif(typeof(formMapperCallback) != 'undefined'){\n\t\t\t\t//var tu_id = document.getElementById(document.getElementById(field).getAttribute('autfield')).value;\n\t\t var tu_id = document.getElementById('f_titre_uniforme_code0').value;\n\t\t\t\tformMapperCallback(tu_id);\n\t\t\t}\n\t\t}\t\t\n\t\t\t\t\n\t\tfunction fonction_selecteur_" . $item . "() {\n\t\t\tvar nom='f_" . $item . "';\n\t\t\tif(memo_id) name=memo_id.substring(4); \n\t\t\telse name=this.getAttribute('id').substring(4);\n\t\t\tmemo_id='';\t \n\t\t\tvar indice = name.substr(nom.length);\n\t\t\tname_id = name.substr(0,nom.length)+'_code'+indice;\n\t\t\tif(indice == 0){\n\t\t\topenPopUp('./select.php?what={$what_sel}&caller={$form_name}¶m1='+name_id+'¶m2='+name+'&callback=tu_add_callback', '{$what_sel}', 400, 400, -2, -2, '{$select_prop}');\t \n\t\t\t}else{\n\t\t\t openPopUp('./select.php?what={$what_sel}&caller={$form_name}¶m1='+name_id+'¶m2='+name, '{$what_sel}', 400, 400, -2, -2, '{$select_prop}');\n\t }\t \n\t }\n\t function fonction_raz_" . $item . "() {\n\t name=this.getAttribute('id').substring(4);\n\t\t\tname_id = name.substr(0,{$size_item})+'_code'+name.substr({$size_item});\n\t document.getElementById(name).value='';\n\t\t\tdocument.getElementById(name_id).value='';\n\t }\n\t function add_" . $item . "() {\n\t template = document.getElementById('add" . $item . "');\n\t suffixe=document.getElementById('max_" . $item . "').value;\n\t \n\t " . $item . "=document.createElement('div');\n\t " . $item . ".className='parent';\n\t " . $item . ".setAttribute('id','tu'+suffixe);\n\t \t" . $item . ".style.display='block';\n\t \t\t \t\n\t \timg_" . $item . "= document.createElement('img');\n\t\t\timg_" . $item . ".setAttribute('src','./images/plus.gif'); \n\t\t\timg_" . $item . ".setAttribute('class','img_plus');\n\t\t\timg_" . $item . ".setAttribute('name','imEx');\n\t\t\timg_" . $item . ".setAttribute('id','tu'+suffixe+'Img');\n\t\t\timg_" . $item . ".setAttribute('onclick',\"expandBase(this.id.substring(0,this.id.length - 3), true); return false;\");\n\t\t\timg_" . $item . ".setAttribute('border','0');\t\n\t \n\t nom_id = 'f_" . $item . "'+suffixe;\n\t f_" . $item . " = document.createElement('input');\n\t f_" . $item . ".setAttribute('name',nom_id);\n\t f_" . $item . ".setAttribute('id',nom_id);\n\t f_" . $item . ".setAttribute('type','text');\n\t f_" . $item . ".className='{$class}';\n\t f_" . $item . ".setAttribute('value','');\n\t //f_" . $item . ".setAttribute('callback','tu_add_callback');\n\t\t\tf_" . $item . ".setAttribute('completion','" . $item . "');\n\t\t\tf_" . $item . ".setAttribute('autfield','f_" . $item . "_code'+suffixe);\n\t \n\t\t\tid = 'f_" . $item . "_code'+suffixe;\n\t\t\tf_" . $item . "_code = document.createElement('input');\n\t\t\tf_" . $item . "_code.setAttribute('name',id);\n\t f_" . $item . "_code.setAttribute('id',id);\n\t f_" . $item . "_code.setAttribute('type','hidden');\n\t\t\tf_" . $item . "_code.setAttribute('value','');\n\t \n\t del_f_" . $item . " = document.createElement('input');\n\t del_f_" . $item . ".setAttribute('id','del_f_" . $item . "'+suffixe);\n\t del_f_" . $item . ".onclick=fonction_raz_" . $item . ";\n\t del_f_" . $item . ".setAttribute('type','button');\n\t del_f_" . $item . ".className='bouton';\n\t del_f_" . $item . ".setAttribute('readonly','');\n\t del_f_" . $item . ".setAttribute('value','" . $msg["raz"] . "');\n\t\n\t sel_f_" . $item . " = document.createElement('input');\n\t sel_f_" . $item . ".setAttribute('id','sel_f_" . $item . "'+suffixe);\n\t sel_f_" . $item . ".setAttribute('type','button');\n\t sel_f_" . $item . ".className='bouton';\n\t sel_f_" . $item . ".setAttribute('readonly','');\n\t sel_f_" . $item . ".setAttribute('value','" . $msg["parcourir"] . "');\n\t sel_f_" . $item . ".onclick=fonction_selecteur_" . $item . ";\n\t\n\t " . $item . ".appendChild(img_" . $item . ");\n\t space=document.createTextNode(' ');\n\t " . $item . ".appendChild(space);\n\t " . $item . ".appendChild(f_" . $item . ");\n\t\t\t" . $item . ".appendChild(f_" . $item . "_code);\n\t space=document.createTextNode(' ');\n\t " . $item . ".appendChild(space);\n\t if('{$what_sel}')" . $item . ".appendChild(sel_f_" . $item . ");\n\t " . $item . ".appendChild(space.cloneNode(false));\n\t " . $item . ".appendChild(del_f_" . $item . ");\t \n\t template.appendChild(" . $item . ");\n\t \n\t child_" . $item . "= document.createElement('div');\n\t child_" . $item . ".className='child';\n\t child_" . $item . ".setAttribute('id','tu'+suffixe+'Child');\n\t child_" . $item . ".setAttribute('etirable','yes');\n\t child_" . $item . ".setAttribute('invert','');\n\t child_" . $item . ".setAttribute('hide','');\n\t \tchild_" . $item . ".style.display='none';\n\t \ttemplate.appendChild(child_" . $item . ");\n\t\t\t//!!add_option!!\t\n\t\t\tdocument.getElementById('max_" . $item . "').value=(suffixe*1)+(1*1) ;\n\t ajax_pack_element(f_" . $item . ");\t \n\t }\n\t\t</script>";
$script_js_option = "\n\t\t\tdiv_label_!!num!!=document.createElement('div');\n\t\t\tdiv_label_!!num!!.className='row';\n\t\t\tlabel_!!num!!=document.createElement('label');\n\t\t\ttexte_!!num!!=document.createTextNode('!!label!!');\n \t\t\tlabel_!!num!!.appendChild(texte_!!num!!);\n\t\t\tdiv_label_!!num!!.appendChild(label_!!num!!);\n\t\t\t\t\t\n\t div_!!num!!=document.createElement('div');\n\t div_!!num!!.className='row';\n\t op_!!num!! = document.createElement('input');\n\t op_!!num!!.setAttribute('name','!!name!!'+suffixe);\n\t op_!!num!!.setAttribute('id','!!name!!'+suffixe);\n\t op_!!num!!.setAttribute('type','text');\n\t op_!!num!!.className='!!class!!';\n\t op_!!num!!.setAttribute('value','');\n\t div_!!num!!.appendChild(op_!!num!!);\n\t \n\t \tchild_" . $item . ".appendChild(div_label_!!num!!);\n\t \tchild_" . $item . ".appendChild(div_!!num!!);\n\t ";
//template de zone de texte pour chaque valeur
$aff = "\n\t\t<div style='display: block;' id='tu!!num!!Parent' class='parent'>\n\t\t\t<img src='./images/plus.gif' class='img_plus' name='imEx' id='tu!!num!!Img' title='Zone des notes' onclick=\"expandBase('tu!!num!!', true); return false;\" border='0'>\n\t\t\t<input type='text' data-form-name='f_" . $item . "' class='{$class}' id='f_" . $item . "!!num!!' name='f_" . $item . "!!num!!' value='!!label_element!!' autfield='f_" . $item . "_code!!num!!' completion=\"" . $item . "\" !!tu_callback!! />\n\t\t\t<input type='hidden' data-form-name='f_" . $item . "_code' id='f_" . $item . "_code!!num!!' name='f_" . $item . "_code!!num!!' value='!!id_element!!'>\n\t\t\t!!bouton_parcourir!!\n\t\t\t<input type='button' class='bouton' value='" . $msg["raz"] . "' onclick=\"this.form.f_" . $item . "!!num!!.value='';this.form.f_" . $item . "_code!!num!!.value='';\" />\n\t\t\t!!bouton_ajouter!!\n\t\t</div>\t\t\n\t\t<div hide='' style='display: none;' invert='' id='tu!!num!!Child' class='child' title=''>\t\n\t\t\n";
$aff_option = "\n\t\t<div class='row'>\n\t\t\t<label for='!!name!!!!num!!' class='etiquette'>!!label!!</label></div>\n\t\t<div class='row'>\n\t\t\t<input type='text' class='!!class!!' id='!!name!!!!num!!' name='!!name!!!!num!!' value=\"!!value!!\" data-form-name='!!name!!' />\n\t\t</div>";
if ($what_sel) {
$bouton_parcourir = "<input type='button' id='sel_f_" . $item . "!!num!!' class='bouton' value='" . $msg["parcourir"] . "' onclick=\"memo_id=this.getAttribute('id');fonction_selecteur_" . $item . "();\" />";
} else {
$bouton_parcourir = "";
}
$aff = str_replace('!!bouton_parcourir!!', $bouton_parcourir, $aff);
$template = $script_js . "<div id=add" . $item . "' class='row'>";
$template .= "<div class='row'><label for='f_" . $item . "' class='etiquette'>" . $label . "</label></div>";
$num = 0;
if (!$values[0]) {
$values[0] = "";
}
foreach ($values as $value) {
$label_element = $value["label"];
$id_element = $value["id"];
$temp = str_replace('!!id_element!!', $id_element, $aff);
$temp = str_replace('!!label_element!!', htmlentities($label_element, ENT_QUOTES, $charset), $temp);
$temp = str_replace('!!num!!', $num, $temp);
if (!$num) {
$temp = str_replace('!!bouton_ajouter!!', " <input class='bouton' value='" . $msg["req_bt_add_line"] . "' onclick='add_" . $item . "();' type='button'>", $temp);
$temp = str_replace('!!tu_callback!!', 'callback="tu_add_callback"', $temp);
} else {
$temp = str_replace('!!bouton_ajouter!!', "", $temp);
$temp = str_replace('!!tu_callback!!', '', $temp);
}
$template .= $temp;
// option
foreach ($value["objets"] as $objet) {
$option = str_replace('!!label!!', $objet["label"], $aff_option);
$option = str_replace('!!name!!', $objet["name"], $option);
$option = str_replace('!!class!!', $objet["class"], $option);
$option = str_replace('!!num!!', $num, $option);
$option = str_replace('!!value!!', htmlentities($objet["value"], ENT_QUOTES, $charset), $option);
$template .= $option;
}
$template .= "</div>";
if (!$num) {
$j = 0;
foreach ($value["objets"] as $objet) {
// Ajout des javascript qui permet la répétabilité des champs option
$option_js = str_replace('!!label!!', addslashes($objet["label"]), $script_js_option);
$option_js = str_replace('!!name!!', $objet["name"], $option_js);
$option_js = str_replace('!!class!!', $objet["class"], $option_js);
$option_js = str_replace('!!num!!', $j, $option_js);
$option_js = str_replace('!!value!!', $objet["value"], $option_js);
$script_option_js .= $option_js;
$j++;
}
$template = str_replace('!!add_option!!', $script_option_js, $template);
}
$num++;
}
$template .= "<input type='hidden' name='max_" . $item . "' id='max_" . $item . "' value='{$num}'>";
$template .= "</div><div id='add" . $item . "'/>\n\t\t</div>";
return $template;
}
示例4: get_field
//.........这里部分代码省略.........
$r .= "<input type='text' name='field_" . $n . "_" . $search . "[]' value='" . htmlentities($v[0], ENT_QUOTES, $charset) . "'/>";
}
break;
case "authoritie":
$fnamesans = "field_" . $n . "_" . $search;
$fname = "field_" . $n . "_" . $search . "[]";
$fname_id = "field_" . $n . "_" . $search . "_id";
$fnamesanslib = "field_" . $n . "_" . $search . "_lib";
$fnamelib = "field_" . $n . "_" . $search . "_lib[]";
$fname_name_aut_id = "fieldvar_" . $n . "_" . $search . "[authority_id][]";
$fname_aut_id = "fieldvar_" . $n . "_" . $search . "_authority_id";
$ajax = $ff["INPUT_OPTIONS"]["AJAX"];
$selector = $ff["INPUT_OPTIONS"]["SELECTOR"];
$p1 = $ff["INPUT_OPTIONS"]["P1"];
$p2 = $ff["INPUT_OPTIONS"]["P2"];
global $thesaurus_mode_pmb;
if ($ajax == "categories_mul" and $thesaurus_mode_pmb == 1) {
$fnamevar_id = "linkfield=\"fieldvar_" . $n . "_" . $search . "[id_thesaurus][]\"";
$fnamevar_id_js = "fieldvar_" . $n . "_" . $search . "[id_thesaurus][]";
} else {
$fnamevar_id = "";
$fnamevar_id_js = "";
}
$op = "op_" . $i . "_" . $search;
global ${$op};
global $lang;
$nb_values = count($v);
if (!$nb_values) {
//Création de la ligne
$nb_values = 1;
}
$nb_max_aut = $nb_values - 1;
$r = "<input type='hidden' id='{$fnamesans}" . "_max_aut' value='" . $nb_max_aut . "'>";
$r .= "<input class='bouton' value='...' id='{$fnamesans}" . "_authority_selector' onclick=\"openPopUp('./select.php?what={$selector}&caller=search_form&mode=un&p1=" . $fname_id . "_0&p2=" . $fnamesanslib . "_0&deb_rech='+" . pmb_escape() . "(document.getElementById('" . $fnamesanslib . "_0').value)+'&callback=authoritySelected&infield=" . $fnamesans . "_0', 'select_author0', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" type=\"button\">";
$r .= "<input class='bouton' type='button' value='+' onclick='add_line(\"{$fnamesans}\")'>";
$r .= "<div id='el{$fnamesans}'>";
for ($inc = 0; $inc < $nb_values; $inc++) {
$r .= "<input id='" . $fnamesans . "_" . $inc . "' name='{$fname}' value='" . htmlentities($v[$inc], ENT_QUOTES, $charset) . "' type='hidden' />";
if (${$op} == "AUTHORITY") {
if ($v[$inc] != 0) {
switch ($ff['INPUT_OPTIONS']['SELECTOR']) {
case "auteur":
$aut = new auteur($v[$inc]);
if ($aut->rejete) {
$libelle = $aut->name . ', ' . $aut->rejete;
} else {
$libelle = $aut->name;
}
if ($aut->date) {
$libelle .= " ({$aut->date})";
}
break;
case "categorie":
$libelle = categories::getlibelle($v[$inc], $lang);
break;
case "editeur":
$ed = new editeur($v[$inc]);
$libelle = $ed->name;
if ($ed->ville) {
if ($ed->pays) {
$libelle .= " ({$ed->ville} - {$ed->pays})";
} else {
$libelle .= " ({$ed->ville})";
}
}
break;
示例5: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: demandes.tpl.php,v 1.15.4.1 2015-09-11 12:50:41 dgoron Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
die("no access");
}
// $acquisition_menu : menu page acquisition
$demandes_menu = "\n<div id='menu'>\n\t<h3 onclick='menuHide(this,event)'>" . $msg['demandes_menu_liste'] . "</h3>\n\t<ul>\n\t\t<li><a href='./demandes.php?categ=list&idetat=0'>" . $msg['demandes_menu_all'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&idetat=1'>" . $msg['demandes_menu_a_valide'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&idetat=2&iduser=" . SESSuserid . "'>" . $msg['demandes_menu_en_cours'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&idetat=3&iduser=" . SESSuserid . "'>" . $msg['demandes_menu_refuse'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&idetat=4&iduser=" . SESSuserid . "'>" . $msg['demandes_menu_fini'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&idetat=5&iduser=" . SESSuserid . "'>" . $msg['demandes_menu_abandon'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&idetat=6&iduser=" . SESSuserid . "'>" . $msg['demandes_menu_archive'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=list&iduser=-1'>" . $msg[demandes_menu_not_assigned] . "</a></li>\t\t\t\t\n\t</ul>\t\n\t<h3 onclick='menuHide(this,event)'>" . $msg['demandes_menu_action'] . "</h3>\n\t<ul>\n\t\t<li><a href='./demandes.php?categ=action&sub=com'>" . $msg['demandes_menu_comm'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=action&sub=rdv_plan'>" . $msg['demandes_menu_rdv_planning'] . "</a></li>\n\t\t<li><a href='./demandes.php?categ=action&sub=rdv_val'>" . $msg['demandes_menu_rdv_a_valide'] . "</a></li>\n\t</ul>\n\t<div id='div_alert' class='erreur'>{$aff_alerte}</div>\n</div>\n";
// $demandes_layout : layout page demandes
$demandes_layout = "\n<div id='conteneur' class='{$current_module}'>\n{$demandes_menu}\n<div id='contenu'>\n";
// $demandes_layout_end : layout page demandes (fin)
$demandes_layout_end = "\n</div>\n</div>\n";
$form_filtre_demande = "\n <script type='text/javascript'>\n\tfunction filtrer_user(){\n \t\tdocument.forms['search'].submit();\n\t} \n</script>\n<h1>" . $msg['demandes_gestion'] . " : " . $msg['demandes_search_form'] . " !!etat_demandes!!</h1>\n<form class='form-" . $current_module . "' id='search' name='search' method='post' action=\"./demandes.php?categ=list\">\n\t<h3>" . $msg['demandes_search_filtre_form'] . "</h3>\n\t<input type='hidden' name='act' id='act' />\n\t<div class='form-contenu'>\n\t\t<div class='row'>\n\t\t\t<label class='etiquette'>" . $msg['demandes_titre'] . "</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<input type='texte' class='saisie-30em' name='user_input' id='user_input' value='!!user_input!!'/>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_user_filtre'] . "</label>\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_etat_filtre'] . "</label>\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_periode_filtre'] . "</label>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<input type='hidden' id='idempr' name='idempr' value='!!idempr!!' />\n\t\t\t\t<input type='text' id='empr_txt' name='empr_txt' class='saisie-20emr' value='!!empr_txt!!'/>\n\t\t\t\t<input type='button' class='bouton_small' value='...' onclick=\"openPopUp('./select.php?what=origine&caller=search¶m1=idempr¶m2=empr_txt&deb_rech='+" . pmb_escape() . "(this.form.empr_txt.value)+'&filtre=ONLY_EMPR&callback=filtrer_user" . ($pmb_lecteurs_localises ? "&empr_loca='+this.form.dmde_loc.value" : "'") . ", 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" />\n\t\t\t\t<input type='button' class='bouton_small' value='X' onclick=\"document.getElementById('idempr').value=0;document.getElementById('empr_txt').value='';\" />\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!state!!\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!periode!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'> \n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_affectation_filtre'] . "</label>\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_theme_filtre'] . "</label>\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_type_filtre'] . "</label>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!affectation!!\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!theme!!\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!type!!\n\t\t\t</div>\n\t\t</div>";
if ($pmb_lecteurs_localises) {
$form_filtre_demande .= "\n\t\t<div class='row'> \n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . $msg['demandes_localisation_filtre'] . "</label>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!localisation!!\n\t\t\t</div>\n\t\t</div>";
}
$form_filtre_demande .= "\n\t\t<div class='row'></div>\n\t\t!!champs_perso!!\n\t\t<div class='row'></div>\n\t</div>\n\t<div class='row'></div>\n\t<div class='row'>\n\t\t<input type='submit' class='bouton' name='search_dmd' id='search_dmd' value='" . $msg['demandes_search'] . "' onclick='this.form.act.value=\"search\"'/>\n\t\t<input type='submit' class='bouton' name='new_dmd' id='new_dmd' value='" . $msg['demandes_new'] . "' onclick='this.form.act.value=\"new\"'/>\n\t</div>\n</form>\n\n";
$form_liste_demande = "\n<script src='./includes/javascript/dynamic_element.js' type='text/javascript'></script>\n<script type='text/javascript'>\n\nvar base_path = '.';\nvar imgOpened = new Image();\nimgOpened.src = base_path+'/images/minus.gif';\nvar imgClosed = new Image();\nimgClosed.src = base_path+'/images/plus.gif';\nvar imgPatience =new Image();\nimgPatience.src = base_path+'/images/patience.gif';\nvar expandedDb = '';\n\nfunction expand_action(el, id_demande , unexpand) {\n\tif (!isDOM){\n \treturn;\n\t}\n\t\n\tvar whichEl = document.getElementById(el + 'Child');\n\tvar whichElTd = document.getElementById(el + 'ChildTd');\n\tvar whichIm = document.getElementById(el + 'Img');\n\t\n \tif(whichEl.style.display == 'none') {\n\t\tif(whichElTd.innerHTML==''){\n\t\t\tvar req = new http_request();\n\t\t\treq.request('./ajax.php?module=ajax&categ=demandes&quoifaire=show_list_action',true,'id_demande='+id_demande,true,function(data){\n\t\t \t\twhichElTd.innerHTML=data;\n\t\t\t});\n\t\t}\n\t\twhichEl.style.display = '';\n \tif (whichIm){\n \t\twhichIm.src= imgOpened.src;\n \t}\n \tchangeCoverImage(whichEl);\n\t}else if(unexpand) {\n \twhichEl.style.display='none';\n \tif (whichIm){\n \t\twhichIm.src=imgClosed.src;\n \t}\n \t}\t\t\n}\n\n function verifChk(txt) {\n\t\t\n\tvar elts = document.forms['liste'].elements['chk[]'];\n\tvar elts_cnt = (typeof(elts.length) != 'undefined')\n ? elts.length\n : 0;\n\tnb_chk = 0;\n\tif (elts_cnt) {\n\t\tfor(var i=0; i < elts.length; i++) {\n\t\t\tif (elts[i].checked) nb_chk++;\n\t\t}\n\t} else {\n\t\tif (elts.checked) nb_chk++;\n\t}\n\tif (nb_chk == 0) {\n\t\talert(\"" . $msg['demandes_nocheck'] . "\");\n\t\treturn false;\t\n\t}\n\t\n\tif(txt == 'suppr'){\n\t\tvar sup = confirm(\"" . $msg['demandes_confirm_suppr'] . "\");\n\t\tif(!sup) \n\t\t\treturn false;\n\t\treturn true;\n\t}\n\t\n\treturn true;\n}\n\nfunction alert_progressiondemande(){\n\talert(\"" . $msg['demandes_progres_ko'] . "\");\n}\n\t\t\t\nfunction change_read(el, id_demande) {\n\tif (!isDOM){\n \treturn;\n\t}\t\t\n\tvar whichEl = document.getElementById(el);\t\n\tvar whichIm1 = document.getElementById(el + 'Img1');\n\tvar whichIm2 = document.getElementById(el + 'Img2');\t\n\tvar whichTr = whichIm1.parentNode.parentNode;\n\t\n\tvar req = new http_request();\n\treq.request('./ajax.php?module=demandes&categ=dmde&quoifaire=change_read',true,'id_demande='+id_demande,true,function(data){\n \t\tif(data == 1){\n\t\t\tif(whichIm1.style.display == ''){\n\t\t\t\twhichIm1.style.display = 'none';\n\t\t\t\twhichIm2.style.display = '';\n\t\t\t} else {\n\t\t\t\twhichIm1.style.display = '';\n\t\t\t\twhichIm2.style.display = 'none';\t\n\t\t\t}\n\t\t\n\t\t\tif(whichIm1.parentNode.parentNode.style.fontWeight == ''){\n\t\t\t\twhichIm1.parentNode.parentNode.style.fontWeight = 'bold';\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\twhichIm1.parentNode.parentNode.style.fontWeight = '';\n\t\t\t\t\n\t\t\t}\n \t\t}\n\t});\t\t\n}\n\t\t\t\n</script>";
if ($demandes_notice_auto) {
$demandes_notice_auto_tpl = "<th>" . $msg['demandes_notice'] . "</th>";
}
if (!$opac_demandes_affichage_simplifie) {
$form_liste_demande .= "\n<form class='form-" . $current_module . "' id='liste' name='liste' method='post' action=\"./empr.php?tab=request&lvl=list_dmde\">\n\t<input type='hidden' name='act' id='act' />\n\t<input type='hidden' name='state' id='state' />\n\t<h3>" . $msg['demandes_liste'] . "</h3>\n\t<div class='row'>\n\t\t!!select_etat!!\n\t</div>\n\t<div class='form-contenu'>\n\t\t<table>\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<th></th>\n\t\t\t\t\t<th></th>\n\t\t\t\t\t<th>" . $msg['demandes_titre'] . "</th>\n\t\t\t\t\t!!entete_etat!!\n\t\t\t\t\t<th>" . $msg['demandes_date_dmde'] . "</th>\n\t\t\t\t\t<th>" . $msg['demandes_date_butoir'] . "</th>\n\t\t\t\t\t<th>" . $msg['demandes_user'] . "</th>\n\t\t\t\t\t<th>" . $msg['demandes_progression'] . "</th>\n\t\t\t\t\t!!header_champs_perso!!\n\t\t\t\t\t<th>" . $msg['demandes_linked_record'] . "</th>\n\t\t\t\t\t{$demandes_notice_auto_tpl}\n\t\t\t\t</tr>\n\t\t\t\t!!liste_dmde!!\t\t\t\t\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\n\t<div class='row'></div>\n</form>\t\n";
} else {
$form_liste_demande .= "\n<form class='form-" . $current_module . "' id='liste' name='liste' method='post' action=\"./empr.php?tab=request&lvl=list_dmde\">\n\t<input type='hidden' name='act' id='act' />\n\t<input type='hidden' name='state' id='state' />\n\t<h3>" . $msg['demandes_liste'] . "</h3>\n\t<div class='row'>\n\t\t!!select_etat!!\n\t</div>\n\t<div class='form-contenu'>\n\t\t<table>\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<th></th>\n\t\t\t\t\t<th></th>\n\t\t\t\t\t<th>" . $msg['demandes_titre'] . "</th>\n\t\t\t\t\t!!entete_etat!!\n\t\t\t\t\t<th>" . $msg['demandes_date_dmde'] . "</th>\n\t\t\t\t\t!!header_champs_perso!!\n\t\t\t\t\t<th>" . $msg['demandes_linked_record'] . "</th>\n\t\t\t\t\t{$demandes_notice_auto_tpl}\n\t\t\t\t</tr>\n\t\t\t\t!!liste_dmde!!\t\t\t\t\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\n\t<div class='row'></div>\n</form>\t\n";
}
if (!$opac_demandes_affichage_simplifie) {
$date_prevue_label_tpl = "<label class='etiquette'>" . $msg['demandes_date_prevue'] . "</label>";
示例6: gen_input_selection
function gen_input_selection($label, $form_name, $item, $values, $what_sel, $class = 'saisie-80em')
{
global $msg;
$select_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
$link = "'./select.php?what={$what_sel}&caller={$form_name}&p1=f_" . $item . "_code!!num!!&p2=f_" . $item . "!!num!!&deb_rech='+" . pmb_escape() . "(this.form.f_" . $item . "!!num!!.value), '{$what_sel}', 400, 400, -2, -2, '{$select_prop}'";
$size_item = strlen($item) + 2;
$script_js = "\n\t\t<script>\n\t\tfunction fonction_selecteur_" . $item . "() {\n\t\t\tvar nom='f_" . $item . "';\n\t name=this.getAttribute('id').substring(4); \n\t\t\tname_id = name.substr(0,nom.length)+'_code'+name.substr(nom.length);\n\t\t\topenPopUp('./select.php?what={$what_sel}&caller={$form_name}&p1='+name_id+'&p2='+name, '{$what_sel}', 400, 400, -2, -2, '{$select_prop}');\n\t \n\t }\n\t function fonction_raz_" . $item . "() {\n\t name=this.getAttribute('id').substring(4);\n\t\t\tname_id = name.substr(0,{$size_item})+'_code'+name.substr({$size_item});\n\t document.getElementById(name).value='';\n\t\t\tdocument.getElementById(name_id).value='';\n\t }\n\t function add_" . $item . "() {\n\t template = document.getElementById('add" . $item . "');\n\t " . $item . "=document.createElement('div');\n\t " . $item . ".className='row';\n\t\n\t suffixe = eval('document." . $form_name . ".max_" . $item . ".value')\n\t nom_id = 'f_" . $item . "'+suffixe\n\t f_" . $item . " = document.createElement('input');\n\t f_" . $item . ".setAttribute('name',nom_id);\n\t f_" . $item . ".setAttribute('id',nom_id);\n\t f_" . $item . ".setAttribute('type','text');\n\t f_" . $item . ".className='{$class}';\n\t f_" . $item . ".setAttribute('value','');\n\t\t\tf_" . $item . ".setAttribute('completion','" . $item . "');\n\t \n\t\t\tid = 'f_" . $item . "_code'+suffixe\n\t\t\tf_" . $item . "_code = document.createElement('input');\n\t\t\tf_" . $item . "_code.setAttribute('name',id);\n\t f_" . $item . "_code.setAttribute('id',id);\n\t f_" . $item . "_code.setAttribute('type','hidden');\n\t\t\tf_" . $item . "_code.setAttribute('value','');\n\t \n\t del_f_" . $item . " = document.createElement('input');\n\t del_f_" . $item . ".setAttribute('id','del_f_" . $item . "'+suffixe);\n\t del_f_" . $item . ".onclick=fonction_raz_" . $item . ";\n\t del_f_" . $item . ".setAttribute('type','button');\n\t del_f_" . $item . ".className='bouton';\n\t del_f_" . $item . ".setAttribute('readonly','');\n\t del_f_" . $item . ".setAttribute('value','" . $msg["raz"] . "');\n\t\n\t sel_f_" . $item . " = document.createElement('input');\n\t sel_f_" . $item . ".setAttribute('id','sel_f_" . $item . "'+suffixe);\n\t sel_f_" . $item . ".setAttribute('type','button');\n\t sel_f_" . $item . ".className='bouton';\n\t sel_f_" . $item . ".setAttribute('readonly','');\n\t sel_f_" . $item . ".setAttribute('value','" . $msg["parcourir"] . "');\n\t sel_f_" . $item . ".onclick=fonction_selecteur_" . $item . ";\n\t\n\t " . $item . ".appendChild(f_" . $item . ");\n\t\t\t" . $item . ".appendChild(f_" . $item . "_code);\n\t space=document.createTextNode(' ');\n\t " . $item . ".appendChild(space);\n\t " . $item . ".appendChild(del_f_" . $item . ");\n\t " . $item . ".appendChild(space.cloneNode(false));\n\t if('{$what_sel}')" . $item . ".appendChild(sel_f_" . $item . ");\n\t \n\t template.appendChild(" . $item . ");\n\t\n\t document." . $form_name . ".max_" . $item . ".value=suffixe*1+1*1 ;\n\t ajax_pack_element(f_" . $item . ");\n\t }\n\t\t</script>";
//template de zone de texte pour chaque valeur
$aff = "\n\t\t<div class='row'>\n\t\t<input type='text' class='{$class}' id='f_" . $item . "!!num!!' name='f_" . $item . "!!num!!' data-form-name='f_" . $item . "' value=\"!!label_element!!\" autfield='f_" . $item . "_code!!num!!' completion=\"" . $item . "\" />\n\t\t<input type='hidden' id='f_" . $item . "_code!!num!!' name='f_" . $item . "_code!!num!!' data-form-name='f_" . $item . "_code' value='!!id_element!!'>\n\t\t<input type='button' class='bouton' value='" . $msg["raz"] . "' onclick=\"this.form.f_" . $item . "!!num!!.value='';this.form.f_" . $item . "_code!!num!!.value=''; \" />\n\t\t!!bouton_parcourir!!";
// 1 seul auteur pour 1 oeuvre
if ($item == "author") {
$aff .= "</div>\n";
} else {
$aff .= "!!bouton_ajouter!!\n\t\t\t\t\t</div>\n";
}
if ($what_sel) {
$bouton_parcourir = "<input type='button' class='bouton' value='" . $msg["parcourir"] . "' onclick=\"openPopUp(" . $link . ")\" />";
} else {
$bouton_parcourir = "";
}
$aff = str_replace('!!bouton_parcourir!!', $bouton_parcourir, $aff);
$template = $script_js . "<div id=add" . $item . "' class='row'>";
$template .= "<div class='row'><label for='f_" . $item . "' class='etiquette'>" . $label . "</label></div>";
$num = 0;
if (!$values[0]) {
$values[0] = array("id" => "", "label" => "");
}
foreach ($values as $value) {
$label_element = $value["label"];
$id_element = $value["id"];
$temp = str_replace('!!id_element!!', $id_element, $aff);
$temp = str_replace('!!label_element!!', $label_element, $temp);
$temp = str_replace('!!num!!', $num, $temp);
if (!$num) {
$temp = str_replace('!!bouton_ajouter!!', " <input class='bouton' value='" . $msg["req_bt_add_line"] . "' onclick='add_" . $item . "();' type='button'>", $temp);
} else {
$temp = str_replace('!!bouton_ajouter!!', "", $temp);
}
$template .= $temp;
$num++;
}
$template .= "<input type='hidden' name='max_" . $item . "' value='{$num}'>";
$template .= "</div><div id='add" . $item . "'/>\n\t\t</div>";
return $template;
}
示例7: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: tpl_notices.tpl.php,v 1.3 2013-04-11 08:47:35 mbertin Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
die("no access");
}
global $abonnement_view, $abonnement_list, $abonnement_form;
$abonnement_view = "\n<div id='abts_abonnement!!id_abonnement!!' class='notice-parent'>\n\t<img src='./images/plus.gif' class='img_plus' name='imEx' id='abts_abonnement!!id_abonnement!!Img' title='" . addslashes($msg['plus_detail']) . "' border='0' onClick=\"expandBase('abts_abonnement!!id_abonnement!!', true); return false;\" hspace='3'>\n\t<span class='notice-heada'>\n \t<small>\n \t\t<span class='statutnot1' style='margin-right: 3px;'>\n \t\t\t<img src='./images/spacer.gif' width='10' height='10' />\n \t\t</span>\n \t</small>\n \t<a href='!!view_id_abonnement!!'>!!abonnement_header!!</a>\n </span>\n <br />\n</div>\n<div id='abts_abonnement!!id_abonnement!!Child' class='notice-child' style='margin-bottom:6px;display:none;'>\n\t<table width='100%'>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t" . $msg["abonnements_modele_lie"] . ": !!modele_lie!!\n\t\t\t</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t" . $msg["abonnements_duree_abonnement"] . ": !!duree_abonnement!!\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t" . $msg["abonnements_date_debut"] . ": !!date_debut!!\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t" . $msg["abonnements_date_fin"] . ": !!date_fin!!\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t" . $msg["abonnements_nombre_de_series"] . ": !!nombre_de_series!!\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t" . $msg["abonnements_nombre_de_horsseries"] . ": !!nombre_de_horsseries!!\n\t\t\t</td>\n\t\t</tr>\n\t</table>\n</div>\n";
$abonnement_list = "\n<script type='text/javascript' src='./javascript/tablist.js'></script>\n<div class='form-contenu'>\n<a href='javascript:expandAll()'><img src='./images/expand_all.gif' border='0' id='expandall'></a>\n<a href='javascript:collapseAll()'><img src='./images/collapse_all.gif' border='0' id='collapseall'></a>\n!!abonnement_list!!\n</div>\n<div class='row'>\n !!abts_abonnements_add_button!!\n</div>";
$script1 = "\n<script type='text/javascript'>\nfunction confirm_delete()\n{\n\tphrase = \"{$msg[abonnements_confirm_suppr_abonnement]}\";\n\tresult = confirm(phrase);\n\tif(result)\n\t\tform.submit();\n}\nfunction test_form(form)\n{\n\tif(form.abt_name.value.length == 0)\n\t{\n\t\talert(\"{$msg['326']}\");\n\t\tform.abt_name.focus();\n\t\treturn false;\n\t}\n\t!!test_liste_modele!!\n\treturn true;\n} \n</script>\n";
$creation_abonnement_form = "\n<script type='text/javascript' src='./javascript/tablist.js'></script>\n{$script1}\n<form class='form-{$current_module}' id='form_abonnement' name='form_abonnement' method='post' action=!!action!!>\n\t<h3>!!num_notice_libelle!!: !!libelle_form!!</h3>\n\t<div class='form-contenu'>\n\t\t\n\t\t<div class='colonne2'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='abonnement_name' class='etiquette'>" . $msg["abonnements_nom_abonnement"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' size='40' name='abt_name' id='abt_name' value='!!abt_name!!'/>\n\t\t\t</div>\n\t\t</div>\n\t\t<input type='hidden' name='num_notice' id='num_notice' value='!!num_notice!!'/>\n\t\t<div class='row'>\n\t\t\t\n\t\t</div>\n\t\t<div class='colonne2'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='abonnement_name' class='etiquette'>" . $msg["abonnements_liste_modele"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t!!liste_modele!!\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'></div>\n\t\t\t!!abonnement_form1!!\n\t</div> <!-- Fin du contenu -->\n\t<div class='row'>\n\t\t<input type='hidden' id='act' name='act' value='' />\n\t\t<div class='left'><input type=\"submit\" class='bouton' value='" . $msg["77"] . "' onClick=\"document.getElementById('act').value='update';if(test_form(this.form)==true) this.form.submit();else return false;\"/> \n\t\t\t<input type='button' class='bouton' value='" . $msg["bt_retour"] . "' onClick=\"document.location='./catalog.php?categ=serials&sub=view&serial_id=!!serial_id!!&view=abon';\"/> \n\t\t</div>\n\t\t\t\n\t</div>\n\t<div class='row'></div>\n</form>\n";
$edition_abonnement_form = "\n<script type='text/javascript' src='./javascript/tablist.js'></script>\n<script type='text/javascript'>\n<!--\n\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 list=document.getElementById(\"docloc_section\"+id);\n\t\t list.style.display=\"none\";\n\t\t\t}\n\t\n\t\tid=selectBox.options[selectBox.selectedIndex].value;\n\t\tlist=document.getElementById(\"docloc_section\"+id);\n\t\tlist.style.display=\"block\";\n\t\t}\n\n\t\tfunction gere_statut(obj) {\t\n\t\t\tvar obj_check=document.getElementById(obj+'_check');\t\n\t\t\t\n\t\t\tif(obj_check.checked == true){\n\t\t\t\tdocument.getElementById(obj).disabled = false;\n\t\t\t}else{\n\t\t\t\tdocument.getElementById(obj).disabled = true;\n\t\t\t}\n\t\t}\n-->\n</script>\n{$script1}\n<form class='form-{$current_module}' id='form_abonnement' name='form_abonnement' method='post' action=!!action!!>\n\t<h3>!!num_notice_libelle!!: !!libelle_form!!</h3>\n\t<div class='form-contenu'>\n\t\t\n\t\t<div class='colonne2'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='abonnement_name' class='etiquette'>" . $msg["abonnements_nom_abonnement"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' size='40' name='abt_name' id='abt_name' value='!!abt_name!!'/>\n\t\t\t</div>\n\t\t</div>\n\t\t<input type='hidden' name='num_notice' id='num_notice' value='!!num_notice!!'/>\n\t\t<div class='colonne2'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='duree_abonnement' class='etiquette'>" . $msg["abonnements_duree_abonnement"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='text' size='5' name='duree_abonnement' id='duree_abonnement' value='!!duree_abonnement!!'/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'></div>\n\t\t<div class='colonne2'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='date_debut_lib' class='etiquette'>" . $msg["abonnements_date_debut"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='hidden' name='date_debut' value='!!date_debut!!' />\n\t\t\t\t<input class='bouton' type='button' name='date_debut_lib' value='!!date_debut_lib!!' onClick=\"openPopUp('./select.php?what=calendrier&caller=form_abonnement&date_caller=!!date_debut!!¶m1=date_debut¶m2=date_debut_lib&auto_submit=NO&date_anterieure=YES', 'date_debut', 250, 300, -2, -2, 'toolbar=no, dependent=yes, resizable=yes')\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='colonne_suite'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='date_fin_lib' class='etiquette'>" . $msg["abonnements_date_fin"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='hidden' name='date_fin' value='!!date_fin!!' />\n\t\t\t\t<input class='bouton' type='button' name='date_fin_lib' value='!!date_fin_lib!!' onClick=\"openPopUp('./select.php?what=calendrier&caller=form_abonnement&date_caller=!!date_fin!!¶m1=date_fin¶m2=date_fin_lib&auto_submit=NO&date_anterieure=YES', 'date_fin', 250, 300, -2, -2, 'toolbar=no, dependent=yes, resizable=yes')\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='colonne2'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='fournisseur' class='etiquette'>" . $msg["abonnements_fournisseur"] . "</label>\n\t\t\t</div>\t\n\t\t\t<div class='row'>\n\t\t\t\t<input id='id_fou' id='id_fou' name='id_fou' value='!!id_fou!!' type='hidden'>\n\t\t\t\t<input id='lib_fou' id='lib_fou' name='lib_fou' tabindex='1' value='!!lib_fou!!' class='saisie-30emr' onchange=\"openPopUp('./select.php?what=fournisseur&caller=form_abonnement¶m1=id_fou¶m2=lib_fou&id_bibli=0&deb_rech='+" . pmb_escape() . "(this.form.lib_fou.value), 'select_fournisseur', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" type='text'>\n\t\t\t\t<input type='button' name='fournisseur' class='bouton' value='...' \n\t\t\t\tonClick=\"openPopUp('./select.php?what=fournisseur&caller=form_abonnement¶m1=id_fou¶m2=lib_fou&id_bibli=0&deb_rech='+" . pmb_escape() . "(this.form.lib_fou.value), 'select_fournisseur', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes');\" />\n\t\t\t\t<input type='button' tabindex='1' class='bouton' value='" . $msg['raz'] . "' onclick=\"document.getElementById('id_fou').value='0';document.getElementById('lib_fou').value='';\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='colonne_suite'>\n\t\t\t<div class='row'>\n\t\t\t\t<label for='destinataire' class='etiquette'>" . $msg["abonnements_destinataire"] . "</label>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<TEXTAREA name='destinataire' rows='6' cols='50'>!!destinataire!!</TEXTAREA>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class='row'> </div>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- cote -->\n\t\t\t\t\t<label class='etiquette' for='cote'>{$msg['296']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t<input type='text' class='saisie-20em' id=\"cote\" name='cote' value='!!cote!!' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- type document -->\n\t\t\t\t<label class='etiquette' for='f_ex_typdoc'>{$msg['294']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!type_doc!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- type document -->\n\t\t\t\t<label class='etiquette' for='f_ex_typdoc'>{$msg['exemplarisation_automatique']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!exemplarisation_automatique!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- localisation -->\n\t\t\t\t<label class='etiquette' for='f_ex_location'>{$msg['298']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!localisation!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- section -->\n\t\t\t\t<label class='etiquette' for='f_ex_section'>{$msg['295']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!section!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- propri?taire -->\n\t\t\t\t<label class='etiquette' for='f_ex_owner'>{$msg['651']}</label> \n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!owner!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- statut -->\n\t\t\t\t<label class='etiquette' for='f_ex_statut'>{$msg['297']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!statut!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<!-- code stat -->\n\t\t\t\t<label class='etiquette' for='f_ex_cstat'>{$msg['299']}</label>\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!codestat!!\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t" . $antivol_form . "\n\t\t\t</div>\n\t\t<div class='row'> </div>\n\t\t<div class='row'>\n\t\t\t!!modele_list!!\n\t\t</div>\n\t</div> <!-- Fin du contenu -->\n\t<div class='row'>\n\t\t<input type='hidden' id='act' name='act' value='' />\n\t\t<div class='left'>\n\t\t\t<input type=\"submit\" class='bouton' value='" . $msg["77"] . "' onClick=\"document.getElementById('act').value='update';if(test_form(this.form)==true) this.form.submit();else return false;\"/> \n\t\t\t<input type='button' class='bouton' value='" . $msg["bt_retour"] . "' onClick=\"document.location='./catalog.php?categ=serials&sub=view&serial_id=!!serial_id!!&view=abon';\"/> \n\t\t\t<input type='button' class='bouton' value='" . $msg["abts_abonnements_copy_abonnement"] . "' onClick=\"duplique('act',event);\" />\n\t\t\t<input type=\"submit\" class='bouton' value='" . $msg["abonnement_generer_la_grille"] . "' onClick=\"document.getElementById('act').value='gen';if(test_form(this.form)==true) this.form.submit();else return false;\"/>\n\t\t\t!!bouton_prolonge!!\n\t\t</div>\n\t\t<div class='right'><input type=\"submit\" class='bouton' value='" . $msg["63"] . "' onClick=\"document.getElementById('act').value='del';confirm_delete();return false;\"/></div>\t\t\t\n\t</div>\n\t<div class='row'></div>\n</form>\n";
$tpl_calendrier = "\n<form class='form-{$current_module}' id='form_abonnement' name='form_abonnement' method='post' action=!!action!!>\n\t<h3>!!libelle_form!!</h3>\n\t<div class='form-contenu'>\n\t<input type='hidden' name='abonnement_id' value='!!abonnement_id!!'/>\n\t!!calendrier!!\n\t</div> <!-- Fin du contenu -->\n\t<div class='row'>\n\t\t<input type='hidden' id='act' name='act' value='' />\n\t\t<div class='left'><input type=\"submit\" class='bouton' value='" . $msg["77"] . "' onClick=\"document.getElementById('act').value='update';this.form.submit();\"/> <input type='button' class='bouton' value='" . $msg["76"] . "' onClick=\"document.location='./catalog.php?categ=serials&sub=view&serial_id=!!serial_id!!&view=abonnement';\"/> <input type='button' class='bouton' value='" . $msg["abts_abonnements_copy_abonnement"] . "'/></div><div class='right'>!!del_button!!</div>\n\t</div>\n\t<div class='row'></div>\n</form>\n";
示例8: foreach
} else {
$selected = '';
}
$sel_type_tpl = "\n\t<select name='sel_type' size='1' onchange='type_change(this);'>\n\t <option value='default' {$selected}>" . $msg['edit_cbgen_name_default'] . "</option>";
foreach ($mep_etiq_cb as $type) {
if (is_array($type)) {
if ($type['type_cb_libelle'] == $sel_type) {
$selected = " selected='selected' ";
} else {
$selected = '';
}
if ($type['type_cb_libelle'] && $type['type_cb_libelle'] != 'default') {
$sel_type_tpl .= "<option value='" . htmlentities($type['type_cb_libelle'], ENT_QUOTES, $charset) . "' {$selected}>" . htmlentities($type['type_cb_name'], ENT_QUOTES, $charset) . "</option>\t";
}
}
}
if ($sel_type == 'new') {
$selected = " selected='selected' ";
} else {
$selected = '';
}
$sel_type_tpl .= "\t \n\t <option value='new' {$selected} >" . $msg['edit_cbgen_name_new'] . "</option>\n</select>\n";
if ($sel_type != 'default') {
$button_memorise = "<input class='bouton' type='button' value='" . $msg['edit_cbgen_save'] . "' onClick=\"submit_memorise();\"/>";
}
if ($sel_type != 'default' && $sel_type != 'new') {
$button_delete = "<input class='bouton' type='button' value='" . $msg['edit_cbgen_delete'] . "' onClick=\"confirm_delete();\"/>";
}
// $cbgen_query : form de demande d'info pour génération
$cbgen_query = "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif (form.source[0].checked) // autoinc\n\t\t{\n\t\t\tif (form.cb_first.value == '')\n\t\t\t{\n\t\t\t\talert(\"{$msg['851']}\");\n\t\t\t\tform.cb_first.focus();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ((parseInt(form.nbr_cb.value) < 0) || (form.nbr_cb.value == ''))\n\t\t\t{\n\t\t\t\talert(\"{$msg['850']}\");\n\t\t\t\tform.nbr_cb.focus();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse if (form.source[1].checked) // fromfile\n\t\t{\n\t\t\tif (form.userfile.value == '')\n\t\t\t{\n\t\t\t\talert(\"{$msg['852']}\");\n\t\t\t\tform.userfile.focus();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\t\n\tfunction test_memorise(form)\n\t{\n\t\tif (form.type_cb_name.value == '') {\n\t\t\talert(\"" . $msg['edit_cbgen_cb_name_invalid'] . "\");\n\t\t\tform.type_cb_name.focus();\n\t\t\treturn false;\n\t\t}\n\t\tif (form.type_cb_libelle.value == '' || form.type_cb_libelle.value == 'default' || form.type_cb_libelle.value == 'new')\n\t\t{\n\t\t\tform.type_cb_libelle.value ='';\n\t\t\talert(\"" . $msg['edit_cbgen_cb_libelle_invalid'] . "\");\n\t\t\tform.type_cb_libelle.focus();\n\t\t\treturn false;\n\t\t}\t\t\t\n\t\treturn true;\n\t}\n\tfunction type_change(selectBox) {\n\t\tid=selectBox.options[selectBox.selectedIndex].value;\n\t\tdocument.location='./edit.php?categ=cbgen&sub={$sub}&sel_type='+" . pmb_escape() . "(id);\n\t}\t\n\tfunction submit_genere() {\n\t\tif(test_form(document.forms['cbgen_query'])) {\n\t\t\tdocument.forms['cbgen_query'].submit();\t\n\t\t}\t\t\t\n\t}\n\tfunction submit_memorise() {\n\t\tif(test_memorise(document.forms['cbgen_query'])) {\n\t\t\tdocument.forms['cbgen_query'].setAttribute('action', './edit.php?categ=cbgen&sub={$sub}&sel_type=" . rawurlencode($sel_type) . "&action=memo');\n\t\t\tdocument.forms['cbgen_query'].submit();\n\t\t}\t\t\t\n\t}\n\tfunction confirm_delete() {\n\t\tresult = confirm(\"" . $msg["edit_cbgen_delete_confirm"] . "\");\n\t\tif(result)\tdocument.location='./edit.php?categ=cbgen&sub={$sub}&action=delete&sel_type=" . rawurlencode($sel_type) . "';\n\t}\n-->\n</script>\n\n<form class='form-{$current_module}' id = 'cbgen_query' name='cbgen_query' method='post' enctype='multipart/form-data' action='edit/generate.php' >\n<div class='form-contenu'>\n\n\t<div class='row'>\n\t\t<label class='etiquette' for='bibli_name'>{$msg['800']}</label><br />\n\t\t<input class='saisie-80em' id='bibli_name' type='text' name='bibli_name' value=\"" . htmlentities($mep_etiq_cb[$sel_type]["bibli_name"], ENT_QUOTES, $charset) . "\" />\n\t</div>\n\n\t<div class='row'>\n\t\t<input type='radio' name='source' value='autoinc' checked='checked' id='source' /><span>{$msg['808']}</span>\n\t</div>\n\n\n\t<div class='row'>\n\t\t<blockquote><label class='etiquette' for='cb_first'>{$msg['801']}</label><br />\n\t\t<input class='saisie-20em' type='text' name='cb_first' id='cb_first' /></blockquote>\n\t</div>\n\n\t<div class='row'>\n\t\t<blockquote><label class='etiquette' for='nbr_cb'>{$msg['802']}</label><br />\n\t\t<input class='saisie-20em' type='text' name='nbr_cb' id='nbr_cb' value=\"" . $mep_etiq_cb[$sel_type][nbr_cb] . "\" /></blockquote>\n\t</div>\n\n\t<div class='row'>\n\t\t<input type='radio' name='source' value='fromfile' id='source' /><span>{$msg['809']}</span>\n\t</div>\n\n\t<div class='row'>\n\t\t<blockquote><label class='etiquette' for='userfile'>{$msg['807']}</label><br />\n\t\t<input type='file' name='userfile' size='80' id='userfile' /></blockquote>\n\t</div>\n\n\t<div class='row' id='show_layout_button'>{$msg['edit_cbgen_mep_etiq']}\n\t{$sel_type_tpl}\n\t<input type='button' class='bouton' value='{$msg['edit_cbgen_mep_afficher']}' onClick=\"javascript:document.getElementById('layout_mep').style.display='block';document.getElementById('show_layout_button').style.display='none'\">\n\t</div>\n<!-- A déplacer dans le fichier langue -->\n<div id='layout_mep' style='display:none;'>{$msg['edit_cbgen_mep_etiq']}\n<input type='button' class='bouton' value='{$msg['edit_cbgen_mep_masquer']}' onClick=\"javascript:document.getElementById('layout_mep').style.display='none';document.getElementById('show_layout_button').style.display='block'\"><br />\n<hr />\n<!-- Ajout du changement possible de format de page -->\n<label class='etiquette'>{$msg['edit_cbgen_type_cb_label']} </label>\n<input class='saisie-20em' id='type_cb_name' type='text' class='text' name='type_cb_name' value=\"" . htmlentities($mep_etiq_cb[$sel_type]['type_cb_name'], ENT_QUOTES, $charset) . "\" />\n<label class='etiquette'>{$msg['edit_cbgen_type_cb_libelle']} </label> \n<input class='saisie-20em' id='type_cb_libelle' type='text' class='text' name='type_cb_libelle' value=\"" . htmlentities($mep_etiq_cb[$sel_type]['type_cb_libelle'], ENT_QUOTES, $charset) . "\" />\n<br /><br />\n<label class='etiquette'>{$msg['edit_cbgen_mep_orientation']} </label>\n<select name='ORIENTATION' size='1'>\n <option value='P' {$selected_mep_orientation_P}>{$msg['edit_cbgen_mep_portrait']}</option>\n <option value='L' {$selected_mep_orientation_L}>{$msg['edit_cbgen_mep_paysage']}</option>\n</select><br />\n<label class='etiquette'>{$msg['edit_cbgen_mep_nbr_x_cells']}</label><br />\n<input class='saisie-20em' id='CBG_NBR_X_CELLS' type='text' class='text' name='CBG_NBR_X_CELLS' value=\"" . $mep_etiq_cb[$sel_type][CBG_NBR_X_CELLS] . "\"/><br />\n\n<label class='etiquette'>{$msg['edit_cbgen_mep_nbr_y_cells']}</label><br />\n<input class='saisie-20em' id='CBG_NBR_Y_CELLS' type='text' class='text' name='CBG_NBR_Y_CELLS' value=\"" . $mep_etiq_cb[$sel_type][CBG_NBR_Y_CELLS] . "\" /><br />\n\n<label class='etiquette'>{$msg['edit_cbgen_mep_margin']}</label><br />\n<input class='saisie-20em' id='CBG_LEFT_MARGIN' type='text' class='text' name='CBG_LEFT_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_LEFT_MARGIN] . "\" /> {$msg['edit_cbgen_mep_left']}<br />\n<input class='saisie-20em' id='CBG_RIGHT_MARGIN' type='text' class='text' name='CBG_RIGHT_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_RIGHT_MARGIN] . "\" /> {$msg['edit_cbgen_mep_right']}<br />\n<input class='saisie-20em' id='CBG_TOP_MARGIN' type='text' class='text' name='CBG_TOP_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_TOP_MARGIN] . "\" /> {$msg['edit_cbgen_mep_top']}<br />\n<input class='saisie-20em' id='CBG_BOTTOM_MARGIN' type='text' class='text' name='CBG_BOTTOM_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_BOTTOM_MARGIN] . "\" /> {$msg['edit_cbgen_mep_bottom']}<br />\n\n<label class='etiquette'>{$msg['edit_cbgen_mep_inner_margin']}</label><br />\n<input class='saisie-20em' id='CBG_INNER_LEFT_MARGIN' type='text' class='text' name='CBG_INNER_LEFT_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_INNER_LEFT_MARGIN] . "\" /> {$msg['edit_cbgen_mep_left']}<br />\n<input class='saisie-20em' id='CBG_INNER_RIGHT_MARGIN' type='text' class='text' name='CBG_INNER_RIGHT_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_INNER_RIGHT_MARGIN] . "\" /> {$msg['edit_cbgen_mep_right']}<br />\n<input class='saisie-20em' id='CBG_INNER_TOP_MARGIN' type='text' class='text' name='CBG_INNER_TOP_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_INNER_TOP_MARGIN] . "\" /> {$msg['edit_cbgen_mep_top']}<br />\n<input class='saisie-20em' id='CBG_INNER_BOTTOM_MARGIN' type='text' class='text' name='CBG_INNER_BOTTOM_MARGIN' value=\"" . $mep_etiq_cb[$sel_type][CBG_INNER_BOTTOM_MARGIN] . "\" /> {$msg['edit_cbgen_mep_bottom']}<br />\n\n<label class='etiquette'>{$msg['edit_cbgen_mep_text_height']}</label><br />\n<input class='saisie-20em' id='CBG_TEXT_HEIGHT' type='text' class='text' name='CBG_TEXT_HEIGHT' value=\"" . $mep_etiq_cb[$sel_type][CBG_TEXT_HEIGHT] . "\" /><br />\n<label class='etiquette'>{$msg['edit_cbgen_mep_text_font_size']}</label><br />\n<input class='saisie-20em' id='CBG_TEXT_FONT_SIZE' type='text' class='text' name='CBG_TEXT_FONT_SIZE' value=\"" . $mep_etiq_cb[$sel_type][CBG_TEXT_FONT_SIZE] . "\" /><br />\n<label class='etiquette'>{$msg['edit_cbgen_mep_text_size']}</label><br />\n<input class='saisie-20em' id='CBG_CB_TEXT_SIZE' type='text' class='text' name='CBG_CB_TEXT_SIZE' value=\"" . $mep_etiq_cb[$sel_type][CBG_CB_TEXT_SIZE] . "\" /><br />\n<label class='etiquette'>{$msg['edit_cbgen_mep_cb_res']}</label><br />\n{$msg['edit_cbgen_mep_cb_res_details']}<br />\n<input class='saisie-20em' id='CBG_CB_RES' type='text' class='text' name='CBG_CB_RES' value=\"" . $mep_etiq_cb[$sel_type][CBG_CB_RES] . "\" /><br />\n{$msg['edit_cbgen_mep_cb_res_note']}<br />\n\n</div>\n\n</div>\n<div class='row'>\n\t<div class='left'>\n\t\t<input class='bouton' type='button' value='{$msg['804']}' onClick=\"submit_genere();\"/>\n\t\t{$button_memorise}\n\t</div>\n\t<div class='right'>\n\t\t{$button_delete}\n\t</div>\t\n</div>\n</form>\n\n<script type='text/javascript'>\n\tdocument.forms['cbgen_query'].elements['bibli_name'].focus();\n</script>\n";
print $cbgen_query;
示例9: flip_short_loan
}
if ($pmb_short_loan_management == 1) {
$short_loan_bt = "\n\t\t\t<input type='button' class='bouton' name='short_loan_bt' id='short_loan_bt' value='" . ($short_loan == 1 || !$short_loan && $deflt_short_loan_activate ? $msg['short_loan_disable'] : $msg['short_loan_enable']) . "' onclick='flip_short_loan();' />\n\t\t\t<input type='hidden' id='short_loan' name='short_loan' value='" . ($short_loan == 1 || !$short_loan && $deflt_short_loan_activate ? 1 : 0) . "' />\n\t\t\t<script type='text/javascript'>\n\t\t\t\tfunction flip_short_loan() {\n\t\t\t\t\tvar short_loan=document.getElementById('short_loan');\n\t\t\t\t\tvar short_loan_bt=document.getElementById('short_loan_bt');\n\t\t\t\t\tvar short_loan_msg=document.getElementById('short_loan_msg');\n\t\t\t\t\tvar loan_zone=document.forms['pret_doc'];\n\t\t\t\t\tif (short_loan.value==0) {\n\t\t\t\t\t\tloan_zone.setAttribute('style','background-color:red;');\n\t\t\t\t\t\tshort_loan_msg.innerHTML='" . $msg['short_loan_enabled'] . "';\n\t\t\t\t\t\tshort_loan_bt.value='" . $msg['short_loan_disable'] . "';\n\t\t\t\t\t\tshort_loan.value=1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tloan_zone.removeAttribute('style');\n\t\t\t\t\t\tshort_loan_msg.innerHTML='" . $msg['short_loan_disabled'] . "';\n\t\t\t\t\t\tshort_loan_bt.value='" . $msg['short_loan_enable'] . "';\n\t\t\t\t\t\tshort_loan.value=0;\n\t\t\t\t\t}\n\t\t\t\t\tif (document.forms['pret_doc'].elements['cb_doc']!=undefined){\n \t\t\t\t\t\tdocument.forms['pret_doc'].elements['cb_doc'].focus();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(document.getElementById('short_loan').value==1) {\n\t\t\t\t\tdocument.forms['pret_doc'].setAttribute('style','background-color:red;');\n\t\t\t\t}\n\t\t\t</script>";
$empr_pret_allowed = str_replace('<!-- short_loan -->', $short_loan_bt, $empr_pret_allowed);
}
$printer_ticket_script = '';
$printer_ticket_link = '';
if ($pmb_printer_name || $pdfcartelecteur_printer_handler == 2) {
$printer_ticket_script = "\n\t<div id='printer_script'></div>\n\t<script type='text/javascript'>\n\t\t\n\t\tfunction printer_get_jzebra() {\n\t\t\tif(!document.jzebra) {\n\t\t\t\tvar req = new http_request();\n\t\t\t\treq.request('{$base_path}/ajax.php?module=circ&categ=zebra_print_pret&sub=get_script');\n\t\t\t\tdocument.getElementById('printer_script').innerHTML=req.get_text();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction printer_jzebra_send_ticket(text,printer,encoding) {\n\t\t\tvar applet = document.jzebra;\n\t\t\tvar found=false;\n\t\t\tif(applet!=null) {\n\t\t\t\tapplet.findPrinter(printer);\n\t\t\t\twhile (!applet.isDoneFinding()) {}\n\t\t\t\tif(printer == applet.getPrinter()) {\n\t\t\t\t\tfound = true; \n\t\t\t\t\tif(encoding) {\n\t\t\t\t\t\tapplet.setEncoding(encoding);\n\t\t\t\t\t}\n\t\t\t\t\tapplet.append(text);\n\t\t\t\t\tapplet.print();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!found) {\t\t \t \t\t\t\t\n \t\talert('" . $msg['printer_not_found'] . "');\n \t}\n } \n\t\t\n\t</script>";
}
if ($pmb_printer_name) {
$printer_ticket_script .= "\n\t<script type='text/javascript'>\n\n\t\tfunction printer_jzebra_print_ticket(url) {\n\t\t\tprinter_get_jzebra();\n\t\t\tvar req = new http_request();\n\t\t\tif(req.request(url)){\n\t\t\t\t// Il y a une erreur. \n\t\t\t\talert ( req.get_text() );\t\t\t\n\t\t\t}else { \n\t\t\t\tprinter_jzebra_send_ticket(req.get_text(),'" . $pmb_printer_name . "','850');\n\t\t\t\treturn 1;\t\n\t\t\t}\n\t\t}\n\t</script>\t\n\t";
$printer_ticket_link = "<a href='#' onclick=\"printer_jzebra_print_ticket('./ajax.php?module=circ&categ=zebra_print_pret&sub=all&id_empr=!!id!!'); return false;\"><img src='./images/print.gif' alt='" . htmlentities($msg['print_print'], ENT_QUOTES, $charset) . "' title='" . htmlentities($msg['print_print'], ENT_QUOTES, $charset) . "' align='middle' border='0'></a>";
} else {
if ($pmb_printer_ticket_url) {
$printer_ticket_script = "\t\t\n\t<script type='text/javascript'>\n\tfunction send_print_ticket(cmd) {\n\t\t// Construction de la requete \n\t\tvar url='{$pmb_printer_ticket_url}'; \n\t\t// On initialise la classe:\n\t\tvar req = new http_request();\n\t\t\n\t\tif(netscape.security.PrivilegeManager)netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');\t\n\t\t// Execution de la requete\n\t\tif(req.request(url,1,'xml='+" . pmb_escape() . "(cmd))){\n\t\t\t// Il y a une erreur. Afficher le message retourne\n\t\t\talert ( req.get_text() );\t\t\t\n\t\t}else { \n\t\t\t// la commande est bien passee\n\t\t\treturn 1;\t\n\t\t}\n\t}\t\t\n\tfunction print_ticket(url) {\n\t\t// Construction de la requete \n\t\t// On initialise la classe:\n\t\tvar req = new http_request();\n\t\t\n\t\tif(netscape.security.PrivilegeManager)netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');\t\n\t\t// Execution de la requete\n\t\tif(req.request(url)){\n\t\t\t// Il y a une erreur. Afficher le message retourne\n\t\t\talert ( req.get_text() );\t\t\t\n\t\t}else { \n\t\t\t// la commande est bien passee\t\t\n\t\t\tsend_print_ticket(req.get_text());\n\t\t\treturn 1;\t\n\t\t}\n\t}\n\t</script>";
$printer_ticket_link = " <a href='#' onclick=\"print_ticket('./ajax.php?module=circ&categ=print_pret&sub=all&id_empr=!!id!!'); return false;\"><img src='./images/print.gif' alt='Imprimer...' title='Imprimer...' align='middle' border='0'></a>";
}
}
$empr_tmpl = "\n{$printer_ticket_script}\n<!-- script de confirmation de suppression -->\n<script type=\"text/javascript\">\n\t\n\tfunction confirm_delete()\n\t{\n\t\tresult = confirm(\"{$msg[932]}\");\n\t\tif(result)\n\t\t\t\tdocument.location = \"./circ.php?categ=empr_delete&id=!!id!!&form_cb=!!cb!!&groupID={$groupID}\";\n\t\telse\n\t\t\t\tdocument.forms['pret_doc'].elements['cb_doc'].focus();\n\t}\n\n\tfunction check_cb(form)\n\t{\n\t\tx=document.forms['prolong_bloc'].elements['id_bloc'].value;\n\t y=form.id_doc.value;\n\t\tz='';\n\n\t\tpatt=new RegExp(' '+y+' ','g');\n\n\t\tif (patt.test(x)) \n\t\t\tz=x.replace(patt,'');\n\t\telse\n\t\t\tz=x+' '+y+' ';\n\t\tdocument.forms['prolong_bloc'].elements['id_bloc'].value = z;\n\t}\n\n\tfunction check_allcb(form)\n\t{\n\t y=form.id_inpret.value;\n\t\tids=y.split('|');\n\t\twhile (ids.length>0) {\n\t\t\tid=ids.shift();\n\t\t\tif (document.forms['prolong'+id].elements['cbox_prol']) document.forms['prolong'+id].elements['cbox_prol'].click();\n\t\t}\n\t}\n</script>\n<script type='text/javascript' src='./javascript/tablist.js'></script>\n<div id=\"el!!id!!Parent\" class=\"notice-parent\">\n \t\t<h1><div class='left'><img src=\"./images/plus.gif\" class=\"img_plus\" name=\"imEx\" id=\"el!!id!!Img\" title=\"" . $msg['admin_param_detail'] . "\" border=\"0\" onClick=\"expandBase('el!!id!!', true); return false;\">\n \t\t!!image_caddie_empr!! !!prenom!! !!nom!! <font size='2'>" . $msg['empr_nb_pret'] . ": !!info_nb_pret!! " . $msg['empr_nb_resa'] . ": !!info_nb_resa!! !!info_resa_planning!! !!header_format!!</font></div><div class='right'><font size='2'>!!empr_resume!! !!empr_statut_libelle!!</font></div></h1>\n \t\t</div>\n\t<div class='row'><div class='right'>!!empr_picture!!</div></div>\n<div id=\"el!!id!!Child\" class=\"notice-child\" style=\"margin-left:7px;display:none;\"!!depliee!!>\n<script type='text/javascript'>\n\tinitIt();\n</script>\n<div id='bloc_adresse_empr'>\n\t<div class='colonne3'>\n\t\t<div class='row'>\n\t\t\t!!adr1!!\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!adr2!!\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!cp!! !!ville!!\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!pays!!\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<strong>!!tel1!!</strong> / <strong>!!tel2!!</strong>\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t{$msg['58']}{$msg['1901']} !!mail_all!!\n\t\t\t</div>\n\t</div>\n\t<div class='colonne3'>\n\t\t<div class='row'>\n\t\t\t<strong>{$msg['74']} : </strong>!!prof!!\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<strong>{$msg['75']} : </strong>!!date!!\n\t\t\t</div>\n\t\t<div class='row'>\n\t\t\t<strong>{$msg['125']} : </strong>!!sexe!!\n\t\t\t</div>\n\t</div>\n\t<div class='colonne_suite'></div>\n\n\n<div class='row'>\n<div class='colonne3'>\n\t<div class='row'>\n\t\t<strong>{$msg['1403']}</strong>\n\t\t</div>\n\t<div class='row'>\n\t\t<strong>{$msg['1401']} : </strong>!!adhesion!!\n\t\t</div>\n\t<div class='row'>\n\t\t<strong>{$msg['1402']} : </strong>!!expiration!!\n\t\t</div>\n\t<div class='row'>\n\t\t<strong>" . $msg['date_dern_emprunt'] . " : </strong>!!last_loan_date!!\n\t\t</div>\n\t</div>\n<div class='colonne3'>\n\t<div class='row'>\n\t\t<strong>{$msg['60']} : </strong>!!codestat!!\n\t\t</div>\n\t<div class='row'>\n\t\t<strong>{$msg['59']} : </strong>!!categ!!\n\t\t</div>\n\t<div class='row'>\n\t\t<strong>{$msg['38']} : </strong>!!cb!!\n\t\t</div>\n\t</div>\n\t!!abonnement!!\n<div class='colonne_suite'>\n\t<!-- !!localisation!! -->\n\t<div class='row'>!!groupes!!\n\t\t</div>\n\t<div class='row'>\n\t\t<strong>" . $msg['empr_login'] . " : </strong>!!empr_login!!\n\t\t</div>\n\t<div class='row'>\n\t\t\t!!empr_pwd!!\n\t\t</div>\n</div>\n</div>\n<div class='row'></div>\n!!perso!!\n<div class='row'></div>\n</div>\n</div>";
if ($ldap_accessible) {
$empr_tmpl .= "<div class='row'>\n\t\t<strong>" . $msg['empr_authldap'] . ": </strong>!!info_authldap!!\n\t</div>";
}
$empr_tmpl .= "\n<div class='row'>\n\t<div class='erreur'>!!empr_date_depassee!!</div>\n</div>\n<div class='row'>\n\t<div class='erreur'>!!empr_categ_age_change!!</div>\n</div>\n<div class='row'>\n\t<div class='erreur'>!!empr_msg!!</div>\n</div>\n!!comptes!!\n!!relance!!\n<hr />\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' name='modifier' class='bouton' value='{$msg['62']}' onClick=\"document.location='./circ.php?categ=empr_saisie&id=!!id!!&groupID={$groupID}';\" />\n\t\t<input type='button' name='dupliquer' class='bouton' value='" . $msg['empr_duplicate_button'] . "' onClick=\"document.location='./circ.php?categ=empr_duplicate&id=!!id!!';\" />\n\t\t<input type='button' name='imprimercarte' class='bouton' value='" . $msg['imprimer_carte'] . "' onClick=\"openPopUp('./pdf.php?pdfdoc=carte-lecteur&id_empr=!!id!!', 'print_PDF', 600, 500, -2, -2, '{$PDF_win_prop}');\" />";
switch ($pdfcartelecteur_printer_card_handler) {
//script "print_cb.php" a la racine sur le serveur web
default:
case '1':
if (file_exists("print_cb.php")) {
$empr_tmpl .= "<a href='#' onClick='h=new http_request(); h.request(\"print_cb.php?cb=!!cb!!&label=!!prenom!! !!nom!!\", false,\"\", false, function(){},function(){},\"impr_cb\")' ><img src='./images/print.gif' alt='" . htmlentities($msg['print_print'], ENT_QUOTES, $charset) . "' title='" . htmlentities($msg['print_print'], ENT_QUOTES, $charset) . "' align='middle' border='0'></a>";
}
示例10: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: dico_synonymes.tpl.php,v 1.5 2014-06-15 13:55:50 Alexandre Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
die("no access");
}
// template pour le form de dictionnaire des synonymes
$select_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
$aff_liste_mots = "\n<script type='text/javascript'>\n<!--\n\tfunction test_form(form)\n\t{\n\t\tif(form.word_search.value.length == 0)\n\t\t\t{\n\t\t\t\talert('Le champ de recherche est vide.');\n\t\t\t\treturn false;\n\t\t\t} else return true;\n\t}\n-->\n</script>\n<h1>" . $msg["semantique"] . " : " . $msg["dico_syn"] . "</h1>\n<div class='row'>\n\t<form class='form-{$current_module}' name='search_mots' method='post' action='./autorites.php?categ=semantique&sub=synonyms&action=search' onSubmit='if (test_form(search_mots)) return true; else return false;'>\n\t<h3>" . $msg["357"] . " : " . $msg["dico_syn"] . "</h3>\n\n\t<div class='form-contenu'>\n\t\t<input type='text' class='saisie-30em' name='word_search' value=''>\n\t</div>\n\t<div class='row'>\n\t<div class='left'><input type='submit' class='bouton' value='" . $msg["142"] . "'>\n\n\t <input type='button' class='bouton' value='" . $msg["word_create"] . "' onclick=\"document.location='./autorites.php?categ=semantique&sub=synonyms&action=view';\"></div>\n\n\t!!see_last_words!!\n\t</div>\n\t<div class='row'></div>\t\n\t</form>\n\t</div>\n\n<div class='row'> </div>\n\n<div class='row'><h3>" . $msg["search_words_libelle"] . " !!cle!!</h3></div>\n\n!!lettres!!\n\n<div class='row'> </div>\n\n!!liste_mots!!\n\n<script> document.search_mots.word_search.focus(); </script>\n";
//template pour le form ajout/modification d'un mot
$aff_modif_mot = "\n<script src='javascript/ajax.js'></script>\n!!mots_js!!\n\n<h1>" . $msg["semantique"] . " : " . $msg["dico_syn"] . "</h1>\n<div class='row'> </div>\n<form class='form-{$current_module}' id='words' name='words' method='post' action='!!action!!&action=modif'>\n\n<h3><div class='left'>" . $msg["syn_word"] . "</div></h3><div class='row'></div><hr class='spacer' />\n\n<div class='form-contenu'>\n" . $msg["word_selected"] . " : <input type='text' class='saisie-20em' name='word_selected' value=\"!!mot_original!!\">\n\n<input type='hidden' name='word_code_selected' value='!!id_mot!!'>\n<input type='hidden' name='max_word' value=\"!!max_word!!\" />\n<div class='row'> </div>\n<b>" . $msg["word_syn"] . " :</b><div class='row'> </div>\n!!mots_lie!!\n<div id='addword'/>\n</div>\n\n</div><div class='row'><hr class='spacer' />\n<div class='left'><input type='button' class='bouton' value='" . $msg["76"] . "' onClick=\"history.back(-1);\"> <input type='button' class='bouton' value='" . $msg["77"] . "' onClick='document.words.submit();'></div>\n!!supprimer!!\n</div><div class='row'></div></form>\n\n<script> \najax_pack_element(document.words.f_word0);\ndocument.words.word_selected.focus(); \n</script>";
//fonctions ajax ajout de zones de texte
$mot_js = "\n<script>\n\tfunction fonction_selecteur_word() {\n name=this.getAttribute('id').substring(4);\n\t\tname_id = name.substr(0,6)+'_code'+name.substr(6);\n openPopUp('./select.php?what=synonyms&caller=words&p1='+name_id+'&p2='+name, 'select_word', 400, 400, -2, -2, '{$select_prop}');\n }\n function fonction_raz_word() {\n name=this.getAttribute('id').substring(4);\n\t\tname_id = name.substr(0,6)+'_code'+name.substr(6);\n document.getElementById(name).value='';\n\t\tdocument.getElementById(name_id).value='';\n }\n function add_word() {\n template = document.getElementById('addword');\n word=document.createElement('div');\n word.className='row';\n\n suffixe = eval('document.words.max_word.value')\n nom_id = 'f_word'+suffixe\n f_word = document.createElement('input');\n f_word.setAttribute('name',nom_id);\n f_word.setAttribute('id',nom_id);\n f_word.setAttribute('type','text');\n f_word.className='saisie-30emr';\n f_word.setAttribute('value','');\n\t\tf_word.setAttribute('completion','synonyms');\n \n\t\tid = 'f_word_code'+suffixe\n\t\tf_word_code = document.createElement('input');\n\t\tf_word_code.setAttribute('name',id);\n f_word_code.setAttribute('id',id);\n f_word_code.setAttribute('type','hidden');\n\t\tf_word_code.setAttribute('value','');\n \n del_f_word = document.createElement('input');\n del_f_word.setAttribute('id','del_f_word'+suffixe);\n del_f_word.onclick=fonction_raz_word;\n del_f_word.setAttribute('type','button');\n del_f_word.className='bouton';\n del_f_word.setAttribute('readonly','');\n del_f_word.setAttribute('value','{$msg['raz']}');\n\n sel_f_word = document.createElement('input');\n sel_f_word.setAttribute('id','sel_f_word'+suffixe);\n sel_f_word.setAttribute('type','button');\n sel_f_word.className='bouton';\n sel_f_word.setAttribute('readonly','');\n sel_f_word.setAttribute('value','{$msg['parcourir']}');\n sel_f_word.onclick=fonction_selecteur_word;\n\n word.appendChild(f_word);\n\t\tword.appendChild(f_word_code);\n space=document.createTextNode(' ');\n word.appendChild(space);\n word.appendChild(sel_f_word);\n word.appendChild(space.cloneNode(false));\n word.appendChild(del_f_word);\n \n template.appendChild(word);\n\n document.words.max_word.value=suffixe*1+1*1 ;\n ajax_pack_element(f_word);\n }\n</script>";
//template de zone de texte pour chaque mot lié
$aff_mot_lie = "\n<div class='row'>\n<input type='text' class='saisie-30emr' id='f_word!!iword!!' name='f_word!!iword!!' value=\"!!word!!\" autfield='f_word_code!!iword!!' completion=\"synonyms\" />\n<input type='hidden' id='f_word_code!!iword!!' name='f_word_code!!iword!!' value='!!id_word!!'>\n<input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=synonyms&caller=words&p1=f_word_code!!iword!!&p2=f_word!!iword!!&deb_rech='+" . pmb_escape() . "(this.form.f_word!!iword!!.value), 'select_word', 400, 400, -2, -2, '{$select_prop}')\" />\n<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_word!!iword!!.value='';this.form.f_word_code!!iword!!.value=''; \" />\n!!bouton_ajouter!!\n</div>\n";
示例11: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: suggestion_multi.tpl.php,v 1.12 2014-08-01 14:28:54 Alexandre Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
die("no access");
}
$multi_sug_form = "<div id='make_mul_sugg'>\n<h1>" . htmlentities($msg['acquisition_sug_ges'], ENT_QUOTES, $charset) . "</h1>\n<div id='make_mul_sugg-container'>\n<script src='./javascript/suggestion_multi.js' type='text/javascript'></script>\n<script>\n\tfunction check_fields(nb_ligne){\n\tvar retour=true;\n\tvar qte_error = false;\n\tvar txt_error = false;\n\n\tfor(var i=0;i<nb_ligne;i++){\n\t\tif (document.getElementById('sugg_'+i)){\n\t\t\tif((document.getElementById('sugg_tit_'+i).disabled == true) && (i==0) ){\n\t\t\t\talert(\"" . $msg[sugg_no_field_fill] . "\");\n\t\t\t\treturn false;\n\t\t\t} else if(document.getElementById('sugg_tit_'+i).disabled == true) \n\t\t\t\t\tbreak;\t\n\t\t\t\n\t\t\tvar tit = document.getElementById('sugg_tit_'+i).value;\n\t\t\tvar aut = document.getElementById('sugg_aut_'+i).value;\n\t\t\tvar edi = document.getElementById('sugg_edi_'+i).value;\n\t\t\tvar qte = document.getElementById('sugg_qte_'+i).value;\n\t\t\tvar cod = document.getElementById('sugg_code_'+i).value;\n\t\t\tif(!tit || (!aut && !edi && !cod)){\n\t\t\t\tdocument.getElementById('sugg_'+i).className = 'erreur_saisie';\n\t\t\t\tretour=false;\n\t\t\t\ttxt_error = true;\n\t\t\t} else if(isNaN(qte)){\n\t\t\t\tdocument.getElementById('sugg_'+i).className = 'erreur_saisie';\n\t\t\t\tretour=false;\n\t\t\t\tqte_error = true;\n\t\t\t} else{\n\t\t\t\tdocument.getElementById('sugg_'+i).className = '';\n\t\t\t}\n\t\t}\n\t}\n\n\tif(qte_error){\n\t\talert('" . $msg[acquisition_sugg_qte_error] . "');\n\t} else if(txt_error){\n\t\talert(\"" . $msg[acquisition_sug_ko] . "\");\n\t}\n\t\t\n\treturn retour;\n}\n</script>\n<form action=\"acquisition.php?categ=sug&sub=multi\" method=\"post\" name=\"sug_multi\" onsubmit=\"return check_fields(document.getElementById('max_nblignes').value);\"> \n\t<h3>" . htmlentities($msg['acquisition_make_mul_sugg'], ENT_QUOTES, $charset) . "</h3>\n\t<input type='hidden' name='act' id='act' />\n\t<input type='hidden' name='max_nblignes' id='max_nblignes' value='!!max_lignes!!'/>\n\t<div class='form-contenu'>\n\t\t<table class='tab_sug'>\n\t\t\t<tbody id='tableau_multi_sugg'>\n\t\t\t<tr>\n\t\t\t\t<th style='width:15%'>" . htmlentities($msg["acquisition_sugg_tit"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:15%'>" . htmlentities($msg["acquisition_sugg_aut"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:12%'>" . htmlentities($msg["acquisition_sugg_edi"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:8%'>" . htmlentities($msg["acquisition_sugg_code"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:5%'>" . htmlentities($msg["acquisition_sugg_prix"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:12%'>" . htmlentities($msg["acquisition_sugg_url"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:15%'>" . htmlentities($msg["acquisition_sugg_comment"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:15%'>" . htmlentities($msg["acquisition_sugg_comment_gestion"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:7%'>" . htmlentities($msg["acquisition_sugg_date_publication"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:10%'>" . htmlentities($msg["acquisition_sugg_src"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:3%'>" . htmlentities($msg["acquisition_sugg_qte"], ENT_QUOTES, $charset) . "</th>\n\t\t\t\t<th style='width:1%'></th>\n\t\t\t</tr>\n\t\t\t!!ligne!!\n\t\t\t</tbody>\n\t\t</table>\n\t\t<div class='row'>\n\t\t\t<div class='colonne3'>\n\t\t\t\t<label class='etiquette'>" . htmlentities($msg['acquisition_sugg_origine_user'], ENT_QUOTES, $charset) . "</label>\t\t\t\t\t\n\t\t\t\t<input type='hidden' id='id_user' name='id_user' value='!!id_user!!' />\n\t\t\t\t<input type='hidden' id='type_user' name='type_user' value='!!type_user!!' />\n\t\t\t\t<input type='text' id='user_txt' name='user_txt' class='saisie-20emr' value='!!user_txt!!'/>\n\t\t\t\t<input type='button' class='bouton_small' value='...' onclick=\"openPopUp('./select.php?what=origine&caller=sug_multi¶m1=id_user¶m2=user_txt¶m3=type_user&deb_rech='+" . pmb_escape() . "(this.form.user_txt.value), 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes')\" />\n\t\t\t\t<input type='button' class='bouton_small' value='X' onclick=\"this.form.id_user.value=0;this.form.type_user.value=0;this.form.user_txt.value=''\"/>\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!localisation!!\n\t\t\t</div>\n\t\t\t<div class='colonne3'>\n\t\t\t\t!!categorie!!\n\t\t\t</div>\t\t\t\n\t\t</div>\t\n\t\t<div class='row'></div>\t\t\n\t</div>\t\n\t<div class='row'>\n\t\t<div class='left'>\n\t\t\t<input type='submit' class='bouton' name='save_multi_sugg' value='{$msg['acquisition_sugg_save_multi']}' onclick='this.form.act.value=\"save_multi_sugg\";' />\n\t\t</div>\n\t</div>\n\t<div class='row'></div>\n</form>\n</div>\n</div>";
$import_sug_form = "\n<div id='import_sug'>\n<h1>" . htmlentities($msg['acquisition_sug_ges'], ENT_QUOTES, $charset) . "</h1>\n<div id='import_sug-container'>\n<form action=\"acquisition.php?categ=sug&sub=import\" method=\"post\" enctype=\"multipart/form-data\"> \n\t<h3>" . htmlentities($msg['acquisition_sugg_import_title'], ENT_QUOTES, $charset) . "</h3>\n\t<input type='hidden' name='act' id='act' />\n\t<input type='hidden' name='explnum_id' value='!!explnum_id!!' /> \n\t<input type='hidden' name='origine_id' value='!!origine_id!!' />\n\t<input type='hidden' name='type_origine' value='!!type_origine!!' />\n\t<div class='form-contenu'>\n\t\t<div class='row'>\n\t\t\t<label for='import file' class='etiquette'>{$msg['acquisition_sugg_file_to_import']}</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!import_file!!\t\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<label for='src_liste' class='etiquette'>{$msg['acquisition_sugg_srcliste']}</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!liste_source!!\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t<label for='import_liste' class='etiquette'>{$msg['acquisition_sugg_importliste']}</label>\n\t\t</div>\n\t\t<div class='row'>\n\t\t\t!!liste_import!!\n\t\t</div>\n\t</div>\n\t<input type='button' class='bouton' value=\"" . $msg[76] . "\" onClick=\"document.location='acquisition.php?categ=sug&action=list' \"/> <input type='submit' class='bouton' name='import_sugg' value='{$msg['acquisition_sugg_btn_import']}' onclick='this.form.act.value=\"import_sugg\"' />\n</form>\n</div>\n</div>";
示例12: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: titres_uniformes.tpl.php,v 1.8 2014-03-05 08:46:32 mhoestlandt Exp $
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) {
die("no access");
}
$selector_prop = "toolbar=no, dependent=yes,resizable=yes, scrollbars=yes";
$titre_uniforme_form = jscript_unload_question() . "\n<script type='text/javascript'>\n\nfunction test_form(form) {\n\tif(form.name.value.length == 0)\t{\n\t\talert(\"{$msg['213']}\");\n\t\treturn false;\n\t}\n\tunload_off();\t\n\treturn true;\n}\n\nfunction confirm_delete() {\n result = confirm(\"{$msg[confirm_suppr]}\");\n if(result) {\n unload_off();\n document.location='./autorites.php?categ=titres_uniformes&sub=delete&id=!!id!!&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\n\t} else\n document.forms['saisie_titre_uniforme'].elements['titre_uniforme'].focus();\n}\nfunction check_link(id) {\n\tw=window.open(document.getElementById(id).value);\n\tw.focus();\n}\n\n\n</script>\n\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' id='saisie_titre_uniforme' name='saisie_titre_uniforme' method='post' action='!!action!!' onSubmit=\"return false\" >\n<h3>!!libelle!!</h3>\n<div class='form-contenu'>\n\n<!--\tnom\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_nom'>" . $msg["aut_titre_uniforme_form_nom"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_nom' name='name' value=\"!!nom!!\" />\n</div>\n\t\t\t\n<!--\tAuteur principal de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_author'>" . $msg["auteur_principal_sort"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' completion='author' autfield='form_author_id' id='form_author' class='saisie-30emr' name='form_author' value=\"!!aut_name!!\" />\n <input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=auteur&caller=saisie_titre_uniforme¶m1=form_author_id¶m2=form_author&deb_rech='+" . pmb_escape() . "(this.form.form_author.value), 'select_author0', 500, 400, -2, -2, '{$selector_prop}')\" />\n <input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.form_author.value=''; this.form.form_author_id.value='0'; \" />\n <input type='hidden' name='form_author_id' id='form_author_id' value=\"!!aut_id!!\" />\n</div>\n\t\t\t\n<!--\tForme de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_form'>" . $msg["aut_oeuvre_form_forme"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_form' name='form' value='!!form!!'>\n</div>\t\n\n\t\t\t<!--\tDate de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_dates'>" . $msg["aut_oeuvre_form_date"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_dates' name='date' value='!!date!!'>\n</div>\n\t\t\t\n<!--\tLieu d'origine de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_place'>" . $msg["aut_oeuvre_form_lieu"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_place' name='place' value='!!place!!'>\n</div>\n\t\t\t\n<!--\tSujet de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_subject'>" . $msg["aut_oeuvre_form_sujet"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_subject' name='subject' value='!!subject!!'>\n</div>\n\n<!--\tComplétude visée de l'oeuvre\t-->\n<div class='colonne2'>\n\t<label class='etiquette' for='form_completude'>" . $msg["aut_oeuvre_form_completude"] . "</label>\n</div>\n<div class='row'>\n\t<select id='form_intended_termination' name='intended_termination' class='saisie-20em'>\n\t\t<option value='0' !!intended_termination_0!!>--</option>\n\n\t\t<option value='1' !!intended_termination_1!!>Oeuvre finie</option>\n\n\t\t<option value='2' !!intended_termination_2!!>Oeuvre infinie</option>\n\n\t</select>\t\n</div>\n\t\t\t\n<!--\tPublic visé de l'oeuvre\t-->\n<div class='colonne_suite'>\n\t<label class='etiquette' for='form_intended_audience'>" . $msg["aut_oeuvre_form_public"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-30em' id='form_intended_audience' name='intended_audience' value='!!intended_audience!!'>\n</div>\n\n<!--\tHistoire de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_history'>" . $msg["aut_oeuvre_form_histoire"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_history' name='history' cols='62' rows='4' wrap='virtual'>!!history!!</textarea>\n</div>\n\t\t\n<!--\tContexte de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_context'>" . $msg["aut_oeuvre_form_contexte"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_context' name='context' cols='62' rows='4' wrap='virtual'>!!context!!</textarea>\n</div>\t\t\t\n\n<!--\tDistribution instrumentale et vocale (pour la musique)\t-->\n<!--\tRéférence numérique (pour la musique)\t-->\n\n<!--\tTonalité (pour la musique)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_tonalite'>" . $msg["aut_titre_uniforme_form_tonalite"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_tonalite' name='tonalite' value='!!tonalite!!'>\n</div>\n\n\t\n<!--\tCoordonnées (oeuvre cartographique)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_coordinates'>" . $msg["aut_oeuvre_form_coordonnees"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_coordinates' name='coordinates' value='!!coordinates!!'>\n</div>\n\t\t\t\n<!--\tEquinoxe (oeuvre cartographique)\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_equinox'>" . $msg["aut_oeuvre_form_equinoxe"] . "</label>\n</div>\n<div class='row'>\n\t<input type='text' class='saisie-80em' id='form_equinox' name='equinox' value='!!equinox!!'>\n</div>\n\n<!-- Subdivision de forme -->\n\t\t\t\t\t\n<!--\tAutres caractéristiques distinctives de l'oeuvre\t-->\n<div class='row'>\n\t<label class='etiquette' for='form_carac'>" . $msg["aut_oeuvre_form_caracteristique"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='form_carac' name='characteristic' cols='62' rows='4' wrap='virtual'>!!characteristic!!</textarea>\n</div>\n\t\t\t\n<!-- \tCommentaire -->\n<div class='row'>\n\t<label class='etiquette' for='comment'>" . $msg["aut_titre_uniforme_commentaire"] . "</label>\n</div>\n<div class='row'>\n\t<textarea class='saisie-80em' id='comment' name='comment' cols='62' rows='4' wrap='virtual'>!!comment!!</textarea>\n</div>\n!!aut_pperso!!\n<div class='row'>\n\t<label class='etiquette' for='tu_import_denied'>" . $msg['authority_import_denied'] . "</label> \n\t<input type='checkbox' id='tu_import_denied' name='tu_import_denied' value='1' !!tu_import_denied!!/>\n</div>\n<!-- aut_link -->\n</div>\n<!--\tboutons\t-->\n<div class='row'>\n\t<div class='left'>\n\t\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"unload_off();document.location='./autorites.php?categ=titres_uniformes&sub=reach&user_input=!!user_input_url!!&page=!!page!!&nbr_lignes=!!nbr_lignes!!';\" />\n\t\t<input type='button' value='{$msg['77']}' class='bouton' id='btsubmit' onClick=\"if (test_form(this.form)) this.form.submit();\" />\n\t\t!!remplace!!\n\t\t!!voir_notices!!\n\t\t!!audit_bt!!\n\t\t<input type='hidden' name='page' value='!!page!!' />\n\t\t<input type='hidden' name='nbr_lignes' value='!!nbr_lignes!!' />\n\t\t<input type='hidden' name='user_input' value=\"!!user_input!!\" />\n\t\t</div>\n\t<div class='right'>\n\t\t!!delete!!\n\t\t</div>\n\t</div>\n<div class='row'></div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['saisie_titre_uniforme'].elements['name'].focus();\n</script>\n";
// $titre_uniforme_replace : form remplacement titre_uniforme
$titre_uniforme_replace = "\n<script src='javascript/ajax.js'></script>\n<form class='form-{$current_module}' name='titre_uniforme_replace' method='post' action='./autorites.php?categ=titres_uniformes&sub=replace&id=!!id!!' onSubmit=\"return false\" >\n<h3>{$msg['159']} !!old_titre_uniforme_libelle!! </h3>\n<div class='form-contenu'>\n\t<div class='row'>\n\t\t<label class='etiquette' for='titre_uniforme_libelle'>{$msg['160']}</label>\n\t</div>\n\t<div class='row'>\n\t\t<input type='text' class='saisie-50emr' id='titre_uniforme_libelle' name='titre_uniforme_libelle' value=\"\" completion=\"titres_uniformess\" autfield=\"by\" autexclude=\"!!id!!\"\n \tonkeypress=\"if (window.event) { e=window.event; } else e=event; if (e.keyCode==9) { openPopUp('./select.php?what=titre_uniforme&caller=titre_uniforme_replace¶m1=by¶m2=titre_uniforme_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}'); }\" />\n\n\t\t<input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=titre_uniforme&caller=titre_uniforme_replace¶m1=by¶m2=titre_uniforme_libelle&no_display=!!id!!', 'select_ed', {$selector_x_size}, {$selector_x_size}, -2, -2, '{$selector_prop}')\" title='{$msg['157']}' value='{$msg['parcourir']}' />\n\t\t<input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.titre_uniforme_libelle.value=''; this.form.by.value='0'; \" />\n\t\t<input type='hidden' name='by' id='by' value=''>\n\t</div>\n\t<div class='row'>\t\t\n\t\t<input id='aut_link_save' name='aut_link_save' type='checkbox' value='1'>" . $msg["aut_replace_link_save"] . "\n\t</div>\t\n\t</div>\n<div class='row'>\n\t<input type='button' class='bouton' value='{$msg['76']}' onClick=\"document.location='./autorites.php?categ=titres_uniformes&sub=titre_uniforme_form&id=!!id!!';\">\n\t<input type='button' class='bouton' value='{$msg['159']}' id='btsubmit' onClick=\"this.form.submit();\" >\n\t</div>\n</form>\n<script type='text/javascript'>\n\tajax_parse_dom();\n\tdocument.forms['titre_uniforme_replace'].elements['titre_uniforme_libelle'].focus();\n</script>\n";
示例13: htmlentities
$ptab[3] = "\n<!-- onglet 3 -->\n<div id='el3Parent' class='parent'>\n<h3>\n <img src='./images/plus.gif' class='img_plus' name='imEx' id='el3Img' title='{$msg['255']}' border='0' onClick=\"expandBase('el3', true); return false;\" />\n {$msg['255']}\n</h3>\n</div>\n\n<div id='el3Child' class='child' etirable='yes' title='" . htmlentities($msg[255], ENT_QUOTES, $charset) . "'>\n<div id='el3Child_0' title='{$msg['255']}' movable='yes'>\n<!-- ISBN, EAN ou no. commercial -->\n<div id='el3Child_0a' class='row'>\n <label for='f_cb' class='etiquette'>{$msg['255']}</label>\n</div>\n<div id='el3Child_0b' class='row'>\n <input class='saisie-20emr' id='f_cb' name='f_cb' readonly value=\"!!cb!!\" />\n <input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./catalog/setcb.php?notice_id=!!notice_id!!', 'getcb', 300, 150, -2, -2, 'toolbar=no, resizable=yes')\" />\n <input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_cb.value=''; \" />\n</div>\n</div>\n</div>\n";
// ----------------------------------------------------
// Collation
// $ptab[4] : contenu de l'onglet 4 (collation)
// ----------------------------------------------------
$ptab[4] = "\n<!-- onglet 4 -->\n<div id='el4Parent' class='parent'>\n <h3>\n <img src='./images/plus.gif' class='img_plus' name='imEx' id='el4Img' title='{$msg['257']}' border='0' onClick=\"expandBase('el4', true); return false;\" />\n {$msg['258']}\n </h3>\n</div>\n\n<div id='el4Child' class='child' etirable='yes' title='" . htmlentities($msg[258], ENT_QUOTES, $charset) . "'>\n\n<div id='el4Child_0' title='" . htmlentities($msg[259], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Importance matérielle (nombre de pages, d'éléments...) -->\n<div id='el4Child_0a' class='row'>\n <label for='f_npages' class='etiquette'>{$msg['259']}</label>\n</div>\n<div id='el4Child_0b' class='row'>\n <input type='text' class='saisie-80em' id='f_npages' name='f_npages' value=\"!!npages!!\" />\n</div>\n</div>\n\n<div id='el4Child_1' title='" . htmlentities($msg[260], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Autres caractèristiques matérielle (ill., ...) -->\n<div id='el4Child_1a' class='row'>\n <label for='f_ill' class='etiquette'>{$msg['260']}</label>\n</div>\n<div id='el4Child_1b' class='row'>\n <input type='text' class='saisie-80em' id='f_ill' name='f_ill' value=\"!!ill!!\" />\n</div>\n</div>\n\n<div id='el4Child_2' title='" . htmlentities($msg[261], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Format -->\n<div id='el4Child_2a' class='row'>\n <label for='f_size' class='etiquette'>{$msg['261']}</label>\n</div>\n<div id='el4Child_2b' class='row'>\n <input type='text' class='saisie-80em' id='f_size' name='f_size' value=\"!!size!!\" />\n</div>\n</div>\n\n<div id='el4Child_3' title='" . htmlentities($msg[4050], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Prix -->\n<div id='el4Child_3a' class='row'>\n <label for='f_prix' class='etiquette'>{$msg['4050']}</label>\n</div>\n<div id='el4Child_3b' class='row'>\n <input type='text' class='saisie-80em' id='f_prix' name='f_prix' value=\"!!prix!!\" />\n</div>\n\n</div>\n\n<div id='el4Child_4' title='" . htmlentities($msg[262], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Matériel d'accompagnement -->\n<div id='el4Child_4a' class='row'>\n <label for='f_accomp' class='etiquette'>{$msg['262']}</label>\n</div>\n<div id='el4Child_4b' class='row'>\n <input type='text' class='saisie-80em' id='f_accomp' name='f_accomp' value=\"!!accomp!!\" />\n</div>\n</div>\n</div>\n";
// ----------------------------------------------------
// Notes
// $ptab[5] : contenu de l'onglet 5 (notes)
// ----------------------------------------------------
$ptab[5] = "\n<!-- onglet 5 -->\n<div id='el5Parent' class='parent'>\n<h3>\n <img src='./images/plus.gif' class='img_plus' name='imEx' id='el5Img' title='{$msg['263']}' border='0' onClick=\"expandBase('el5', true); return false;\" />\n {$msg['264']}\n</h3>\n</div>\n\n<div id='el5Child' class='child' etirable='yes' title='" . htmlentities($msg[264], ENT_QUOTES, $charset) . "'>\n\n<div id='el5Child_0' title='" . htmlentities($msg[265], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Note générale -->\n<div id='el5Child_0a' class='row'>\n <label for='f_n_gen' class='etiquette'>{$msg['265']}</label>\n</div>\n<div id='el5Child_0b' class='row'>\n <textarea id='f_n_gen' class='saisie-80em' name='f_n_gen' rows='3' wrap='virtual'>!!n_gen!!</textarea>\n</div>\n</div>\n\n<div id='el5Child_1' title='" . htmlentities($msg[266], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Note de contenu -->\n<div id='el5Child_1a' class='row'>\n <label for='f_n_contenu' class='etiquette'>{$msg['266']}</label>\n</div>\n<div id='el5Child_1b' class='row'>\n <textarea id='f_n_contenu' class='saisie-80em' name='f_n_contenu' rows='5' wrap='virtual'>!!n_contenu!!</textarea>\n</div>\n</div>\n\n<div id='el5Child_2' title='" . htmlentities($msg[267], ENT_QUOTES, $charset) . "' movable='yes'>\n<!-- Résumé/extrait -->\n<div id='el5Child_2a' class='row'>\n <label for='f_n_resume' class='etiquette'>{$msg['267']}</label>\n</div>\n<div id='el5Child_2b' class='row'>\n <textarea class='saisie-80em' id='f_n_resume' name='f_n_resume' rows='5' wrap='virtual'>!!n_resume!!</textarea>\n</div>\n</div>\n</div>\n";
// ----------------------------------------------------
// Indexation
// $ptab[6] : contenu de l'onglet 6 (indexation)
// ----------------------------------------------------
$ptab[6] = "\n <!-- onglet 6 -->\n<div id='el6Parent' class='parent'>\n<h3>\n <img src='./images/plus.gif' class='img_plus' name='imEx' id='el6Img' title=\"{$msg['268']}\" border='0' onClick=\"expandBase('el6', true);recalc_recept(); return false;\" />\n {$msg['269']}\n</h3>\n</div>\n\n<div id='el6Child' class='child' etirable='yes' title='" . htmlentities($msg[269], ENT_QUOTES, $charset) . "'>\n\n<div id='el6Child_0' title='" . htmlentities($msg[134], ENT_QUOTES, $charset) . "' movable='yes'>\n <!-- Catégories -->\n <div id='el6Child_0a' class='row'>\n <label for='f_categ' class='etiquette'>{$msg['134']}</label>\n </div>\n <input type='hidden' name='max_categ' value=\"!!max_categ!!\" />\n !!categories_repetables!!\n <div id='addcateg'/>\n </div>\n</div>\n\n<div id='el6Child_1' title='" . htmlentities($msg[indexint_catal_title], ENT_QUOTES, $charset) . "' movable='yes'>\n <!-- indexation interne -->\n <div id='el6Child_1a' class='row'>\n <label for='f_categ' class='etiquette'>{$msg['indexint_catal_title']}</label>\n </div> \n <div id='el6Child_1b' class='row'>\n <input type='text' class='saisie-80emr' id='f_indexint' name='f_indexint' value=\"!!indexint!!\" completion=\"indexint\" autfield=\"f_indexint_id\" typdoc=\"typdoc\" />\n <input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=indexint&caller=notice¶m1=f_indexint_id¶m2=f_indexint&parent=0&deb_rech='+" . pmb_escape() . "(this.form.f_indexint.value)+'&typdoc='+(this.form.typdoc.value)+'&num_pclass=!!num_pclass!!', 'select_categ', 600, 320, -2, -2, '{$select3_prop}')\" />\n <input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_indexint.value=''; this.form.f_indexint_id.value='0'; \" />\n <input type='hidden' name='f_indexint_id' id='f_indexint_id' value='!!indexint_id!!' />\n </div>\n\n</div>\n\n<div id='el6Child_2' title='" . htmlentities($msg[324], ENT_QUOTES, $charset) . "' movable='yes'>\n <!-- Indexation libre -->\n <div id='el6Child_2a' class='row'>\n <label for='f_indexation' class='etiquette'>{$msg['324']}</label>\n </div>\n <div id='el8Child_2b' class='row'>\n <textarea class='saisie-80em' id='f_indexation' name='f_indexation' rows='3' wrap='virtual' completion='tags' keys='113'>!!f_indexation!!</textarea>\n </div>\n <div id='el8Child_2_comment' class='row'>\n <span>{$msg['324']}{$msg['1901']}{$msg['325']}</span>\n </div>\n</div>\n\n!!index_concept_form!!\n\n</div>\n";
// ----------------------------------------------------
// Catégories répétables
// $ptab[60]
// ----------------------------------------------------
$ptab[60] = "\n\t<script type='text/javascript' src='./javascript/categ_drop.js'></script>\n\t<input type='hidden' name='tab_categ_order' id='tab_categ_order' value='!!tab_categ_order!!' /> \n\t<input type='button' class='bouton' value='{$msg['parcourir']}' onclick=\"openPopUp('./select.php?what=categorie&caller=notice&autoindex_class=autoindex_record&indexation_lang=!!indexation_lang_sel!!&p1=f_categ_id!!icateg!!&p2=f_categ!!icateg!!&dyn=1&parent=0&deb_rech=', 'select_categ', 700, 500, -2, -2, '{$select_categ_prop}')\" />\n <input type='button' class='bouton' value='+' onClick=\"add_categ();\"/>\n\t\n \n \t<div id='drag_!!icateg!!' class='row' dragtype='categ' draggable='yes' recept='yes' recepttype='categ' handler='handle_!!icateg!!'\t\t\n\t\tdragicon=\"" . $base_path . "/images/icone_drag_notice.png\" dragtext='!!categ_libelle!!' downlight=\"categ_downlight\" highlight=\"categ_highlight\"\t\t\t\n\t\torder='!!icateg!!' style='' >\n \t\t<span id=\"handle_!!icateg!!\" style=\"float:left; padding-right : 7px\"><img src=\"" . $base_path . "/images/sort.png\" style='width:12px; vertical-align:middle' /></span>\n\t\n <input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' value=\"!!categ_libelle!!\" completion=\"categories_mul\" autfield=\"f_categ_id!!icateg!!\" />\n <input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; \" />\n \t<input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' /> \n\t</div>\t \n ";
$ptab[601] = " \n \t<div id='drag_!!icateg!!' class='row' dragtype='categ' draggable='yes' recept='yes' recepttype='categ' handler='handle_!!icateg!!'\t\t \t\t\n\t\tdragicon=\"" . $base_path . "/images/icone_drag_notice.png\" dragtext='!!categ_libelle!!' downlight=\"categ_downlight\" highlight=\"categ_highlight\"\t\t\t\n\t\torder='!!icateg!!' style='' >\n \t<span id=\"handle_!!icateg!!\" style=\"float:left; padding-right : 7px\"><img src=\"" . $base_path . "/images/sort.png\" style='width:12px; vertical-align:middle' /></span>\n\n \t<input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' value=\"!!categ_libelle!!\" completion=\"categories_mul\" autfield=\"f_categ_id!!icateg!!\" />\n <input type='button' class='bouton' value='{$msg['raz']}' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; \" />\n <input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' />\n\t</div> \n ";
// ----------------------------------------------------
// Langue de la publication
// $ptab[7] : contenu de l'onglet 7 (langues)
// ----------------------------------------------------
$ptab[7] = "\n<!-- onglet 7 -->\n<div id='el7Parent' class='parent'>\n<h3>\n <img src='./images/plus.gif' class='img_plus' name='imEx' id='el7Img' title='langues' border='0' onClick=\"expandBase('el7', true); return false;\" />\n {$msg['710']}\n</h3>\n</div>\n\n<div id='el7Child' class='child' etirable='yes' title='" . htmlentities($msg[710], ENT_QUOTES, $charset) . "'>\n\n<div id='el7Child_0' title='" . htmlentities($msg[710], ENT_QUOTES, $charset) . "' movable='yes'>\n <!-- Langues -->\n <div id='el7Child_0a' class='row'>\n <label for='f_langue' class='etiquette'>{$msg['710']}</label>\n </div>\n <input type='hidden' name='max_lang' value=\"!!max_lang!!\" />\n !!langues_repetables!!\n <div id='addlang'/>\n </div>\n</div>\n\n<div id='el7Child_1' title='" . htmlentities($msg[711], ENT_QUOTES, $charset) . "' movable='yes'>\n <!-- Langues -->\n <div id='el7Child_1a' class='row'>\n <label for='f_langorg' class='etiquette'>{$msg['711']}</label>\n </div>\n <input type='hidden' name='max_langorg' value=\"!!max_langorg!!\" />\n !!languesorg_repetables!!\n <div id='addlangorg'/>\n </div>\n</div>\n\n</div>\n";
// ----------------------------------------------------
// Langues répétables
// $ptab[70]
// ----------------------------------------------------
示例14: aff_selector
function aff_selector($field, &$check_scripts)
{
global $msg, $categ;
if ($field["OPTIONS"][0]["METHOD"]["0"]["value"] == 1) {
$text_name = $field[NAME] . "_id";
$hidden_name = $field[NAME];
} else {
$text_name = $field[NAME];
$hidden_name = $field[NAME] . "_id";
}
//pré-remplissage
$param = $text_name;
global ${$param};
switch ($field["OPTIONS"][0]["DATA_TYPE"]["0"]["value"]) {
case 1:
$what = "auteur";
break;
//auteurs
//auteurs
case 2:
$what = "categorie";
break;
//categories
//categories
case 3:
$what = "editeur";
break;
//Editeurs
//Editeurs
case 4:
$what = "collection";
break;
//collection
//collection
case 5:
$what = "subcollection";
break;
// subcollection
// subcollection
case 6:
$what = "serie";
break;
//Titre de serie
//Titre de serie
case 7:
$what = "indexint";
break;
// Indexation decimale
}
$ret = "<span style='width: 251px;'><input type='text' name='" . $text_name . "' id='" . $text_name . "' value='" . ${$param} . "' class='saisie-30emr' ></span>";
switch ($categ) {
case "planificateur":
$form_name = "planificateur_form";
break;
default:
$form_name = "formulaire";
break;
}
$ret .= "<input class='bouton' value='...' onclick=\"window.open('./select.php?what=" . $what . "&dyn=&caller=" . $form_name . "¶m1=" . $hidden_name . "¶m2=" . $text_name . "&p1=" . $hidden_name . "&p2=" . $text_name . "&mode=un&deb_rech='+" . pmb_escape() . "(''), 'select_author0', 'scrollbars=yes, toolbar=no, dependent=yes, width=400, height=400, resizable=yes')\" type='button'>";
$ret .= "<input name='" . $hidden_name . "' id='" . $hidden_name . "' type='hidden'>";
if ($field[MANDATORY] == "yes") {
$check_scripts .= "if (document." . $form_name . "." . $field[NAME] . ".value==\"\") return cancel_submit(\"" . sprintf($msg["parperso_field_is_needed"], $field[ALIAS][0][value]) . "\");\n";
}
return $ret;
}