<?php require_once 'ckfinder/ckfinder.php';
?>


<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
	<script type="text/javascript">

function BrowseServer()
{
	// You can use the "CKFinder" class to render CKFinder in a page:
	var finder = new CKFinder();
	finder.basePath = '/ckfinder/';	// The path for the installation of CKFinder (default = "/ckfinder/").
	finder.selectActionFunction = SetFileField;
	finder.popup();

	// It can also be done in a single line, calling the "static"
	// popup( basePath, width, height, selectFunction ) function:
	// CKFinder.popup( '../', null, null, SetFileField ) ;
	//
	// The "popup" function can also accept an object as the only argument.
	// CKFinder.popup( { basePath : '../', selectActionFunction : SetFileField } ) ;
}

// This is a sample function which is called when a file is selected in CKFinder.
function SetFileField( fileUrl )
{
	document.getElementById( 'xFilePath' ).value = fileUrl;
}


 

	</script>


<div class="box box-success">
  <h3 class="box-title">Masraf Ekle</h3> 
</div>
<div class="box-body">
<form name="form1" method="post" action="admin.php?target=giderekle-islem">


  <div id='tab-menu'>
  <div class='tab-menu'>
	<a href='#'>Masraf Bilgileri</a></div>
		<div class='tabmenuContent'>  



<table   border="0" cellpadding="3" cellspacing="3">
  <input name="GIDER_DEPRESANT" type="hidden" id="GIDER_DEPRESANT" value="<? echo $_SESSION["kullanici_adi"];?>" size="20" />

 
 
  <input name="GIDER_ID" type="hidden" id="GIDER_ID" size="20" />

   <tr>
     <td><span class="size12"><strong>Masraf Firma Adı</strong></span>
     <td><input name="GIDER_BASLIK" type="text" class="form-control"  id="GIDER_BASLIK" size="63"   required /></td>
   </tr>
 

     <tr>
     <td><span class="size12"><strong>Masraf Tarih </strong></span>
     <td><input name="GIDER_TARIH" type="date" class="form-control"  id="GIDER_TARIH" size="63"  min="2022-01-01" max="2022-12-31"   required  /></td>
   </tr>



     <td><span class="size12"><strong>Masraf Fiş No</strong></span>
     <td><input name="GIDER_NO" type="text" class="form-control"  id="GIDER_NO" size="63"   required  /></td>
   </tr>
     </span></td>
   </tr>
   <tr>
     <td valign="top"><strong>Masraf Fiş  Resim</strong>
     <td valign="top"><span class="size12">
     <input name="xFilePath" type="text" class="form-control" id="xFilePath" size="150"   required/>
     <input type="button" onClick="BrowseServer();" value="Resim Y&uuml;kle" style="width:200px; padding:10px; margin-bottom:10px; background-color:black; color:white;" class="form-control"/>

    <tr>



   <tr>
     <td><span class="size12"><strong>Masraf Tutarı</strong></span>
     <td><input name="GIDER_TUTAR" type="text" class="form-control"  id="GIDER_TUTAR" size="63"   required /></td>
   </tr>
   <tr>
     <td width="163"><strong>Masraf Türü</strong>

     <td width="449"><select name="GIDER_TURU" id="GIDER_TURU" style="width:160px" class="form-control"  required>
      <option value="">Lütfen Seçiniz</option>
 <option value="Otopark">Otopark</option>
       <option value="Yakit">Yakıt</option>
           <option value="Oto_Yikama">Oto Yikama 1/Ay</option>
   <option value="Diger">Diğer</option>
               </select> <span style="color:red; font-size:16px"><strong>( Diğer İse Lütfen Açıklama Giriniz )</strong></span></td>
     </tr>
   <tr>
     <td valign="top"><span class="size12"><strong>Masraf  A&ccedil;&#305;klama</strong><br> </span>
     <td valign="top"><textarea name="GIDER_ACIKLAMA" cols="63" class="form-control" id="GIDER_ACIKLAMA" ></textarea></td>
   </tr>


    
   <tr>
     <td>   
     <td><br><input name="button" type="submit" class="button_gri" id="button" value="Ekle" /></td>
     </tr>
 </table>
<p>&nbsp;</p>














  </div>






</form>
  </div>