	

<!-- 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		: '70%',
		height		: '70%',
		autoSize	: false,
		closeClick	: false,
		openEffect	: 'none',
		closeEffect	: 'none'
	});
});
</script>

 


<div class="box">
<form name="form1" method="post" action="admin.php?target=konsinyeekle-islem">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active">
 <a href="#tab_1" data-toggle="tab">Konsinye Bilgileri</a></li>

<BR>
<? 
include('../css.php');
echo $_SESSION["kullanici_adi"];

$tarih     = date('d.m.Y H:i:s');
?>


                                </ul>
<div class="tab-content" >


<div class="tab-pane active" id="tab_1">
<div class="box box-success">
              


 <div class="box-body">
<input name="KONSINYE_ID" type="hidden" id="KONSINYE_ID" size="20" />
 <input name="KONSINYE_TURU" type="hidden" id="KONSINYE_TURU" value="Konsinye" size="20" />
  <input name="KONSINYE_GIRIS" type="hidden" id="KONSINYE_GIRIS" value="16.01.1988>" size="20" />


 


<label>Konsinye Ürün Adı</label>
<select name="SATIS_TUTARI" id="SATIS_TUTARI" 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_FIYAT']?>" <?php echo $durum; ?>  id="<?php echo $a['URUN_KULLANIM']?>"><?php echo $a[URUN_LINK];?>  </option>

<?php } ?>
</select>

<label>Konsinye Ürün Kasa Tutarı</label>

		<input type="text" id="value" class="form-control   select2-hidden-accessible"  readonly>
<br>
<input type="text" name="KONSINYE_URUN_ADI" id="text" class="form-control   select2-hidden-accessible"  readonly>
 <br>
		<input type="text" id="id" class="form-control   select2-hidden-accessible"  readonly>
 
 <BR>
 
 <label>İl</label> <BR>
  <select  name="Iller" id="Iller" class="form-control" >
      <option value="0">Lütfen Bir İl Seçiniz</option>
  </select>

<br> <label>İlçe</label> <BR>
  <select   name="Ilceler"  id="Ilceler" disabled="disabled" class="form-control" >
      <option value="0">Lütfen Önce bir İl seçiniz</option>
  </select>
<br>

<label>Konsinye Adet</label>
<input name="SATIS_ADET" type="text" class="form-control"  id="SATIS_ADET" size="63"  required/> 
 
<input name="KONSINYE_DEPRESANT" type="hidden" id="KONSINYE_DEPRESANT" value="<? echo $_SESSION["kullanici_adi"];?>" size="20" />

<label>Konsinye Tarihi</label>

 <input type="date"   name="KONSINYE_TARIH" id="KONSINYE_TARIH" class="form-control"  min="2025-01-01" max="2025-12-31" required >
  
    

<label>Eczane Adı</label>
<select name="KONSINYE_ECZANE" id="KONSINYE_ECZANE"   class="form-control">
        <?php
 include('baglan.php'); 
$mesut=$_SESSION["kullanici_adi"];

$sql = mysql_query("SELECT * FROM eczane WHERE  DOKTOR_SORUMLU_KODU='$mesut' Order By DOKTOR_ADI desc"); 
while ($a = mysql_fetch_array($sql)) {
if ($yaz[SATIS_ECZANE] == $a[DOKTOR_ADI]){ $durum=  'selected="selected"'; } else { $durum =''; }?>
      
<option value="<?php echo $a[DOKTOR_ADI];?>" <?php echo $durum; ?> ><?php echo $a[DOKTOR_ADI];?></option>

<?php } ?>
          </select>

 
       
  
 




 
  <BR>

  
  
                  
                </div><!-- /.box-body -->
              </div><!-- /.box -->

<input name="button" type="submit"  class="btn btn-block btn-success" id="button" value="Konsinye Ekle" width="200"/>

</div>

  







 



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

                                </div><!-- /.tab-content -->










 
                            </div><!-- nav-tabs-custom -->
                        </div>

</form>


</div>	