Regalamiunsorriso/rus/admin/pg/_inc_gara_puntifoto.jsp
2026-04-07 18:02:17 +02:00

84 lines
4.6 KiB
Text

<%@ taglib uri="/WEB-INF/ablia.tld" prefix="ab" %>
<%@ page language="java" import="com.ablia.jsp.*" %>
<%-- DICHIARAZIONE BEAN --%>
<jsp:useBean id="nf" scope="request" type="java.text.NumberFormat" >
</jsp:useBean>
<jsp:useBean id="df" class="com.ablia.util.SimpleDateFormat" scope="request" type="com.ablia.util.SimpleDateFormat" >
</jsp:useBean>
<jsp:useBean id="bean" class="com.ablia.pg.Gara" type="com.ablia.pg.Gara" scope="request" >
</jsp:useBean>
<jsp:useBean id="puntoFoto" class="com.ablia.pg.PuntoFoto" type="com.ablia.pg.PuntoFoto" scope="request" >
</jsp:useBean>
<%-- FINE DICHIARAZIONE BEAN --%>
<input type="hidden" id="id_puntoFoto" readonly name="id_puntoFoto" maxlength="" size="4" value="<%=puntoFoto.getId_puntoFoto()%>">
<input name="id_puntoFotoIdx" type="hidden" id="id_puntoFotoIdx">
<ab:if wherecondition="<%=bean.getDBState()==0%>">
<h1>Prima salvare il record principale</h1>
</ab:if>
<ab:else>
<div class="row">
<div class="col-lg-3 col-xs-12">
<label for="descrizione">Descrizione:</label>
<br>
<input name="descrizionePuntoFoto" type="text" class="form-control input-sm" id="descrizionePuntoFoto" value="<%= puntoFoto.getDescrizionePuntoFoto() %>" maxlength="60">
</div>
<div class="col-lg-3 col-xs-12">
<label for="descrizione">Path Relativo:</label>
<br>
<input name="pathRelativoFoto" type="text" class="form-control input-sm" id="pathRelativoFoto" value="<%=puntoFoto.getPathRelativoFoto()%>" maxlength="60">
</div>
<div class="col-lg-3 col-xs-12 col-inline">
<div class="col-lg-12 col-md-12 col-sm-12">
<label for="descrizione">Categoria - Nuova Categoria:</label>
</div>
<div class="col-lg-6 col-md-7 col-sm-7 col-left">
<select name="tipoPuntoFoto" id="tipoPuntoFoto" class="form-control input-sm select2">
<ab:optionvec boundcolumn="tipoPuntoFoto" desccolumn="tipoPuntoFoto" vectumerator="listaTipiPuntoFoto" value="<%=puntoFoto.getTipoPuntoFoto()%>">&nbsp;&nbsp;&nbsp;</ab:optionvec>
</select>
</div>
<div class="col-lg-4 col-md-5 col-sm-5 form-inline">-
<input class="form-control input-sm" name="tipoPuntoFotoNew" type="text" id="tipoPuntoFotoNew" value="<%= puntoFoto.getTipoPuntoFotoNew() %>" size="10" maxlength="60" nextFocus="addPuntoFoto">
</div>
</div>
<div class="col-lg-1 col-xs-6">
<label for="txtRicerca">Tipo Indicizz.:</label>
<br>
<select defaultFocus="focus" class="form-control input-sm select2" name="flgIndexOk" id="flgIndexOk">
<ab:optionflg boundcolumn="flgIndexOk" valuelist="0,2" bean="puntoFoto">&nbsp;</ab:optionflg>
</select>
</div>
<div class="col-lg-1 col-xs-6"> <a class="btn btn-success btn-associative" id="addPuntoFoto" href="javascript:addPuntoFoto();">Aggiungi/Aggiorna Punto Foto</a> </div>
</div>
<div class="row">
<div class="col-lg-12" id="no-more-tables">
<table class="table table-bordered table-hover table-striped dataTable table-condensed">
<thead>
<tr>
<th>&nbsp;</th>
<th>Descrizione</th>
<th>Path Relativo</th>
<th>Categoria</th>
<th>Indicizzazione</th>
</tr>
</thead>
<ab:whilevec rowbeanclass="com.ablia.pg.PuntoFoto" vectumerator="listaPuntoFoto">
<tr <%=rowBean.getId_puntoFoto()==puntoFoto.getId_puntoFoto()?"class='success'":""%>>
<td class="comandi" align="center" style="min-width: 100px"><div class="inline text-center hidden-print"> <a href="javascript:modPuntoFoto(<%=rowBean.getId_puntoFoto()%>);"><i class="fa fa-edit" title="Modifica Record"></i></a> <a href="javascript:delPuntoFoto(<%=rowBean.getId_puntoFoto()%>);"><i class="fa fa-trash-o" title="Cancella Record"></i></a>&nbsp;&nbsp;<a href="javascript:javascript:indexFoto(<%=rowBean.getId_puntoFoto()%>)"><i class="fa fa-film " style="color: black" title="Indicizza Foto / Carica Foto"></i></a>&nbsp;&nbsp;<a href="javascript:javascript:noIndexFoto(<%=rowBean.getId_puntoFoto()%>)"><i class="fa fa-ban" style="color: black" title="Azzera Indicizzazione"></i></a> </div></td>
<td data-title="Descrizione"><%= rowBean.getDescrizionePuntoFoto() %></td>
<td data-title="Path Relativo"><%= rowBean.getPathRelativoFoto() %></td>
<td data-title="Categoria"><%= rowBean.getTipoPuntoFoto() %></td>
<td data-title="Categoria"><%= rowBean.getIndexOk() %></td>
</tr>
</ab:whilevec>
</table>
</div>
</div>
</ab:else>