Commit 7d024783 by Palti Sinaga

kedua

parent ebeb7706
......@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 10 Mei 2017 pada 06.20
-- Generation Time: 15 Mei 2017 pada 09.59
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
......@@ -23,6 +23,27 @@ SET time_zone = "+00:00";
-- --------------------------------------------------------
--
-- Struktur dari tabel `daftar_book`
--
CREATE TABLE `daftar_book` (
`id` int(10) UNSIGNED NOT NULL,
`homestay` int(10) UNSIGNED DEFAULT NULL,
`nama_pemesan` varchar(255) DEFAULT NULL,
`tanggal_mulai` date DEFAULT NULL,
`tanggal_berakhir` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `daftar_book`
--
INSERT INTO `daftar_book` (`id`, `homestay`, `nama_pemesan`, `tanggal_mulai`, `tanggal_berakhir`) VALUES
(3, 9, 'Lesa Lesuu ', '2017-05-16', '2017-05-19');
-- --------------------------------------------------------
--
-- Struktur dari tabel `dinaspariwisata`
--
......@@ -70,7 +91,7 @@ CREATE TABLE `homestay` (
`alamat` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`jumlahKamar` int(11) NOT NULL,
`harga` double NOT NULL,
`fasilitas` text COLLATE utf8_unicode_ci NOT NULL,
`fasilitas` text COLLATE utf8_unicode_ci,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
......@@ -81,7 +102,8 @@ CREATE TABLE `homestay` (
--
INSERT INTO `homestay` (`id`, `idPemilik`, `namaHomestay`, `owner`, `alamat`, `jumlahKamar`, `harga`, `fasilitas`, `status`, `created_at`, `updated_at`) VALUES
(9, 6, 'Test2', 'Palti Sinaga', 'Balige', 4, 150000, 'Kamar Mandi, Tempat Panggang, Dekat Pantai, Tempat karaoke, dan juga Tempat Dispenser\r\njadi ayo ke homestay kami guys!! :)', '----', '2017-05-08 02:51:28', '2017-05-08 02:51:28');
(9, 6, 'Test2', 'Palti Sinaga', 'Balige', 4, 150000, 'Kamar Mandi, Tempat Panggang, Dekat Pantai, Tempat karaoke, dan juga Tempat Dispenser\r\njadi ayo ke homestay kami guys!! :)', '----', '2017-05-08 02:51:28', '2017-05-08 02:51:28'),
(10, 7, 'Testing Katu', 'Test', '--', 3, 150000, NULL, '----', '2017-05-14 23:26:59', '2017-05-14 23:26:59');
-- --------------------------------------------------------
......@@ -92,7 +114,7 @@ INSERT INTO `homestay` (`id`, `idPemilik`, `namaHomestay`, `owner`, `alamat`, `j
CREATE TABLE `kamar` (
`id` int(10) UNSIGNED NOT NULL,
`idHomestay` int(10) UNSIGNED DEFAULT NULL,
`idPemesanan` int(10) UNSIGNED DEFAULT NULL,
`id_transaksi` int(10) UNSIGNED DEFAULT NULL,
`nomor_kamar` int(10) UNSIGNED NOT NULL,
`jumlah_bed` int(10) DEFAULT NULL,
`fasilitas` varchar(255) DEFAULT NULL
......@@ -102,11 +124,14 @@ CREATE TABLE `kamar` (
-- Dumping data untuk tabel `kamar`
--
INSERT INTO `kamar` (`id`, `idHomestay`, `idPemesanan`, `nomor_kamar`, `jumlah_bed`, `fasilitas`) VALUES
(8, 9, NULL, 1, 2, NULL),
(9, 9, NULL, 2, 2, NULL),
(10, 9, NULL, 3, 2, NULL),
(11, 9, NULL, 4, 2, NULL);
INSERT INTO `kamar` (`id`, `idHomestay`, `id_transaksi`, `nomor_kamar`, `jumlah_bed`, `fasilitas`) VALUES
(8, 9, 1, 1, 2, NULL),
(9, 9, 1, 2, 2, NULL),
(10, 9, 1, 3, 2, NULL),
(11, 9, NULL, 4, 2, NULL),
(12, 10, NULL, 1, 2, NULL),
(13, 10, NULL, 2, 2, NULL),
(14, 10, NULL, 3, 2, NULL);
-- --------------------------------------------------------
......@@ -190,44 +215,12 @@ CREATE TABLE `pelanggan` (
--
INSERT INTO `pelanggan` (`id`, `id_Akun`, `nama`, `alamat`, `noTelepon`, `pekerjaan`, `foto`, `created_at`, `updated_at`) VALUES
(2, 14, 'LesaTap', '---', '---', '---', NULL, '2017-05-09 02:32:54', '2017-05-09 02:32:54'),
(2, 14, 'Lesa Lesuu ', 'Medan Bung', '082134657865', 'Panortor Profesional', NULL, '2017-05-09 02:32:54', '2017-05-09 21:46:55'),
(4, 15, 'Parhuta', '---', '---', '---', NULL, '2017-05-09 03:12:56', '2017-05-09 03:12:56');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pembayaran`
--
CREATE TABLE `pembayaran` (
`idPembayaran` int(11) NOT NULL,
`idPemilikHomestay` int(10) UNSIGNED DEFAULT NULL,
`idPemesanan` int(10) UNSIGNED NOT NULL,
`totalHarga` double NOT NULL,
`buktiPembayaran` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`tanggalKonfirmasi` date NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Struktur dari tabel `pemesanan`
--
CREATE TABLE `pemesanan` (
`idPemesanan` int(10) UNSIGNED NOT NULL,
`idKamar` int(10) UNSIGNED NOT NULL,
`idPelanggan` int(10) UNSIGNED NOT NULL,
`status` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Struktur dari tabel `pemilikhomestay`
--
......@@ -274,7 +267,7 @@ CREATE TABLE `pengajuan_homestay` (
INSERT INTO `pengajuan_homestay` (`id`, `idPemilikHomestay`, `idPgwDinasPariwisata`, `namaHomestay`, `jumlahKamar`, `status`) VALUES
(3, 6, NULL, 'Test2', 4, 1),
(4, 7, NULL, 'Testing Katu', 3, 0);
(4, 7, NULL, 'Testing Katu', 3, 1);
-- --------------------------------------------------------
......@@ -304,6 +297,33 @@ INSERT INTO `requestfasilitas` (`id`, `id_pemilik_homestay`, `id_kategoriFasilta
-- --------------------------------------------------------
--
-- Struktur dari tabel `transaksi`
--
CREATE TABLE `transaksi` (
`id` int(10) UNSIGNED NOT NULL,
`id_pelanggan` int(10) UNSIGNED NOT NULL,
`id_homestay` int(10) UNSIGNED DEFAULT NULL,
`tanggal_mulai` date NOT NULL,
`tanggal_berakhir` date NOT NULL,
`jumlah_kamar` int(10) NOT NULL,
`lama_menginap` int(10) NOT NULL,
`bukti_pembayaran` varchar(255) DEFAULT NULL,
`total_pembayaran` int(10) DEFAULT NULL,
`tanggal_konfirmasi` date DEFAULT NULL,
`status` tinyint(1) UNSIGNED ZEROFILL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `transaksi`
--
INSERT INTO `transaksi` (`id`, `id_pelanggan`, `id_homestay`, `tanggal_mulai`, `tanggal_berakhir`, `jumlah_kamar`, `lama_menginap`, `bukti_pembayaran`, `total_pembayaran`, `tanggal_konfirmasi`, `status`) VALUES
(16, 2, 9, '2017-05-16', '2017-05-19', 2, 3, 'bukulapak.PNG', 300000, NULL, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
......@@ -325,11 +345,11 @@ CREATE TABLE `users` (
--
INSERT INTO `users` (`id`, `name`, `username`, `email`, `password`, `foto`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(2, 'Juliper', 'admin', 'admin@del.ac.id', '$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe', 'gravatar.png', 'DinasPariwisata', '1uOo9pfp4jpHS8c7tq3dypXcnborVStbH67IiAGc7Uns4rD7XD6SNHgclaUy', '2017-04-22 02:30:14', '2017-05-08 20:05:31'),
(2, 'Juliper', 'admin', 'admin@del.ac.id', '$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe', 'gravatar.png', 'DinasPariwisata', '8Ywt4jfBhZVCWSAfJQugeg33ed9sY41MKnk3qWBvbqyO7MWyMda3azKTDckb', '2017-04-22 02:30:14', '2017-05-14 23:27:27'),
(5, 'Palti Sinaga', 'palti', 'palti1@gmail.com', '$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..', 'gravatar.png', 'Owner', 'lLUKpdXPxtKUfytdETV1FqFLiePBg3OmILtEnX0RzSKrnvGk93EMeR728h3t', '2017-04-29 08:07:38', '2017-05-03 01:50:37'),
(6, 'Test', 'test', 'test@gmail.com', '$2y$10$rkcPTvpujOZZFRs/libdZeIED53Ve67HM/3C9Zb0jQE8hqxzhsIxW', 'gravatar.png', 'Owner', 'nRQV1WwDDMD9s6Le9v12vhYqN5iXLIr9hNRRU0d1Ta5Z5pCvhGV3wUXwXrhp', '2017-05-03 01:52:34', '2017-05-08 19:26:52'),
(6, 'Test', 'test', 'test@gmail.com', '$2y$10$rkcPTvpujOZZFRs/libdZeIED53Ve67HM/3C9Zb0jQE8hqxzhsIxW', 'gravatar.png', 'Owner', 'DjAtWTHS5UJbQ5MqEcrGd3WEINHQSdzU52UEZfx7tCXwjXFCxd6fj5b6i1k4', '2017-05-03 01:52:34', '2017-05-14 23:35:27'),
(8, 'Testing', 'testing', 'testing@gmail.com', '$2y$10$tDOBcuve8EGi.k8.v9at5eYZRMRdOyXmqaahfwG2pwyMrbWd3B1Ra', 'gravatar.png', 'Owner', NULL, '2017-05-08 19:36:39', '2017-05-08 19:36:39'),
(14, 'LesaTap', 'lesa', 'lesa@gmail.com', '$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW', 'gravatar.png', 'Customer', 'z4fxJbpU46WsDyE6S9L3Rn38e2E0U3iYl9NRLiAKFf3ZJiXhcZDQvwxA3izx', '2017-05-09 02:41:21', '2017-05-09 06:30:02'),
(14, 'Lesa Lesuu ', 'lesa', 'lesa@gmail.com', '$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW', 'lesa2.jpg', 'Customer', 'dE0T7CwRxXmDJQwoNNQQ3U2GG2rn4pilXY6HBDWGq0thNV5NcBOTyEJuzBER', '2017-05-09 02:41:21', '2017-05-15 00:34:33'),
(15, 'Parhuta', 'hutahuta', 'huta@gmail.com', '$2y$10$S/thLiTQUbpZ6/utPKPwDe7JGoScFnebDK6Vt6sm0I.7CIoQ9HrWe', 'gravatar.png', 'Customer', NULL, '2017-05-09 03:12:55', '2017-05-09 03:12:55');
--
......@@ -337,6 +357,12 @@ INSERT INTO `users` (`id`, `name`, `username`, `email`, `password`, `foto`, `rol
--
--
-- Indexes for table `daftar_book`
--
ALTER TABLE `daftar_book`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `dinaspariwisata`
--
ALTER TABLE `dinaspariwisata`
......@@ -366,7 +392,7 @@ ALTER TABLE `homestay`
--
ALTER TABLE `kamar`
ADD PRIMARY KEY (`id`),
ADD KEY `idPemesanan` (`idPemesanan`),
ADD KEY `idPemesanan` (`id_transaksi`),
ADD KEY `idHomestay` (`idHomestay`);
--
......@@ -395,21 +421,6 @@ ALTER TABLE `pelanggan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pembayaran`
--
ALTER TABLE `pembayaran`
ADD KEY `idPemilikHomestay` (`idPemilikHomestay`),
ADD KEY `idPemesanan` (`idPemesanan`);
--
-- Indexes for table `pemesanan`
--
ALTER TABLE `pemesanan`
ADD PRIMARY KEY (`idPemesanan`),
ADD KEY `idKamar` (`idKamar`),
ADD KEY `idPelanggan` (`idPelanggan`);
--
-- Indexes for table `pemilikhomestay`
--
ALTER TABLE `pemilikhomestay`
......@@ -434,6 +445,14 @@ ALTER TABLE `requestfasilitas`
ADD KEY `id_kategoriFasiltas` (`id_kategoriFasiltas`);
--
-- Indexes for table `transaksi`
--
ALTER TABLE `transaksi`
ADD PRIMARY KEY (`id`),
ADD KEY `id_pelanggan` (`id_pelanggan`),
ADD KEY `id_homestay` (`id_homestay`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
......@@ -446,6 +465,11 @@ ALTER TABLE `users`
--
--
-- AUTO_INCREMENT for table `daftar_book`
--
ALTER TABLE `daftar_book`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `dinaspariwisata`
--
ALTER TABLE `dinaspariwisata`
......@@ -459,12 +483,12 @@ ALTER TABLE `feedback`
-- AUTO_INCREMENT for table `homestay`
--
ALTER TABLE `homestay`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `kamar`
--
ALTER TABLE `kamar`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `kategorifasilitas`
--
......@@ -481,11 +505,6 @@ ALTER TABLE `migrations`
ALTER TABLE `pelanggan`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `pemesanan`
--
ALTER TABLE `pemesanan`
MODIFY `idPemesanan` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pemilikhomestay`
--
ALTER TABLE `pemilikhomestay`
......@@ -501,6 +520,11 @@ ALTER TABLE `pengajuan_homestay`
ALTER TABLE `requestfasilitas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
......@@ -526,23 +550,9 @@ ALTER TABLE `homestay`
-- Ketidakleluasaan untuk tabel `kamar`
--
ALTER TABLE `kamar`
ADD CONSTRAINT `kamar_ibfk_1` FOREIGN KEY (`idPemesanan`) REFERENCES `pemesanan` (`idPemesanan`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `kamar_ibfk_2` FOREIGN KEY (`idHomestay`) REFERENCES `homestay` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `pembayaran`
--
ALTER TABLE `pembayaran`
ADD CONSTRAINT `pembayaran_ibfk_1` FOREIGN KEY (`idPemilikHomestay`) REFERENCES `pemilikhomestay` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `pembayaran_ibfk_2` FOREIGN KEY (`idPemesanan`) REFERENCES `pemesanan` (`idPemesanan`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `pemesanan`
--
ALTER TABLE `pemesanan`
ADD CONSTRAINT `pemesanan_ibfk_2` FOREIGN KEY (`idPelanggan`) REFERENCES `pelanggan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `pemilikhomestay`
--
ALTER TABLE `pemilikhomestay`
......@@ -562,6 +572,13 @@ ALTER TABLE `requestfasilitas`
ADD CONSTRAINT `requestfasilitas_ibfk_1` FOREIGN KEY (`id_pemilik_homestay`) REFERENCES `pemilikhomestay` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `requestfasilitas_ibfk_2` FOREIGN KEY (`id_kategoriFasiltas`) REFERENCES `kategorifasilitas` (`idFasilitas`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `transaksi`
--
ALTER TABLE `transaksi`
ADD CONSTRAINT `transaksi_ibfk_1` FOREIGN KEY (`id_pelanggan`) REFERENCES `pelanggan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `transaksi_ibfk_2` FOREIGN KEY (`id_homestay`) REFERENCES `homestay` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
......@@ -2393,7 +2393,7 @@ table th[class*="col-"] {
.table-hover > tbody > tr.danger:hover > td,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr.danger:hover > th {
background-color: #ebcccc;
background-color: #5a5a5a;
}
.table-responsive {
overflow-x: auto;
......@@ -2499,7 +2499,7 @@ output {
padding-top: 7px;
font-size: 14px;
line-height: 1.42857143;
color: #d2d6de;
color: #232323;
}
.form-control {
display: block;
......@@ -2508,7 +2508,7 @@ output {
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #d2d6de;
color: #000000;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
......@@ -3737,7 +3737,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
font-size: 14px;
font-weight: normal;
line-height: 1;
color: #d2d6de;
color: #444444;
text-align: center;
background-color: #eeeeee;
border: 1px solid #ccc;
......@@ -3870,7 +3870,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #d2d6de;
color: #2f2f2f;
background-color: #ecf0f5;
border: 1px solid #ddd;
border-bottom-color: transparent;
......
......@@ -1433,8 +1433,17 @@ figure.effect-zoe:hover ul.social-icons a:first-child {
color: #777;
}
/*.cuisines img{
width: 100px;
height: 100px;
}*/
/*-- //Cuisines --*/
.img-responsive{
width: 300px;
height: auto;
}
/*-- Specials --*/
......
......@@ -36,4 +36,4 @@
</div>
</div>
@endsection
\ No newline at end of file
@endsection
......@@ -5,7 +5,7 @@
<div class="container">
<table class="table table-striped">
<thead>
<tr>
<tr>
<th> No. </th>
<th> No. Rekening </th>
<th> Atas Nama </th>
......@@ -30,4 +30,4 @@
</div>
</div>
@endsection
\ No newline at end of file
@endsection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment