summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/page.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [exams] Add check and warning for colliding examsSimon Rettberg2026-01-151-2/+50
| | | | | If two (or more) exams share at least one location and their start/end times overlap, display a warning to the user.
* Add tests using PHPUnitSimon Rettberg2025-12-121-7/+8
| | | | | | | Tests generated by Junie AI. Might not have the best possible quality but at least we got something, and if it turns out to be complete rubbish, we can just throw it out again without any issues, as this is independent of the actual code base.
* [exams] Remove db error checks, add POST redirect, response codeSimon Rettberg2025-08-071-19/+17Star
| | | | | | | | - Error checks for DB queries are pointless; the DB functions call an error handler by default and do not return - Add a redirect if any of the handlers in doPreprocess return and we're in a POST request as a safety measure - Fix virtual HTTP response code when editing lecture
* A few more HTTP code audit log fixupsSimon Rettberg2025-08-041-1/+1
|
* Implicitly nullable types are deprecated in PHP 8.3, make explicitSimon Rettberg2025-08-011-1/+1
|
* Add audit logging of POST actionsSimon Rettberg2025-05-221-5/+8
|
* [exams] Tweak exam list, add note on top about running examsSimon Rettberg2025-02-201-21/+12Star
|
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-141-7/+13
|
* [inc/Util] Add types, move error printing functions to their own classSimon Rettberg2022-05-021-2/+2
|
* Moderize Database handlingSimon Rettberg2021-05-111-4/+4
| | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries
* [exams] Make warnings for locations work with treesSimon Rettberg2020-08-061-5/+13
|
* [exams] Relax date sanity range when saving examSimon Rettberg2020-08-041-1/+1
| | | | It might be desired to set a date in the past for archival reasons
* [exams] More sanity checks regarding date/time and locationsSimon Rettberg2020-07-221-1/+1
| | | | | | | | | | Implausible start/end time, or mismatch between defined exam interval and interval of selected lecture will now be reported. Also, if the list of selected locations contains a location that is not also assiged to the selected lecture, a warning will be displayed. This only triggers if the lecture is restricted to certain locations (exclusive mode, aka "islocationprivate" column.
* [exams] Collapse old exams (-90 days)Simon Rettberg2020-07-201-2/+16
|
* [exams] Fix creating global examSimon Rettberg2019-07-031-1/+4
|
* [exams] Shortcut for permcheckSimon Rettberg2019-04-011-0/+2
|
* [exams] Fix always-disabled "add" button for existing lecturesSimon Rettberg2018-04-101-1/+1
|
* Permissions: Consistency: Make all pages require at least one permission to ↵Simon Rettberg2018-04-091-8/+1Star
| | | | | | be accessible Closes #3340
* [exams] Simplify permissions, add some error messagesSimon Rettberg2018-02-121-161/+136Star
|
* [exams] reworked permission system from "click and you get error" to "button ↵Christian Hofmaier2018-01-021-77/+226
| | | | is disabled due to lack of permission". you now can only add/delete/edit based on locations you have permission for. you need permission for all locations of an exam to edit/delete it, but you can see it if you have at least permission for one of the locations.
* Fix A LOT of type problems, logic flaws, uninitialized variables etc.Simon Rettberg2017-12-161-3/+3
| | | | | Most of them were found by phpstorm, so I put in some time and went through the list, fixing quite a bunch of them.
* [exams] small design changesUdo Walter2017-09-121-1/+1
|
* [exams] fixed inconsistencies + made tables sortableUdo Walter2017-09-111-1/+1
|
* [exams] Initialize class members of pageSimon Rettberg2017-05-021-3/+3
|
* [exams] Add ORDER BY to queries generating UI content, change wordingSimon Rettberg2017-04-281-2/+4
| | | | This fixes #3123
* [exams] Extend "upcoming lectures" from 5 to 30 days; collapse list if > 5Simon Rettberg2017-03-301-2/+7
| | | | Closes #3099
* [exams] Implement autostart checkboxSimon Rettberg2016-09-061-34/+39
|
* [exams] Add autostart lecture featureSimon Rettberg2016-07-281-10/+22
|
* [exams] Show list of upcomfing exam lectures; allow adding exam period based ↵Simon Rettberg2016-07-121-50/+123
| | | | on upcoming exam
* [exams] Hide 'show' button for past exams; show axis caption on top and ↵Simon Rettberg2016-07-071-2/+3
| | | | bottom if we have more than 5 locations
* [exams] Add button to zoom to selected exam period; autofill end day; show ↵Simon Rettberg2016-07-061-24/+45
| | | | description of exam periods
* Merge branch 'modularization' of dnbd3:openslx-ng/slx-admin into modularizationSimon Rettberg2016-06-241-1/+8
|\
| * display locationid=0 as locationid=*Christian Klinger2016-06-241-1/+8
| |
* | [exams] Indent location by tree depth; fix ordering of locations in vis.jsSimon Rettberg2016-06-241-7/+9
|/
* [exams] Move to content group; fix timepicker; mark old examsSimon Rettberg2016-06-241-4/+10
|
* [exams] Apply formattingSimon Rettberg2016-06-241-274/+277
|
* [exams] Unify add/edit template; check date ranges; other small fixesSimon Rettberg2016-06-241-0/+21
|
* [exams] Unify add/edit templates, add error messages, limit zoom range some moreSimon Rettberg2016-06-241-70/+84
|
* [exams] Fix vis.js when an exam is active in more than one location (id ↵Simon Rettberg2016-06-231-8/+8
| | | | collision), complete install hook (missing table), limit max. zoom level for vis.js
* "Edit" for exam periods, UTC timestamps.Christian Klinger2016-06-171-20/+95
|
* Multiple locations per exam.Christian Klinger2016-06-151-21/+24
|
* First version of a visualization.Christian Klinger2016-06-151-12/+103
|
* Added date and time pickers.Christian Klinger2016-06-151-2/+2
|
* first rough version of exams-module.Christian Klinger2016-06-101-0/+76