Comitato Etico

FOGGIA FG

Documenti e Modulistica

Ultimo aggiornamento: 07/04/2017
Si è verificato un errore nell'elaborarazione del modello.
Expression idTogglePadre is undefined on line 50, column 27 in 20155#20195#121217.
1<#-- 
2Web content templates are used to lay out the fields defined in a web 
3content structure. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#assign templateUtility = objectUtil("it.eng.tz.liferay.template.TemplateUtility") /> 
10<#assign templateHead    = templateUtility.getTemplateInclude("TPL_Include_head")/> 
11 
12<#assign relazioneFolderAssign = "" /> 
13<#assign relazioneDocumentoAssign = "" /> 
14<!--Inclusione template Head--> 
15<#include "${templatesPath}/${templateHead}" /> 
16<#if ((denominazione.getData())?? && (denominazione.getData())?has_content ) && (((relazioneFolder.getData())?? && (relazioneFolder.getData())?has_content) || ((relazioneDocumento.getData())?? && (relazioneDocumento.getData())?has_content))> 
17	<#if (relazioneFolder.getData())?? && (relazioneFolder.getData())?trim != ""> 
18		<#assign relazioneFolderAssign = relazioneFolder.getData() /> 
19	</#if> 
20	<#if (relazioneDocumento.getData())?? && (relazioneDocumento.getData())?has_content> 
21		<#assign relazioneDocumentoAssign = relazioneDocumento.getData() /> 
22	</#if> 
23	<#assign idTogglePadre = denominazione.getData()?replace("[^a-zA-Z0-9]", "", "r")+"Id" /> 
24	<div class="cont-info"> 
25		<div class ="section toggle-mytag closed" id = "${idTogglePadre}"> 
26					<h3 class="toggle-head-mytag"> 
27						<a onclick='toggleEsternoFolder("${idTogglePadre}", "${relazioneFolderAssign}", "${relazioneDocumentoAssign}", false )'> ${denominazione.getData()} </a> 
28					</h3> 
29					<div  class="toggle-body"> 
30						<div class="cont-info"> 
31							<div id="FolRel${denominazione.getData()?replace('[^a-zA-Z0-9]', '', 'r')}Id"></div> 
32							<div id="DocRel${denominazione.getData()?replace('[^a-zA-Z0-9]', '', 'r')}Id"></div> 
33						</div> 
34					</div> 
35		</div> 
36	</div> 
37</#if> 
38 
39<script> 
40 
41//VARIABILE GLOBALE 
42var FolderPopolato = 0; 
43var globalId = 0; 
44var idFol = ""; 
45var idDoc = ""; 
46var idInterno = 0; 
47var id = ""; 
48 
49$(document).ready(function(){ 
50		if(($("#${idTogglePadre}").parent().parent().parent().parent().parent().parent()) && $("#${idTogglePadre}").parent().parent().parent().parent().parent().parent().children().length == 1){ 
51 
52 
53			$("#${idTogglePadre}").removeClass('closed'); 
54			toggleEsternoFolder("${idTogglePadre}", "${relazioneFolderAssign}", "${relazioneDocumentoAssign}", true ); 
55
56}); 
57 
58function toggleInternoDoc(id) { 
59 
60		var idComp = "#"+id; 
61		 if(typeof doNotClose != 'undefined' && doNotClose){ 
62			$(idComp).toggleClass('closed'); 
63
64			else{ 
65 
66				if($(idComp).hasClass('closed')){ 
67					if($(idComp).parent().parent().children().children().length > 0){ 
68 
69						$(idComp).parent().parent().children().children().addClass('closed'); 
70
71					$(idComp).removeClass('closed'); 
72				}else{ 
73					$(idComp).addClass('closed'); 
74
75
76}; 
77 
78 
79 
80 
81function toggleEsternoFolder(id, relFolder, relDoc, unico) { 
82 
83 
84		var idComp = "#"+id; 
85		var relF = 0; 
86		if(unico == true || $(idComp).hasClass('closed')){ 
87			if(( unico== false ) && ($(idComp).parent().parent().parent().parent().parent().parent())){ 
88				 	if(typeof doNotClose != 'undefined' && doNotClose){ 
89 
90
91					else{$(idComp).parent().parent().parent().parent().parent().parent() 
92					.children().children('div').children('.portlet-body') 
93					.children('.journal-content-article').children('.cont-info') 
94					.children('div').addClass('closed'); 
95
96
97			$(idComp).removeClass('closed'); 
98			if(relFolder != null && relFolder != "null" && relFolder != ""){ 
99				cercaRelazionatiFolder(0, true, relFolder, id); 
100				relF = 1; 
101
102			if(relDoc != null && relDoc != "null" && relDoc != ""){ 
103				cercaRelazionatiDoc(0, true, relDoc, id, relF); 
104
105		}else{ 
106			$(idComp).addClass('closed'); 
107
108	}; 
109 
110function toggleInternoLivello1(id, relFolder, relDoc, _tipoOrdinamento) { 
111//INIZIO BUG #5313 
112	if(_tipoOrdinamento != null && _tipoOrdinamento != ''){ 
113		if(_tipoOrdinamento.charAt(0) != ';') 
114			_tipoOrdinamento = ';' + _tipoOrdinamento + ';'; 
115		if(relDoc.charAt(0) == ';') 
116			relDoc = relDoc.substring(1); 
117		relDoc = _tipoOrdinamento + relDoc; 
118
119//FINE BUG #5313 
120		var idComp = "#"+id; 
121		var relF = 0; 
122		if($(idComp).hasClass('closed')){ 
123			if($(idComp).parent().parent().children().children().length > 0){ 
124			 	if(typeof doNotClose != 'undefined' && doNotClose){ 
125
126				else{ 
127				$(idComp).parent().parent().children().children().addClass('closed'); 
128
129
130			$(idComp).removeClass('closed'); 
131			if(relFolder != null && relFolder != "null" && relFolder != ""){ 
132				cercaRelazionatiFolder(0, true, relFolder, id); 
133				relF = 1; 
134
135			if(relDoc != null && relDoc != "null" && relDoc != ""){ 
136				cercaRelazionatiDoc(0, true, relDoc, id, relF); 
137
138		}else{ 
139			$(idComp).addClass('closed'); 
140
141	}; 
142 
143 
144function cercaRelazionatiFolder (_page, checkFirstTime, dati, idName){ 
145	descInterna = false; 
146	immInterna = false; 
147	relInterna = false; 
148	idFol = "#FolRel"; 
149    _struttura = dati; 
150	idFol = idFol + idName; 
151	if(_struttura  == ''){ 
152    	return ; 
153
154		findFigliSolr(_page 
155					 ,"15" 
156					 ,${groupId} 
157					 ,_struttura 
158					 ,loadRelazionatiFolder 
159					 ,"CHILDREN" 
160		); 
161
162 
163 
164function cercaRelazionatiDoc (_page, checkFirstTime, dati, idName, relF){ 
165	FolderPopolato = relF; 
166	descInterna = false; 
167	immInterna = false; 
168	relInterna = false; 
169	idDoc = "#DocRel"; 
170    _struttura = dati; 
171    dati = dati.replace("DENOMINAZIONE","") 
172               .replace("MANUALE"      ,"") 
173               .replace("MODIFICA-ASC" ,"") 
174               .replace("MODIFICA-DESC","") 
175
176	idDoc = idDoc + idName; 
177	if(_struttura  == ''){ 
178    	return ; 
179
180		findFigliSolr(_page 
181					 ,"15" 
182					 ,${groupId} 
183					 ,_struttura 
184					/* ,loadDocumenti		*/ 
185					 ,function(_data){ 
186						    loadHandelbarsTemplateWebContent(); 
187							loadFunctionHandlebarsFolder(); 
188							_source   = $("#listRelazionatiDocHandlebars").html(); 
189							_template = Handlebars.compile(_source); 
190							_data.relF = FolderPopolato; 
191						    _data._funName="cercaRelazionatiDoc"; 
192							_data._relDoc= dati; 
193							_data.idRicercati= _struttura; 
194							_data._idName=idName; 
195						     $(idDoc).html(_template(_data)); 
196 
197
198 
199 
200 
201		); 
202
203 
204 
205var _idFolder = 0; 
206var _idDocument = 0; 
207function loadFunctionHandlebarsFolder(){ 
208	Handlebars.registerHelper('aggiornaIdFolder', function(idPass) { 
209	_idFolder++; 
210		return "Folder" + _idFolder; 
211}); 
212Handlebars.registerHelper('aggiornaIdDocument', function(idPass) { 
213		_idDocument++; 
214		return "Document" + _idDocument; 
215}); 
216Handlebars.registerHelper('prendiIdGlobaleFolder', function() { 
217		return "Folder" + _idFolder; 
218}); 
219Handlebars.registerHelper('prendiIdGlobaleDocument', function() { 
220		return "Document" + _idDocument; 
221}); 
222Handlebars.registerHelper('valoreVuoto', function() { 
223		return null; 
224}); 
225 
226Handlebars.registerHelper('compare', function(lvalue, rvalue, options) { 
227 
228    if (arguments.length < 3) 
229        throw new Error("Handlerbars Helper 'compare' needs 2 parameters"); 
230 
231    var operator = options.hash.operator || "=="; 
232 
233    var operators = { 
234        '==':       function(l,r) { return l == r; }, 
235        '===':      function(l,r) { return l === r; }, 
236        '!=':       function(l,r) { return l != r; }, 
237        '<':        function(l,r) { return l < r; }, 
238        '>':        function(l,r) { return l > r; }, 
239        '<=':       function(l,r) { return l <= r; }, 
240        '>=':       function(l,r) { return l >= r; }, 
241        'typeof':   function(l,r) { return typeof l == r; } 
242
243 
244    if (!operators[operator]) 
245        throw new Error("Handlerbars Helper 'compare' doesn't know the operator "+operator); 
246 
247    var result = operators[operator](lvalue,rvalue); 
248 
249    if( result ) { 
250        return options.fn(this); 
251    } else { 
252        return options.inverse(this); 
253
254 
255}); 
256 
257Handlebars.registerHelper('calcolaValore', function(lvalue) { 
258	if(!lvalue || lvalue=="" || lvalue==null ){ 
259		return null; 
260	}else{ 
261		var end= lvalue.length; 
262		if(Array.isArray(lvalue)){ 
263			var start= 0; 
264			var nvalue = ";"; 
265			while (start < end){ 
266				nvalue = nvalue+lvalue[start]+";"; 
267				start++; 
268
269		} else { 
270			var nvalue = ";"+lvalue+";" 
271
272		return nvalue; 
273
274}); 
275
276 
277function loadRelazionatiFolder(_data) { 
278	loadHandelbarsTemplateWebContent(); 
279	loadFunctionHandlebarsFolder(); 
280 
281	_source   = $("#listRelazionatiFolderHandlebars").html(); 
282	_template = Handlebars.compile(_source); 
283     $(idFol).html(_template(_data)); 
284
285 
286/* commentata in quantodefinita come innerfunction 
287function loadDocumenti(_data) { 
288	loadHandelbarsTemplateWebContent(); 
289	loadFunctionHandlebarsFolder(); 
290	_source   = $("#listRelazionatiDocHandlebars").html(); 
291	_data.relF = FolderPopolato; 
292	_template = Handlebars.compile(_source); 
293 
294    _data._funName="cercaRelazionatiDoc"; 
295 
296 
297 
298 
299     $(idDoc).html(_template(_data)); 
300 
301 
302 
303
304*/ 
305 
306 
307 
308</script> 
309 
310<script id="listRelazionatiFolderHandlebars" type="text/x-handlebars-template"> 
311 
312	{{#if payload.length}} 
313							{{#each payload}} 
314							<div class ="section toggle-esterno-mytag closed" id="{{aggiornaIdFolder 0}}" > 
315							{{#compare denominazione "" operator="!="}} 
316								<h3 class="toggle-head-esterno-mytag"><a onclick="toggleInternoLivello1('{{prendiIdGlobaleFolder}}', '{{calcolaValore relazioneFolder}}' ,'{{calcolaValore relazioneDocumento}}','{{relazioneDocumentoOrdinamento}}')">{{denominazione}}</a></h3> 
317							{{/compare}} 
318							{{#compare denominazione "" operator="=="}} 
319								<h3 class="toggle-head-esterno-mytag"><a onclick="toggleInternoLivello1('{{prendiIdGlobaleFolder}}', '{{calcolaValore relazioneFolder}}' ,'{{calcolaValore relazioneDocumento}}','{{relazioneDocumentoOrdinamento}}')">{{title}}</a></h3> 
320							{{/compare}} 
321							<div  class="toggle-body"> 
322								<div class="cont-info"> 
323								<div id="FolRel{{prendiIdGlobaleFolder}}"></div> 
324								<div id="DocRel{{prendiIdGlobaleFolder}}"></div> 
325								</div></div></div> 
326							{{/each}} 
327			{{/if}} 
328 
329</script> 
330 
331<script id="listRelazionatiDocHandlebars" type="text/x-handlebars-template"> 
332	{{#if payload.length}} 
333 
334						{{#compare relF 1 operator="=="}} 
335								<div class ="section toggle-esterno-mytag " id="{{aggiornaIdDocument 0}}" > 
336									<h3 class="toggle-head-esterno-mytag"><a onclick="toggleInternoDoc('{{prendiIdGlobaleDocument}}')"><@liferay.language key="msg.tpl.common.Documenti-Modulistica" /></a> 
337									</h3> 
338									<div  class="toggle-body"> 
339							{{/compare}} 
340							{{#each payload}} 
341								<div class="colore-bold black bb-gray"> 
342									<span class="colore-bold">&#187;</span> 
343									<span class="si-text-decoration">{{denominazione}} </span><br> 
344									<span class="font-normal">{{tipologia}}</span> 
345									<span class="font-normal">{{{descrizione}}}</span> 
346									<span class="doc-download"> 
347									{{#if file}} 
348									<a id="download{{articleId}}" href="#"  target="_blank"><img src="https://www.sanita.puglia.it/pugliaSalute-theme/images/custom/download.png" alt="Download" width="24"/></a> 
349									{{/if}} 
350									</span> 
351									<p class="aggio font-normal"> <@liferay.language key="msg.tpl.common.data-pubblicazione" /> {{printDate dataPubblicazione}}</p> 
352								</div> 
353 
354							<script type="text/javascript"> 
355 
356								{{#if file}} 
357									retreiveFileUrl("{{{printJson file}}}", "download{{articleId}}"); 
358								{{/if}} 
359 
360							<{{!}}/script> 
361 
362 
363							{{/each}} 
364 
365 
366 
367{{#ifEqual this.totalPage 1}} 
368 
369		{{else}} 
370			<p class="Testo-descrizione-link-home f_right"> 
371			    {{#ifPrintPage1 this.page}} 
372 
373 
374{{#compare relF 1 operator="=="}} 
375			    	<a style="cursor:pointer;" onclick="{{_funName}}(0, false ,'{{_relDoc}}','{{_idName}}','{{relF}}');"> 
376{{else}} 
377			    	<a style="cursor:pointer;" onclick="{{_funName}}(0, false ,'{{idRicercati}}','{{_idName}}','{{relF}}');"> 
378{{/compare}} 
379<span>1</span></a> 
380	                <span>|</span> 
381			    	{{#ifPrintPage1Points this.page}} 
382	                	<span>...</span> 
383			    	{{/ifPrintPage1Points}} 
384			    {{/ifPrintPage1}} 
385			{{#forpage this.totalPage this.page}} 
386 
387			    {{#ifEqualPage this ../page}} 
388			    	<b>{{printPage this}}</b> 
389			    {{else}} 
390{{#compare relF 1 operator="=="}} 
391			    	<a style="cursor:pointer;" onclick="{{../../_funName}}({{this}} - 1,false, '{{../../_relDoc}}','{{../../_idName}}','{{../../relF}}');"> 
392{{else}} 
393			    	<a style="cursor:pointer;" onclick="{{../../_funName}}({{this}} - 1,false, '{{../../idRicercati}}','{{../../_idName}}','{{../../relF}}');"> 
394{{/compare}} 
395						<span>{{printPage this}}</span></a> 
396			    {{/ifEqualPage}} 
397			    {{#ifEqualPage this ../totalPage}} 
398				{{else}} 
399					<span>|</span> 
400				{{/ifEqualPage}} 
401		   {{/forpage}} 
402			    {{#ifPrintLastPage this.page this.totalPage}} 
403			        {{#ifPrintLastPagePoints this.page}} 
404                    	<span>...</span> 
405			        {{/ifPrintLastPagePoints}} 
406{{#compare relF 1 operator="=="}} 
407			        <a style="cursor:pointer;" onclick="{{_funName}}({{this.totalPage}} - 1, false ,'{{_relDoc}}','{{_idName}}','{{relF}}');"> 
408{{else}} 
409			        <a style="cursor:pointer;" onclick="{{_funName}}({{this.totalPage}} - 1, false ,'{{idRicercati}}','{{_idName}}','{{relF}}');"> 
410{{/compare}} 
411					<span>{{this.totalPage}}</span></a> 
412 
413			    {{/ifPrintLastPage}} 
414		</p> 
415 
416{{/ifEqual}} 
417 
418 
419 
420							{{#compare relF 1 operator="=="}} 
421								</div></div> 
422							{{/compare}} 
423			{{/if}} 
424</script> 
Si è verificato un errore nell'elaborarazione del modello.
Expression idTogglePadre is undefined on line 50, column 27 in 20155#20195#121217.
1<#-- 
2Web content templates are used to lay out the fields defined in a web 
3content structure. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#assign templateUtility = objectUtil("it.eng.tz.liferay.template.TemplateUtility") /> 
10<#assign templateHead    = templateUtility.getTemplateInclude("TPL_Include_head")/> 
11 
12<#assign relazioneFolderAssign = "" /> 
13<#assign relazioneDocumentoAssign = "" /> 
14<!--Inclusione template Head--> 
15<#include "${templatesPath}/${templateHead}" /> 
16<#if ((denominazione.getData())?? && (denominazione.getData())?has_content ) && (((relazioneFolder.getData())?? && (relazioneFolder.getData())?has_content) || ((relazioneDocumento.getData())?? && (relazioneDocumento.getData())?has_content))> 
17	<#if (relazioneFolder.getData())?? && (relazioneFolder.getData())?trim != ""> 
18		<#assign relazioneFolderAssign = relazioneFolder.getData() /> 
19	</#if> 
20	<#if (relazioneDocumento.getData())?? && (relazioneDocumento.getData())?has_content> 
21		<#assign relazioneDocumentoAssign = relazioneDocumento.getData() /> 
22	</#if> 
23	<#assign idTogglePadre = denominazione.getData()?replace("[^a-zA-Z0-9]", "", "r")+"Id" /> 
24	<div class="cont-info"> 
25		<div class ="section toggle-mytag closed" id = "${idTogglePadre}"> 
26					<h3 class="toggle-head-mytag"> 
27						<a onclick='toggleEsternoFolder("${idTogglePadre}", "${relazioneFolderAssign}", "${relazioneDocumentoAssign}", false )'> ${denominazione.getData()} </a> 
28					</h3> 
29					<div  class="toggle-body"> 
30						<div class="cont-info"> 
31							<div id="FolRel${denominazione.getData()?replace('[^a-zA-Z0-9]', '', 'r')}Id"></div> 
32							<div id="DocRel${denominazione.getData()?replace('[^a-zA-Z0-9]', '', 'r')}Id"></div> 
33						</div> 
34					</div> 
35		</div> 
36	</div> 
37</#if> 
38 
39<script> 
40 
41//VARIABILE GLOBALE 
42var FolderPopolato = 0; 
43var globalId = 0; 
44var idFol = ""; 
45var idDoc = ""; 
46var idInterno = 0; 
47var id = ""; 
48 
49$(document).ready(function(){ 
50		if(($("#${idTogglePadre}").parent().parent().parent().parent().parent().parent()) && $("#${idTogglePadre}").parent().parent().parent().parent().parent().parent().children().length == 1){ 
51 
52 
53			$("#${idTogglePadre}").removeClass('closed'); 
54			toggleEsternoFolder("${idTogglePadre}", "${relazioneFolderAssign}", "${relazioneDocumentoAssign}", true ); 
55
56}); 
57 
58function toggleInternoDoc(id) { 
59 
60		var idComp = "#"+id; 
61		 if(typeof doNotClose != 'undefined' && doNotClose){ 
62			$(idComp).toggleClass('closed'); 
63
64			else{ 
65 
66				if($(idComp).hasClass('closed')){ 
67					if($(idComp).parent().parent().children().children().length > 0){ 
68 
69						$(idComp).parent().parent().children().children().addClass('closed'); 
70
71					$(idComp).removeClass('closed'); 
72				}else{ 
73					$(idComp).addClass('closed'); 
74
75
76}; 
77 
78 
79 
80 
81function toggleEsternoFolder(id, relFolder, relDoc, unico) { 
82 
83 
84		var idComp = "#"+id; 
85		var relF = 0; 
86		if(unico == true || $(idComp).hasClass('closed')){ 
87			if(( unico== false ) && ($(idComp).parent().parent().parent().parent().parent().parent())){ 
88				 	if(typeof doNotClose != 'undefined' && doNotClose){ 
89 
90
91					else{$(idComp).parent().parent().parent().parent().parent().parent() 
92					.children().children('div').children('.portlet-body') 
93					.children('.journal-content-article').children('.cont-info') 
94					.children('div').addClass('closed'); 
95
96
97			$(idComp).removeClass('closed'); 
98			if(relFolder != null && relFolder != "null" && relFolder != ""){ 
99				cercaRelazionatiFolder(0, true, relFolder, id); 
100				relF = 1; 
101
102			if(relDoc != null && relDoc != "null" && relDoc != ""){ 
103				cercaRelazionatiDoc(0, true, relDoc, id, relF); 
104
105		}else{ 
106			$(idComp).addClass('closed'); 
107
108	}; 
109 
110function toggleInternoLivello1(id, relFolder, relDoc, _tipoOrdinamento) { 
111//INIZIO BUG #5313 
112	if(_tipoOrdinamento != null && _tipoOrdinamento != ''){ 
113		if(_tipoOrdinamento.charAt(0) != ';') 
114			_tipoOrdinamento = ';' + _tipoOrdinamento + ';'; 
115		if(relDoc.charAt(0) == ';') 
116			relDoc = relDoc.substring(1); 
117		relDoc = _tipoOrdinamento + relDoc; 
118
119//FINE BUG #5313 
120		var idComp = "#"+id; 
121		var relF = 0; 
122		if($(idComp).hasClass('closed')){ 
123			if($(idComp).parent().parent().children().children().length > 0){ 
124			 	if(typeof doNotClose != 'undefined' && doNotClose){ 
125
126				else{ 
127				$(idComp).parent().parent().children().children().addClass('closed'); 
128
129
130			$(idComp).removeClass('closed'); 
131			if(relFolder != null && relFolder != "null" && relFolder != ""){ 
132				cercaRelazionatiFolder(0, true, relFolder, id); 
133				relF = 1; 
134
135			if(relDoc != null && relDoc != "null" && relDoc != ""){ 
136				cercaRelazionatiDoc(0, true, relDoc, id, relF); 
137
138		}else{ 
139			$(idComp).addClass('closed'); 
140
141	}; 
142 
143 
144function cercaRelazionatiFolder (_page, checkFirstTime, dati, idName){ 
145	descInterna = false; 
146	immInterna = false; 
147	relInterna = false; 
148	idFol = "#FolRel"; 
149    _struttura = dati; 
150	idFol = idFol + idName; 
151	if(_struttura  == ''){ 
152    	return ; 
153
154		findFigliSolr(_page 
155					 ,"15" 
156					 ,${groupId} 
157					 ,_struttura 
158					 ,loadRelazionatiFolder 
159					 ,"CHILDREN" 
160		); 
161
162 
163 
164function cercaRelazionatiDoc (_page, checkFirstTime, dati, idName, relF){ 
165	FolderPopolato = relF; 
166	descInterna = false; 
167	immInterna = false; 
168	relInterna = false; 
169	idDoc = "#DocRel"; 
170    _struttura = dati; 
171    dati = dati.replace("DENOMINAZIONE","") 
172               .replace("MANUALE"      ,"") 
173               .replace("MODIFICA-ASC" ,"") 
174               .replace("MODIFICA-DESC","") 
175
176	idDoc = idDoc + idName; 
177	if(_struttura  == ''){ 
178    	return ; 
179
180		findFigliSolr(_page 
181					 ,"15" 
182					 ,${groupId} 
183					 ,_struttura 
184					/* ,loadDocumenti		*/ 
185					 ,function(_data){ 
186						    loadHandelbarsTemplateWebContent(); 
187							loadFunctionHandlebarsFolder(); 
188							_source   = $("#listRelazionatiDocHandlebars").html(); 
189							_template = Handlebars.compile(_source); 
190							_data.relF = FolderPopolato; 
191						    _data._funName="cercaRelazionatiDoc"; 
192							_data._relDoc= dati; 
193							_data.idRicercati= _struttura; 
194							_data._idName=idName; 
195						     $(idDoc).html(_template(_data)); 
196 
197
198 
199 
200 
201		); 
202
203 
204 
205var _idFolder = 0; 
206var _idDocument = 0; 
207function loadFunctionHandlebarsFolder(){ 
208	Handlebars.registerHelper('aggiornaIdFolder', function(idPass) { 
209	_idFolder++; 
210		return "Folder" + _idFolder; 
211}); 
212Handlebars.registerHelper('aggiornaIdDocument', function(idPass) { 
213		_idDocument++; 
214		return "Document" + _idDocument; 
215}); 
216Handlebars.registerHelper('prendiIdGlobaleFolder', function() { 
217		return "Folder" + _idFolder; 
218}); 
219Handlebars.registerHelper('prendiIdGlobaleDocument', function() { 
220		return "Document" + _idDocument; 
221}); 
222Handlebars.registerHelper('valoreVuoto', function() { 
223		return null; 
224}); 
225 
226Handlebars.registerHelper('compare', function(lvalue, rvalue, options) { 
227 
228    if (arguments.length < 3) 
229        throw new Error("Handlerbars Helper 'compare' needs 2 parameters"); 
230 
231    var operator = options.hash.operator || "=="; 
232 
233    var operators = { 
234        '==':       function(l,r) { return l == r; }, 
235        '===':      function(l,r) { return l === r; }, 
236        '!=':       function(l,r) { return l != r; }, 
237        '<':        function(l,r) { return l < r; }, 
238        '>':        function(l,r) { return l > r; }, 
239        '<=':       function(l,r) { return l <= r; }, 
240        '>=':       function(l,r) { return l >= r; }, 
241        'typeof':   function(l,r) { return typeof l == r; } 
242
243 
244    if (!operators[operator]) 
245        throw new Error("Handlerbars Helper 'compare' doesn't know the operator "+operator); 
246 
247    var result = operators[operator](lvalue,rvalue); 
248 
249    if( result ) { 
250        return options.fn(this); 
251    } else { 
252        return options.inverse(this); 
253
254 
255}); 
256 
257Handlebars.registerHelper('calcolaValore', function(lvalue) { 
258	if(!lvalue || lvalue=="" || lvalue==null ){ 
259		return null; 
260	}else{ 
261		var end= lvalue.length; 
262		if(Array.isArray(lvalue)){ 
263			var start= 0; 
264			var nvalue = ";"; 
265			while (start < end){ 
266				nvalue = nvalue+lvalue[start]+";"; 
267				start++; 
268
269		} else { 
270			var nvalue = ";"+lvalue+";" 
271
272		return nvalue; 
273
274}); 
275
276 
277function loadRelazionatiFolder(_data) { 
278	loadHandelbarsTemplateWebContent(); 
279	loadFunctionHandlebarsFolder(); 
280 
281	_source   = $("#listRelazionatiFolderHandlebars").html(); 
282	_template = Handlebars.compile(_source); 
283     $(idFol).html(_template(_data)); 
284
285 
286/* commentata in quantodefinita come innerfunction 
287function loadDocumenti(_data) { 
288	loadHandelbarsTemplateWebContent(); 
289	loadFunctionHandlebarsFolder(); 
290	_source   = $("#listRelazionatiDocHandlebars").html(); 
291	_data.relF = FolderPopolato; 
292	_template = Handlebars.compile(_source); 
293 
294    _data._funName="cercaRelazionatiDoc"; 
295 
296 
297 
298 
299     $(idDoc).html(_template(_data)); 
300 
301 
302 
303
304*/ 
305 
306 
307 
308</script> 
309 
310<script id="listRelazionatiFolderHandlebars" type="text/x-handlebars-template"> 
311 
312	{{#if payload.length}} 
313							{{#each payload}} 
314							<div class ="section toggle-esterno-mytag closed" id="{{aggiornaIdFolder 0}}" > 
315							{{#compare denominazione "" operator="!="}} 
316								<h3 class="toggle-head-esterno-mytag"><a onclick="toggleInternoLivello1('{{prendiIdGlobaleFolder}}', '{{calcolaValore relazioneFolder}}' ,'{{calcolaValore relazioneDocumento}}','{{relazioneDocumentoOrdinamento}}')">{{denominazione}}</a></h3> 
317							{{/compare}} 
318							{{#compare denominazione "" operator="=="}} 
319								<h3 class="toggle-head-esterno-mytag"><a onclick="toggleInternoLivello1('{{prendiIdGlobaleFolder}}', '{{calcolaValore relazioneFolder}}' ,'{{calcolaValore relazioneDocumento}}','{{relazioneDocumentoOrdinamento}}')">{{title}}</a></h3> 
320							{{/compare}} 
321							<div  class="toggle-body"> 
322								<div class="cont-info"> 
323								<div id="FolRel{{prendiIdGlobaleFolder}}"></div> 
324								<div id="DocRel{{prendiIdGlobaleFolder}}"></div> 
325								</div></div></div> 
326							{{/each}} 
327			{{/if}} 
328 
329</script> 
330 
331<script id="listRelazionatiDocHandlebars" type="text/x-handlebars-template"> 
332	{{#if payload.length}} 
333 
334						{{#compare relF 1 operator="=="}} 
335								<div class ="section toggle-esterno-mytag " id="{{aggiornaIdDocument 0}}" > 
336									<h3 class="toggle-head-esterno-mytag"><a onclick="toggleInternoDoc('{{prendiIdGlobaleDocument}}')"><@liferay.language key="msg.tpl.common.Documenti-Modulistica" /></a> 
337									</h3> 
338									<div  class="toggle-body"> 
339							{{/compare}} 
340							{{#each payload}} 
341								<div class="colore-bold black bb-gray"> 
342									<span class="colore-bold">&#187;</span> 
343									<span class="si-text-decoration">{{denominazione}} </span><br> 
344									<span class="font-normal">{{tipologia}}</span> 
345									<span class="font-normal">{{{descrizione}}}</span> 
346									<span class="doc-download"> 
347									{{#if file}} 
348									<a id="download{{articleId}}" href="#"  target="_blank"><img src="https://www.sanita.puglia.it/pugliaSalute-theme/images/custom/download.png" alt="Download" width="24"/></a> 
349									{{/if}} 
350									</span> 
351									<p class="aggio font-normal"> <@liferay.language key="msg.tpl.common.data-pubblicazione" /> {{printDate dataPubblicazione}}</p> 
352								</div> 
353 
354							<script type="text/javascript"> 
355 
356								{{#if file}} 
357									retreiveFileUrl("{{{printJson file}}}", "download{{articleId}}"); 
358								{{/if}} 
359 
360							<{{!}}/script> 
361 
362 
363							{{/each}} 
364 
365 
366 
367{{#ifEqual this.totalPage 1}} 
368 
369		{{else}} 
370			<p class="Testo-descrizione-link-home f_right"> 
371			    {{#ifPrintPage1 this.page}} 
372 
373 
374{{#compare relF 1 operator="=="}} 
375			    	<a style="cursor:pointer;" onclick="{{_funName}}(0, false ,'{{_relDoc}}','{{_idName}}','{{relF}}');"> 
376{{else}} 
377			    	<a style="cursor:pointer;" onclick="{{_funName}}(0, false ,'{{idRicercati}}','{{_idName}}','{{relF}}');"> 
378{{/compare}} 
379<span>1</span></a> 
380	                <span>|</span> 
381			    	{{#ifPrintPage1Points this.page}} 
382	                	<span>...</span> 
383			    	{{/ifPrintPage1Points}} 
384			    {{/ifPrintPage1}} 
385			{{#forpage this.totalPage this.page}} 
386 
387			    {{#ifEqualPage this ../page}} 
388			    	<b>{{printPage this}}</b> 
389			    {{else}} 
390{{#compare relF 1 operator="=="}} 
391			    	<a style="cursor:pointer;" onclick="{{../../_funName}}({{this}} - 1,false, '{{../../_relDoc}}','{{../../_idName}}','{{../../relF}}');"> 
392{{else}} 
393			    	<a style="cursor:pointer;" onclick="{{../../_funName}}({{this}} - 1,false, '{{../../idRicercati}}','{{../../_idName}}','{{../../relF}}');"> 
394{{/compare}} 
395						<span>{{printPage this}}</span></a> 
396			    {{/ifEqualPage}} 
397			    {{#ifEqualPage this ../totalPage}} 
398				{{else}} 
399					<span>|</span> 
400				{{/ifEqualPage}} 
401		   {{/forpage}} 
402			    {{#ifPrintLastPage this.page this.totalPage}} 
403			        {{#ifPrintLastPagePoints this.page}} 
404                    	<span>...</span> 
405			        {{/ifPrintLastPagePoints}} 
406{{#compare relF 1 operator="=="}} 
407			        <a style="cursor:pointer;" onclick="{{_funName}}({{this.totalPage}} - 1, false ,'{{_relDoc}}','{{_idName}}','{{relF}}');"> 
408{{else}} 
409			        <a style="cursor:pointer;" onclick="{{_funName}}({{this.totalPage}} - 1, false ,'{{idRicercati}}','{{_idName}}','{{relF}}');"> 
410{{/compare}} 
411					<span>{{this.totalPage}}</span></a> 
412 
413			    {{/ifPrintLastPage}} 
414		</p> 
415 
416{{/ifEqual}} 
417 
418 
419 
420							{{#compare relF 1 operator="=="}} 
421								</div></div> 
422							{{/compare}} 
423			{{/if}} 
424</script> 

Come si Paga? Tramite Bonifico bancario intestato a Tesoreria Azienda Ospedaliero Universitaria "Ospedali Riuniti" di Foggia Banca Popolare Pugliese - Foggia

IBAN IT82R0526279748T20990000671
SWIFT BPPUIT33

Copia dello stesso dovrà essere allegato alla documentazione presentata

N.B. Nella causale dovrà essere specificato obbligatoriamente il protocollo di studio e la struttura proposta per l'esecuzione dello stesso

Documenti e Modulistica