<script>
$(document).ready(function() {

        $("#divimiz").load("hedef/veriler.php");

});

setInterval(function() {$("#divimiz").load('hedef/veriler.php');}, 1000);







</script>

<script type="text/javascript"> 

function stopRKey(evt) { 
  var evt = (evt) ? evt : ((event) ? event : null); 
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); 
  if ((evt.keyCode == 13) && (node.type=="text"))  {return false;} 
} 

document.onkeypress = stopRKey; 

</script>


<script>
(function($){
    $(document).on("keyup", "#DOKTOR_ID",function(){
		var DOKTOR_ID = $("#DOKTOR_ID").val();
		if (DOKTOR_ID.length > 2){ // aranılan kelime 2 harften fazla olmallı
            $.ajax({
                type: "POST",
                url: "hedef/source.php",
                data: {
                    sehir: DOKTOR_ID,
                },
                error: function (xhr, textStatus, errorThrown) {
                    alert('Hata: ' + xhr.responseText);
                },
                success: function (data) {
				    $("#menuac").addClass('open');
                    $("#liyapistir").html(data)
                }
            });
		}
	});
	$(document).on("click", "#liyapistir li a",function(){
		$("#DOKTOR_ID").val($(this).html());
		$("#menuac").removeClass('open');
	});
	$(document).on("click", "body",function(){
		$("#menuac").removeClass('open');
	});
})(jQuery);
</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		: '70%',
		height		: '70%',
		autoSize	: false,
		closeClick	: false,
		openEffect	: 'none',
		closeEffect	: 'none'
	});
});
</script>


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


$baglan = mysql_query("select * from doktorlar"); 


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

?>


<div class="box">
<form name="form1" method="post" action="admin.php?target=gorusmeekle-islem">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active">
 <a href="#tab_1" data-toggle="tab">Görüşme Bilgileri</a></li>





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


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


 <div class="box-body">
<input name="GORUSME_ID" type="hidden" id="GORUSME_ID" size="20" />
 


<input name="GORUSME_YETKILI" type="hidden" id="GORUSME_YETKILI" value="<? echo $_SESSION["kullanici_adi"];?>" size="20" />

<label>Görüşme Tarihi</label>
<input  name="GORUSME_TARIH" id="GORUSME_TARIH" class="form-control" type="text" placeholder="Görüşme Tarihi" size="35" data-inputmask="'alias': 'dd.mm.yyyy'" data-mask ><br>

<label>Doktor Adı ve Soyadı</label>

<?php echo $ret;
?>

        <input  name="DOKTOR_ID" id="DOKTOR_ID" class="form-control" type="text" hidden>
        
        
        <div class="input-group-btn" id="menuac">
          <ul class="dropdown-menu" id="liyapistir">
          </ul>
        </div>
  
 








 

<label>Hekim Grubu</label>
<select name="GORUSME_HEKIM_GRUBU" id="GORUSME_HEKIM_GRUBU" class="form-control   select2-hidden-accessible"   aria-hidden="true">
<option value="A">A ( Potansiyeli yüksek hekim)</option>
<option value="B">B ( Potansiyeli orta seviyede hekim )</option>
<option value="C">C ( Potansiyeli düşük hekim )</option>
</select>

<br> 
 
 

 
 <br><br>
 <textarea name="GORUSME_NOT" id="GORUSME_NOT" class="form-control" rows="3" placeholder="Yapılan Görüşme Notları ..."></textarea><br>
 <textarea name="GORUSME_BIR_SONRAKI_NOT" id="GORUSME_BIR_SONRAKI_NOT" class="form-control" rows="3" placeholder="Plananlanan Görüşme Notları ..."></textarea>
 <br>
 
 
 
                  
                </div><!-- /.box-body -->
              </div><!-- /.box -->

<input name="button" type="submit"  class="btn btn-block btn-success" id="button" value="Görüşme Ekle" width="200"/>

</div>

  







 



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

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










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

</form>


</div>