Regalamiunsorriso/rus/admin/anag/_inc_clifor_all.jsp
2026-03-14 20:04:39 +01:00

65 lines
3 KiB
Text

<%@ taglib uri="/WEB-INF/ablia.tld" prefix="ab" %>
<%@ page language="java" import="com.ablia.jsp.*" %>
<%-- DICHIARAZIONE BEAN --%>
<jsp:useBean id="bean" class="com.ablia.anag.Clifor" type="com.ablia.anag.Clifor" scope="request" >
</jsp:useBean>
<jsp:useBean id="df" class="com.ablia.util.SimpleDateFormat" scope="request" type="com.ablia.util.SimpleDateFormat" >
</jsp:useBean>
<%-- FINE DICHIARAZIONE BEAN --%>
<ab:if wherecondition="<%=bean.getDBState()==0%>">
<h1>Per inserire gli allegati devi prima salvare il record principale</h1>
</ab:if>
<ab:else>
<input name="id_allegatoClifor" type="hidden" id="id_allegatoClifor">
<%-- RIGA 1 --%>
<div class="row">
<div class="col-lg-3">
<label for="descrizione">Nome File Allegato:</label>
<br>
<div class="loadFile">
<label>
<input name="btn-upload_file_1" type="file" id="btn-upload_file_1" size="40" maxlength="200" onChange="Ab.saveFile(0,1)">
<input type="hidden" id="fileNameOnServer_1" name="fileNameOnServer_1">
<div id="uploadFileRes_1">CARICA IL FILE</div>
</div>
</div>
<div class="col-lg-3">
<label for="descrizione">Tipo Allegato:</label>
<br>
<select name="id_tipoAllegatoClifor" id="id_tipoAllegatoClifor" class="form-control input-sm">
<ab:optionvec boundcolumn="id_tipoAllegatoClifor" desccolumn="descrizione" vectumerator="listaTipiAllegatoClifor">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</ab:optionvec>
</select>
</div>
<div class="col-lg-3">
<label for="descrizione">Descrizione Allegato:</label>
<br>
<input type="text" id="descrizioneAllegato" class="form-control input-sm" name="descrizioneAllegato" maxlength="254">
</div>
<div class="col-lg-3"> <a class="btn btn-success btn-associative pull-right" href="javascript:addAllegato();">Aggiungi allegato</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>Tipo</th>
<th>Nome Attach</th>
<th>Descrizione</th>
</tr>
</thead>
<ab:whilevec rowbeanclass="com.ablia.anag.AllegatoClifor" vectumerator="listaAllegati">
<tr>
<td class="comandi" align="center"><div class="inline text-center hidden-print">
<a href="javascript:delAllegato('<%=rowBean.getId_allegatoClifor()%>')"> <i class="fa fa-trash-o" title="Cancella Record"></i> </a></td>
<td data-title="Tipo"><%=rowBean.getTipoAllegatoClifor().getDescrizione()%></td>
<td data-title="Nome Attach"><a href="../../_attach/_clifor/<%=rowBean.getNomeFileSuDisco()%>?id=<%=rowBean.getId_allegatoClifor()%>" target="_blank"><%=rowBean.getNomeFile()%></a></td>
<td data-title="Descrizione"><%=rowBean.getDescrizioneAllegato()%></td>
</tr>
</ab:whilevec>
</table>
</div>
</div>
</ab:else>