74 lines
3.8 KiB
Text
74 lines
3.8 KiB
Text
<!-- _inc_clifor_all.jsp -->
|
|
<%@ taglib uri="/WEB-INF/acxent.tld" prefix="acx" %>
|
|
<%@ page language="java" import="it.acxent.jsp.*" %>
|
|
<%-- DICHIARAZIONE BEAN --%>
|
|
<jsp:useBean id="bean" class="it.acxent.anag.Clifor" type="it.acxent.anag.Clifor" scope="request" >
|
|
</jsp:useBean>
|
|
<jsp:useBean id="df" class="it.acxent.util.SimpleDateFormat" scope="request" type="it.acxent.util.SimpleDateFormat" >
|
|
</jsp:useBean>
|
|
<%-- FINE DICHIARAZIONE BEAN --%>
|
|
<acx:if wherecondition="<%=bean.getDBState()==0%>">
|
|
<h1>Per inserire gli allegati devi prima salvare il record principale</h1>
|
|
</acx:if>
|
|
<acx: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-2">
|
|
<label for="descrizione">Tipo Allegato:</label>
|
|
<br>
|
|
<select name="id_tipoAllegatoClifor" id="id_tipoAllegatoClifor" class="form-control input-sm">
|
|
<acx:optionvec boundcolumn="id_tipoAllegatoClifor" desccolumn="descrizione" vectumerator="listaTipiAllegatoClifor"> </acx: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-2">
|
|
<label for="descrizione">Default:</label>
|
|
<br>
|
|
<input class="minimal" type="checkbox" name="ckflgDefault" id="ckflgDefault" >
|
|
<input type="hidden" name="flgDefault" id="flgDefault">
|
|
</div>
|
|
<div class="col-lg-2"> <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" >
|
|
<div class="box-body table-responsive scroll-300">
|
|
<table class="table table-bordered table-hover table-striped dataTable table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Default</th>
|
|
<th>Tipo</th>
|
|
<th>Nome Attach</th>
|
|
<th>Descrizione</th>
|
|
</tr>
|
|
</thead>
|
|
<acx:whilevec rowbeanclass="it.acxent.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 fa-2x" title="<acx:lang>Cancella Record</acx:lang>"></i> </a> </div></td>
|
|
<td data-title="Default"><acx:if wherecondition="<%=rowBean.getFlgDefault()==1%>"> <i class="fa fa-check" title="Allegato di default"></i><a href="javascript:removeDefault(<%=rowBean.getId_allegatoClifor()%>)"></a></acx:if>
|
|
<acx:else> <a href="javascript:addDefault(<%=rowBean.getId_allegatoClifor()%>)"><i class="fa fa-ban" ></i></a> </acx:else></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>
|
|
</acx:whilevec>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</acx:else>
|