/* funzioni utilizzate dal form generato dall'agente (webViewSel) */ function SelView (dbn,vista, campodest, campovis, campoget, mult, categoria, sep, nomi, allownll, loopbackf, newform) { var doc=document.forms[0]; if (mult==null) mult="no"; url="/"+doc.DBpath.value+"/(webViewSel)?OpenAgent"; fin=window.open("","select","toolbar=no,menubar=no,height=400, width=650, titlebar=no,resizable=yes,scrollbars=no,status=yes"); fin.focus(); fin.document.writeln(""); fin.document.writeln(""); fin.document.writeln("Select..."); fin.document.writeln(""); fin.document.writeln(''); fin.document.writeln('
Please wait...
'); fin.document.writeln('
'); if (dbn!=null) fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(''); if (allownll==null) allownll='false'; fin.document.writeln(''); if (loopbackf==null) loopbackf=''; fin.document.writeln(''); if (categoria!=null) { fin.document.writeln(''); fin.document.writeln(''); } if (nomi!=null) fin.document.writeln(''); var valori=""; cvalori=campodest.split(","); if (sep==null) { var sep=new Array(); for (var i=0;i'); var t=false; var arrv=new Array(); for (var i=0;i"+valori[j]; } } } for (var k=0;k'); if (!t) { fin.document.writeln(''); closeb="no"; } else { closeb="yes"; } if (newform!=null) fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(''); fin.document.writeln(""); fin.document.writeln("") fin.document.writeln(""); fin.document.writeln(""); } //-------------------------------------------------------------------------------------------------------------------------------------------------------- function doClose() { opener.focus(); window.close(); } //-------------------------------------------------------------------------------------------------------------------------------------------------------- function doOK() { var odoc=opener.document.forms[0]; var doc=document.forms[0]; var valore=""; for (var j=0;j"); for (var kk=0;kkndoc) nst=ndoc-count+1; } if (nst<1 || op=='adrb' || op=='search' || op=='clear') nst=1; if (op=='adrb' || op=='search' || op=='esplodigruppo') doc.op.value=op; if (op=='clear') doc.op.value=""; doc.start.value=nst; myOnsubmit(); doc.submit(); } //-------------------------------------------------------------------------------------------------------------------------------------------------------- function addNome() { var doc=document.forms[0]; if (doc.multi.value=="yes") { var optsn=new Array(); var optsv=new Array(); for (var i=0;i-1) { for (var i=0;i-1) { for (var i=0;i-1){ doc.nomi.options[doc.nomi.selectedIndex]=null; } } //-------------------------------------------------------------------------------------------------------------------------------------------------------- function doRemoveAll() { var doc=document.forms[0]; while (doc.nomi.options.length>0) { doc.nomi.options[0]=null; } } //-------------------------------------------------------------------------------------------------------------------------------------------------------- function doKP(e) { if (e==null) e=window.event; var code=e.which; if (code==null) code = e.keyCode; var character = String.fromCharCode(code); if (code==13) { if (document.forms[0].cerca.value=="") { alert('insert something to search'); return false; } else doSubmit('search'); } return true; } //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function myOnsubmit(){ var doc=document.forms[0]; var elms=doc.elements; for (var i=0;i-1) { for (var i=0;i-1) { var sel=doc.nomiSel[doc.nomiSel.selectedIndex].id; var url=""; if (doc.dbn.value!=""){ url="/"+doc.dbn.value+"/(0)/"+sel+"?EditDocument"; }else{ url="./"+doc.newform.value+"/(0)/"+sel+"?EditDocument";; } window.open(url,"nuovo","toolbar=no,menubar=no,height=400, width=650, titlebar=no,resizable=yes,scrollbars=no,status=yes"); } else { alert('selezionare una voce da modificare'); } }