Beispiel #1
0
<?php

include_once "../config.php";
include_once ROOT_PATH . "system/models/enquiry.class.php";
include_once ROOT_PATH . "system/repository/enquiry_repository.class.php";
$enquiry_repository = new EnquiryRepository();
if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == 'delete') {
    $enquiry_repository->delete($_GET['id']);
    header("location:index.php");
}
?>

<?php 
include_once "../header.php";
?>

<?php 
if (isset($_GET['success']) && $_GET['success'] == "true") {
    ?>
<div class="alert alert-success alert-dismissible fade in" role="alert">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
      <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
</div>
<?php 
}
?>

<div class="pull-right">
	<a href="add.php" class="btn btn-primary">Add Enquiry</a>
</div>