Add login next to firstname and lastname column for attendance - refs #4030

skala
Hubert Borderiou 14 years ago
parent 1d3e5abbd9
commit a287c010cd
  1. 7
      main/attendance/attendance_sheet.php
  2. 1
      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:45%;float:left;margin:0px;padding:0px;">
<div class="divTableWithFloatingHeader attendance-users-table" style="width:55%;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,6 +136,7 @@ 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" >
@ -143,6 +144,7 @@ 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>
@ -162,6 +164,7 @@ if (api_is_allowed_to_edit(null, true)) {
<td><?php echo $data['photo'] ?></td>
<td><?php echo $data['lastname'] ?></td>
<td><?php echo $data['firstname'] ?></td>
<td><?php echo $data['username'] ?></td>
<td>
<div style="height:28px">
<center>
@ -179,7 +182,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:55%;overflow:auto;overflow-y:hidden;">
<div class="divTableWithFloatingHeader attendance-calendar-table" style="margin:0px;padding:0px;float:left;width:45%;overflow:auto;overflow-y:hidden;">
<table class="tableWithFloatingHeader data_table" width="100%">
<thead>
<?php

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

Loading…
Cancel
Save