if (!isset($_GET['clsid'])) { redirect_to("index.php"); } if (isset($_GET['rmvclt'])) { Client::rmvclt($_GET['rmvclt']); } $classexst = Classes::find_by_id($_GET['clsid']); if (!$classexst) { redirect_to("index.php"); } //Adding a session to the db if (isset($_POST['p_firstname'])) { Client::addclienttodatabase($_POST['clsid'], $_POST['p_firstname'], $_POST['p_lastname'], $_POST['k_firstname'], $_POST['k_lastname'], $_POST['phone'], $_POST['email'], $_POST['coupon']); } if (isset($_POST['c_id'])) { Client::updateclient($_POST['c_id'], $_POST['u_p_firstname'], $_POST['u_p_lastname'], $_POST['u_k_firstname'], $_POST['u_k_lastname'], $_POST['u_phone'], $_POST['u_email'], $_POST['u_coupon']); } //finding the info on the class session $currentclass = Classes::find_by_id($_GET['clsid']); $loggedinuser = User::showmeuser($_SESSION['user_id']); include '../includes/pagestructure.php'; include '../includes/smartbanner.php'; include '../includes/smartnav.php'; adminhead('Welcome to Urban Illustration'); admintopbar(); ?> <div id="content">