Note: While you have a little more time to work on this assignment, there will be additional assignments at the same time. Use your time wisely, and don't wait until the last minute to work on this.
Build a web front-end and back-end for the student-course database we
started in class. The main index.html
should contain the
items below that users click on to get information.
Each feature in your website should generate a nicely formatted table. Clicking on the heading for any column should allow the table to be sorted in ascending order on that column. Clicking on the same column again should cause the table to sort in descending order on that column. Every subsequent click should toggle the sorting order.
Your web front-end should make AJAX requests to PHP server code to display the required tables. While working on the front-end, you can create stubs for the server back-end. For example, you could create individual JSON files with the information to fill out the tables. Once your front-end is developed, you can then write the server code to replace the stubs. This is a fairly common practice when you are building larger sites, so it's worthwhile gaining some experience developing in this manner.
createdb.php
file linked from your
index.html
page that is capable of creating the needed
tables and inserting the data. A database named hw4
will
be provided for you on the grading server. Note that the purpose of
this script is just to populate the database; it's
sole purpose is for getting your data to the grading server.
In addition to the files required by the parts above (at least 1 HTML file and 2 PHP files [you definitely want more than that for a full grade!] and supporting resources), submit a text file named references.txt. In this file, provide a citation for each resource you used (excluding class notes, and assigned readings) to complete the assignment. For example, if you found a Stack Overflow answer helpful, provide a link to it. Additionally, provide a brief description of how the resource helped you. Your file should look something akin to:
uvaid: mst3k
http://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp
Helped me to use a glyphicon correctly.
Also provide a readme.txt file that includes your UVA computing ID and directions identifying which files are associated with each part of the assignment. Additionally respond to the following prompts:
Your readme should have a format similar to:
uvaid: mst3k
Homework 4
index.html -> this is the main User Interface
server.php -> this is the main php file for the back-end
Additional resources include: view.php, model.php, ...
Answers to questions
Make a zip archive named with your UVA computing ID and "hw4" that
includes all of the required files (zip -r [zipfile.zip]
[directory_to_zip]
). Upload this to the submission
website.
Remember, you may upload your submission multiple times. Try this before the deadline so that there is time to recover from any technical difficulties.