<?php
session_start();
if(isset($_SESSION['username'])){
//koneksi terpusat
include "include/koneksi.php";
$username=$_SESSION['username'];
?>
<!DOCTYPE
html>
<html
lang="en">
<head>
<meta charset="utf-8">
<meta
http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<meta name="description"
content="">
<meta name="author"
content="">
<link rel="icon"
href="../../favicon.ico">
<title>SI - Rekam
Medis</title>
<!-- Bootstrap core CSS -->
<link
href="css/bootstrap.min.css" rel="stylesheet">
<!-- Just for debugging purposes.
Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js for IE8
support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script
src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-default
navbar-static-top">
<div class="container">
<div
class="navbar-header">
<button type="button"
class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar" aria-expanded="false"
aria-controls="navbar">
<span
class="sr-only">Toggle navigation</span>
<span
class="icon-bar"></span>
<span
class="icon-bar"></span>
<span
class="icon-bar"></span>
</button>
<a class="navbar-brand"
href="home.php">App Rekam Medis</a>
</div>
<div id="navbar"
class="navbar-collapse collapse">
<ul class="nav
navbar-nav">
<li
class="active"><a
href="#">Home</a></li>
<li><a
href="#about">About</a></li>
<li><a
href="#contact">Pengaturan</a></li>
<li
class="dropdown">
<a href="#"
class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-expanded="false">Data<span class="caret"></span></a>
<ul
class="dropdown-menu" role="menu">
<li><a
href="#">Pasien</a></li>
<li><a
href="#">Obat</a></li>
<li><a
href="#">Laboratorium</a></li>
<li><a href="#">Dokter</a></li>
<li><a
href="#">Kunjungan</a></li>
<li><a
href="#">Tindakan</a></li>
<li><a
href="#">Poliklinik</a></li>
<li><a
href="#">Rekam Medis</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav
navbar-right">
<li
class="active"><a href="./"><?php echo
$username ;?><span
class="sr-only">(current)</span></a></li>
<li><a
href="logout.php">Logout</a></li>
</ul>
</div><!--/.nav-collapse
-->
</div>
</nav>
<div class="container">
<!-- hlaman unutk menampilkan data
utama seperti pasien dokter pengunjung dan lain lain -->
<?php
if (isset($_GET['halaman']))
{
$isi =$_GET['halaman'];
}
else
{
$isi =0;
}
switch($isi)
{
case '0':
require ("welcome.php");
break;
}
?>
<!-- /container -->
<!-- Bootstrap core JavaScript
==================================================
-->
<!-- Placed at the end of the document
so the pages load faster -->
<script
src="js/jquery.min.js"></script>
<script
src="js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for
Surface/desktop Windows 8 bug -->
<script
src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
<?php
}else{
session_destroy();
?>
<script
language="javascript">
alert("LOGIN ANDA DI TOLAK");
document.location.href="index.php";
</script>
<?php
}
?>
|