<?php require_once "../includes/layout/session.php"; require_once "../includes/layout/db_connection.php"; require_once "../includes/layout/functions.php"; $layout_context = "admin"; include "../includes/layout/header.php"; find_selected_pages(); ?> <div id="main"> <div id="navigation"> <br> <a href="admin.php">« Main Menu</a> <br/> <?php echo Navigation($current_subject, $current_page); ?> <br/> <a href="new_subject.php">+ Add a subject </a> </div> <div id="page"> <?php echo message(); ?> <?php if ($current_subject) { ?> <h2> Manage Subject</h2> <?php echo "Menu Name" . ": " . htmlentities($current_subject["menu_name"]);
<?php require_once "../includes/layout/session.php"; require_once "../includes/layout/db_connection.php"; require_once "../includes/layout/functions.php"; $layout_context = "public"; include "../includes/layout/header.php"; find_selected_pages(true); ?> <div id="main"> <div id="navigation"> <?php echo public_Navigation($current_subject, $current_page); ?> </div> <div id="page"> <?php if ($current_page) { ?> <h2><?php echo htmlentities($current_page["menu_name"]); ?> </h2> <?php echo nl2br(htmlentities($current_page["content"])); ?> <br/> <br/> <?php