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)); $_SESSION['subNav'] = NULL; $body->appendChild(generateSelectedMenuBar($doc)); /* * this needs a security rewrite */ if (isset($_GET['id'])) { $id = cleanInput($_GET['id']); if (is_numeric($id)) { $id = (int) $id; $body->appendChild(generateTransactionDetail($doc, $id)); } } if (isset($_SESSION['MemberID'])) $body->appendChild(generateTransactionTable($doc, $_SESSION['MemberID'])); $body->appendChild(generateFooter($doc)); outputDoc($doc); } ?>