header("Location: /staff/?ItemDeleted=y"); exit; } include "../tmpl/header.php"; $staff = new Staff(); // Load DB data into object $staff->setStaffid($_GET['id']); $staff->loadStaff(); $all = $staff->getAll(); if (isset($all)) { ?> <div class="panel panel-info"> <div class="panel-heading"> <strong>Delete <?php echo $staff->getFname() . ' ' . $staff->getSname(); ?> ?</strong> </div> <div class="panel-body"> <dl class="dl-horizontal"> <dt>First Name</dt> <dd><?php echo $staff->getFname(); ?> </dd> </dl> <dl class="dl-horizontal">
if (isset($all)) { ?> <div class="panel panel-info"> <div class="panel-heading"> <strong>Viewing <?php echo $staff->getStaffid(); ?> </strong> </div> <div class="panel-body"> <dl class="dl-horizontal"> <dt>First Name</dt> <dd><?php echo $staff->getFname(); ?> </dd> </dl> <dl class="dl-horizontal"> <dt>Last Name</dt> <dd><?php echo $staff->getSname(); ?> </dd> </dl> <dl class="dl-horizontal">