 

<!-- 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 Satışlar</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>Ürün Adı</th>
                                               

<th>Reçete Eden Dr.</th>
                                                <th>Satış Adet</th>
                                                <th>Satış Fiyatı</th>
    <th>TOPLAM</th>
 
                                            </tr>
                                        </thead>
                                        <tbody>		
 	<tr>

            
<?php
  

header ("Content-Type: text/html; charset=iso-8859-9");



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



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



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


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



 

	
$i++; 

 ?>
 
	<?php
        echo ' 
      	

 
   <td style="font-size:12px;"> ',$veri["KONSINYE_TARIH"],'  </td> 	

'; ?>
	<?php
        echo ' 
	<td style="font-size:12px;" >',$veri["KONSINYE_URUN_ADI"],'</td>

<td  style="font-size:12px;">',$veri["KONSINYE_ECZANE"],'</td>
 <td  style="font-size:12px;">',$veri["SATIS_ADET"],'</td>
<td style="font-size:12px;" >',$veri["SATIS_TUTARI"],' TL</td>
 <td style="font-size:12px;" >',$veri["SATIS_TOPLAM"],' TL</td>
 
 	<td style="font-size:12px;" >',$fiyat,'</td>
 '; 
		
		


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


?>

 

</div>
    </div>

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