-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c872ef
commit f1a104c
Showing
137 changed files
with
10,976 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php include 'header.php'; ?> | ||
|
||
<div class="content-wrapper"> | ||
|
||
<section class="content-header"> | ||
<h1> | ||
Admin | ||
<small>Data Admin</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li> | ||
<li class="active">Data Admin</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content"> | ||
<div class="row"> | ||
<section class="col-lg-12"> | ||
<div class="box"> | ||
|
||
<div class="box-header"> | ||
<h3 class="box-title">Admin</h3> | ||
<a href="admin_tambah.php" class="btn btn-default btn-sm pull-right"><i class="fa fa-plus"></i>   Tambah Admin Baru</a> | ||
</div> | ||
<div class="box-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered table-striped" id="table-datatable"> | ||
<thead> | ||
<tr> | ||
<th width="1%">NO</th> | ||
<th>NAMA</th> | ||
<th>USERNAME</th> | ||
|
||
<th width="10%">OPSI</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php | ||
include '../koneksi.php'; | ||
$no=1; | ||
$data = mysqli_query($koneksi,"SELECT * FROM admin"); | ||
while($d = mysqli_fetch_array($data)){ | ||
?> | ||
<tr> | ||
<td><?php echo $no++; ?></td> | ||
<td><?php echo $d['admin_nama']; ?></td> | ||
<td><?php echo $d['admin_username']; ?></td> | ||
|
||
<td> | ||
<a class="btn btn-warning btn-sm" href="admin_edit.php?id=<?php echo $d['admin_username'] ?>"><i class="fa fa-cog"></i></a> | ||
|
||
<a class="btn btn-danger btn-sm" href="admin_hapus.php?id=<?php echo $d['admin_username'] ?>"><i class="fa fa-trash"></i></a> | ||
|
||
</td> | ||
</tr> | ||
<?php | ||
} | ||
?> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|
||
</div> | ||
<?php include 'footer.php'; ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
include '../koneksi.php'; | ||
$nama = $_POST['nama']; | ||
$username = $_POST['username']; | ||
$password = md5($_POST['password']); | ||
|
||
|
||
|
||
|
||
mysqli_query($koneksi, "insert into admin (admin_username, admin_nama, admin_password) values ('$username', '$nama','$password')"); | ||
header("location:admin.php"); | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
include 'header.php'; | ||
?> | ||
|
||
<div class="content-wrapper"> | ||
|
||
<section class="content-header"> | ||
<h1> | ||
Admin | ||
<small>Edit Admin</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li> | ||
<li class="active">Data Admin</li> | ||
<li class="active">Edit</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content"> | ||
<div class="row"> | ||
<section class="col-lg-6"> | ||
<div class="box"> | ||
|
||
<div class="box-header"> | ||
<h3 class="box-title">Edit Admin</h3> | ||
<a href="admin.php" class="btn btn-default btn-sm pull-right"><i class="fa fa-reply"></i> Kembali</a> | ||
</div> | ||
<div class="box-body"> | ||
<form action="admin_update.php" method="post" enctype="multipart/form-data"> | ||
<?php | ||
$id = $_GET['id']; | ||
$data = mysqli_query($koneksi, "select * from admin where admin_username='$id'"); | ||
while($d = mysqli_fetch_array($data)){ | ||
?> | ||
|
||
<div class="form-group"> | ||
<label>Nama</label> | ||
<input type="text" class="form-control" name="nama" value="<?php echo $d['admin_nama'] ?>" required="required"> | ||
|
||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Username</label> | ||
<input type="text" readonly class="form-control" name="username" value="<?php echo $d['admin_username'] ?>" required="required"> | ||
<input type="hidden" name="hdnuser" value="<?php echo $d['admin_username'] ?>"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Password</label> | ||
<input type="password" class="form-control" name="password" min="5" placeholder="Kosong Jika tidak ingin di ganti"> | ||
<small class="text-muted">Kosongkan Jika tidak ingin di ganti</small> | ||
</div> | ||
|
||
|
||
<br> | ||
|
||
<div class="form-group"> | ||
<input type="submit" class="btn btn-primary" value="Simpan"> | ||
</div> | ||
<?php | ||
} | ||
|
||
?> | ||
|
||
</form> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|
||
</div> | ||
<?php include 'footer.php'; ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
include '../koneksi.php'; | ||
$id = $_GET['id']; | ||
|
||
mysqli_query($koneksi, "delete from admin where admin_username='$id'"); | ||
header("location:admin.php"); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php include 'header.php'; ?> | ||
|
||
<div class="content-wrapper"> | ||
|
||
<section class="content-header"> | ||
<h1> | ||
Admin | ||
<small>Tambah Admin Baru</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li> | ||
<li class="active">Data Admin</li> | ||
<li class="active">Tambah</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content"> | ||
<div class="row"> | ||
<section class="col-lg-6"> | ||
<div class="box"> | ||
|
||
<div class="box-header"> | ||
<h3 class="box-title">Tambah Admin</h3> | ||
<a href="admin.php" class="btn btn-default btn-sm pull-right"><i class="fa fa-reply"></i>   Kembali</a> | ||
</div> | ||
<div class="box-body"> | ||
<form action="admin_act.php" method="post" enctype="multipart/form-data"> | ||
<div class="form-group"> | ||
<label>Nama</label> | ||
<input type="text" class="form-control" name="nama" required="required" placeholder="Masukkan Nama .."> | ||
</div> | ||
<div class="form-group"> | ||
<label>Username</label> | ||
<input type="text" class="form-control" name="username" required="required" placeholder="Masukkan Username .."> | ||
</div> | ||
<div class="form-group"> | ||
<label>Password</label> | ||
<input type="password" class="form-control" name="password" required="required" min="5" placeholder="Masukkan Password .."> | ||
</div> | ||
<br> | ||
<div class="form-group"> | ||
<input type="submit" class="btn btn-primary" value="Simpan"> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|
||
</div> | ||
<?php include 'footer.php'; ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
include '../koneksi.php'; | ||
$nama = $_POST['nama']; | ||
$username = $_POST['hdnuser']; | ||
$password = $_POST['password']; | ||
|
||
if ($password==""): | ||
mysqli_query($koneksi, "update admin set admin_nama='$nama' where admin_username='$username'"); | ||
header("location:admin.php?alert=berhasil"); | ||
elseif ($password<>""): | ||
mysqli_query($koneksi, "update admin set admin_nama='$nama', admin_password=md5('$password') where admin_username='$username'"); | ||
header("location:admin.php?alert=berhasil"); | ||
endif; | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php include 'header.php'; ?> | ||
|
||
<div class="content-wrapper"> | ||
|
||
<section class="content-header"> | ||
<h1> | ||
BILL | ||
<small>Data BILL</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> | ||
<li class="active">Dashboard</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content"> | ||
<div class="row"> | ||
<section class="col-lg-12"> | ||
<div class="box box-default"> | ||
|
||
<div class="box-header"> | ||
<h3 class="box-title">BILL</h3> | ||
</div> | ||
<div class="box-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered table-striped" id="table-datatable"> | ||
<thead> | ||
<tr> | ||
<th width="1%">NO</th> | ||
<th>NO BILL</th> | ||
<th>TANGGAL BILL</th> | ||
<th>NAMA PEMESAN </th> | ||
<th>JENIS KAMAR </th> | ||
<th>KETERANGAN </th> | ||
<th class="text-center" width="30%">OPSI</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php | ||
$no = 1; | ||
$data = mysqli_query($koneksi,"SELECT * FROM bill,pembayaran,customer,transaksi_inap,mempunyai where bill.bill_id=check_out.bill_id and customer.no_ktp=transaksi_inap.no_ktp and transaksi_inap.id_transaksi=mempunyai.id_transaksi"); | ||
while($i = mysqli_fetch_array($data)){ | ||
?> | ||
<tr> | ||
<td><?php echo $no++; ?></td> | ||
<td>BILL_00<?php echo $i['bill_id']; ?></td> | ||
<td><?php echo $i['tanggal']; ?></td> | ||
<td><?php echo $i['customer_nama'] ?></td> | ||
<td><?php echo $i['kamar_kategori'] ?></td> | ||
<td><?php echo $i['keterangan'] ?></td> | ||
|
||
<td class="text-center"> | ||
|
||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<a class='btn btn-sm btn-danger' onclick="return confirm('Yakin ingin hapus?')" href="transaksi_hapus.php?id=<?php echo $i['bill_id']; ?>"><i class="fa fa-trash"></i></a> | ||
|
||
</td> | ||
</tr> | ||
<?php | ||
} | ||
?> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|
||
</div> | ||
<?php include 'footer.php'; ?> |
Oops, something went wrong.