<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="nav-tabs-custom">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a data-toggle="tab" href="#tab_1">Tab 1</a></li>
                                    <li><a data-toggle="tab" href="#tab_2">Tab 2</a></li>
<div class="box">
<div class="box-header">
<h3 class="box-title">Masraf Listesi</h3>
</div><!-- /.box-header -->
<div class="box-body table-responsive">
                              <table id="example2" class="table table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th>Masraf Tarih</th>
<th>Masraf  No</th>
<th>Masraf  Durumu</th>
		            <th>Masraf Firma</th>
                                                <th>Masraf  Tutar</th>
<th>Masraf Türü</th>  <th>Onaylanmama Nedeni</th>
                                                <th>Fiş İncele Tipi</th>
                             <th>Düzenle</th>
                   
                                            </tr>
                                        </thead>
                                        <tbody>		
 	<tr>

<?php
  


$tarih1='2025-02-01';
$tarih2='2025-02-31';



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

 
$k_sayisi=mysql_num_rows(mysql_query("Select GIDER_ID From giderler   WHERE GIDER_TARIH BETWEEN'$tarih1' and '$tarih2' "));
 
$s_sayisi=ceil($k_sayisi/$gosterim);
 
$ilk_kayit=($sayfa*$gosterim)-$gosterim;
	
	
	
   $sorumlu_kodu=$_SESSION["kullanici_adi"];
  $sql = mysql_query("SELECT * FROM giderler   WHERE GIDER_DEPRESANT='$sorumlu_kodu'  and GIDER_TARIH BETWEEN'$tarih1' and '$tarih2'  Order By GIDER_ID desc Limit $ilk_kayit,$gosterim");
 $i = 0; 
    $sutun    = 1;  
$s    = 0; 
    
    


	while($veri = mysql_fetch_assoc($sql)) 
	
    { 
	
$i++; 

    

	
        echo ' 
      	


 
 	 <td  >',$veri["GIDER_TARIH"],'</td>
	<td  >',$veri["GIDER_NO"],'</td>
	<td  >',$veri["GIDER_ONAY"],'</td>
	<td  >',$veri["GIDER_BASLIK"],'</td>
 	<td  >',$veri["GIDER_TUTAR"],' TL</td>
	<td  >',$veri["GIDER_TURU"],'</td>
	<td  >',$veri["GIDER_NOT"],'</td>
    <td><a class="various fancybox.iframe" href="hedef/fis_detay.php?GIDER_ID=',$veri["GIDER_ID"],'"> 
    <button  class="btn btn-primary btn-flat"><i class="fa fa-fw fa-eye"></i></button></a> </td>
    <td><a class="various fancybox.iframe" href="hedef/fisduzenle.php?GIDER_ID=',$veri["GIDER_ID"],'"> 
    <button  class="btn btn-primary btn-flat">Düzenle</button></a> </td>
 
			

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

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

if($sayfa!=1){
   
}

for($i=1;$i<=$s_sayisi;$i++){
    

}

if($sayfa!=$s_sayisi){
  

} 
?></ul>

</div>
    </div>

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