| @@ 950-962 (lines=13) @@ | ||
| 947 | $gradebooktable->td_attributes = [ |
|
| 948 | 4 => 'class="text-center"' |
|
| 949 | ]; |
|
| 950 | } else { |
|
| 951 | $gradebooktable->td_attributes = [ |
|
| 952 | 3 => 'class="text-right"', |
|
| 953 | 4 => 'class="text-center"', |
|
| 954 | 5 => 'class="text-center"', |
|
| 955 | 6 => 'class="text-center"', |
|
| 956 | 7 => 'class="text-center"' |
|
| 957 | ]; |
|
| 958 | ||
| 959 | if ($action == 'export_table') { |
|
| 960 | unset($gradebooktable->td_attributes[7]); |
|
| 961 | } |
|
| 962 | } |
|
| 963 | ||
| 964 | $table = $gradebooktable->return_table(); |
|
| 965 | $graph = $gradebooktable->getGraph(); |
|
| @@ 1479-1491 (lines=13) @@ | ||
| 1476 | ||
| 1477 | $gradebooktable->userId = $userId; |
|
| 1478 | ||
| 1479 | if (api_is_allowed_to_edit()) { |
|
| 1480 | $gradebooktable->td_attributes = [ |
|
| 1481 | 4 => 'class=centered' |
|
| 1482 | ]; |
|
| 1483 | } else { |
|
| 1484 | $gradebooktable->td_attributes = [ |
|
| 1485 | 3 => 'class=centered', |
|
| 1486 | 4 => 'class=centered', |
|
| 1487 | 5 => 'class=centered', |
|
| 1488 | 6 => 'class=centered', |
|
| 1489 | 7 => 'class=centered' |
|
| 1490 | ]; |
|
| 1491 | } |
|
| 1492 | ||
| 1493 | $table = $gradebooktable->return_table(); |
|
| 1494 | $graph = $gradebooktable->getGraph(); |
|