"../user/user.php", "name"=> get_lang('Users')); $nameTools = get_lang('ToolName'); $htmlHeadXtra[] = " "; $TABLECOURSUSER = Database::get_main_table(TABLE_MAIN_COURSE_USER); $TABLECOURSE_GROUPSUSER = Database::get_course_table(TABLE_GROUP_USER); $TABLEUSER = Database::get_main_table(TABLE_MAIN_USER); $TABLETRACK_ACCESS = Database::get_statistic_table(TABLE_STATISTIC_TRACK_E_ACCESS); Display::display_header($nameTools, "Tracking"); include(api_get_path(LIBRARY_PATH)."statsUtils.lib.inc.php"); // the variables for the days and the months // Defining the shorts for the days $DaysShort = array (get_lang("SundayShort"), get_lang("MondayShort"), get_lang("TuesdayShort"), get_lang("WednesdayShort"), get_lang("ThursdayShort"), get_lang("FridayShort"), get_lang("SaturdayShort")); // Defining the days of the week to allow translation of the days $DaysLong = array (get_lang("SundayLong"), get_lang("MondayLong"), get_lang("TuesdayLong"), get_lang("WednesdayLong"), get_lang("ThursdayLong"), get_lang("FridayLong"), get_lang("SaturdayLong")); // Defining the months of the year to allow translation of the months $MonthsLong = array (get_lang("JanuaryLong"), get_lang("FebruaryLong"), get_lang("MarchLong"), get_lang("AprilLong"), get_lang("MayLong"), get_lang("JuneLong"), get_lang("JulyLong"), get_lang("AugustLong"), get_lang("SeptemberLong"), get_lang("OctoberLong"), get_lang("NovemberLong"), get_lang("DecemberLong")); // Defining the months of the year to allow translation of the months $MonthsShort = array (get_lang("JanuaryShort"), get_lang("FebruaryShort"), get_lang("MarchShort"), get_lang("AprilShort"), get_lang("MayShort"), get_lang("JuneShort"), get_lang("JulyShort"), get_lang("AugustShort"), get_lang("SeptemberShort"), get_lang("OctoberShort"), get_lang("NovemberShort"), get_lang("DecemberShort")); $is_allowedToTrack = $is_groupTutor; // allowed to track only user of one group $is_allowedToTrackEverybodyInCourse = $is_courseAdmin; // allowed to track all student in course ?>
";
echo $informationsAbout." : "; echo "
| ";
/******* MENU ********/
echo "||||||||
[".get_lang('Back')."] "; echo " || [".get_lang('PeriodWeek')."] [".get_lang('PeriodMonth')."] || "; switch($period) { case "week" : // previous and next date must be evaluated $previousReqDate = $reqdate - 7*86400; $nextReqDate = $reqdate + 7*86400; echo " [".get_lang('PreviousWeek')."] [".get_lang('NextWeek')."] "; break; default : $period = "month"; case "month" : // previous and next date must be evaluated // 30 days should be a good approximation $previousReqDate = mktime(1,1,1,date("m",$reqdate)-1,1,date("Y",$reqdate)); $nextReqDate = mktime(1,1,1,date("m",$reqdate)+1,1,date("Y",$reqdate)); echo " [".get_lang('PreviousMonth')."] [".get_lang('NextMonth')."] "; break; } echo " | ||||||||
";
$results = getManyResults1Col($sql);
/*** display of the displayed period ***/
echo "
|