Adding positive To attend label see CT#1174

skala
Julio Montoya 15 years ago
parent d34614b8d9
commit d87dfee7e4
  1. 8
      main/attendance/attendance_sheet.php
  2. 2
      main/attendance/index.php

@ -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 } ?>

@ -9,7 +9,7 @@
*/ */
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = array ('course_description', 'pedaSuggest', 'userInfo', 'admin', 'agenda'); $language_file = array ('course_description', 'pedaSuggest', 'userInfo', 'admin', 'agenda','tracking');
// including files // including files
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';

Loading…
Cancel
Save