[svn r17872] logic changes-allows show the flat view correctly and the user information-(see FS#3498)

skala
Isaac Flores 16 years ago
parent 56b42d69e3
commit 5af55b37d9
  1. 2
      main/gradebook/lib/fe/displaygradebook.php
  2. 4
      main/gradebook/user_info.php
  3. 2
      main/gradebook/user_stats.php

@ -383,7 +383,7 @@ class DisplayGradebook
}
$cattotal= Category :: load(0);
$info = '<table width="100%" border=0 cellpadding=5><tr><td width="80%">';
$info.= get_lang('Name') . ' : <b>' . $user['lastname'] . ' ' . $user['firstname'] . '</b> ( <a href="user_info.php?userid=' . $userid . '&selecteval=' . Security::remove_XSS($_GET['selecteval']) . '">' . get_lang('MoreInfo') . '...</a> )<br>';
$info.= get_lang('Name') . ' : <b>' . $user['lastname'] . ' ' . $user['firstname'] . '</b> ( <a href="user_info.php?userid=' . $userid . '&selectcat=' . Security::remove_XSS($_GET['selectcat']) . '">' . get_lang('MoreInfo') . '...</a> )<br>';
$info.= get_lang('Email') . ' : <b><a href="mailto:' . $user['email'] . '">' . $user['email'] . '</a></b><br><br>';
$scoredisplay = ScoreDisplay :: instance();
$score_stud= $cattotal[0]->calc_score($userid);

@ -36,9 +36,9 @@ api_block_anonymous_users();
block_students();
$user = get_user_info_from_id($_GET['userid']);
$form = new UserForm(UserForm :: TYPE_USER_INFO, $user, 'user_info_form', null, api_get_self() . '?userid=' . $_GET['userid'] . '&selecteval=' . $_GET['selecteval']);
$form = new UserForm(UserForm :: TYPE_USER_INFO, $user, 'user_info_form', null, api_get_self() . '?userid=' . $_GET['userid'] . '&selectcat=' . $_GET['selectcat']);
if ($form->validate()) {
header('Location: user_stats.php?selecteval=' . Security::remove_XSS($_GET['selecteval']).'&userid=' .Security::remove_XSS($_GET['userid']));
header('Location: user_stats.php?selectcat=' . Security::remove_XSS($_GET['selectcat']).'&userid=' .Security::remove_XSS($_GET['userid']));
exit;
}

@ -96,7 +96,7 @@ if (isset ($_GET['exportpdf'])) {
}
if (isset ($_GET['selectcat'])) {
$interbreadcrumb[]= array (
'url' => 'gradebook_flatview.php?selecteval=' . Security::remove_XSS($_GET['selectcat']),
'url' => 'gradebook_flatview.php?selectcat=' . Security::remove_XSS($_GET['selectcat']),
'name' => get_lang('FlatView'
));
$backto= '<a href=gradebook_flatview.php?selectcat=' .Security::remove_XSS($_GET['selectcat']) . '><img src=../img/lp_leftarrow.gif alt=' . get_lang('BackToOverview') . ' align=absmiddle/> ' . get_lang('BackToOverview') . '</a>&nbsp&nbsp';

Loading…
Cancel
Save