appendChild($root); $root->appendChild(generateHead($doc)); $body = $doc->createElement('body'); $root->appendChild($body); $body->appendChild(generateMastHead($doc, $baseDir)); //$body->appendChild($doc->createElement('hr')); //$body->appendChild(generateMemberNavigationBar($doc)); $body->appendChild(generateSelectedMenuBar($doc)); /* if (isset($_SESSION['FirstName']) && isset($_SESSION['LastName'])) { if ($_SESSION['sub_nav'] === "Admin") $body->appendChild(generateAdminNavigationBar($doc)); else $body->appendChild(generateTrainingTable($doc, 'userCourses.php'); } */ $myClassesDiv = $doc->createElement('div'); $myClassesDiv->setAttribute('id', 'ClassTableDiv'); $tableTitle = $doc->createElement('H3'); $tableTitle->appendChild($doc->createTextNode("Completed Courses")); $myClassesDiv->appendChild($tableTitle); $myClassesDiv->appendChild(populateUserTrainingTable($doc)); $body->appendChild($myClassesDiv); $myClassesDiv = $doc->createElement('div'); $myClassesDiv->setAttribute('id', 'ClassTableDiv'); $tableTitle = $doc->createElement('H3'); $tableTitle->appendChild($doc->createTextNode("Current Course Schedule")); $myClassesDiv->appendChild($tableTitle); $myClassesDiv->appendChild(generateTrainingTable($doc, 'userCourses.php')); $body->appendChild($myClassesDiv); $body->appendChild(generateFooter($doc)); if ($prettyPretty) $doc->formatOutput = true; echo $doc->saveXML(); } ?>