SDS:Rollover admin.php

From SMUSwiki
Revision as of 20:25, 2 September 2008 by Richard.curry (talk | contribs)
Jump to navigation Jump to search

This page allows the administrator to rollover certain portions of the SDS database to the next school year for ease of data setup.

Presently, this page allows for the rollover of mark collection periods (MCPs) and subjects.

The page first tests to see what month it is, so that it can decide which school year it should work with. If the month is between August and December, the page operates on the current school year. If the month is between January and July, the page operates on the following school year.

Next, the page checks to see if any mark collection periods or subjects already exist for the relevant year. If there are any, then the rollover is assumed to have taken place already and is not allowed to repeat. If there are no values for the relevant year, then a link shows which may be clicked, performing the relevant rollover update.

In future, it will be expanded to also handle rollover of other yearly SDS data, like period.

Student rollover is now handled on a per person basis in edit_person.