Commit 995a5c6ba278500386d959aa7eea15cb2be584e6
1 parent
b54ce525
Exists in
master
and in
1 other branch
Foram colocados id´s, headers nas tabelas. Codigos desnecessarios foram eliminados.
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-web@10599 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
1 changed file
with
84 additions
and
83 deletions
Show diff stats
src/main/webapp/WEB-INF/tags/listaResultado.tag
... | ... | @@ -2,95 +2,96 @@ |
2 | 2 | <%@ attribute name="lista" required="true" type="java.util.List" %> |
3 | 3 | <%@ attribute name="cssClass" required="true" type="java.lang.String" %> |
4 | 4 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> |
5 | - <p><img src="${pageContext.request.contextPath}/inicial_arquivos/imagens/stop.gif" alt="Erros" height="19" width="20"> Erros</p> | |
6 | - <table id="tabelaErros2" class="${cssClass}_error"> | |
7 | 5 | |
8 | - <thead> | |
9 | - <tr> | |
10 | - <td colspan="2" class="topo2"> Recomendações </td> | |
11 | - <td width="9%" class="topo2"> Quantidade</td> | |
12 | - <td width="56%" class="topo2"> Linha(s) do código fonte</td> | |
13 | - </tr> | |
14 | - </thead> | |
15 | - <tbody> | |
16 | - | |
17 | - <c:forEach items="${lista}" var="item"> | |
18 | - <c:if test="${item.error }"> | |
19 | - <tr> | |
20 | - <td class="celula" width="2%"><a target="_blank" class="sublinharLink" href="http://emag.governoeletronico.gov.br/#r${item.checkPoint}">${item.checkPoint}</a></td> | |
21 | - <td class="celula" width="60%" align="left"> ${item.description}</td> | |
22 | - | |
23 | - <td class="celula">${item.numberOfOccurrences}</td> | |
24 | - <td class="celula"> | |
25 | - <c:choose> | |
26 | - <c:when test="${item.possuiLinhas}"> | |
27 | - <a class="sublinharLink" href="detalhes-avaliacao/${item.checkPoint}/true">${item.stringLines}</a> | |
28 | - </c:when> | |
29 | - <c:otherwise> | |
30 | - <c:if test="${item.stringLines=='---'}">Requer validação Humana</c:if> | |
31 | - </c:otherwise> | |
32 | - </c:choose> | |
33 | - </td> | |
34 | - </tr> | |
35 | - </c:if> | |
36 | - </c:forEach> | |
6 | +<p><img src="${pageContext.request.contextPath}/inicial_arquivos/imagens/stop.gif" alt="Erros" height="19" width="20"> Erros</p> | |
7 | + | |
8 | +<table class="${cssClass}_error"> | |
9 | + <caption>Tabela de Erros</caption> | |
10 | + <thead> | |
11 | + <tr> | |
12 | + <th id="erro_numero_recomendacao_${cssClass}" class="topo2">Numero</th> | |
13 | + <th id="erro_recomendacao_${cssClass}" class="topo2"> Recomendações </th> | |
14 | + <th id="erro_quantidade_${cssClass}" class="topo2"> Quantidade</th> | |
15 | + <th id="erro_linha_codigo_fonte_${cssClass}" class="topo2"> Linha(s) do código fonte</th> | |
16 | + </tr> | |
17 | + </thead> | |
18 | + | |
19 | + <tbody> | |
20 | + <c:forEach items="${lista}" var="item"> | |
21 | + <c:if test="${item.error }"> | |
22 | + <tr id="erro_numero_recomendacao_${cssClass}_${item.checkPoint}"> | |
23 | + <td headers="erro_numero_recomendacao_${cssClass}" class="celula"><a target="_blank" class="sublinharLink" href="http://emag.governoeletronico.gov.br/#r${item.checkPoint}">${item.checkPoint}</a></td> | |
24 | + <td headers="erro_recomendacao_${cssClass}" class="celula"> ${item.description} </td> | |
25 | + <td headers="erro_quantidade_${cssClass}" class="celula">${item.numberOfOccurrences} </td> | |
26 | + <td headers="erro_linha_codigo_fonte_${cssClass}" class="celula"> | |
27 | + | |
28 | + <c:choose> | |
29 | + <c:when test="${item.possuiLinhas}"> | |
30 | + <a class="sublinharLink" href="detalhes-avaliacao/${item.checkPoint}/true">${item.stringLines}</a> | |
31 | + </c:when> | |
32 | + <c:otherwise> | |
33 | + <c:if test="${item.stringLines=='---'}">Requer validação Humana</c:if> | |
34 | + </c:otherwise> | |
35 | + </c:choose> | |
36 | + | |
37 | + </td> | |
38 | + </tr> | |
39 | + </c:if> | |
40 | + </c:forEach> | |
41 | + </tbody> | |
42 | +</table> | |
37 | 43 | |
38 | - </tbody> | |
39 | - | |
40 | - </table> | |
41 | - <br><br> | |
42 | - | |
43 | - <p><img src="${pageContext.request.contextPath}/inicial_arquivos/imagens/alert.gif" alt="alertas" height="19" width="20"> Avisos</p> | |
44 | +<p><img src="${pageContext.request.contextPath}/inicial_arquivos/imagens/alert.gif" alt="alertas" height="19" width="20"> Avisos</p> | |
44 | 45 | |
45 | 46 | |
46 | - <table width="62%" id="tabelaErros2" class="${cssClass}_warning"> | |
47 | - <thead> | |
48 | - <tr> | |
49 | - <td colspan="2" class="topo2"> Recomendações </td> | |
50 | - <td width="9%" class="topo2"> Quantidade</td> | |
51 | - <td width="56%" class="topo2"> Linha(s) do código fonte </td> | |
52 | - </tr> | |
53 | - </thead> | |
54 | - <tbody> | |
55 | - | |
56 | - <c:forEach items="${lista}" var="item"> | |
57 | - <c:if test="${not item.error }"> | |
58 | - | |
59 | - <tr> | |
60 | - <td class="celula" width="2%"><a target="_blank" class="sublinharLink" href="http://emag.governoeletronico.gov.br/#r${item.checkPoint}">${item.checkPoint}</a></td> | |
61 | - <td class="celula" width="60%" align="left"> ${item.description}</td> | |
62 | - | |
63 | - <td class="celula">${item.numberOfOccurrences}</td> | |
64 | - <td class="celula"> | |
65 | - <c:choose> | |
66 | - <c:when test="${item.possuiLinhas}"> | |
67 | - <a class="sublinharLink" href="detalhes-avaliacao/${item.checkPoint}/false">${item.stringLines}</a> | |
68 | - </c:when> | |
69 | - <c:otherwise> | |
70 | - <c:if test="${item.stringLines=='---'}">Requer validação Humana</c:if> | |
71 | - </c:otherwise> | |
72 | - </c:choose> | |
73 | - </td> | |
74 | - </tr> | |
75 | - </c:if> | |
76 | - </c:forEach> | |
47 | +<table class="${cssClass}_warning"> | |
48 | + <caption>Tabela de Avisos</caption> | |
49 | + <thead> | |
50 | + <tr> | |
51 | + <th id="aviso_numero_recomendacao_${cssClass}" class="topo2">Número</th> | |
52 | + <th id="aviso_recomendacao_${cssClass}" class="topo2"> Recomendações </th> | |
53 | + <th id="aviso_quantidade_${cssClass}" class="topo2"> Quantidade</th> | |
54 | + <th id="aviso_linha_codigo_fonte_${cssClass}" class="topo2"> Linha(s) do código fonte</th> | |
55 | + </tr> | |
56 | + </thead> | |
77 | 57 | |
78 | - </tbody> | |
58 | + <tbody> | |
59 | + <c:forEach items="${lista}" var="item"> | |
60 | + <c:if test="${not item.error }"> | |
61 | + <tr id="aviso_numero_recomendacao__${cssClass}_${item.checkPoint}"> | |
62 | + <td headers="aviso_numero_recomendacao_${cssClass}" class="celula"><a target="_blank" class="sublinharLink" href="http://emag.governoeletronico.gov.br/#r${item.checkPoint}">${item.checkPoint}</a></td> | |
63 | + <td headers="aviso_recomendacao_${cssClass}" class="celula"> ${item.description}</td> | |
64 | + <td headers="aviso_quantidade_${cssClass}" class="celula">${item.numberOfOccurrences}</td> | |
65 | + <td headers="aviso_linha_codigo_fonte_${cssClass}" class="celula"> | |
66 | + <c:choose> | |
67 | + <c:when test="${item.possuiLinhas}"> | |
68 | + <a class="sublinharLink" href="detalhes-avaliacao/${item.checkPoint}/false">${item.stringLines}</a> | |
69 | + </c:when> | |
70 | + | |
71 | + <c:otherwise> | |
72 | + <c:if test="${item.stringLines=='---'}">Requer validação Humana</c:if> | |
73 | + </c:otherwise> | |
74 | + </c:choose> | |
75 | + </td> | |
76 | + </tr> | |
77 | + </c:if> | |
78 | + </c:forEach> | |
79 | + </tbody> | |
79 | 80 | |
80 | - </table> | |
81 | - <br><br> | |
82 | - <script type="text/javascript"> | |
83 | - $('.${cssClass}_error').each(function(index){ | |
81 | + </table> | |
82 | + | |
83 | + <script type="text/javascript"> | |
84 | + $('.${cssClass}_error').each(function(index){ | |
84 | 85 | if($(this).find('tbody tr').length == 0){ |
85 | - $(this).before( "<p>A seção não apresentou erros!</p>" ); | |
86 | - $(this).hide(); | |
86 | + $(this).before( "<p>A seção não apresentou erros!</p>" ); | |
87 | + $(this).hide(); | |
87 | 88 | } |
88 | - }); | |
89 | + }); | |
89 | 90 | |
90 | - $('.${cssClass}_warning').each(function(index){ | |
91 | - if($(this).find('tbody tr').length == 0){ | |
92 | - $(this).before( "<p>A seção não apresentou avisos!</p>" ); | |
93 | - $(this).hide(); | |
94 | - } | |
95 | - }); | |
96 | - </script> | |
91 | + $('.${cssClass}_warning').each(function(index){ | |
92 | + if($(this).find('tbody tr').length == 0){ | |
93 | + $(this).before( "<p>A seção não apresentou avisos!</p>" ); | |
94 | + $(this).hide(); | |
95 | + } | |
96 | + }); | |
97 | + </script> | ... | ... |