Sfoglia il codice sorgente

target blank per ricerca

master
Salvatore La Manna 4 anni fa
parent
commit
c23569dca7
  1. BIN
      liferay-plugins-sdk-6.2/dist/tref-mapit-shared-6.2.0.1.jar
  2. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/ricerca-posizione/view.jsp
  3. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/tref-mapit-shared.jar
  4. 5
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/html/plugin/top.jsp
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/marker.png
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/result.png

BIN
liferay-plugins-sdk-6.2/dist/tref-mapit-shared-6.2.0.1.jar vendored

File binario non mostrato.

20
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/ricerca-posizione/view.jsp

@ -18,6 +18,8 @@ String via = ParamUtil.getString(request, "via", StringPool.BLANK);
String lat = ParamUtil.getString(request, "lat", StringPool.BLANK); String lat = ParamUtil.getString(request, "lat", StringPool.BLANK);
String lng = ParamUtil.getString(request, "long", StringPool.BLANK); String lng = ParamUtil.getString(request, "long", StringPool.BLANK);
String raggio = ParamUtil.getString(request, "raggio", StringPool.BLANK); String raggio = ParamUtil.getString(request, "raggio", StringPool.BLANK);
boolean targetBlank = ParamUtil.getBoolean(request, "blank", true);
String target = (targetBlank ? "_blank" : StringPool.BLANK);
PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
if (Validator.isNotNull(codiceProvincia)) { if (Validator.isNotNull(codiceProvincia)) {
@ -38,9 +40,11 @@ if (Validator.isNotNull(lng)) {
if (Validator.isNotNull(raggio)) { if (Validator.isNotNull(raggio)) {
iteratorURL.setParameter("raggio", raggio); iteratorURL.setParameter("raggio", raggio);
} }
iteratorURL.setParameter("blank", String.valueOf(targetBlank));
DecimalFormat fmt = (DecimalFormat) NumberFormat.getInstance(Locale.ITALY); DecimalFormat fmt = (DecimalFormat) NumberFormat.getInstance(Locale.ITALY);
boolean showNotes = false; boolean showNotes = false;
int[] raggi = { 1, 2, 3, 5, 10 }; int[] raggi = { 500, 1000, 2000, 3000, 5000, 10000 };
%> %>
<div class="container-fluid"> <div class="container-fluid">
@ -84,7 +88,7 @@ int[] raggi = { 1, 2, 3, 5, 10 };
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<aui:select name="raggio" label="dp-raggio"> <aui:select name="raggio" label="dp-raggio">
<% for (int i = 0; i < raggi.length; i++) { %> <% for (int i = 0; i < raggi.length; i++) { %>
<aui:option value="<%= raggi[i] * 1000 %>"><%= raggi[i] %> Km</aui:option> <aui:option value="<%= raggi[i] %>"><%= fmt.format(raggi[i] / 1000.0) %> Km</aui:option>
<% } %> <% } %>
</aui:select> </aui:select>
</div> </div>
@ -186,21 +190,21 @@ int[] raggi = { 1, 2, 3, 5, 10 };
<%= fmt.format(pratica.getDistanzaOrtodromica()) %> <%= fmt.format(pratica.getDistanzaOrtodromica()) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="n-progetto" href="<%= viewURL %>" target="<%= target %>" cssClass="text-nowrap">
<%= pratica.getTitle(locale, true) %> <%= pratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="titolare-digitale" href="<%= viewURL %>" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="titolare-digitale" href="<%= viewURL %>" target="<%= target %>" cssClass="text-nowrap">
<c:if test="<%= Validator.isNotNull(titolare) %>"> <c:if test="<%= Validator.isNotNull(titolare) %>">
<%= titolare.getTitle() %><br/><%= titolare.getCodiceFiscale() %> <%= titolare.getTitle() %><br/><%= titolare.getCodiceFiscale() %>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="committenti" href="<%=viewURL %>"> <liferay-ui:search-container-column-text name="committenti" href="<%= viewURL %>" target="<%= target %>">
<%= committenti %> <%= committenti %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="esito" href="<%=viewURL %>" cssClass="text-nowrap text-center middle-aligned"> <liferay-ui:search-container-column-text name="esito" href="<%= viewURL %>" target="<%= target %>" cssClass="text-nowrap text-center middle-aligned">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(pratica.getStatoPratica(), intPraticaId)) %></strong> <strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(pratica.getStatoPratica(), intPraticaId)) %></strong>
<span class="text-center display-block" style="margin-top:5px"> <span class="text-center display-block" style="margin-top:5px">
<% <%
@ -221,7 +225,7 @@ int[] raggi = { 1, 2, 3, 5, 10 };
<a class="btn status-icon tooltip-info btn-action" <a class="btn status-icon tooltip-info btn-action"
title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>" title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>"
href="<%= fascicoloAvvisiURL.toString() + "#_" + PortletKeys.FASCICOLO href="<%= fascicoloAvvisiURL.toString() + "#_" + PortletKeys.FASCICOLO
+ "_tab=_" + PortletKeys.FASCICOLO + "_page_avvisi" %>"> + "_tab=_" + PortletKeys.FASCICOLO + "_page_avvisi" %>" target="<%= target %>">
<i class="fa fa-envelope relative"> <i class="fa fa-envelope relative">
<span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span> <span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span>
</i> </i>
@ -280,7 +284,7 @@ int[] raggi = { 1, 2, 3, 5, 10 };
</span> </span>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="col-desc-interv"> <liferay-ui:search-container-column-text name="col-desc-interv" href="<%= viewURL %>" target="<%= target %>">
Territorio: <strong><%= comune.getDenominazione() %> Territorio: <strong><%= comune.getDenominazione() %>
<%= (dettaglio == null || dettaglio.getLocalita().isEmpty()) ? <%= (dettaglio == null || dettaglio.getLocalita().isEmpty()) ?
"" : "" :

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/tref-mapit-shared.jar

File binario non mostrato.

5
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/html/plugin/top.jsp

@ -93,8 +93,9 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
mapItMap = Liferay.MapItMap.get(portletId); mapItMap = Liferay.MapItMap.get(portletId);
var latitude = AUI().one("#"+portletNamespace+"lat"), var latitude = AUI().one("#"+portletNamespace+"lat"),
longitude = AUI().one("#"+portletNamespace+"long"), longitude = AUI().one("#"+portletNamespace+"long");
isEditable = AUI().one("#"+portletNamespace+"geoIsEditable").val() == "true"; var isEditable = AUI().one("#"+portletNamespace+"geoIsEditable");
isEditable = (undefined == isEditable) || (isEditable.val() == "true");
var editableLatitude = AUI().one("#"+portletNamespace+"lat_hidden"), var editableLatitude = AUI().one("#"+portletNamespace+"lat_hidden"),
editableLongitude = AUI().one("#"+portletNamespace+"long_hidden"), editableLongitude = AUI().one("#"+portletNamespace+"long_hidden"),

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/marker.png

File binario non mostrato.

Prima

Larghezza:  |  Altezza:  |  Dimensione: 23 KiB

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 18 KiB

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/result.png

File binario non mostrato.

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 14 KiB

Caricamento…
Annulla
Salva