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
5fd8b648
Commit
5fd8b648
authored
May 25, 2017
by
Franciskus Partogu Hamonangan Napitupulu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbaikan link
parent
9ad7cacc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
21 deletions
+26
-21
allarticle.php
allarticle.php
+2
-1
allbook.php
allbook.php
+3
-3
categories.php
categories.php
+3
-2
index.php
index.php
+11
-11
publisher.php
publisher.php
+6
-4
singlebook.php
singlebook.php
+1
-0
No files found.
allarticle.php
View file @
5fd8b648
...
@@ -63,11 +63,12 @@
...
@@ -63,11 +63,12 @@
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"col-md-5"
>
<div
class=
"col-md-5"
>
<a
href=
"singlearticle.php?kd=
<?php
echo
$data
[
'id_artikel'
];
?>
"
><img
class=
"col-md-10"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar_artikel'
];
?>
"
placeholder=
"Baca Selengkapnya Disini"
/>
</a>
<a
href=
"singlearticle.php?kd=
<?php
echo
$data
[
'id_artikel'
];
?>
"
><img
class=
"col-md-10"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar_artikel'
];
?>
"
placeholder=
"Baca Selengkapnya Disini"
/>
</div>
</div>
<div
class=
"col-md-7"
>
<div
class=
"col-md-7"
>
<center><h4>
<?php
echo
$data
[
'judul_artikel'
];
?>
</h4></center><br>
<center><h4>
<?php
echo
$data
[
'judul_artikel'
];
?>
</h4></center><br>
<h6>
<?php
echo
$data
[
'tanggal_dibuat'
];
?>
</h6>
<h6>
<?php
echo
$data
[
'tanggal_dibuat'
];
?>
</h6>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
allbook.php
View file @
5fd8b648
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<figure>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
</a>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
<center><h4>
<?php
echo
$data
[
'judul'
];
?>
</h4></center>
<center><h4>
<?php
echo
$data
[
'judul'
];
?>
</h4></center>
<center><h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4></center>
<center><h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4></center>
<center><h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4></center>
<center><h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4></center>
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
</a>
</a>
</div>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<div
class=
"snipcart-details top_brand_home_details"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
</a>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
</a>
</div>
</div>
</div>
</div>
</figure>
</figure>
...
...
categories.php
View file @
5fd8b648
...
@@ -78,15 +78,16 @@
...
@@ -78,15 +78,16 @@
<figure>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/></a
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/
>
<center><h5>
<?php
echo
$data
[
'judul'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'judul'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'pengarang'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'pengarang'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'tahun'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'tahun'
];
?>
</h5></center>
<center><h5>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h5></center>
<center><h5>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h5></center>
</a>
</div>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<div
class=
"snipcart-details top_brand_home_details"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
</a>
</div>
</div>
</div>
</div>
</figure>
</figure>
...
...
index.php
View file @
5fd8b648
<?php
<?php
require_once
(
"koneksi.php"
);
require_once
(
"koneksi.php"
);
include
'header.php'
;
include
'header.php'
;
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE keterangan != 1 AND jumlah != 0 ORDER BY jumlah ASC"
);
?>
?>
<!-- main-slider -->
<!-- main-slider -->
<ul
id=
"demo1"
>
<ul
id=
"demo1"
>
...
@@ -57,16 +56,16 @@
...
@@ -57,16 +56,16 @@
<figure>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/></a
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
</a>
</div>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<div
class=
"snipcart-details top_brand_home_details"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
</a>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/></a>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
</div>
</div>
</div>
</div>
</figure>
</figure>
...
@@ -102,15 +101,15 @@
...
@@ -102,15 +101,15 @@
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
</a>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
</a>
</div>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<div
class=
"snipcart-details top_brand_home_details"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
></a
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/></a
>
</div>
</div>
</div>
</div>
</figure>
</figure>
...
@@ -152,16 +151,17 @@
...
@@ -152,16 +151,17 @@
<div
class=
"agile_top_brand_left_grid1"
>
<div
class=
"agile_top_brand_left_grid1"
>
<figure>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'judul'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'pengarang'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
<?php
echo
$data
[
'tahun'
];
?>
</h4>
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
</a>
</div>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<div
class=
"snipcart-details top_brand_home_details"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
></a
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
/
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
></a
>
</div>
</div>
</div>
</div>
</figure>
</figure>
...
...
publisher.php
View file @
5fd8b648
...
@@ -51,7 +51,9 @@
...
@@ -51,7 +51,9 @@
$penerbit
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_penerbit ORDER BY id_penerbit"
);
$penerbit
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_penerbit ORDER BY id_penerbit"
);
while
(
$data
=
mysqli_fetch_array
(
$penerbit
))
{
while
(
$data
=
mysqli_fetch_array
(
$penerbit
))
{
?>
?>
<li><a
href=
"publisher.php?kd=
<?php
echo
$data
[
'id_penerbit'
];
?>
"
><i
class=
"fa fa-arrow-right"
aria-hidden=
"true"
></i>
<?php
echo
$data
[
'nama_penerbit'
];
?>
</a></li>
<li>
<a
href=
"publisher.php?kd=
<?php
echo
$data
[
'id_penerbit'
];
?>
"
><i
class=
"fa fa-arrow-right"
aria-hidden=
"true"
></i>
<?php
echo
$data
[
'nama_penerbit'
];
?>
</a>
</li>
<?php
<?php
}
}
?>
?>
...
@@ -77,16 +79,16 @@
...
@@ -77,16 +79,16 @@
<figure>
<figure>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-item block"
>
<div
class=
"snipcart-thumb"
>
<div
class=
"snipcart-thumb"
>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
/></a>
<a
href=
"singlebook.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
><img
class=
"col-md-12"
title=
"Klik Disini"
src=
"
<?php
echo
$data
[
'gambar'
];
?>
"
>
<br>
<center><h5>
<?php
echo
$data
[
'judul'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'judul'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'pengarang'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'pengarang'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'tahun'
];
?>
</h5></center>
<center><h5>
<?php
echo
$data
[
'tahun'
];
?>
</h5></center>
<center><h5>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h5></center>
<center><h5>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h5></center>
</a>
</div>
</div>
<div
class=
"snipcart-details top_brand_home_details"
>
<div
class=
"snipcart-details top_brand_home_details"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<a
href=
"function.php?act=add&barang_id=
<?php
echo
$data
[
'isbn'
];
?>
&ref=checkout.php?kd=
<?php
echo
$data
[
'isbn'
];
?>
"
>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
<input
type=
"submit"
name=
"simpan"
value=
"Tambah"
class=
"button"
/>
</a>
</div>
</div>
</div>
</div>
</figure>
</figure>
...
...
singlebook.php
View file @
5fd8b648
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
<?php
if
(
$data
[
'jumlah'
]
>=
1
)
{
<?php
if
(
$data
[
'jumlah'
]
>=
1
)
{
echo
'<input type="submit" name="simpan" value="Tambah" class="button" />'
;
echo
'<input type="submit" name="simpan" value="Tambah" class="button" />'
;
}
?>
}
?>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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