[svn r10137] In case of multiple attempts, sum up the time to show a total attempts-time

skala
Yannick Warnier 19 years ago
parent 25efebf163
commit 271fb64276
  1. 10
      main/newscorm/lp_stats.php

@ -284,8 +284,14 @@ foreach($list as $my_item_id){
if (($counter % 2)==0) { $oddclass="row_odd"; } else { $oddclass="row_even"; }
$lesson_status=$row['mystatus'];
$score=$row['myscore'];
$time_for_total = $row['mytime'];
$time=learnpathItem::get_scorm_time('php',$row['mytime']);
$subtotal_time = $row['mytime'];
//if($row['mytime']==0){
while($tmp_row = Database::fetch_array($result)){
$subtotal_time += $tmp_row['mytime'];
}
//}
$time_for_total = $subtotal_time;
$time=learnpathItem::get_scorm_time('php',$subtotal_time);
$scoIdentifier=$row['myid'];
$title=$row['mytitle'];
if($score==0){

Loading…
Cancel
Save