<meta http-equiv="content-type" content="text/html; charset=windows-1254">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-9">

<!-- Add jQuery library -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<!-- Add fancyBox -->
<link rel="stylesheet" href="fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

<!-- Optionally add helpers - button, thumbnail and/or media -->
<link rel="stylesheet" href="fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>

<link rel="stylesheet" href="fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>


<script type="text/javascript">
	$(document).ready(function() {
	$(".various").fancybox({
	
  
	maxWidth	: 800,
		maxHeight	: 600,
		fitToView	: false,
		width		: '80%',
		height		: '70%',
		autoSize	: false,
		closeClick	: false,
		openEffect	: 'none',
		closeEffect	: 'none'
		
	});
});
</script>

<div class="row">
 
                          
<div class="box">
<div class="box-header">
<h3 class="box-title">İşlem Listesi</h3>
</div><!-- /.box-header -->
<div class="box-body table-responsive">
                              <table id="example2" class="table table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th>Adı ve Soyadı</th>
                                                <th>Telefon Numarası</th>
                                               
                                                <th>Kayıt Sil</th>
                                                <th>Düzenle</th>
                                            </tr>
                                        </thead>
                                        <tbody>		
 	<tr>
      <?php
include'baglan.php';
 session_start();

$search=$_POST["search"];

$_SESSION["isim"]=$_POST["search"];

if(empty($search)) {
      echo 'L&uuml;tfen Boş Bırakmayınız.';
   } else {
$result = mysql_query("SELECT * FROM hastalar WHERE HASTA_TANI LIKE '%$search%'");
mysql_query("SET NAMES 'latin5'");  
$bulunan=0;
while($veri=mysql_fetch_array($result))
{
$bulunan++;
 
 
   

echo '

	<td><b>',$veri["HASTA_ADI"],'</b></td>
	<td  >',$veri["HASTA_TELEFON"],'</td>
 
 

    <td width="90px" ><a class="kayit_sil" href="admin.php?target=hastasil-islem&?&HASTA_ID=',$veri["HASTA_ID"],'" onclick="return confirmDel();"><button class="btn btn-danger btn-sm">Sil</button></a>    </td>
     <td   ><a  href="admin.php?target=hastaduzenle&?&HASTA_ID=',$veri["HASTA_ID"],'"> 

<button  class="btn btn-success btn-sm" >Düzenle</button></a></td>
 <td  ><a class="various fancybox.iframe"   href="hedef/islemekle.php?HASTA_ID=',$veri["HASTA_ID"],'"> 

<button class="btn btn-info btn-sm">İşlem Ekle</button></a></td>

  <td   ><a class="various fancybox.iframe" href="hedef/islemler.php?HASTA_ID=',$veri["HASTA_ID"],'"> 

<button  class="btn btn-primary btn-sm">Yapılan işlemler</button></a></td>
 </tr>
';
}
}

?>
      </span><br>
      <br />

</div>