<?php 
include'../css.php';
?>
 
 <?php
header ("Content-Type: text/html; charset=iso-8859-9");
session_start();
ob_start();

 

?>
<?php
include('../baglan.php');

if(isset($_GET['PERSONEL_MAIL'])) $PERSONEL_MAIL = $_GET['PERSONEL_MAIL'];
$baglan = mysql_query("select * from personel where PERSONEL_MAIL='$PERSONEL_MAIL'"); 


$yaz = mysql_fetch_assoc($baglan); // while dongsu icine almadim tek veri cekecegimiz icin. burda get methodunu da kullandık

?>

<div class="box box-success"><h3 class="box-title">Stok Ekle</h3> </div>
<div class="box-body">
<form name="form1" method="post" action="stokekle-islem.php">
 <?php
$_SESSION["STOK_DEPRESANT"] = $yaz["PERSONEL_MAIL"];
?>

<? echo $_SESSION["STOK_DEPRESANT"]  ;?>
  <div id='tab-menu'>
  <div class='tab-menu'>
	<a href='#'>Stok Ekle</a></div>
		<div class='tabmenuContent'>  


 
 

<? echo $yaz["STOK_DEPRESANT"];?>

<? echo $yaz["PERSONEL_SEKLI"];?>
 <table border="0"  cellpadding="0" cellspacing="3">
    


          <tr>
      <td ><strong>Stok Çıkış Tarihi</strong>  
<input name="STOK_ID" type="hidden" id="STOK_ID"  size="20" />
 <input name="STOK_DURUM" type="hidden" id="STOK_DURUM"   value="Kagoya_Verildi" size="20"  hidden />
 

<input name="STOK_DEPRESANT" type="hidden" id="STOK_DEPRESANT" value="<? echo $_SESSION["STOK_DEPRESANT"]  ;?>" size="20" />
 
 <input name="STOK_TURU" type="hidden" id="STOK_TURU" value="<? echo $yaz["PERSONEL_SEKLI"]  ;?>" size="20" />

</td>
      <td ><div class="input-group">
<input name="STOK_GIRIS_TARIHI" id="STOK_GIRIS_TARIHI" type="date" class="form-control"    size="63"  min="2023-01-01" max="2025-12-31" required />    </tr>

      </span></td>
    </tr>
    <tr>
      <td class="size12"><strong>Stok Ürün Adı  </strong></td>
      <td><select name="STOK_LINK" id="STOK_LINK" class="form-control   select2-hidden-accessible"   aria-hidden="true" required onChange="update()">
   <option value="0">Lütfen Önce Seçiminizi Yapınız</option>
     <?php include('baglan.php'); 
$sql = mysql_query("SELECT * FROM urunler"); 
while ($a = mysql_fetch_array($sql)) { if ($yaz[SATIS_URUN_ADI] == $a[URUN_LINK]){ $durum=  'selected="selected"'; } else { $durum =''; }?>
<option value="<?php echo $a['URUN_LINK']?>" <?php echo $durum; ?> ><?php echo $a[URUN_ADI];?>  </option>

<?php } ?>
</select>
</td>
    </tr>


     
     
  
  


 <tr>
      <td class="size12"><strong>Stok Adet</strong></td>
      <td><input name="STOK_GIRIS_ADET" type="text" class="form-control"  id="STOK_GIRIS_ADET" size="63"    /></td>
    </tr>
    <tr>
      <td valign="top" class="size12">&nbsp;</td>
      <td><input name="button" type="submit" class="button_gri" id="button" value="Stok Tamamla" /></td>
    </tr>
       
  </table>














  </div>






</form>
  </div>


	
 