|
|
@ -46,6 +46,7 @@ if (api_is_allowed_to_edit(null, true)) { |
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
$i = 1; |
|
|
|
$i = 1; |
|
|
|
$class = ''; |
|
|
|
$class = ''; |
|
|
|
|
|
|
|
|
|
|
|
foreach ($users_in_course as $data) { |
|
|
|
foreach ($users_in_course as $data) { |
|
|
|
$faults = 0; |
|
|
|
$faults = 0; |
|
|
|
if ($i%2 == 0) {$class='row_odd';} |
|
|
|
if ($i%2 == 0) {$class='row_odd';} |
|
|
@ -151,10 +152,11 @@ if (api_is_allowed_to_edit(null, true)) { |
|
|
|
<h3><?php echo get_lang('AttendanceSheetReport') ?></h3>
|
|
|
|
<h3><?php echo get_lang('AttendanceSheetReport') ?></h3>
|
|
|
|
<?php if(!empty($users_presence)) { ?> |
|
|
|
<?php if(!empty($users_presence)) { ?> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<table width="200px;"> |
|
|
|
<table width="250px;"> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><?php echo get_lang('AttendancesFaults').': ' ?></td><td><center><div class="attendance-faults-bar" style="background-color:<?php echo (!empty($faults['color_bar'])?$faults['color_bar']:'none') ?>"><?php echo $faults['faults'].'/'.$faults['total'].' ('.$faults['faults_porcent'].'%)' ?></div></center></td>
|
|
|
|
<td><?php echo get_lang('ToAttend').': ' ?></td>
|
|
|
|
</tr> |
|
|
|
<td><center><div class="attendance-faults-bar" style="background-color:<?php echo (!empty($faults['color_bar'])?$faults['color_bar']:'none') ?>"><?php echo $faults['faults'].'/'.$faults['total'].' ('.$faults['faults_porcent'].'%)' ?></div></center></td>
|
|
|
|
|
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<?php } ?> |
|
|
|
<?php } ?> |
|
|
|