<?php 
session_start();
include('koneksi.php');
date_default_timezone_set('Asia/Jakarta');
//echo 'Indonesian Timezone: ' . date('d-m-Y H:i:s');
session_destroy();
 ?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="style.css">
<meta charset="utf-8">
<title>Layar Utama Poli</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<?php include 'style.php' ?>
	<style>
table {
    border-collapse: collapse;
    border: 1px solid black;
}
</style>
<!-- Kode menampilkan peringatan untuk mengaktifkan javascript-->
<div align="center"><noscript>
   <div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%; width:100%; background-color:#FFFFFF">
   <div style="font-family: Arial; font-size: 17px; background-color:#00bbf9; padding: 11pt;">Mohon aktifkan javascript pada browser untuk mengakses halaman ini!</div></div>
</noscript></div>
 
<!--Kode untuk mencegah seleksi teks, block teks dll.-->
<script type="text/javascript">
function disableSelection(e){if(typeof e.onselectstart!="undefined")e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!="undefined")e.style.MozUserSelect="none";else e.onmousedown=function(){return false};e.style.cursor="default"}window.onload=function(){disableSelection(document.body)}
</script>
 
<!--Kode untuk mematikan fungsi klik kanan di blog-->
<script type="text/javascript">
function mousedwn(e){try{if(event.button==2||event.button==3)return false}catch(e){if(e.which==3)return false}}document.oncontextmenu=function(){return false};document.ondragstart=function(){return false};document.onmousedown=mousedwn
</script>
 
<style type="text/css">
* : (input, textarea) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
 
}
</style>
<style type="text/css">
img {
     -webkit-touch-callout: none;
     -webkit-user-select: none;
    }
</style>
 
<!--Kode untuk mencegah shorcut keyboard, view source dll.-->
<script type="text/javascript">
window.addEventListener("keydown",function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==67||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){e.preventDefault()}});document.keypress=function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==67||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){}return false}
</script>
<script type="text/javascript">
document.onkeydown=function(e){e=e||window.event;if(e.keyCode==123||e.keyCode==18){return false}}
</script>
</head>

<form name=formVerif action="utama.php" method="post">
	<br>
	
	Pilih Dokter : <select name="dok" id="dok" class="form-control"  required/>
      <?php 
$sql = "select DoctCode, Name from DOCTOR where isnull(inisial, '') <> ''";
//$hasil = $koneksi->sqlsrv_query($sql);
$hasil = sqlsrv_query($koneksi, $sql);
while($data=sqlsrv_fetch_array($hasil)){
    echo "<option value=$data[DoctCode]>$data[Name]</option>";
}
?>
    </select>
	<br><br>
	
Poli Nomor : <select name="pol" id="pol" class="form-control"   required/>
      <option value=1>1</option>
	  <option value=2>2</option>
	  <option value=3>3</option>
	  <option value=4>4</option>
	  <option value=5>5</option>
	 <option value=6>6</option>
    </select>
	<br><br>
	<h1>
	
	</h1>
	<br><br>
	  
	  <input type="Submit" class="btn btn-block btn-primary btn-lg" name="Submit" value="Selanjutnya"/> 
	 <br><br><br><br>
	 
	 </form>
	 <br><br>
	<footer>
                <p align=center>&copy; 2024 - RSI Purwodadi</p>
            </footer>
</html>