|
@@ 322-326 (lines=5) @@
|
| 319 |
|
|
| 320 |
|
if ($this->teacherView) { |
| 321 |
|
$weight_total_links += $data[3]; |
| 322 |
|
} else { |
| 323 |
|
$cattotal = Category::load($_GET['selectcat']); |
| 324 |
|
$scoretotal = $cattotal[0]->calc_score($this->userId); |
| 325 |
|
$item_value = $scoredisplay->display_score($scoretotal, SCORE_SIMPLE); |
| 326 |
|
} |
| 327 |
|
|
| 328 |
|
// Edit (for admins). |
| 329 |
|
if ($this->teacherView) { |
|
@@ 472-478 (lines=7) @@
|
| 469 |
|
// Weight |
| 470 |
|
$row[] = $invisibility_span_open.$weight.$invisibility_span_close; |
| 471 |
|
|
| 472 |
|
if ($this->teacherView) { |
| 473 |
|
//$weight_total_links += intval($data[3]); |
| 474 |
|
} else { |
| 475 |
|
$cattotal = Category::load($_GET['selectcat']); |
| 476 |
|
$scoretotal = $cattotal[0]->calc_score($this->userId); |
| 477 |
|
$item_value = $scoretotal[0]; |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
// Admins get an edit column. |
| 481 |
|
if (api_is_allowed_to_edit(null, true) && |