This repository provides a skeleton for a website that allows Stanford students to see their grades. You create a Google Doc, which is then linked to Stanford Student Center. The sharing settings have to be "Anyone with the link", and you have to enable "Publish to the web".
Grades can be entered by teaching staff in the Google Doc, and changes will be reflected on the web site.
(Note: if Google does not republish automatically each time a change is made, you also have to republish manually.)
- Create a new Google Spreadsheet, and import data from ``sample/sample.csv''. This has all the column headers that index.php will be looking for (and more).
- Set the sharing settings to be "Anyone with the link", and enable "Publish to the web". Note the document key that you later have to enter in ``constants.php''.
- Edit ``constants.php'' to reflect the class you want to use student center for.
- Upload the website (i.e. the contents of this folder) to the cgi-bin folder on Corn (note that .htaccess enables WebAuth).
- You have to manually update index.php to parse whatever fields you update in the document (e.g. grades, questions, etc.).