Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI107
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franciskus Partogu Hamonangan Napitupulu
PA1-1617-D3TI107
Commits
0bf36cc0
Commit
0bf36cc0
authored
Jun 10, 2017
by
Franciskus Partogu Hamonangan Napitupulu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbaikan
parent
f598c494
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
192 deletions
+0
-192
confirm.php
confirm.php
+0
-9
finish.php
finish.php
+0
-9
offers.php
offers.php
+0
-174
No files found.
confirm.php
deleted
100644 → 0
View file @
f598c494
<?php
require_once
(
"koneksi.php"
);
$id
=
$_GET
[
'id'
];
$status
=
'Diterima'
;
mysqli_query
(
$koneksi
,
"UPDATE t_pembayaran SET status = '
$status
' WHERE id_pembayaran = '
$id
'"
)
echo
"<script>alert('Pembayaran berhasil dikonfirmasi');window.location = 'processorder.php'</script>"
;
?>
\ No newline at end of file
finish.php
deleted
100644 → 0
View file @
f598c494
<?php
require_once
(
"koneksi.php"
);
$id
=
$_GET
[
'id'
];
mysqli_query
(
$koneksi
,
"DELETE FROM t_pemesanan WHERE id_user = '
$id
'"
);
mysqli_query
(
$koneksi
,
"DELETE FROM t_pembayaran WHERE id_user = '
$id
'"
);
echo
"<script>alert('Terimakasih');window.location = 'allbook.php'</script>"
;
?>
\ No newline at end of file
offers.php
deleted
100644 → 0
View file @
f598c494
<?php
require_once
(
"koneksi.php"
);
include
'header.php'
;
?>
<!-- breadcrumbs -->
<div
class=
"breadcrumbs"
>
<div
class=
"container"
>
<ol
class=
"breadcrumb breadcrumb1 animated wow slideInLeft"
data-wow-delay=
".5s"
>
<li><a
href=
"index.php"
><span
class=
"glyphicon glyphicon-home"
aria-hidden=
"true"
></span>
Beranda
</a></li>
<li
class=
"active"
>
Penawaran Terbaik
</li>
</ol>
</div>
</div>
<!-- //breadcrumbs -->
<!-- top-brands -->
<div
class=
"top-brands"
>
<div
class=
"container"
>
<h2>
Penawaran terbaik
</h2>
<div
class=
"grid_3 grid_5"
>
<div
class=
"bs-example bs-example-tabs"
role=
"tabpanel"
data-example-id=
"togglable-tabs"
>
<ul
id=
"myTab"
class=
"nav nav-tabs"
role=
"tablist"
>
<li
role=
"presentation"
class=
"active"
><a
href=
"#expeditions"
id=
"expeditions-tab"
role=
"tab"
data-toggle=
"tab"
aria-controls=
"expeditions"
aria-expanded=
"true"
>
Penjualan Terbaik
</a></li>
<li
role=
"presentation"
><a
href=
"#tours"
role=
"tab"
id=
"tours-tab"
data-toggle=
"tab"
aria-controls=
"tours"
>
Segera Hadir
</a></li>
</ul>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
role=
"tabpanel"
class=
"tab-pane fade in active"
id=
"expeditions"
aria-labelledby=
"expeditions-tab"
>
<div
class=
"agile-tp"
>
<h5>
Buku terlaris
</h5>
<p
class=
"w3l-ad"
>
Berikut daftar buku dengan penjualan terbaik dalam bulan ini.
</p>
</div>
<div
class=
"agile_top_brands_grids"
>
<?php
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE keterangan = 2 ORDER BY isbn DESC limit 12"
);
while
(
$data
=
mysqli_fetch_array
(
$sql
)){
?>
<div
class=
"col-md-3 top_brand_left"
>
<div
class=
"hover14 column"
>
<div
class=
"agile_top_brand_left_grid"
>
<div
class=
"agile_top_brand_left_grid1"
>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<center>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/></a>
</center>
<br>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'penerbit'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
Rp.
<?php
echo
$data
[
'harga'
];
?>
,-
</h4>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<form
action=
"#"
method=
"post"
>
<a
href=
"detailproduk.php?kd=
<?php
echo
$data
[
'id_produk'
];
?>
"
/>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
</form>
</div>
</div>
</figure>
</div>
</div>
</div>
<br>
</div>
<?php
}
?>
<div
class=
"clearfix"
>
</div>
</div>
</div>
<div
role=
"tabpanel"
class=
"tab-pane fade"
id=
"tours"
aria-labelledby=
"tours-tab"
>
<div
class=
"agile-tp"
>
<h5>
Buku yang akan hadir
</h5>
<p
class=
"w3l-ad"
>
Berikut daftar buku yang akan segera hadir di toko kami.
</p>
</div>
<div
class=
"agile_top_brands_grids"
>
<?php
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE keterangan = 3 ORDER BY isbn DESC limit 12"
);
while
(
$data
=
mysqli_fetch_array
(
$sql
)){
?>
<div
class=
"col-md-3 top_brand_left"
>
<div
class=
"hover14 column"
>
<div
class=
"agile_top_brand_left_grid"
>
<div
class=
"agile_top_brand_left_grid1"
>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<center>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/></a>
</center>
<br>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'penerbit'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
Rp.
<?php
echo
$data
[
'harga'
];
?>
,-
</h4>
</div>
</div>
</figure>
</div>
</div>
</div>
<br>
</div>
<?php
}
?>
<div
class=
"clearfix"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //top-brands -->
<!-- new -->
<div
class=
"newproducts-w3agile"
>
<div
class=
"container"
>
<h3>
Potongan Harga
</h3>
<div
class=
"agile_top_brands_grids"
>
<?php
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE keterangan = 4 ORDER BY isbn DESC limit 4"
);
while
(
$data
=
mysqli_fetch_array
(
$sql
)){
?>
<div
class=
"col-md-3 top_brand_left-1"
>
<div
class=
"hover14 column"
>
<div
class=
"agile_top_brand_left_grid"
>
<div
class=
"agile_top_brand_left_grid_pos"
>
<img
src=
"images/offer.png"
alt=
" "
class=
"img-responsive"
>
</div>
<div
class=
"agile_top_brand_left_grid1"
>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<center>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/></a>
</center>
<br>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'penerbit'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
Rp.
<?php
echo
$data
[
'harga'
];
?>
,-
</h4>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<form
action=
"#"
method=
"post"
>
<a
href=
"detailproduk.php?kd=
<?php
echo
$data
[
'id_produk'
];
?>
"
/>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
</form>
</div>
</div>
</figure>
</div>
</div>
</div>
</div>
<?php
}
?>
<div
class=
"clearfix"
>
</div>
</div>
</div>
</div>
<!-- //new -->
<?php
include
'footer.php'
;
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment