minor - changed some lang variables for attendance and dashboard tools - partial CT#603

skala
Cristian Fasanando 15 years ago
parent 716bb9480f
commit 8ee4d5ee35
  1. 2
      main/attendance/attendance_edit.php
  2. 14
      main/attendance/attendance_sheet.php
  3. 4
      main/attendance/index.php
  4. 2
      main/dashboard/index.php
  5. 4
      plugin/dashboard/block_student/block_student.class.php
  6. 4
      plugin/dashboard/block_teacher/block_teacher.class.php

@ -25,7 +25,7 @@ $attendance_weight = floatval($attendance_weight);
// display form // display form
$form = new FormValidator('attendance_edit','POST','index.php?action=attendance_edit&'.api_get_cidreq().'&attendance_id='.$attendance_id.$param_gradebook,'','style="width: 100%;"'); $form = new FormValidator('attendance_edit','POST','index.php?action=attendance_edit&'.api_get_cidreq().'&attendance_id='.$attendance_id.$param_gradebook,'','style="width: 100%;"');
$form->addElement('header', '', get_lang('EditAnAttendance')); $form->addElement('header', '', get_lang('Edit'));
$form->addElement('hidden', 'sec_token',$token); $form->addElement('hidden', 'sec_token',$token);
$form->add_textfield('title', get_lang('Title'), true, array('size'=>'50')); $form->add_textfield('title', get_lang('Title'), true, array('size'=>'50'));

@ -16,7 +16,7 @@ if (api_is_allowed_to_edit(null, true)) {
echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_list&attendance_id='.$attendance_id.$param_gradebook.'">'.Display::return_icon('calendar_up.gif',get_lang('AttendanceCalendar')).' '.get_lang('AttendanceCalendar').'</a>'; echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_list&attendance_id='.$attendance_id.$param_gradebook.'">'.Display::return_icon('calendar_up.gif',get_lang('AttendanceCalendar')).' '.get_lang('AttendanceCalendar').'</a>';
echo '</div>'; echo '</div>';
$message_information = get_lang('informationAttendanceSheet'); $message_information = get_lang('AttendanceSheetDescription');
if (!empty($message_information)) { if (!empty($message_information)) {
$message = '<strong>'.get_lang('Information').'</strong><br />'; $message = '<strong>'.get_lang('Information').'</strong><br />';
$message .= $message_information; $message .= $message_information;
@ -34,11 +34,11 @@ if (api_is_allowed_to_edit(null, true)) {
<table class="data_table" width="100%"> <table class="data_table" width="100%">
<tr class="row_odd" > <tr class="row_odd" >
<th height="65px" width="35px" ><?php echo get_lang('Order')?></th> <th height="65px" width="35px" ><?php echo get_lang('DisplayOrder')?></th>
<th width="45px" ><?php echo get_lang('Photo')?></th> <th width="45px" ><?php echo get_lang('Photo')?></th>
<th><?php echo get_lang('LastName')?></th> <th><?php echo get_lang('LastName')?></th>
<th><?php echo get_lang('FirstName')?></th> <th><?php echo get_lang('FirstName')?></th>
<th width="90px"><?php echo get_lang('faults')?></th> <th width="90px"><?php echo get_lang('AttendancesFaults')?></th>
</tr> </tr>
<?php <?php
@ -137,7 +137,7 @@ if (api_is_allowed_to_edit(null, true)) {
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<div style="margin-top:20px;"><button type="submit" class="save"><?php echo get_lang('SaveAttendanceSheet') ?></button></div> <div style="margin-top:20px;"><button type="submit" class="save"><?php echo get_lang('Save') ?></button></div>
</form> </form>
<?php } else { <?php } else {
@ -152,7 +152,7 @@ if (api_is_allowed_to_edit(null, true)) {
<div> <div>
<table width="200px;"> <table width="200px;">
<tr> <tr>
<td><?php echo get_lang('Faults').': ' ?></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('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>
</tr> </tr>
</table> </table>
</div> </div>
@ -162,7 +162,7 @@ if (api_is_allowed_to_edit(null, true)) {
<center> <center>
<table class="data_table"> <table class="data_table">
<tr class="row_odd" > <tr class="row_odd" >
<th><?php echo get_lang('Calendar')?></th> <th><?php echo get_lang('AttendanceCalendar')?></th>
<th><?php echo get_lang('Attendance')?></th> <th><?php echo get_lang('Attendance')?></th>
</tr> </tr>
<?php <?php
@ -177,7 +177,7 @@ if (api_is_allowed_to_edit(null, true)) {
<tr class="<?php echo $class ?>"><td><?php echo Display::return_icon('lp_calendar_event.png',get_lang('DateTime')).' '.$presence['date_time'] ?></td><td><center><?php echo $presence['presence']?Display::return_icon('checkbox_on.gif',get_lang('Presence')):Display::return_icon('checkbox_off.gif',get_lang('Presence')) ?></center></td></tr> <tr class="<?php echo $class ?>"><td><?php echo Display::return_icon('lp_calendar_event.png',get_lang('DateTime')).' '.$presence['date_time'] ?></td><td><center><?php echo $presence['presence']?Display::return_icon('checkbox_on.gif',get_lang('Presence')):Display::return_icon('checkbox_off.gif',get_lang('Presence')) ?></center></td></tr>
<?php } <?php }
} else { ?> } else { ?>
<tr><td colspan="2"><center><?php echo get_lang('YouDoNotHaveDoneAttendance')?></center></td></tr> <tr><td colspan="2"><center><?php echo get_lang('YouDoNotHaveDoneAttendances')?></center></td></tr>
<?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 ('userInfo'); $language_file = array ('userInfo', 'admin');
// including files // including files
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
@ -151,7 +151,7 @@ if (api_is_drh() && isset($_GET['student_id'])) {
$student_param = '&student_id='.$student_id; $student_param = '&student_id='.$student_id;
$student_info = api_get_user_info($student_id); $student_info = api_get_user_info($student_id);
$student_name = api_get_person_name($student_info['firstname'],$student_info['lastname']); $student_name = api_get_person_name($student_info['firstname'],$student_info['lastname']);
$interbreadcrumb[] = array ('url' => '/main/mySpace/myStudents.php?&student='.$student_id, 'name' => $student_name); $interbreadcrumb[] = array ('url' => '/main/mySpace/myStudents.php?student='.$student_id, 'name' => $student_name);
} }
if (!empty($gradebook)) { if (!empty($gradebook)) {

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

@ -139,7 +139,7 @@ class BlockStudent extends Block {
} }
$students_table .= '</table>'; $students_table .= '</table>';
} else { } else {
$students_table .= get_lang('ThereAreNoInformationAboutStudents'); $students_table .= get_lang('ThereAreNoInformationsAboutYourStudents');
} }
$content .= $students_table; $content .= $students_table;
@ -220,7 +220,7 @@ class BlockStudent extends Block {
} }
$students_table .= '</table>'; $students_table .= '</table>';
} else { } else {
$students_table .= get_lang('ThereAreNoInformationAboutStudents'); $students_table .= get_lang('ThereAreNoInformationsAboutYourStudents');
} }
$content .= $students_table; $content .= $students_table;

@ -120,7 +120,7 @@ class BlockTeacher extends Block {
} }
$teachers_table .= '</table>'; $teachers_table .= '</table>';
} else { } else {
$teachers_table .= get_lang('ThereAreNoInformationAboutTeachers'); $teachers_table .= get_lang('ThereAreNoInformationsAboutYourTeachers');
} }
@ -177,7 +177,7 @@ class BlockTeacher extends Block {
} }
$teachers_table .= '</table>'; $teachers_table .= '</table>';
} else { } else {
$teachers_table .= get_lang('ThereAreNoInformationAboutTeachers'); $teachers_table .= get_lang('ThereAreNoInformationsAboutYourTeachers');
} }
$content .= $teachers_table; $content .= $teachers_table;

Loading…
Cancel
Save