This document contains code for a school management system login form and main menu form.
The login form takes a user ID and password and checks it against teacher and administrator tables to authenticate the user. If authenticated, it sets person type and ID variables and opens the appropriate main menu form.
The main menu form displays options depending on the person type. It allows navigating to forms for courses, qualifications, marks, teachers, students, administrators and changing password. Clicking an option hides the menu and shows the selected form, then re-displays the menu when the form closes.