Commit 0743e9ab3106dd202ad0fc068aa812f737cf9d7c
1 parent
77145447
Exists in
master
and in
1 other branch
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%2…
…0Web/Fontes/avaliador-web@10664 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
1 changed file
with
106 additions
and
42 deletions
Show diff stats
src/main/webapp/WEB-INF/jsp/avaliacao/detalhesAvaliacao.jsp
... | ... | @@ -6,25 +6,22 @@ |
6 | 6 | |
7 | 7 | <t:baseLayout> |
8 | 8 | <jsp:body> |
9 | + | |
10 | + <div class="funcionalidades"> | |
11 | + <ul class="breadcrumb"> | |
12 | + <li> | |
13 | + <span>Você está em: </span> | |
14 | + </li> | |
15 | + <li><a href="${pageContext.request.contextPath}">Página Inicial |</a></li> | |
16 | + <li><a id="voltar" href="#">Resumo de avaliação |</a></li> | |
17 | + <li>Detalhes de Avaliação da recomendação ${rn}</li> | |
18 | + </ul> | |
19 | + </div> | |
20 | + | |
21 | + | |
9 | 22 | <!-- Início Conteudo --> |
10 | 23 | |
11 | - <h2>Exportar Resultado</h2> | |
12 | - <form name="form" action="${pageContext.request.contextPath}/exportar-detalhes-avaliacao" method="post"> | |
13 | - <fieldset> | |
14 | - <legend> | |
15 | - Tipos de Exportação | |
16 | - </legend> | |
17 | - | |
18 | - <p> | |
19 | - <img src="${pageContext.request.contextPath}/inicial_arquivos/imagens/pdf.png" alt="pdf" title="Gerar em PDF" height="20" width="20"> | |
20 | - <input type="radio" name="tiporel" value="4">PDF | |
21 | - <input type="hidden" name="rn" value="${rn}"> | |
22 | - <input type="hidden" name="isError" value="${isError}"> | |
23 | - <input class="submit" name="executar" value="Executar" type="submit"> | |
24 | - </p> | |
25 | - </fieldset> | |
26 | - </form> | |
27 | - | |
24 | + | |
28 | 25 | <div class="tile --NOVALUE--"> |
29 | 26 | <div class="outstanding-header"> |
30 | 27 | <h2 class="outstanding-title">Página Avaliada</h2> |
... | ... | @@ -38,14 +35,15 @@ |
38 | 35 | <strong>Data/Hora:</strong> ${data} |
39 | 36 | </div> |
40 | 37 | |
38 | + <hr class="hr_linhaDupla"> | |
41 | 39 | |
42 | 40 | <div class="tile --NOVALUE--"> |
43 | 41 | <div class="outstanding-header"> |
44 | 42 | <h2 class="outstanding-title">Recomendação Avaliada</h2> |
45 | 43 | </div> |
46 | - <strong>${recomendacao}</strong> | |
44 | + <strong> ${rn} ${recomendacao}</strong> | |
47 | 45 | </div> |
48 | - | |
46 | + <hr class="hr_linhaDupla"> | |
49 | 47 | <div class="tile --NOVALUE--"> |
50 | 48 | <div class="outstanding-header"> |
51 | 49 | <h2 class="outstanding-title">Critério(s) Avaliado(s)</h2> |
... | ... | @@ -55,8 +53,8 @@ |
55 | 53 | <caption>Tabela de Erros</caption> |
56 | 54 | <thead> |
57 | 55 | <tr> |
58 | - <th id="numero" class="topo2">Número</th> | |
59 | - <th id="teste" class="topo2">Teste(s)</th> | |
56 | + <th id="numero" class="topo2 indiceDetalhes0">Número</th> | |
57 | + <th id="teste" class="topo2 indiceDetalhes1">Teste(s)</th> | |
60 | 58 | <th id="quantidade" class="topo2">Quantidade</th> |
61 | 59 | <th id="linhaCodigoFonte" class="topo2">Linha(s) de Código Fonte</th> |
62 | 60 | </tr> |
... | ... | @@ -65,7 +63,12 @@ |
65 | 63 | <tbody> |
66 | 64 | <c:forEach items="${detalhe.criterios}" var="criterio"> |
67 | 65 | <tr> |
68 | - <td headers="numero" class="celula"> ${criterio.id} </td> | |
66 | + <!-- retirar o ponto da recomendação --> | |
67 | + <c:set var="var_recomendacaoComPonto" value="${rn}" /> | |
68 | + <c:set var="var_RecomendacaoSemPonto" value="${fn:replace(var_recomendacaoComPonto,'.','')}" /> | |
69 | + <td headers="numero" class="celula"><a href="${pageContext.request.contextPath}/criteriosSucesso#criterio_${var_RecomendacaoSemPonto}${criterio.id}"> ${criterio.id} </a></td> | |
70 | + <!-- Fim retirar o ponto da recomendação --> | |
71 | + | |
69 | 72 | <td headers="teste" class="celula">${criterio.descricao}</td> |
70 | 73 | <td headers="quantidade" class="celula"> |
71 | 74 | |
... | ... | @@ -94,16 +97,21 @@ |
94 | 97 | <c:set var="req" value="${rn}.${criterio.id}" /> |
95 | 98 | <c:choose> |
96 | 99 | <c:when test="${fn:contains(aReq, req)}"> |
97 | - <c:forEach items="${criterio.linhasColunas}" var="linha" varStatus="index"> | |
100 | + <c:forEach items="${criterio.linhasColunas}" var="linha" | |
101 | + varStatus="index"> | |
98 | 102 | <c:if test="${fn:contains(aReqIsW3c, req)}"> |
99 | 103 | <c:if test="${fn:contains(aReqIsCss, req)}"> |
100 | - <a href=" http://jigsaw.w3.org/css-validator/validator?uri=${url}" target="_blanck"> | |
104 | + <a | |
105 | + href=" http://jigsaw.w3.org/css-validator/validator?uri=${url}" | |
106 | + target="_blanck"> | |
101 | 107 | Serviço de validação de CSS do W3C (link para um novo sitio) |
102 | 108 | </a> |
103 | 109 | </c:if> |
104 | 110 | |
105 | 111 | <c:if test="${!fn:contains(aReqIsCss, req)}"> |
106 | - <a href="https://validator.w3.org/nu/?doc=http%3A%2F%2F${url}" target="_blanck"> | |
112 | + <a | |
113 | + href="https://validator.w3.org/nu/?doc=http%3A%2F%2F${url}" | |
114 | + target="_blanck"> | |
107 | 115 | Serviço de validação de HTML do W3C (link para um novo sitio) |
108 | 116 | </a> |
109 | 117 | </c:if> |
... | ... | @@ -119,12 +127,27 @@ |
119 | 127 | |
120 | 128 | <c:otherwise> |
121 | 129 | <ul> |
122 | - <c:forEach items="${criterio.linhasColunas}" var="linha" varStatus="index"> | |
123 | - <c:set var="lineOcc" value="${fn:split(linha, '.')}" /> | |
124 | - <li id="linhaCodigoFonte_${criterio.id}.${linha}" style="display:inline"><a href="#${criterio.id}.${linha}" class="sublinharLink">${lineOcc[0]}</a> | |
125 | - <c:if test="${index.index != fn:length(criterio.linhas) -1}"> - | |
130 | + <c:forEach items="${criterio.linhasColunas}" var="linha" | |
131 | + varStatus="index"> | |
132 | + <c:set var="lineOcc" | |
133 | + value="${fn:split(linha, '.')}" /> | |
134 | + | |
135 | + <%--Para trocar os "." por "_" devido problemas com css --%> | |
136 | + | |
137 | + <c:set var="var_01" | |
138 | + value="${criterio.id}_${linha}" /> | |
139 | + <c:set var="linhaSelecionar" | |
140 | + value="${fn:replace(var_01,'.','_')}" /> | |
141 | + | |
142 | + <%-- *********** --%> | |
143 | + | |
144 | + <li id="linhaCodigoFonte_${criterio.id}.${linha}"><a | |
145 | + href="#selecionar_${linhaSelecionar}" class="sublinharLink">${lineOcc[0]}</a> | |
146 | + <c:if | |
147 | + test="${index.index != fn:length(criterio.linhas) -1}"> - | |
126 | 148 | </c:if> |
127 | 149 | </li> |
150 | + | |
128 | 151 | </c:forEach> |
129 | 152 | </ul> |
130 | 153 | </c:otherwise> |
... | ... | @@ -132,9 +155,7 @@ |
132 | 155 | |
133 | 156 | <c:if test=""> |
134 | 157 | |
135 | - </c:if> | |
136 | - | |
137 | - | |
158 | + </c:if> | |
138 | 159 | </td> |
139 | 160 | </tr> |
140 | 161 | |
... | ... | @@ -144,7 +165,7 @@ |
144 | 165 | </table> |
145 | 166 | </div> |
146 | 167 | |
147 | - | |
168 | + <hr class="hr_linhaDupla"> | |
148 | 169 | |
149 | 170 | <div class="tile --NOVALUE--"> |
150 | 171 | <div class="outstanding-header"> |
... | ... | @@ -152,20 +173,38 @@ |
152 | 173 | </div> |
153 | 174 | |
154 | 175 | <div id="codigo"> |
155 | - <pre style="overflow: auto; width:100%; height:400px; border:1px solid #cccccc; display:block; white-space:nowrap"> | |
156 | - <c:forEach items="${listOcorrencia}" var="ocorrencia" varStatus="index"> | |
157 | - <c:set var="aReq" value="${aReq}"/> | |
158 | - <c:set var="req" value="${rn}.${ocorrencia.criterio}"/> | |
176 | + <pre> | |
177 | + <c:forEach items="${listOcorrencia}" var="ocorrencia" | |
178 | + varStatus="index"> | |
179 | + <c:set var="aReq" value="${aReq}" /> | |
180 | + <c:set var="req" value="${rn}.${ocorrencia.criterio}" /> | |
159 | 181 | <c:if test="${!fn:contains(aReq, req)}"> |
160 | 182 | <c:choose> |
161 | 183 | <c:when test="${ocorrencia.cssEvaluation}"> |
162 | - <a id="${ocorrencia.criterio}.${ocorrencia.posLineOccurrence}" href="http://jigsaw.w3.org/css-validator/validator?uri=${ocorrencia.tag}" target="_blank">${ocorrencia.line} : Serviço de validação de CSS do W3C : ${ocorrencia.tag}</a> | |
184 | + <a | |
185 | + id="${ocorrencia.criterio}.${ocorrencia.posLineOccurrence}" | |
186 | + href="http://jigsaw.w3.org/css-validator/validator?uri=${ocorrencia.tag}" | |
187 | + target="_blank">${ocorrencia.line} : Serviço de validação de CSS do W3C : ${ocorrencia.tag}</a> | |
163 | 188 | </c:when> |
164 | 189 | <c:when test="${ocorrencia.htmlEvaluation}"> |
165 | - <a id="${ocorrencia.criterio}.${ocorrencia.posLineOccurrence}" href="https://validator.w3.org/nu/?doc=${ocorrencia.tag}" target="_blank">${ocorrencia.line} : Serviço de validação de HTML do W3C : ${ocorrencia.tag}</a> | |
190 | + <a | |
191 | + id="${ocorrencia.criterio}.${ocorrencia.posLineOccurrence}" | |
192 | + href="https://validator.w3.org/nu/?doc=${ocorrencia.tag}" | |
193 | + target="_blank">${ocorrencia.line} : Serviço de validação de HTML do W3C : ${ocorrencia.tag}</a> | |
166 | 194 | </c:when> |
167 | 195 | <c:otherwise> |
168 | - <a id="${ocorrencia.criterio}.${ocorrencia.posLineOccurrence}">${ocorrencia.line} : ${ocorrencia.tag}</a><br> | |
196 | + | |
197 | + <%--Para trocar os "." por "_" devido problemas com css --%> | |
198 | + | |
199 | + <c:set var="var_01" | |
200 | + value="${ocorrencia.criterio}_${ocorrencia.posLineOccurrence}" /> | |
201 | + <c:set var="linhaSelecionar" | |
202 | + value="${fn:replace(var_01,'.','_')}" /> | |
203 | + | |
204 | + <%-- *********** --%> | |
205 | + | |
206 | + <a id="selecionar_${linhaSelecionar}">${ocorrencia.line} : ${ocorrencia.tag}</a> | |
207 | + <br> | |
169 | 208 | </c:otherwise> |
170 | 209 | </c:choose> |
171 | 210 | </c:if> |
... | ... | @@ -173,7 +212,32 @@ |
173 | 212 | </pre> |
174 | 213 | </div> |
175 | 214 | </div> |
176 | - | |
177 | - | |
215 | + <hr class="hr_linhaDupla"> | |
216 | + <div class="tile --NOVALUE--"> | |
217 | + <div class="outstanding-header"> | |
218 | + <h2 class="outstanding-title">Exportar Resultado</h2> | |
219 | + </div> | |
220 | + <form name="form" | |
221 | + action="${pageContext.request.contextPath}/exportar-detalhes-avaliacao" | |
222 | + method="post"> | |
223 | + <fieldset> | |
224 | + <legend> | |
225 | + Tipos de Exportação | |
226 | + </legend> | |
227 | + | |
228 | + <br> | |
229 | + <img | |
230 | + src="${pageContext.request.contextPath}/inicial_arquivos/imagens/pdf.png" | |
231 | + alt="pdf" title="Gerar em PDF"> | |
232 | + <input type="radio" id="tiporel" value="4"><label | |
233 | + for="tiporel">PDF</label> | |
234 | + <input type="hidden" name="rn" value="${rn}"> | |
235 | + <input type="hidden" name="isError" value="${isError}"> | |
236 | + <input class="submit" name="executar" value="Executar" | |
237 | + type="submit"> | |
238 | + | |
239 | + </fieldset> | |
240 | + </form> | |
241 | + </div> | |
178 | 242 | </jsp:body> |
179 | 243 | </t:baseLayout> |
180 | 244 | \ No newline at end of file | ... | ... |