92 lines
4.6 KiB
Text
92 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.anag.Clifor" type="com.ablia.anag.Clifor" scope="request" >
|
|
</jsp:useBean>
|
|
<jsp:useBean id="beanContatto" class="com.ablia.anag.Contatto" type="com.ablia.anag.Contatto" scope="request" >
|
|
</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>
|
|
|
|
<div class="row hidden-print">
|
|
<div class="col-lg-12">
|
|
<div class="box box-dettaglio">
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-lg-3 col-xs-6">
|
|
<label for="txtRicerca"></label>
|
|
<strong>INSERIMENTO CONTATTI
|
|
<input type="hidden" id="id_contatto" class="fieldObbligatorio" readonly name="id_contatto" maxlength="" value="<%=beanContatto.getId_contatto()%>">
|
|
</strong></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-3 col-xs-6">
|
|
<label for="txtRicerca">Descrizione:</label>
|
|
<br>
|
|
<input name="descrizioneC" type="text" class="form-control input-sm" id="descrizioneC" value="<%=beanContatto.getDescrizioneC() %>" maxlength="60" >
|
|
</div>
|
|
<div class="col-lg-1 col-xs-6">
|
|
<label for="txtRicerca">Default:</label>
|
|
<br>
|
|
<input name="ckflgContattoDefault" type="checkbox" class="minimal" id="ckflgContattoDefault" <%=beanContatto.getFlgContattoDefault()==1?"checked":""%>>
|
|
<input type="hidden" name="flgContattoDefault" id="flgContattoDefault" value="<%=beanContatto.getFlgContattoDefault()%>" >
|
|
</div>
|
|
<div class="col-lg-2 col-xs-6">
|
|
<label for="txtRicerca">NOME:</label>
|
|
<br>
|
|
<input name="nomeC" type="text" class="form-control input-sm" id="nomeC" value="<ab:inputTextFormat><%=beanContatto.getNomeC() %></ab:inputTextFormat>" maxlength="60" >
|
|
</div>
|
|
|
|
<div class="col-lg-2 col-xs-6">
|
|
<label for="txtRicerca">Telefono:</label>
|
|
<br>
|
|
<input type="text" class="form-control input-sm" id="telefonoC" name="telefonoC" maxlength="60" value="<%=beanContatto.getTelefonoC() %>">
|
|
</div>
|
|
<div class="col-lg-2 col-xs-6">
|
|
<label for="txtRicerca">Emai:</label>
|
|
<br>
|
|
<input name="emailC" type="text" class="form-control input-sm" id="emailC" value="<%=beanContatto.getEmailC()%>" maxlength="60" >
|
|
</div>
|
|
<div class="col-lg-2 col-xs-6">
|
|
<label for="txtRicerca"></label>
|
|
<a class="btn btn-success btn-associative" href="javascript:addContatto();">Aggiungi Contatto</a></div>
|
|
</div>
|
|
<div class="row"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="box-body " id="no-more-tables" >
|
|
<table class="table table-bordered table-hover table-striped dataTable table-condensed">
|
|
<tr>
|
|
<th> </th>
|
|
<th>Descrizione.</th>
|
|
<th>Nome</th>
|
|
<th>Telefono</th>
|
|
<th>Email</th>
|
|
</tr>
|
|
<ab:whilevec rowbeanclass="com.ablia.anag.Contatto" vectumerator="listaContatti">
|
|
<tr <%=rowBean.getId_contatto()==beanContatto.getId_contatto()?"class='success'":""%>>
|
|
<td class="comandi text-center"><div class="inline text-center hidden-print">
|
|
<a href="javascript:modifyContatto('<%=rowBean.getId_contatto()%>');"><i class="fa fa-edit" title="Modifica Record"></i></a> <a href="javascript:delContatto('<%=rowBean.getId_contatto()%>','<%= rowBean.getLastUpdTmstString() %>');"><i class="fa fa-trash-o" title="Cancella Record"></i></a></td>
|
|
<td data-title=" Descrizione."><ab:if wherecondition="<%=rowBean.getFlgContattoDefault()==1%>"><i class="fa fa-check" title="Contatto Predefinito"></i></ab:if>
|
|
<%= rowBean.getDescrizioneC() %></td>
|
|
<td data-title=" Nome"><%= rowBean.getNomeC() %></td>
|
|
<td data-title=" Telefono"><%= rowBean.getTelefonoC() %></td>
|
|
<td data-title=" Email"><%= rowBean.getEmailC() %></td>
|
|
</tr>
|
|
</ab:whilevec>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</ab:else>
|