- Bagian Transaksi
dashboard.php
<?php session_start();
if(isset($_SESSION['id_kasir'])){
?>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- bootstrap.css CDN -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/dashboard.css" rel="stylesheet" />
</head>
<body>
<?php $admin=ucwords($_SESSION['nama']);?>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<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="#"><span class="glyphicon glyphicon-home"></span>
Dashboard Kasir</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Bantuan</a></li>
<li>
<a href="../logout_action.php" onClick="return confirm(' <?php echo $admin;?>, Apakah Anda yakin akan keluar?')">Logout</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li class="active"><a href="dashboard.php">Beranda <span class="sr-only">(current)</span></a></li>
</ul>
<ul class="nav nav-sidebar">
<li><a href="transaksi.php">Transaksi</a></li>
<li><a href="lihatnota.php">Lihat nota</a></li>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">Beranda</h1>
<h3>Assalamualaikum... <?php
echo $admin;
?></h3>
<p> Selamat datang di dashboard aplikasi Kasir Restaurant, semoga aplikasi ini membantu kelancaran bisnis kuliner anda. Terimakasih</p>
<br>"Jika terjadi error dalam aplikasi ini, harap hubungi kami" (Pengembang)</font>
<br>
</div>
</div>
</div>
</div>
<!-- /container -->
<!-- ===================
SCRIPTS
======================== -->
<!-- jQuery.js CDN -->
<script src="js/jquery.min.js"></script>
<!-- bootstrap.js CDN -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php
}else{
?><script language="javascript">document.location.href='../index.php?status=Anda belum login!'</script><?php
}
?>
transaksi.php
<?php session_start();
if(isset($_SESSION['id_kasir'])){
?>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- bootstrap.css CDN -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/dashboard.css" rel="stylesheet" />
</head>
<body>
<?php $admin=ucwords($_SESSION['nama']);?>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<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="#"><span class="glyphicon glyphicon-home"></span>
Dashboard Kasir</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Bantuan</a></li>
<li>
<a href="../logout_action.php" onClick="return confirm(' <?php echo $admin;?>, Apakah Anda yakin akan keluar?')">Logout</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li ><a href="dashboard.php">Beranda <span class="sr-only">(current)</span></a></li>
</ul>
<ul class="nav nav-sidebar">
<li class="active"><a href="transaksi.php">Transaksi</a></li>
<li><a href="lihatnota.php">Lihat nota</a></li>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">Transaksi</h1>
<!--form transaksi-->
<form action="act_transaksi.php" method="POST">
<table border="1" width="80%">
<tr>
<td align="center">No</td>
<td align="center" width="15%">Id Menu</td>
<td align="center" width="45%">Nama</td>
<td align="center" width="10%">Qty</td>
<td align="center" width="30%">Harga</td>
</tr>
<tr>
<td>1</td>
<td><input type="text" name="kdmenu"></td>
<td><input type="text" name="nama_menu"></td>
<td><input type="text" name="qty"></td>
<td><input type="text" name="harga"></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
<!-- /container -->
<!-- ===================
SCRIPTS
======================== -->
<!-- jQuery.js CDN -->
<script src="js/jquery.min.js"></script>
<!-- bootstrap.js CDN -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php
}else{
?><script language="javascript">document.location.href='../index.php?status=Anda belum login!'</script><?php
}
?>
belum sempurna