* @author Jorge Frisancho Jibaja - select between dates * */ /** * Code */ // name of the language file that needs to be included $language_file = array ('registration', 'index', 'tracking'); require_once '../inc/global.inc.php'; // including additional libraries require_once 'myspace.lib.php'; // the section (for the tabs) $this_section = SECTION_TRACKING; /* MAIN */ $user_id = intval($_REQUEST['student']); $session_id = intval($_GET['id_session']); $type = Security::remove_XSS($_REQUEST['type']); $course_code = Security::remove_XSS($_REQUEST['course']); $courseInfo = api_get_course_info($course_code); $courseId = $courseInfo['real_id']; $connections = MySpace::get_connections_to_course($user_id, $courseId, $session_id); $quote_simple = "'"; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; //Changes END $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('AccessDetails')); Display :: display_header(''); $main_user_info = api_get_user_info($user_id); $result_to_print = ''; $sql_result = MySpace::get_connections_to_course($user_id, $courseId); $result_to_print = convert_to_string($sql_result); echo Display::page_header(get_lang('DetailsStudentInCourse')); echo Display::page_subheader(get_lang('User').': '.api_get_person_name($main_user_info['firstName'], $main_user_info['lastName']).' - '.get_lang('Course').': '.$course_code); $form = new FormValidator('myform', 'post', "javascript:get(document.getElementById('myform'));", null, array('id' => 'myform')); $form->addElement('text', 'from', get_lang('From'), array('id' => 'date_from')); $form->addElement('text', 'to', get_lang('Until'), array('id' => 'date_to')); $form->addElement('style_submit_button', 'reset', get_lang('Reset'), array('onclick' => "javascript:window.location='access_details.php?course=".$courseId."&student=".$user_id."&cidReq=".$course_code."';")); $form->display(); ?>