chamilo/chamilo-lms

View on GitHub
public/main/session/session_course_list.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "session_name" is not in valid camel caps format
Open

if (!list($session_name) = Database::fetch_row($result)) {

Variable "tbl_session_rel_course" is not in valid camel caps format
Open

        FROM $tbl_session_rel_course, $tbl_course c

Variable "tbl_session_rel_course_rel_user" is not in valid camel caps format
Open

$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);

Variable "nbr_affected_rows" is not in valid camel caps format
Open

        $nbr_affected_rows = Database::affected_rows($result);

Variable "id_session" is not in valid camel caps format
Open

$session = api_get_session_entity($id_session);

Variable "nbr_affected_rows" is not in valid camel caps format
Open

        Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'");

Variable "tbl_course" is not in valid camel caps format
Open

        FROM $tbl_session_rel_course, $tbl_course c

Variable "id_session" is not in valid camel caps format
Open

<form method="post" action="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&sort=<?php echo $sort; ?>" onsubmit="javascript:if(!confirm('<?php echo get_lang('Please confirm your choice'); ?>')) return false;">

Variable "id_session" is not in valid camel caps format
Open

            <a href="'.api_get_self().'?id_session='.$id_session.'&sort='.$sort.'&action=delete&idChecked[]='.$enreg['id'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang("Please confirm your choice"), ENT_QUOTES)).'\')) return false;">'.

Variable "id_session" is not in valid camel caps format
Open

        $result = Database::query("DELETE FROM $tbl_session_rel_course WHERE session_id='$id_session' AND c_id IN($idChecked)");

Variable "tbl_session_rel_course_rel_user" is not in valid camel caps format
Open

        Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id='$id_session' AND c_id IN($idChecked)");

Variable "id_session" is not in valid camel caps format
Open

        Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'");

Variable "id_session" is not in valid camel caps format
Open

$result = Database::query("SELECT name FROM $tbl_session WHERE id='$id_session'");

Variable "id_session" is not in valid camel caps format
Open

        WHERE c_id = c.id AND session_id='$id_session'

Variable "tbl_course" is not in valid camel caps format
Open

$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

Variable "id_session" is not in valid camel caps format
Open

if (empty($id_session)) {

Variable "tool_name" is not in valid camel caps format
Open

$tool_name = api_htmlentities($session_name, ENT_QUOTES).' : '.get_lang('Courses in this session');

Variable "tool_name" is not in valid camel caps format
Open

Display::display_header($tool_name);

Variable "id_session" is not in valid camel caps format
Open

$id_session = isset($_GET['id_session']) ? (int) $_GET['id_session'] : 0;

Variable "my_temp" is not in valid camel caps format
Open

        $idChecked = $my_temp;

Variable "id_session" is not in valid camel caps format
Open

    header('Location: '.api_get_self().'?id_session='.$id_session.'&sort='.$sort);

Variable "id_session" is not in valid camel caps format
Open

            <a href="session_course_edit.php?id_session='.$id_session.'&page=session_course_list.php&course_code='.$enreg['code'].'">'.

Variable "id_session" is not in valid camel caps format
Open

        Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id='$id_session' AND c_id IN($idChecked)");

Variable "Courses" is not in valid camel caps format
Open

foreach ($Courses as $key => $enreg) {

Variable "tbl_session" is not in valid camel caps format
Open

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

Variable "my_temp" is not in valid camel caps format
Open

            $my_temp[] = Database::escape_string($id); // forcing the escape_string

Variable "id_session" is not in valid camel caps format
Open

    $course[] = '<a href="'.api_get_path(WEB_COURSE_PATH).$enreg['code'].'/?id_session='.$id_session.'">'.

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_PLATFORM_ADMIN;

Variable "tbl_session_rel_course" is not in valid camel caps format
Open

$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);

Variable "tbl_session" is not in valid camel caps format
Open

$result = Database::query("SELECT name FROM $tbl_session WHERE id='$id_session'");

Variable "tbl_session_rel_course" is not in valid camel caps format
Open

        $result = Database::query("DELETE FROM $tbl_session_rel_course WHERE session_id='$id_session' AND c_id IN($idChecked)");

Variable "tool_name" is not in valid camel caps format
Open

echo Display::page_header($tool_name);

Variable "id_session" is not in valid camel caps format
Open

    $course[] = '<a href="session_course_user_list.php?id_session='.$id_session.'&course_code='.$enreg['code'].'">'.$enreg['nbr_users'].' '.get_lang('Users').'</a>';

Variable "tbl_session" is not in valid camel caps format
Open

        Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'");

Variable "Courses" is not in valid camel caps format
Open

$Courses = Database::store_result($result);

Variable "my_temp" is not in valid camel caps format
Open

        $my_temp = [];

Variable "session_name" is not in valid camel caps format
Open

$tool_name = api_htmlentities($session_name, ENT_QUOTES).' : '.get_lang('Courses in this session');

There are no issues that match your filters.

Category
Status