Graphs resize based on data

Graphs now resize based on the amount of data (at least somewhat intelligently).

Also, MySQL queries have been rewritten to more accurately query the data intended, separating the ORDER BY and GROUP BY clauses into separate subqueries.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Lightbox Restructuring

Added Lightbox2 to page-generator.inc.php for image fancification. Added in some styling to support image placement blocks in page-generator pages.

Restructed the page-generator to allow sections to be built.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Department Summary

Added a stub as a landing page for Mike, Lynette and Nat.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Reusable Calculations

Pulled calculations that need to be reused in summaries out of graphs into common.inc.php, so that the same calculations are used for both numeric and visual summaries. It means a few more MySQL queries and calculations overall, but they're fast and we'll live with it, if it gets us consistent (and hopefully accurate) results.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Reorganized Course Summary

Reorganized course-summary.php using the new createPageSection() function and the page-generator.inc.php updates.

Improved documentation on a f ew sections. Still definitely a work in progress.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>