Minor - format code, minor UI changes

pull/2757/head
Julio Montoya 7 years ago
parent a7de5c301c
commit 6ad4f3a6dd
  1. 2
      main/gradebook/index.php
  2. 4
      main/gradebook/lib/be/evaluation.class.php
  3. 2
      main/gradebook/lib/fe/gradebooktable.class.php
  4. 1
      main/gradebook/lib/gradebook_data_generator.class.php

@ -998,7 +998,7 @@ if (isset($first_time) && $first_time == 1 && api_is_allowed_to_edit(null, true)
$table.
$graph.
'<br />'.get_lang('Feedback').'<br />
<textarea rows="5" cols="100" ></textarea>'
<textarea rows="5" cols="100" >&nbsp;</textarea>'
);
} else {
echo $table;

@ -113,7 +113,7 @@ class Evaluation implements GradebookItem
*/
public function setSessionId($sessionId)
{
$this->sessionId = intval($sessionId);
$this->sessionId = (int) $sessionId;
}
public function get_date()
@ -153,7 +153,7 @@ class Evaluation implements GradebookItem
public function set_id($id)
{
$this->id = $id;
$this->id = (int) $id;
}
public function set_name($name)

@ -983,7 +983,7 @@ class GradebookTable extends SortableTable
$imgWebPath = api_get_path(WEB_ARCHIVE_PATH).$chartHash;
if (file_exists($imgSysPath)) {
$result = '<div id="contentArea" style="text-align: center;" >';
$result = '<br /><div id="contentArea" style="text-align: center;" >';
$result .= '<img src="'.$imgWebPath.'" >';
$result .= '</div>';

@ -142,6 +142,7 @@ class GradebookDataGenerator
// Best
$best = $this->buildBestResultColumn($item);
$row['best'] = $best['display'];
$row['best_score'] = $best['score'];

Loading…
Cancel
Save