| @@ 778-782 (lines=5) @@ | ||
| 775 | $form->addText('date_diff', get_lang('Days'), true); |
|
| 776 | $form->addRule('date_diff', 'InvalidNumber', 'numeric'); |
|
| 777 | $form->addButtonSearch(get_lang('Search'), 'submit'); |
|
| 778 | if (!isset($_GET['date_diff'])) { |
|
| 779 | $defaults['date_diff'] = 60; |
|
| 780 | } else { |
|
| 781 | $defaults['date_diff'] = Security::remove_XSS($_GET['date_diff']); |
|
| 782 | } |
|
| 783 | $form->setDefaults($defaults); |
|
| 784 | $form->display(); |
|
| 785 | $values = $form->exportValues(); |
|
| @@ 1022-1024 (lines=3) @@ | ||
| 1019 | } |
|
| 1020 | ||
| 1021 | $course_url = ''; |
|
| 1022 | if (isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) { |
|
| 1023 | $course_url = '&cidReq='.Security::remove_XSS($_GET['cidReq']); |
|
| 1024 | } |
|
| 1025 | ||
| 1026 | foreach ($user_list as $uid) { |
|
| 1027 | $user_info = api_get_user_info($uid, $checkIfUserOnline = true); |
|