<?php

ob_start();
include_once './include/include_class.php';
$index = new IncludeClass();
$index->IncludeAll();
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
    <title>Ana Sayfa</title>
    <?php 
$bootstrap = new Bootstrap();
$bootstrap->index_vb();
$bootstrap->login_vb();
?>
    <script>
        $(document).ready(function () {
            $('#hclick').click(function () {
                $('#pclick').slideToggle("1000")
            });
        });
    </script>
</head>
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
<?php

include_once './include/include_class.php';
$doktorInclude = new IncludeClass();
$doktorInclude->IncludeAll();
if (isset($_SESSION['doktor_id'])) {
    ?>
<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
    <title>Doktor Sayfası</title>
    <?php 
    $bootstrap = new Bootstrap();
    $bootstrap->index_vb();
    ?>
</head>
<body>
    <?php 
    $header = new Header();
    $header->setKey('Dok');
    $header->kokSayfa_header();
    $panel = new PanelInclude();
    $panel->doktorInclude();
    $header->footer();
    ?>
</body>
</html>
<?php 
} else {
<?php

include_once './include/include_class.php';
$hakkimizda = new IncludeClass();
$hakkimizda->IncludeAll();
?>
<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
    <title>Hakkımızda</title>
    <?php 
$bootstrap = new Bootstrap();
$bootstrap->index_vb();
?>
</head>
<body>
    <?php 
$header = new Header();
$header->setKey('Hak');
$header->kokSayfa_header();
?>
<div class="container marketing">
    
<center>
        <h2>Doktorlarımız</h2><hr>
</center><br/>
<div class="row">
    <?php 
$kuldao = new KullaniciGirisDAO();
<?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);
    }
}