</div> <?php if (isset($_SESSION['admin_id'])) { ?> <br><br> <div class="container"> <div class="panel-group"> <div class="panel panel-primary"> <div class="panel-heading" id="hclick"><center>Mesaj Listesi</center></div> <div class="panel-body" id="pclick" style="display: none;"> <div id="contact" class="container-fluid bg-grey"> <div class="row"> <?php $iltdao = new IletisimDAO(); $mesajlist = $iltdao->MesajList(); foreach ($mesajlist as $list) { ?> <form class="col-sm-7" action="controller/mesajSil_controller.php" method="post"> <div class="row"> <div class="col-sm-6 form-group"> <input class="form-control" type="text" value="<?php echo $list->getAd(); ?> " name="ad" readonly/> <input class="form-control" type="text" value="<?php echo $list->getIletisimId(); ?>
<?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); } }