<?php require_once 'private/LMS_Engine.php'; $engine = new LMS_Engine(); if (isset($_POST['add_new_cd_dvd'])) { $state = $engine->add_new_cds($_POST['title'], $_POST['subject'], $_POST['cd_number'], $_POST['copy_number'], $_POST['publisher'], $_POST['cat_id'], $_POST['call_number']); } $page_num = null; $from = "All"; $hint = ""; $cat_id = 1; if (!isset($_GET['page_num'])) { $page_num = 0; if (isset($_POST['upload_cds'])) { $from = $_POST['from']; $hint = $_POST['hint']; $cat_id = $_POST['cat_id']; } } else { $page_num = $_GET['page_num']; $from = $_GET['from']; $hint = $_GET['hint']; $cat_id = $_GET['cat_id']; } ?> <div class="container" id="main"> <div class="row" id="contact"> <hr> <div class="page-header"> <h3>Manage Library CD-DVDs </h3> </div>