Prohibiting certain sex offenders from entering onto school property or attending school activities, prohibiting courts from assigning a defendant to work release if the defendant is required to register as a sex offender for certain crimes and prohibiting the secretary of corrections from granting an inmate leave from confinement except for specified purposes if theinmate is required to register as a sex offender for certain crimes or is serving a sentence for certain crimes that require registration as a sex offender.