[svn r20350] Usability : Invert div_hide and div_show arrow icons + Learner view / Teacher view - see FS#4157 (by jhp1411)

skala
Cristian Fasanando 16 years ago
parent 8bfc4df1df
commit bbd87b01d9
  1. 6
      main/exercice/exercice.php
  2. BIN
      main/img/div_hide.gif
  3. BIN
      main/img/div_show.gif
  4. 6
      main/inc/lib/main_api.lib.php

@ -1,5 +1,5 @@
<?php
// $Id: exercice.php 20236 2009-04-30 21:01:58Z iflorespaz $
// $Id: exercice.php 20350 2009-05-05 23:12:58Z cfasanando $
/*
==============================================================================
@ -760,9 +760,9 @@ if ($_configuration['tracking_enabled']) {
null;
}
if ($_REQUEST['filter'] == '1' or !isset ($_REQUEST['filter'])) {
$view_result = '<a href="' . api_get_self() . '?cidReq=' . api_get_course_id() . '&show=result&gradebook='.$gradebook.'&filter=2' . '" >' . Display :: display_icon('checkbox_on.gif', get_lang('ShowCorrectedOnly')) . get_lang('ShowCorrectedOnly') . '</a>';
$view_result = '<a href="' . api_get_self() . '?cidReq=' . api_get_course_id() . '&show=result&gradebook='.$gradebook.'&filter=2' . '" >' . get_lang('ShowCorrectedOnly') . '</a>'; // Display :: display_icon('checkbox_on.gif', get_lang('ShowCorrectedOnly'))
} else {
$view_result = '<a href="' . api_get_self() . '?cidReq=' . api_get_course_id() . '&show=result&gradebook='.$gradebook.'&filter=1' . '" >' . Display :: display_icon('checkbox_off.gif', get_lang('ShowUnCorrectedOnly')) . get_lang('ShowUnCorrectedOnly') . '</a>';
$view_result = '<a href="' . api_get_self() . '?cidReq=' . api_get_course_id() . '&show=result&gradebook='.$gradebook.'&filter=1' . '" >' . get_lang('ShowUnCorrectedOnly') . '</a>'; //. Display :: display_icon('checkbox_off.gif', get_lang('ShowUnCorrectedOnly'))
}
//$form_filter = '<form method="post" action="'.api_get_self().'?cidReq='.api_get_course_id().'&show=result">';
//$form_filter .= make_select('filter',array(1=>get_lang('FilterByNotRevised'),2=>get_lang('FilterByRevised')),$filter);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 357 B

@ -1538,12 +1538,12 @@ function api_display_tool_view_option() {
// we have to remove the isStudentView=true from the $sourceurl
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a href="'.$sourceurl.'&isStudentView=false" target="_top">'.get_lang("CourseManagerview").'</a>';
$output_string .= '<a href="'.$sourceurl.'&isStudentView=false" target="_top">'.get_lang("StudentView").'</a>';
} elseif ($_SESSION['studentview']=='teacherview') {
//switching to teacherview
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_top">'.get_lang("StudentView").'</a>';
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_top">'.get_lang("CourseManagerview").'</a>';
}
} else {
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_top">'.get_lang("StudentView").'</a>';
@ -3465,7 +3465,7 @@ function api_url_to_local_path($url)
$local_path = implode('/', $array_local_path);
// Sanity check - you may have seen this comment in dokeos/main/document/download.php:
//mod_rewrite can change /some/path/ to /some/path// in some cases, so clean them all off (René)
//mod_rewrite can change /some/path/ to /some/path// in some cases, so clean them all off (Ren<EFBFBD>)
// Let us remove double slashes, if any (triple too, etc.).
$local_path = preg_replace('@/{2,}@', '/', $local_path);

Loading…
Cancel
Save