<?php include_once '../include/include_class.php'; $inc = new IncludeClass(); $inc->setIncDizin('../'); $inc->IncludeAll(); if (isset($_SESSION['admin_id'])) { if ($_POST) { $ilt = new Iletisim(); $ilt->setIletisimId($_POST['id']); $iltdao = new IletisimDAO(); $iltdao->IletisimSil($ilt); } }
<?php ob_start(); include_once '../include/include_class.php'; $doktorInclude = new IncludeClass(); $doktorInclude->setIncDizin('../'); $doktorInclude->IncludeAll(); if (isset($_SESSION['admin_id'])) { ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Doktor Müşteri</title> <?php $bootstrap = new Bootstrap(); $bootstrap->controller_vb(); ?> </head> <body> <?php if ($_POST) { $header = new Header(); $header->setDizin('../'); $header->kokSayfa_header(); $doktor = new Doktor(); $durum = $_POST['durum']; $doktor->setDoktorId(trim($_POST['id'])); $doktor->setEmail(trim($_POST['email'])); $doktordao = new DoktorDAO();