Minor - format code.

pull/2487/head
jmontoyaa 8 years ago
parent 0b50d7b5da
commit 37cff23813
  1. 5
      main/admin/add_drh_to_user.php
  2. 4
      main/gradebook/gradebook_edit_all.php
  3. 10
      main/gradebook/gradebook_statistics.php
  4. 2
      main/gradebook/my_certificates.php

@ -1,7 +1,8 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\UserBundle\Entity\User,
Chamilo\CoreBundle\Entity\UserRelUser;
use Chamilo\UserBundle\Entity\User;
use Chamilo\CoreBundle\Entity\UserRelUser;
$cidReset = true;

@ -152,9 +152,7 @@ foreach ($evaluations as $evaluationRow) {
$output .= '<tr>
<td>'.GradebookUtils::build_type_icon_tag('evalnotempty').'</td>
<td>'.$evaluationRow['name'].' '.Display::label(
get_lang('Evaluation')
).'</td>';
<td>'.$evaluationRow['name'].' '.Display::label(get_lang('Evaluation')).'</td>';
$output .= '<td>
<input type="hidden" name="eval_'.$evaluationRow['id'].'" value="'.$evaluationRow['name'].'" />
<input type="text" size="10" name="evaluation['.$evaluationRow['id'].']" value="'.$item_weight.'"/>

@ -12,10 +12,10 @@ api_block_anonymous_users();
$eval = Evaluation :: load($_GET['selecteval']);
if ($eval[0]->get_category_id() < 0) {
// if category id is negative, then the evaluation's origin is a link
$link = LinkFactory :: get_evaluation_link($eval[0]->get_id());
$currentcat = Category :: load($link->get_category_id());
$link = LinkFactory::get_evaluation_link($eval[0]->get_id());
$currentcat = Category::load($link->get_category_id());
} else {
$currentcat = Category :: load($eval[0]->get_category_id());
$currentcat = Category::load($eval[0]->get_category_id());
}
$interbreadcrumb[] = array(
@ -25,11 +25,11 @@ $interbreadcrumb[] = array(
if (api_is_allowed_to_edit()) {
$interbreadcrumb[] = array(
'url' => 'gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(),
'url' => 'gradebook_view_result.php?selecteval='.intval($_GET['selecteval']).'&'.api_get_cidreq(),
'name' => get_lang('ViewResult')
);
}
$displayscore = ScoreDisplay :: instance();
$displayscore = ScoreDisplay::instance();
Display::display_header(get_lang('EvaluationStatistics'));
DisplayGradebook::display_header_result(

@ -1,6 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* List of achieved certificates by the current user
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>

Loading…
Cancel
Save