Subversion Repositories bacoAlunos

Rev

Rev 1426 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1426 Rev 1474
Line 68... Line 68...
68
            <th>Unidade</th>
68
            <th>Unidade</th>
69
            <th>Código Docente</th>
69
            <th>Código Docente</th>
70
            <th class="filter-name filter-select">Docente</th>
70
            <th class="filter-name filter-select">Docente</th>
71
            <th>Tipologia</th>
71
            <th>Tipologia</th>
72
            <th>Turma</th>
72
            <th>Turma</th>
73
            <th>Por Resp.</th>
73
            <th>Alunos com Respos. %</th>
74
            <th>Resp.</th>
74
            <th>Alunos com Respos.</th>
75
            <th>Alunos</th>
75
            <th>Alunos</th>
76
            <th></th>
76
            <th></th>
77
        </thead>
77
        </thead>
78
        <tbody>
78
        <tbody>
79
    <%
79
    <%
80
 
80
 
81
        for(Object[] tipologia: tipologias)
81
        for(Object[] tipologia: tipologias)
82
        {
82
        {
-
 
83
            if(((Long)tipologia[8]).longValue() > 0)
-
 
84
            {
83
    %>
85
    %>
84
        <tr>
86
        <tr>
85
            <td><%=tipologia[0]%></td>
87
            <td><%=tipologia[0]%></td>
86
            <td><%=tipologia[1]%></td>
88
            <td><%=tipologia[1]%></td>
87
            <td><%=tipologia[2]%></td>
89
            <td><%=tipologia[2]%></td>
88
            <td><%=tipologia[3]%></td>
90
            <td><%=tipologia[3]%></td>
89
            <td><%=tipologia[4]%></td>
91
            <td><%=tipologia[4]%></td>
90
            <td><%=tipologia[5]%></td>
92
            <td><%=tipologia[5]%></td>
-
 
93
            <td>
-
 
94
                <%
-
 
95
                    int percentage = (int) (100.0 * ( ((float)((Long)tipologia[7]).longValue()/((float)((Long)tipologia[8]).longValue()))));
-
 
96
                    String percentageColor = "danger";
-
 
97
                    if(percentage < 20)
-
 
98
                        percentageColor = "danger";
-
 
99
                    else if(percentage < 40)
-
 
100
                        percentageColor = "warning";
-
 
101
                    else if(percentage < 60)
-
 
102
                        percentageColor = "info";
-
 
103
                    else
-
 
104
                        percentageColor = "success";
-
 
105
                %>
-
 
106
                <div class="progress">
-
 
107
                    <div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>"
91
            <td><label class="label label-danger" style="font-size: 1em"><%=tipologia[6]%></label></td>
108
                         aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%">
-
 
109
                        <%=percentage%>%
-
 
110
                    </div>
-
 
111
                </div>
-
 
112
 
-
 
113
            </td>
92
            <td><label class="label <%=((Long)tipologia[7]) > 0 ? "label-success":"label-warning"%>" style="font-size: 1em"><%=tipologia[7]%></label></td>
114
            <td><label class="label label-<%=percentageColor%>" style="font-size: 1em"><%=tipologia[7]%></label></td>
93
            <td><label class="label label-info" style="font-size: 1em"><%=tipologia[8]%></label></td>
115
            <td><label class="label label-info" style="font-size: 1em"><%=tipologia[8]%></label></td>
94
            <td>
116
            <td>
95
                <%
117
                <%
96
                    Long unidadeId = (Long) tipologia[9];
118
                    Long unidadeId = (Long) tipologia[9];
97
                    request.setAttribute("unidadeId",unidadeId);
119
                    request.setAttribute("unidadeId",unidadeId);
Line 104... Line 126...
104
                    <span class="glyphicon glyphicon-envelope"> </span>
126
                    <span class="glyphicon glyphicon-envelope"> </span>
105
                </html:link>
127
                </html:link>
106
            </td>
128
            </td>
107
        </tr>
129
        </tr>
108
    <%
130
    <%
-
 
131
            }
109
        }
132
        }
110
    %>
133
    %>
111
        </tbody>
134
        </tbody>
112
    </table>
135
    </table>
113
 
136