helpDiPagina.jsp 3.94 KB
Newer Older
CED SA's avatar
CED SA committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
<%/*
       * Created on 02-Nov-2006
       *
       * Copyright (c) EldaSoft S.p.A.
       * Tutti i diritti sono riservati.
       *
       * Questo codice sorgente e' materiale confidenziale di proprieta' di EldaSoft S.p.A.
       * In quanto tale non puo' essere distribuito liberamente ne' utilizzato a meno di 
       * aver prima formalizzato un accordo specifico con EldaSoft.
       */

      // PAGINA CHE CONTIENE LA DEFINIZIONE DELLE VOCI DEI MENU COMUNI A TUTTE LE APPLICAZIONI
/////////////////////////////////////////////////////////////////
// Modifiche
// ----------------
// 23.10.2007: M.F. Aggiunta delle gestione dell'help da tabella NOTE
/////////////////////////////////////////////////////////////////

%>

<!-- Inserisco la Tag Library -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.eldasoft.it/genetags" prefix="gene"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.eldasoft.it/tags" prefix="elda" %>

<c:set var="listaOpzioniUtenteAbilitate" value="${fn:join(profiloUtente.funzioniUtenteAbilitate,'#')}#" />

<c:choose>
	<c:when test="${modo eq 'VISUALIZZA' }">
		<c:set var="modoVisNota" value="1"/>
	</c:when>
	<c:when test="${modo eq 'NUOVO' }">
		<c:set var="modoVisNota" value="2"/>
	</c:when>
	<c:when test="${modo eq 'MODIFICA' }">
		<c:set var="modoVisNota" value="3"/>
	</c:when>
</c:choose>

<c:set var="note" value='${gene:callFunction4("it.eldasoft.gene.tags.functions.GestioneHelpPaginaFunction", pageContext,"2",param.idPagina, "4")}' />
<!-- inserisco il mio tag -->
<gene:template file="popup-template.jsp">
	<!-- Settaggio delle stringhe utilizzate nel template -->
	<gene:setString name="titoloMaschera" value="Pagina:  ${param.idPagina}"/>
	<gene:redefineInsert name="addHistory" />
	<gene:redefineInsert name="gestioneHistory" />
	<gene:redefineInsert name="corpo">
		<div class="help" >
		<gene:formPagine >
			<input type="hidden" name="idPagina" id="idPagina" value="${param.idPagina}" />
			<gene:pagina title="Informazioni" tooltip="Informazioni di pagina" >
				
					<table class="dettaglio-tab-help" >
					<tr>
						<td colspan="2" ><b>Informazioni pagina</b></td>
					</tr>
					<tr>
						<td class="etichetta-dato">Identificativo</td>
						<td class="valore-dato" width="200"><b>${param.idPagina}</b></td>
					</tr>
					<tr>
						<td class="etichetta-dato">Schema di appartenenza</td>
						<td class="valore-dato" width="200"><b>${help.schema}</b></td>
					</tr>
					<tr>
						<td class="etichetta-dato">Descrizione</td>
						<td class="valore-dato">${help.descrizione}</td>
					</tr>
					<!-- <//c:if test='${not empty help.idMaschera}' >
						<tr>
							<td class="etichetta-dato">Maschera derivante</td>
							<td class="valore-dato"><a href='javascript:vaiAMaschera("${help.idMaschera}")'>${help.idMaschera}</a> - ${help.descMaschera}</td>
						</tr>
					<///c:if -->
					<c:if test='${not empty help.pathFile}' >
						<tr>
							<td colspan="2" ><b>Informazioni supplementari</b></td>
						</tr>
						<tr>
							<td colspan="2" >
								<c:import url="${help.pathFile}"/>
							</td>
						</tr>
					</c:if>
					
				</table>
			</gene:pagina>
			<c:if test='${fn:contains(listaOpzioniUtenteAbilitate, "ou59#") || !empty help.nota1 || !empty help.nota2 || !empty help.nota3}'>
			<gene:pagina title="Note" tooltip="Note aggiuntive" >
				<jsp:include page="helpNote.jsp">
					<jsp:param name="tipoNota" value="2"/>
					<jsp:param name="idObj" value="${param.idPagina}"/>
					<jsp:param name="nameInput" value="idPagina"/>
					<jsp:param name="modo" value="${gene:if(empty help.nota1 && empty help.nota2 && empty help.nota3, 'NUOVO', modo)}"/>
				</jsp:include>
			</gene:pagina>
			</c:if>
		</gene:formPagine>
		</div>
  </gene:redefineInsert>
	<gene:javaScript>
		function vaiAMaschera(idMaschera){
			window.location=contextPath+"/ApriPagina.do?href=commons/helpDiPagina.jsp&idPagina="+idMaschera;
		}
	</gene:javaScript>
</gene:template>