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

 

?>
<?php
include('../baglan.php');
include('../css.php');
 
if(isset($_GET['DOKTOR_ADI'])) $DOKTOR_ADI= $_GET['DOKTOR_ADI'];
$baglan = mysql_query("select * from konsinyeler"); 

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

 

?>
<div class="box">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active">
 <a href="#tab_1" data-toggle="tab">Konsinye Bilgileri</a></li>


 <div style="width:95%; margin: auto;">
<form name="form1" method="post" action="konsinyeal_islem.php">

 

 

<? echo $_SESSION["kullanici_adi"];?><br>
<?php echo $DOKTOR_ADI; ?>
<?php echo $KONSINYE_URUN_ADI; ?>
    <BR><BR>

<label> <strong>Alınan Tarih</strong>  </label>

<input name="URUN_ID" type="hidden" id="URUN_ID"  size="20" />
<input name="SATIS_DEPRESANT" type="hidden" id="SATIS_DEPRESANT" value="<? echo $_SESSION["kullanici_adi"];?>" size="20" />
 
 <input name="URUN_IADE_ECZANE" type="hidden" id="URUN_IADE_ECZANE" size="20"  value="<?php echo $DOKTOR_ADI; ?>"  />
 
 
<input name="URUN_IADE_TARIH" id="URUN_IADE_TARIH" type="date" class="form-control"    size="63"  min="2023-01-01" max="2023-12-31" required />   


 <label>Alınan Ürün Adı</label>
<select name="URUN_LINK" id="URUN_LINK" class="form-control   select2-hidden-accessible"   aria-hidden="true"  onChange="update()" required>
   <option value="">Lütfen Önce Seçiminizi Yapınız</option>
     <?php include('baglan.php'); 
$sql = mysql_query("SELECT * FROM urunler where  URUN_DURUM='Aktif' Order By URUN_ADI asc"); 
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_LINK];?>  </option>

<?php } ?>
</select>

 
 
  
 <label> <strong>Alınan Adet</strong></label> 
 <input name="URUN_IADE_ADET" type="text" class="form-control"  id="URUN_IADE_ADET" size="63"    /> 
 <input name="button" type="submit" class="button_gri" id="button" value="Konsinye Geri Al" /> 
 
  
 <br><br>
 





</form></div>
  </div>   
 </div>   </div>  