|
@@ 7079-7087 (lines=9) @@
|
| 7076 |
|
$title_line= get_lang('LoginsTitleMonthColumn').';'.get_lang('LoginsTitleCountColumn')."\n"; |
| 7077 |
|
$line=''; |
| 7078 |
|
$total = 0; |
| 7079 |
|
if (is_array($results)) { |
| 7080 |
|
for($j = 0 ; $j < count($results) ; $j++) { |
| 7081 |
|
$line .= $results[$j][0].';'.$results[$j][1]."\n"; |
| 7082 |
|
$total = $total + $results[$j][1]; |
| 7083 |
|
} |
| 7084 |
|
$line .= get_lang('Total').";".$total."\n"; |
| 7085 |
|
} else { |
| 7086 |
|
$line= get_lang('NoResult')."</center></td>"; |
| 7087 |
|
} |
| 7088 |
|
} else { |
| 7089 |
|
$new_view = substr_replace($view,'1',0,1); |
| 7090 |
|
} |
|
@@ 7131-7140 (lines=10) @@
|
| 7128 |
|
$results = StatsUtils::getManyResultsXCol($sql, 4); |
| 7129 |
|
$title_line = get_lang('ExercicesTitleExerciceColumn').";".get_lang('Date').';'.get_lang('ExercicesTitleScoreColumn')."\n"; |
| 7130 |
|
|
| 7131 |
|
if (is_array($results)) { |
| 7132 |
|
for($i = 0; $i < sizeof($results); $i++) |
| 7133 |
|
{ |
| 7134 |
|
$display_date = api_convert_and_format_date($results[$i][3], null, date_default_timezone_get()); |
| 7135 |
|
$line .= $results[$i][0].";".$display_date.";".$results[$i][1]." / ".$results[$i][2]."\n"; |
| 7136 |
|
} |
| 7137 |
|
} else { |
| 7138 |
|
// istvan begin |
| 7139 |
|
$NoTestRes = 1; |
| 7140 |
|
} |
| 7141 |
|
|
| 7142 |
|
// The Result of Tests |
| 7143 |
|
if (is_array($hpresults)) { |