[svn r20463] FS#306 - The reporting module: Improvements for better encoding support.

skala
Ivan Tcholakov 16 years ago
parent 9b0bffbf6a
commit 8e32a72e5b
  1. 4
      main/mySpace/access_details.php
  2. 12
      main/mySpace/index.php
  3. 4
      main/mySpace/lp_tracking.php
  4. 2284
      main/mySpace/myStudents.php
  5. 12
      main/mySpace/user_import.php

@ -186,7 +186,7 @@ if (api_is_xml_http_request()) {
$DataSet->AddAllSeries();
$DataSet->RemoveSerie('Date');
$DataSet->SetAbsciseLabelSerie('Date');
$DataSet->SetYAxisName(ucfirst(get_lang('MinMinutes')));
$DataSet->SetYAxisName(api_ucfirst(get_lang('MinMinutes')));
$graph_id = api_get_user_id().'AccessDetails'.api_get_course_id();
$DataSet->AddAllSeries();
@ -320,4 +320,4 @@ foreach ($connections as $key=>$data)
echo ("</table>");
*/
Display:: display_footer();
?>
?>

@ -86,8 +86,8 @@ function count_coaches()
}
function sort_users($a,$b){
$a = trim(strtolower($a[$_SESSION['tracking_column']]));
$b = trim(strtolower($b[$_SESSION['tracking_column']]));
$a = trim(api_strtolower($a[$_SESSION['tracking_column']]));
$b = trim(api_strtolower($b[$_SESSION['tracking_column']]));
if($_SESSION['tracking_direction'] == 'DESC')
return strcmp($b, $a);
else
@ -206,7 +206,7 @@ if($nb_menu_items>1)
}
}
echo '
<a href="#" onclick="window.print()"><img align="absbottom" src="../img/printmgr.gif">&nbsp;'.get_lang('Print').'</a>
<a href="javascript: void(0);" onclick="javascript: window.print()"><img align="absbottom" src="../img/printmgr.gif">&nbsp;'.get_lang('Print').'</a>
<a href="'.api_get_self().'?export=csv&view='.$view.'"><img align="absbottom" src="../img/excel.gif">&nbsp;'.get_lang('ExportAsCSV').'</a>
';
echo '</div>';
@ -609,7 +609,7 @@ if(api_is_allowed_to_create_course() && $view=='teacher')
$table_row[] = '<center><a href="../tracking/courseLog.php?cidReq='.$course_code.'&studentlist=true"><img src="'.api_get_path(WEB_IMG_PATH).'2rightarrow.gif" border="0" /></a></center>';
$csv_content[] = array(
html_entity_decode($course['title']),
api_html_entity_decode($course['title'], ENT_QUOTES, $charset),
$nb_students_in_course,
$avg_time_spent_in_course,
$avg_progress_in_course,
@ -752,8 +752,8 @@ if(api_is_platform_admin() && $view=='admin')
$all_datas[] = $table_row;
$csv_content[] = array(
html_entity_decode($a_coachs['firstname']),
html_entity_decode($a_coachs['lastname']),
api_html_entity_decode($a_coachs['firstname'], ENT_QUOTES, $charset),
api_html_entity_decode($a_coachs['lastname'], ENT_QUOTES, $charset),
$time_on_platform,
$last_connection,
$nb_courses,

@ -162,7 +162,7 @@ if($export_csv) {
include_once('../newscorm/lp_stats.php');
$tracking_content = ob_get_contents();
ob_end_clean();
echo utf8_decode($tracking_content);
echo api_utf8_decode($tracking_content, $charset);
}
Display :: display_footer();
?>
?>

File diff suppressed because it is too large Load Diff

@ -37,15 +37,15 @@ we give 2 variables to a possible sufix. Sufix means the last numbers of the use
function make_login($firstname,$lastname)
{
$desired_username='';
if (strlen($lastname)<17)
if (api_strlen($lastname)<17)
{
$desired_username = substr($firstname,0,1).$lastname;
$desired_username = api_substr($firstname,0,1).$lastname;
}
else
{
$desired_username = substr($firstname,0,1).substr($lastname,0,16);
$desired_username = api_substr($firstname,0,1).substr($lastname,0,16);
}
return strtolower($desired_username);
return api_strtolower($desired_username);
}
@ -275,7 +275,7 @@ function validate_data($users,$id_session)
}
}
// 2. check if the username is too long
if (strlen($user['UserName']) > 20)
if (api_strlen($user['UserName']) > 20)
{
$user['error'] = get_lang('UserNameTooLong');
$errors[] = $user;
@ -731,4 +731,4 @@ $form->display();
==============================================================================
*/
Display :: display_footer();
?>
?>

Loading…
Cancel
Save