<table class="table"> <tr> <th>Müşteri Adı</th> <th>Müşteri Soyadı</th> <th>Eposta</th> <th>Telefonu</th> <th>Randevu Tarihi</th> <th>Randevu Saati</th> <th>Doktor</th> </tr> <?php $musteridao = new MusteriDAO(); $musteriList = $musteridao->gecmisMusteriListesi(); foreach ($musteriList as $list) { ?> <tr> <td><?php echo $list->getAd(); ?> </td> <td><?php echo $list->getSoyad(); ?> </td> <td><?php echo $list->getEmail(); ?>
<table class="table"> <tr> <th>Müşteri Adı</th> <th>Müşteri Soyadı</th> <th>Eposta</th> <th>Telefonu</th> <th>Randevu Tarihi</th> <th><center>Randevu Saati</center></th> <th>Doktor</th> <th colspan="2"><center>İşlemler</center></th> </tr> <?php $musteridao = new MusteriDAO(); $musteriList = $musteridao->musteriTarihListesi(); foreach ($musteriList as $list) { ?> <tr> <td><?php echo $list->getAd(); ?> </td> <td><?php echo $list->getSoyad(); ?> </td> <td><?php echo $list->getEmail(); ?>
<th>Telefonu</th> <th>Randevu Tarihi</th> <th>Randevu Saati</th> <th>Doktor</th> <?php if (isset($_SESSION['admin_id'])) { echo '<th colspan="2"><center>İşlemler</center></th>'; } ?> </tr> <?php $musteridao = new MusteriDAO(); $musteriList = $musteridao->musteriListesi(); foreach ($musteriList as $list) { ?> <tr> <td><?php echo $list->getAd(); ?> </td> <td><?php echo $list->getSoyad(); ?> </td> <td><?php echo $list->getEmail(); ?>
<?php include_once '../include/include_class.php'; $musteriInclude = new IncludeClass(); $musteriInclude->musteriSil_controller(); if (isset($_SESSION['admin_id'])) { ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Müşteri Güncelle</title> <?php $bootstrap = new Bootstrap(); $bootstrap->controller_vb(); ?> </head> <body> <?php if ($_POST) { $header = new Header(); $header->kokSayfa_header(); $musteri = new Musteri(); $musteri->setMusteriId(trim($_POST['musteriId'])); $musteridao = new MusteriDAO(); $musteridao->musteriSil($musteri); } }
</tr> <tr> <td></td> <td><input type="submit" value="Randevuyu Onayla"></td> </tr> </table> </form> <?php if (isset($_POST['musteriId1'])) { //echo $_POST['musteriId1']; $musteri = new Musteri(); $musteri->setMusteriId($_POST['musteriId1']); $musteri->setDoktorId($_POST['doktor']); $musteri->setRandevuTarihi($_POST['tarih']); $musteri->setSaatId($_POST['saat']); $musteri->setMesaj(trim($_POST['mesaj'])); $musteri->setRandevuOnay(1); $musteridao = new MusteriDAO(); $musteridao->randevuOnayla($musteri); } } $header->footer(); ?> </div> </div> </body> </html> <?php } ob_end_flush();
?> <!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->kokSayfa_header(); $musteri = new Musteri(); $musteri->setAd(trim($_POST['ad'])); $musteri->setSoyad(trim($_POST['soyad'])); $musteri->setEmail(trim($_POST['email'])); $musteri->setTel(trim($_POST['tel'])); $musteri->setRandevuTarihi(trim($_POST['randevuTarihi'])); $musteri->setSaatId(trim($_POST['saat'])); $musteri->setMesaj($_POST['mesaj']); $musteridao = new MusteriDAO(); $musteridao->musteriEkle($musteri); } ?> </body> </html>