V25 enrol dateVisit

This commit is contained in:
Fred Tempez 2023-10-07 18:03:13 +02:00
parent 4bfadddab2
commit d76b0295df
3 changed files with 5 additions and 5 deletions

View File

@ -474,7 +474,7 @@ class core extends common
in_array($this->getUrl(0), array_keys($this->getData(['page']))) in_array($this->getUrl(0), array_keys($this->getData(['page'])))
) { ) {
$this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastPageId', $this->getUrl(0)]); $this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastPageId', $this->getUrl(0)]);
$this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastDateVisited', time()]); $this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'dateVisit', time()]);
} }
// Journalisation // Journalisation

View File

@ -50,7 +50,7 @@ class common
const ACCESS_TIMER = 1800; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '1.0.24'; const ZWII_VERSION = '1.0.25';
// URL autoupdate // URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/'; const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/';

View File

@ -368,10 +368,10 @@ class course extends common
$userId, $userId,
$this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']), $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']),
$userValue['lastPageId'], $userValue['lastPageId'],
helper::dateUTF8('%d %B %Y - %H:%M', $userValue['lastDateVisited']), helper::dateUTF8('%d %B %Y - %H:%M', $userValue['dateVisit']),
template::button('courseDelete' . $userId, [ template::button('courseDelete' . $userId, [
'class' => 'categoryDelete buttonRed', 'class' => 'categoryDelete buttonRed',
'href' => helper::baseUrl() . 'course/categoryDelete/' . $userId, 'href' => helper::baseUrl() . 'course/userDelete/' . $userId,
'value' => template::ico('trash'), 'value' => template::ico('trash'),
'help' => 'Supprimer' 'help' => 'Supprimer'
]) ])
@ -600,7 +600,7 @@ class course extends common
$userId, $userId,
[ [
'lastPageId' => '', 'lastPageId' => '',
'lastVisit' => 0 'dateVisit' => 0
] ]
]); ]);
} }