Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1473 → Rev 1474

/branches/v3/impl/src/web/user/questionarios/pedagogicoEstudante/questionariosDocenteAbertos.jsp
66,7 → 66,7
{
%>
 
<div class="well well-sm"><%=cursoAfeto.getNome()%></div>
<div class="well well-sm"><%=cursoAfeto.getNome()%> (<%=cursoAfeto.getCodigoCurso()%>)</div>
 
<div class="list-group">
<%--<div class="list-group-item list-group-item-heading clearfix">
101,17 → 101,42
{
%>
<div class="list-group-item clearfix" >
<label class="label label-pill <%=respondidos == null ? "label-warning" : "label-success"%>" style="font-size: 1em"><%=respondidos == null ? 0 : ((Long)respondidos)%></label>
respondidos de
<label class="label label-pill label-info" style="font-size: 1em"><%=tipologiaRequisitada.getAlunosRequisitados().size()%></label>
<div class="col-sm-8">
<label class="bg-primary" style="padding: 2px"><%=tipologiaRequisitada.getUnidadeAfeta().getCodigoUnidade()%></label>
<label class="bg-info " style="padding: 2px"><%=tipologiaRequisitada.getUnidadeAfeta().getNome()%></label>
<label class="bg-primary " style="padding: 2px"><%=tipologiaRequisitada.getCdTurma()%></label>
<label class="badge badge-info"><%=tipologiaRequisitada.getDsTipologia()%></label>
</div>
<div class="col-sm-2">
<%
int respostas = respondidos == null ? 0 : (int) ((Long) respondidos).longValue();
int total = tipologiaRequisitada.getAlunosRequisitados().size();
%>
 
<span style="margin-left: 10px" class="glyphicon glyphicon-arrow-right"> </span>
 
<label class="bg-info " style="padding: 2px"><%=tipologiaRequisitada.getUnidadeAfeta().getNome()%></label>
 
(<%=tipologiaRequisitada.getUnidadeAfeta().getCodigoUnidade()%>)
<label class="bg-primary " style="padding: 2px"><%=tipologiaRequisitada.getCdTurma()%></label>
<label class="badge badge-info"><%=tipologiaRequisitada.getDsTipologia()%></label>
<%
int percentage = (int) (100.0 * ( ((float)respostas/((float)total))));
String percentageColor = "danger";
if(percentage < 20)
percentageColor = "danger";
else if(percentage < 40)
percentageColor = "warning";
else if(percentage < 60)
percentageColor = "info";
else
percentageColor = "success";
%>
<label class="label label-pill label-<%=percentageColor%>" style="font-size: 1em"><%=respondidos == null ? 0 : ((Long)respondidos)%></label>
/
<label class="label label-pill label-info" style="font-size: 1em"><%=tipologiaRequisitada.getAlunosRequisitados().size()%></label>
</div>
<div class="col-sm-2">
<div class="progress" >
<div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>"
aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%">
<%=percentage%>%
</div>
</div>
</div>
</div>
<%
}
/branches/v3/impl/src/web/user/questionarios/pedagogicoEstudante/questionarioCourseDashBoard.jsp
70,8 → 70,8
<th class="filter-name filter-select">Docente</th>
<th>Tipologia</th>
<th>Turma</th>
<th>Por Resp.</th>
<th>Resp.</th>
<th>Alunos com Respos. %</th>
<th>Alunos com Respos.</th>
<th>Alunos</th>
<th></th>
</thead>
80,6 → 80,8
 
for(Object[] tipologia: tipologias)
{
if(((Long)tipologia[8]).longValue() > 0)
{
%>
<tr>
<td><%=tipologia[0]%></td>
88,8 → 90,28
<td><%=tipologia[3]%></td>
<td><%=tipologia[4]%></td>
<td><%=tipologia[5]%></td>
<td><label class="label label-danger" style="font-size: 1em"><%=tipologia[6]%></label></td>
<td><label class="label <%=((Long)tipologia[7]) > 0 ? "label-success":"label-warning"%>" style="font-size: 1em"><%=tipologia[7]%></label></td>
<td>
<%
int percentage = (int) (100.0 * ( ((float)((Long)tipologia[7]).longValue()/((float)((Long)tipologia[8]).longValue()))));
String percentageColor = "danger";
if(percentage < 20)
percentageColor = "danger";
else if(percentage < 40)
percentageColor = "warning";
else if(percentage < 60)
percentageColor = "info";
else
percentageColor = "success";
%>
<div class="progress">
<div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>"
aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%">
<%=percentage%>%
</div>
</div>
 
</td>
<td><label class="label label-<%=percentageColor%>" style="font-size: 1em"><%=tipologia[7]%></label></td>
<td><label class="label label-info" style="font-size: 1em"><%=tipologia[8]%></label></td>
<td>
<%
106,6 → 128,7
</td>
</tr>
<%
}
}
%>
</tbody>