<?php require_once 'header.php'; $controller = new ControllerPropertyType(); $propertytypes = $controller->getPropertyTypes(); if (!empty($_SERVER['QUERY_STRING'])) { $extras = new Extras(); $propertytype_id = $extras->decryptQuery1(KEY_SALT, $_SERVER['QUERY_STRING']); if ($propertytype_id != null) { $controller->deletePropertyType($propertytype_id, 1); echo "<script type='text/javascript'>location.href='propertytypes.php';</script>"; } else { echo "<script type='text/javascript'>location.href='403.php';</script>"; } } $search_criteria = ""; if (isset($_POST['button_search'])) { $search_criteria = trim(strip_tags($_POST['search'])); $propertytypes = $controller->getPropertyTypesBySearching($search_criteria); } ?> <!DOCTYPE html> <html lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content="">