$error = true; } } elseif (isset($_POST['del'])) { if (!empty($_POST['id']) and is_numeric($_POST['id'])) { include_once 'class/delete_log.php'; $del = new delete_log($_POST['id']); $del->req_delete(); $del_ok = true; } else { $error = true; } } // Infos sur un logement en fonction d'un site if (!empty($_GET['num']) and is_numeric($_GET['num']) and !empty($_GET['site']) and is_numeric($_GET['site'])) { $info = new info_sl($_GET['site'], $_GET['num']); $info->req_data(); $sl = $info->get_data(); } // Obtenir les infos d'un logement en fonction de son id if (!empty($_GET['num']) and is_numeric($_GET['num'])) { include_once 'class/info_logement.php'; $info = new info_logement($_GET['num']); $info->req_data(); $log = $info->get_data(); } // Liste de tous les logements include_once 'class/liste_log.php'; $liste = new liste_log(); $liste->req_data(); $logs = $liste->get_data(); // Liste de tous les sites