".get_lang('LoginsExplaination')." ";
$results = getManyResults1Col($sql);
echo "
";
if (is_array($results))
{
while ( list($key,$value) = each($results))
{
$timestamp = strtotime($value);
//$beautifulDate = $langDay_of_weekNames['long'][date("w" , $timestamp)].date(" d " , $timestamp).$langMonthNames['long'][date("n", $timestamp)-1].date(" Y" , $timestamp);
//$beautifulHour = date("H : i" , $timestamp);
$beautifulDate = format_locale_date($dateTimeFormatLong,$timestamp);
echo "
".$beautifulDate."
|
";
if(!isset($previousDate))
{
$sql = "SELECT NOW()";
$previousDate = getOneResult($sql);
}
$sql = "SELECT `access_tool`, count(access_tool), `access_cours_code`
FROM `".$TABLETRACK_ACCESS."`
WHERE `access_user_id` = '".$_user['user_id']."'".
//AND access_tool IS NOT NULL
"AND access_date > '".$value."'
AND access_date < '".$previousDate."'
GROUP BY access_tool, access_cours_code
ORDER BY access_cours_code ASC";
$results2 = getManyResults3Col($sql);
if (is_array($results2))
{
echo "
";
$previousCourse = "???";
for($j = 0 ; $j < count($results2) ; $j++)
{
// if course is different, write the name of the course
if($results2[$j][2] != $previousCourse)
{
echo "
".$results2[$j][2]."
|
";
}
// if count != de 0 then display toolname et number of visits, else its a course visit
if( $results2[$j][1] != 0 )
{
echo "";
echo "".get_lang(ucfirst($results2[$j][0]))." | ";
echo "".$results2[$j][1]." ".get_lang('Visits')." | ";
echo " ";
}
$previousCourse = $results2[$j][2];
}
echo " ";
echo " | ";
}
$previousDate = $value;
}
}
else
{
echo "";
echo "".get_lang('NoResult')." | ";
echo" ";
}
echo " ";
echo " |
";
}
else
{
$tempView[0] = '1';
echo "