Created
December 3, 2017 15:32
-
-
Save anonymous/61abe965b036f08cc8c450a2e1d41756 to your computer and use it in GitHub Desktop.
input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Input Pendapatan</title> | |
<link href="styles/kendo.common.min.css" rel="stylesheet" /> | |
<link href="styles/kendo.default.min.css" rel="stylesheet" /> | |
<link rel="stylesheet" type="text/css" href="asset/bootstrap/css/bootstrap.min.css" > | |
<link rel="stylesheet" type="text/css" href="asset/bootstrap/compiled/theme_styles.css"/> | |
<link rel="stylesheet" type="text/css" href="asset/bootstrap/libs/font-awesome.css"/> | |
<link rel="stylesheet" type="text/css" href="asset/bootstrap/libs/nanoscroller.css"/> | |
<link rel="stylesheet" href="asset/bootstrap/libs/datepicker.css" type="text/css"/> | |
<link rel="stylesheet" href="asset/bootstrap/libs/daterangepicker.css" type="text/css"/> | |
<link rel="stylesheet" href="asset/bootstrap/libs/bootstrap-timepicker.css" type="text/css"/> | |
<link rel="stylesheet" href="asset/bootstrap/libs/select2.css" type="text/css"/> | |
<script src="js/jquery.min.js"></script> | |
<script src="js/kendo.web.min.js"></script> | |
</head> | |
<body> | |
<?php | |
include "koneksi.php"; | |
$sql = $conn->prepare("SELECT max(kode) as maxKode FROM pemasukan"); | |
$sql->execute(); | |
$hasil = $sql->fetch(); | |
$kodeBarang = $hasil['maxKode']; | |
$noUrut = (int) substr($kodeBarang, 3, 3); | |
$noUrut++; | |
$char = "BR"; | |
$newID = $char . sprintf("%03s", $noUrut); | |
?> | |
<div id="content-wrapper"> | |
<div class="col-lg-12"> | |
<div class="main-box"> | |
<div class="main-box-body clearfix"> | |
<header class="main-box-header clearfix"> | |
<h2>Form Input</h2> </header> | |
<form name="form1" id="validasiform" action="save.php" method="post" /> | |
<div class="form-group"> | |
<label>Kode</label> | |
<input type="text" class="form-control col-md-4" name="kode" size="5" value="<?php echo $newID; ?>" readonly /> | |
</div> | |
<div class="form-group"> | |
<label>Tanggal</label> | |
<input type="text" class="form-control col-md-2" id="maskedDate" name="tanggal" required /> | |
</div> | |
<div class="form-group"> | |
<label>User</label> | |
<input type="text" class="form-control col-md-2" name="user" size="20" required/> | |
</div> | |
<div class="form-group"> | |
<label>Jumlah</label> | |
<input type="text" class="form-control col-md-2" name="jumlah" size="20" required /> | |
</div> | |
<div class="form-group"> | |
<br /> | |
</div> | |
<div class="form-group"> | |
<input type="submit" class="btn btn-success" name="submit" value="Simpan" /> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment