Subversion Repositories bacoAlunos

Rev

Rev 1621 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1621 Rev 1655
Line 230... Line 230...
230
                                        <table class="questionarioTable">
230
                                        <table class="questionarioTable">
231
                                    <%
231
                                    <%
232
                                        for(int p = 1; p <= 40; p++)
232
                                        for(int p = 1; p <= 40; p++)
233
                                        {
233
                                        {
234
                                            request.setAttribute("p",p);
234
                                            request.setAttribute("p",p);
235
                                            String pGroup = (String) QuestionarioImpl.class.getMethod("getP" + p + "Group").invoke(questionario);
235
                                            Object pGroupObj = QuestionarioImpl.class.getMethod("getP" + p + "Group").invoke(questionario);
-
 
236
                                            if(pGroupObj == null)
-
 
237
                                                continue;
-
 
238
                                            String pGroup = (String)  pGroupObj;
236
                                            if(pGroup.equals(groupNumber))
239
                                            if(pGroup.equals(groupNumber))
237
                                            {
240
                                            {
238
                                                String pergunta = (String) QuestionarioImpl.class.getMethod("getP" + p).invoke(questionario);
241
                                                String pergunta = (String) QuestionarioImpl.class.getMethod("getP" + p).invoke(questionario);
239
 
242
 
240
                                                String resposta = (String) QuestionarioResposta.class.getMethod("getR" + p).invoke(QuestionarioRespostaForm.getResposta());
243
                                                String resposta = (String) QuestionarioResposta.class.getMethod("getR" + p).invoke(QuestionarioRespostaForm.getResposta());
241
 
244
 
242
                                                String naoRespondida = resposta != null && Long.parseLong(resposta) > 0 ? "respondida":" nao-respondida";
245
                                                String naoRespondida = resposta != null && Long.parseLong(resposta) > 0 ? "respondida":" nao-respondida";
243
                                    %>
246
                                    %>
244
                                            <tr id="pergunta${p}" class="pergunta <%=naoRespondida%>">
247
                                            <tr id="pergunta${p}" class="pergunta <%=naoRespondida%>">
245
                                                <td>
248
                                                <td style="width: 70%">
246
 
249
 
247
                                                    <%=pergunta%>
250
                                                    <%=pergunta%>
248
                                                    <html:hidden property="resposta.timeEventR${p}" styleId="timeEventR${p}"/>
251
                                                    <html:hidden property="resposta.timeEventR${p}" styleId="timeEventR${p}"/>
249
                                                    <html:hidden property="resposta.timeTakenR${p}" styleId="timeTakenR${p}"/>
252
                                                    <html:hidden property="resposta.timeTakenR${p}" styleId="timeTakenR${p}"/>
250
                                                </td>
253
                                                </td>
Line 299... Line 302...
299
                                                        <%=pergunta%>
302
                                                        <%=pergunta%>
300
                                                        <html:hidden property="resposta.timeEventRe${e}" styleId="timeEventRe${e}"/>
303
                                                        <html:hidden property="resposta.timeEventRe${e}" styleId="timeEventRe${e}"/>
301
                                                        <html:hidden property="resposta.timeTakenRe${e}" styleId="timeTakenRe${e}"/>
304
                                                        <html:hidden property="resposta.timeTakenRe${e}" styleId="timeTakenRe${e}"/>
302
                                                    </td>
305
                                                    </td>
303
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="1" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">menos de 1 hora</html:radio></td>
306
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="1" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">menos de 1 hora</html:radio></td>
304
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="1" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">1 a 5 horas</html:radio></td>
307
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="2" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">1 a 5 horas</html:radio></td>
305
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="2" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">5 a 10 horas</html:radio></td>
308
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="3" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">5 a 10 horas</html:radio></td>
306
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="3" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">10 a 15 horas</html:radio></td>
309
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="4" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">10 a 15 horas</html:radio></td>
307
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="4" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">mais de 15 horas</html:radio></td>
310
                                                    <td style="padding-left: 10px"><html:radio property="resposta.re${e}" value="5" onclick="addEvent('timeEventRe${e}','timeTakenRe${e}');">mais de 15 horas</html:radio></td>
308
 
311
 
309
 
312
 
310
                                                </tr>
313
                                                </tr>
311
                                    <%
314
                                    <%
312
 
315