Add username as tootip for attendance - ref #4226

skala
Hubert Borderiou 13 years ago
parent 8666480d82
commit 7a0bf48b13
  1. 10
      main/attendance/attendance_sheet.php
  2. 2
      main/inc/lib/attendance.lib.php

@ -128,7 +128,7 @@ if (api_is_allowed_to_edit(null, true)) {
<form method="post" action="index.php?action=attendance_sheet_add&<?php echo api_get_cidreq().$param_gradebook.$param_filter ?>&attendance_id=<?php echo $attendance_id?>" >
<div class="attendance-sheet-content" style="width:100%;background-color:#E1E1E1;margin-top:20px;">
<div class="divTableWithFloatingHeader attendance-users-table" style="width:55%;float:left;margin:0px;padding:0px;">
<div class="divTableWithFloatingHeader attendance-users-table" style="width:45%;float:left;margin:0px;padding:0px;">
<table class="tableWithFloatingHeader data_table" width="100%">
<thead>
<tr class="tableFloatingHeader" style="position: absolute; top: 0px; left: 0px; visibility: hidden; margin:0px;padding:0px" >
@ -136,7 +136,6 @@ if (api_is_allowed_to_edit(null, true)) {
<th width="10px"><?php echo get_lang('Photo')?></th>
<th width="100px"><?php echo get_lang('LastName')?></th>
<th width="100px"><?php echo get_lang('FirstName')?></th>
<th width="100px"><?php echo get_lang('LoginName')?></th>
<th width="100px"><?php echo get_lang('AttendancesFaults')?></th>
</tr>
<tr class="tableFloatingHeaderOriginal" >
@ -144,7 +143,6 @@ if (api_is_allowed_to_edit(null, true)) {
<th width="10px"><?php echo get_lang('Photo')?></th>
<th width="150px"><?php echo get_lang('LastName')?></th>
<th width="140px"><?php echo get_lang('FirstName')?></th>
<th width="100px"><?php echo get_lang('LoginName')?></th>
<th width="100px"><?php echo get_lang('AttendancesFaults')?></th>
</tr>
</thead>
@ -158,13 +156,13 @@ if (api_is_allowed_to_edit(null, true)) {
$faults = 0;
if ($i%2 == 0) {$class='row_odd';}
else {$class='row_even';}
$username = api_htmlentities(sprintf(get_lang('LoginX'), $data['username']), ENT_QUOTES);
?>
<tr class="<?php echo $class ?>">
<td><center><?php echo $i ?></center></td>
<td><?php echo $data['photo'] ?></td>
<td><?php echo $data['lastname'] ?></td>
<td><span title="<?php echo $username ?>"><?php echo $data['lastname'] ?></span></td>
<td><?php echo $data['firstname'] ?></td>
<td><?php echo $data['username'] ?></td>
<td>
<div style="height:28px">
<center>
@ -182,7 +180,7 @@ if (api_is_allowed_to_edit(null, true)) {
</table>
</div>
<div class="divTableWithFloatingHeader attendance-calendar-table" style="margin:0px;padding:0px;float:left;width:45%;overflow:auto;overflow-y:hidden;">
<div class="divTableWithFloatingHeader attendance-calendar-table" style="margin:0px;padding:0px;float:left;width:55%;overflow:auto;overflow-y:hidden;">
<table class="tableWithFloatingHeader data_table" width="100%">
<thead>
<?php

@ -449,7 +449,7 @@ class Attendance
$value['photo'] = $photo;
$value['firstname'] = $user_data['firstname'];
$value['lastname'] = $user_data['lastname'];
$value['username'] = $user_data['username']; // hub
$value['username'] = $user_data['username'];
$value['user_id'] = $uid;
//Sending only 5 items in the array instead of 60

Loading…
Cancel
Save