Well I have the following doubt. I have this table in my project.
Theusercomplainsaboutthesizebecausethescrollbarsappear,asthepagealreadyhasalotofinformationyoucannotincreaseit(andIwouldusethiscodeinotherscreensaswell).
I'dliketheusertoclickonabutton
toseethiswholetableinmodal
forexample.(ItriedbutwhenIputthetableinmodal-body
itignoresthemodal,andprintedthemodaldataonthescreenitself.)
ModalFlame
<buttontype="button" class="btn btn-default" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-zoom-in"></span></button>
Code:
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header" style="background: ${cortop}; color: ${corletra}; ">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Tabela</h4>
</div>
<div class="modal-body">
<p>
<table width="560" height="49" class="table table-condensed" border="1" cellspacing="0" bordercolor="#FFFFFF">
<thead class="fixedHeader">
<tr bgcolor="${cortop}">
<th width="20" height="23"> </th>
<th width="33" align="left">Data</th>
<th width="71" align="left">Código</th>
<th width="145" align="left"><strong>Descrição</strong></th>
<th width="72" align="center">Qtd</th>
<th width="113" align="left">Valor</th>
<th width="156" align="left">Grau</th>
<th width="156" align="left">Profissional</th>
</tr>
</thead>
<c:forEach var="item" items="${PDA}">
<c:set var="total" value="${total + item.valorTotal}" />
<tr bgcolor="#F4F4F4" title="${item.tipoFaturamento}">
<td height="24" ><input type="radio" name="radio3" id="radio3" value="radio3" onclick="SelectExcl(${item.idConta},${item.conta}, '${item.tiss}', ${item.qtd}, '${item.grauParticipacao}', ${item.acrescimo}, '${item.hora}', '${item.viaAcesso}', '${item.tecnicaU}');" /></td>
<td nowrap="nowrap" ><fmt:formatDate pattern='dd/MM/yy' value='${item.data}'/>
</td>
<td nowrap="nowrap" >${item.tiss}</td>
<td nowrap="nowrap" title="${item.medico}" >${item.descricao}</td>
<td align="center" nowrap="nowrap" >${item.qtd}</td>
<td align="right" nowrap="nowrap" ><a href="#" onclick="abreJanela('<%=request.getContextPath()%>/controlador?acao=AlterarValorProced&op=1&procedimento=${item.descricao}&grau2=${item.grauParticipacao}&acrescimo=${item.acrescimo}&valor2=${item.valorUnitario}&idconta=${item.idConta}&quant=${item.qtd}', 'alterarValor', 500, 150);">${item.valorTotal}</a></td>
<td nowrap="nowrap" >${item.grauParticipacao}</td>
<td nowrap="nowrap" >${item.obs}</td>
</tr>
</c:forEach>
</table>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
Or if there is a better way to do this, how do you do it?