Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

KiloSierraCharlie/timetable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timetable

This system was written and configured for my own liking. A version is available to see on my website.

Requirements

  • PHP v4.1 or higher.

  • MySQLi Extension.

  • A MySQL database.

  • Correctly formatted JSON (Javascript-Object Notation) strings (see below) for:

  • The timetable itself.

  • The times that the timetable operates with.

JSON Strings

JSON Strings should follow the format below for the different values.

  • Timetables

It's worth noting that the teacher and location fields are not a requirement, although lesson is

[
    [
        "lesson": "CS",
        "teacher": "IW", 
        "location": "19",
    ],
    etc, etc
]
  • Times

Times here should be a simple format as so. For the amount of events (lessons) in a period of time, a time should be defined also. For example, six scheduled in a day, even if one of them is not filled as a lesson (free period), should be added in

[
    [
        "1000",
        "1800"
    ],
    etc, etc
]