 

<!-- 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() {
		$(".fancybox").fancybox();
	});
</script>

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

  
<div class="box" style="font-size:12px;">
<div class="box-header">
<h3 class="box-title">Yapılan İşlemler</h3>
</div><!-- /.box-header -->
<div class="box-body table-responsive">
                              <table id="example2" class="table table-bordered table-hover" style="width:%90;">
                                        <thead>
                                            <tr>
                                  <th>İşlem Tarihi</th>
                                                <th>Uygulanan</th>
                                               

<th>Uygulayan</th>
                                                <th>Tutar</th>
                                                <th>Ödenen</th>
    <th>Kalan</th>
 
                                            </tr>
                                        </thead>
                                        <tbody>		
 	<tr>

            
<?php
  





    include("../baglan.php");
	  include("../css.php");
$gosterim=20;
 $sayfa=@$_GET['sayfa'];
 
if(empty($sayfa) || !is_numeric($sayfa)){$sayfa=1;}



if(isset($_GET['DOKTOR_ID'])) $DOKTOR_ID = $_GET['DOKTOR_ID'];
 



$k_sayisi=mysql_num_rows(mysql_query("Select DOKTOR_ID From hasta"));
 
$s_sayisi=ceil($k_sayisi/$gosterim);
 
$ilk_kayit=($sayfa*$gosterim)-$gosterim;
	
	
	
  
  $sql = mysql_query("select * from hasta where HASTA_ID='$HASTA_ID'   Order By ISLEM_ID desc Limit $ilk_kayit,$gosterim");
 $i = 0; 
    $sutun    = 1;  
$s    = 0; 
    
    


	while($veri = mysql_fetch_assoc($sql)) 
	
    { 



$fiyat = $veri['HASTA_FIYATI'] ;
$odenen=$veri['HASTA_ODENEN'] ;
$kalan =  $fiyat -  $odenen ;

	
$i++; 

 
	
        echo ' 
      	

 
   <td style="font-size:12px;"><a class="kayit_sil" href="islemduzenle.php?ISLEM_ID=',$veri["ISLEM_ID"],'">
',$veri["HASTA_ISLEM_TARIHI"],' </a></td> 	
	<td style="font-size:12px;" >',$veri["HASTA_TANI"],'</td>

<td  style="font-size:12px;">',$veri["HASTA_DOKTOR"],'</td>
<td style="font-size:12px;" >',$veri["HASTA_FIYATI"],' TL</td>
<td style="font-size:12px;" >',$veri["HASTA_ODENEN"],' TL</td>
<td style="font-size:12px;" >',$kalan,' TL</td>

    <td width="90px" ><a class="kayit_sil" href="islemsil-islem.php?ISLEM_ID=',$veri["ISLEM_ID"],'" onclick="return confirmDel();"><button class="btn btn-default btn-sm" >Kayıt Sil</button></a>    </td>
    
 
 
			

				
				
				 </tr> 
				'; 
		
		
        if ($i % $sutun == 0) 
        { 
        echo ' 
 

<ul class="pagination">
   '; 
        } 
    } 

if($sayfa!=1){
    echo "


<li class='prev'>
<a  href='admin.php?target=hastalar&?HASTA_ID=".$HASTA_ID."&?&sayfa=1#gel'>İlk</a></li>";
    
}

for($i=1;$i<=$s_sayisi;$i++){
    echo "<li><a href='admin.php?target=hastalar&?HASTA_ID=".$HASTA_ID."&?&sayfa={$i}#gel'>$i</a></li>";

}
 
if($sayfa!=$s_sayisi){
    echo "<li class='next'><a href='admin.php?target=hastalar&?HASTA_ID=".$HASTA_ID."&?&sayfa={$s_sayisi}#gel'>SON</a></li>";

} 
?></ul>

</div>
    </div>

                                            
                                        </tfoot>
                                    </table>
                                </div>
     
    </div>
               