// include function files for this application require_once("book_sc_fns.php"); session_start(); do_html_header("Adding a course"); if (check_admin_user()) { // if (filled_out($HTTP_POST_VARS)) // { // reg_gbl 4112 $digraph = $_POST['digraph']; $crsenr = $_POST['crsenr']; $title = $_POST['title']; $catid = $_POST['catid']; $regOffered = $_POST['regOffered']; $department = $_POST['department']; $level = $_POST['level']; $targetAudience = $_POST['targetAudience']; $description = $_POST['description']; $keyConcepts = $_POST['keyConcepts']; $url = $_POST['url']; $dateMod = $_POST['dateMod']; $nextOffered = $_POST['nextOffered']; $instructor = $_POST['instructor']; $package = $_POST['package']; if(insert_book($digraph, $crsenr, $title, $catid, $regOffered, $department, $level, $targetAudience, $description, $keyConcepts, $url, $dateMod, $nextOffered, $instructor, $package)) echo "
Course $digraph$crsenr was added to the database.
"; else echo "Course $digraph$crsenr could not be added to the database.
"; // } // else // echo "You have not filled out the form. Please try again."; do_html_url("admin.php", "Back to administration menu"); } else echo "You are not authorised to view this page."; do_html_footer(); ?>