/*
Generic header elements for a maxwell course
courseHeader function takes the following inputs:
-- window title
-- class name
-- 'up' page
It executes the following:
- makes the given title the window title (on the browser window)
- includes the maxwell-screen.css style file for screen media
- includes the maxwell-print.css style file for print media (if it exists)
- builds the navigation bar with the indicated page class and 'up' page
*/
function courseSimpleHeader($title, $class, $up_page) {
echo "\n
';
}
function courseHeader($title, $class, $course_directory) {
// put in a pretty generic header
echo "\n\n\n";
echo $title."\n";
// echo ''."\n";
// echo ''."\n";
echo ''."\n";
echo "\n\n\n\n";
echo "\n";
echo "\n";
// course title image
echo '
';
echo '';
// course title
echo '
'."\n";
echo $title."\n";
echo '
'."\n\n";
echo '
';
// put a bar across the top
echo '
';
echo '';
echo '
';
// put in the course navigation area
echo '
';
?>
// Ideally, have one for each category
// C - course information (maps to index.php)
// S - syllabus (maps to syllabus.php)
// L - lab exercises (maps to lab.php)
// A - assignments (maps to assignment.php)
// H - homework (maps to homework.php)
// I - lab exercises (maps to index.php)
if( strstr($class, 'Course') || strstr($class, 'Syllabus') ) {
// grab the next string
$words = explode(' ', $class);
// parse the substring
if( strstr($words[1], 'C') ) {
?>