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
7e0e4a5d
Commit
7e0e4a5d
authored
May 24, 2017
by
Franciskus Partogu Hamonangan Napitupulu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbarui
parent
34bc5840
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
13 deletions
+46
-13
allbook.php
allbook.php
+2
-2
categories.php
categories.php
+21
-5
editbook_process.php
editbook_process.php
+1
-0
index.php
index.php
+2
-1
publisher.php
publisher.php
+20
-5
No files found.
allbook.php
View file @
7e0e4a5d
<?php
require_once
(
"koneksi.php"
);
include
'header.php'
;
global
$sql
;
$per_hal
=
12
;
$jumlah_record
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku"
);
...
...
@@ -10,7 +9,8 @@
$halaman
=
ceil
(
$jum
/
$per_hal
);
$page
=
(
isset
(
$_GET
[
'page'
]))
?
(
int
)
$_GET
[
'page'
]
:
1
;
$start
=
(
$page
-
1
)
*
$per_hal
;
global
$sql
;
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku ORDER BY isbn ASC LIMIT
$start
,
$per_hal
"
);
?>
<!-- breadcrumbs -->
...
...
categories.php
View file @
7e0e4a5d
<?php
require_once
(
"koneksi.php"
);
include
'header.php'
;
global
$sql
;
$id
=
$_GET
[
'kd'
];
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE kategori='
$id
' ORDER BY isbn"
);
?>
<!-- breadcrumbs -->
...
...
@@ -20,6 +23,21 @@
}
?>
</ol>
<?php
if
(
isset
(
$_POST
[
'cari'
]))
{
$cari
=
$_POST
[
'search'
];
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE judul LIKE '%
$cari
%' ORDER BY kategori"
);
}
?>
<div
class=
"w3l_search"
>
<form
action=
""
method=
"post"
>
<input
type=
"search"
name=
"search"
placeholder=
"Cari Judul Buku"
required=
""
>
<button
type=
"submit"
class=
"btn btn-default search"
aria-label=
"Left Align"
name=
"cari"
>
<i
class=
"fa fa-search"
aria-hidden=
"true"
>
</i>
</button>
<div
class=
"clearfix"
></div>
</form>
</div>
</div>
</div>
<!-- //breadcrumbs -->
...
...
@@ -31,8 +49,8 @@
<h2>
KATEGORI
</h2>
<ul
class=
"cate"
>
<?php
$
sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_kategori ORDER BY id_kategori"
);
while
(
$data
=
mysqli_fetch_array
(
$
sql
))
{
$
kategori
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_kategori ORDER BY id_kategori"
);
while
(
$data
=
mysqli_fetch_array
(
$
kategori
))
{
?>
<li><a
href=
"categories.php?kd=
<?php
echo
$data
[
'id_kategori'
];
?>
"
><i
class=
"fa fa-arrow-right"
aria-hidden=
"true"
></i>
<?php
echo
$data
[
'nama_kategori'
];
?>
</a></li>
<?php
...
...
@@ -44,9 +62,7 @@
<div
class=
"col-md-8 products-right"
>
<div
class=
"agile_top_brands_grids"
>
<?php
$id
=
$_GET
[
'kd'
];
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE kategori='
$id
' ORDER BY isbn"
);
while
(
$data
=
mysqli_fetch_array
(
$sql
)){
while
(
$data
=
mysqli_fetch_array
(
$sql
))
{
?>
<div
class=
"col-md-4 top_brand_left"
>
<div
class=
"hover14 column"
>
...
...
editbook_process.php
View file @
7e0e4a5d
...
...
@@ -12,6 +12,7 @@
$harga
=
$_POST
[
'harga'
];
$jumlah
=
$_POST
[
'jumlah'
];
$keterangan
=
$_POST
[
'keterangan'
];
$gambar
=
$_POST
[
'gambar'
];
if
(
$_FILES
[
'gambar'
][
'name'
])
{
move_uploaded_file
(
$_FILES
[
'gambar'
][
'tmp_name'
],
'images/'
.
$judul
.
'.jpg'
);
...
...
index.php
View file @
7e0e4a5d
<?php
require_once
(
"koneksi.php"
);
include
'header.php'
;
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE keterangan != 1 AND jumlah != 0 ORDER BY jumlah ASC"
);
?>
<!-- main-slider -->
<ul
id=
"demo1"
>
...
...
@@ -159,7 +160,7 @@
<h4>
Rp.
<?php
echo
number_format
(
$data
[
'harga'
],
2
,
","
,
"."
);
?>
</h4>
</div>
<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"
/>
</div>
</div>
...
...
publisher.php
View file @
7e0e4a5d
<?php
require_once
(
"koneksi.php"
);
include
'header.php'
;
$id
=
$_GET
[
'kd'
];
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE penerbit='
$id
' ORDER BY isbn"
);
?>
<!-- breadcrumbs -->
...
...
@@ -20,6 +22,21 @@
}
?>
</ol>
<?php
if
(
isset
(
$_POST
[
'cari'
]))
{
$cari
=
$_POST
[
'search'
];
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE judul LIKE '%
$cari
%' ORDER BY penerbit"
);
}
?>
<div
class=
"w3l_search"
>
<form
action=
""
method=
"post"
>
<input
type=
"search"
name=
"search"
placeholder=
"Cari Judul Buku"
required=
""
>
<button
type=
"submit"
class=
"btn btn-default search"
aria-label=
"Left Align"
name=
"cari"
>
<i
class=
"fa fa-search"
aria-hidden=
"true"
>
</i>
</button>
<div
class=
"clearfix"
></div>
</form>
</div>
</div>
</div>
<!-- //breadcrumbs -->
...
...
@@ -31,8 +48,8 @@
<h2>
PENERBIT
</h2>
<ul
class=
"cate"
>
<?php
$
sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_penerbit ORDER BY id_penerbit"
);
while
(
$data
=
mysqli_fetch_array
(
$
sql
))
{
$
penerbit
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_penerbit ORDER BY id_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>
<?php
...
...
@@ -44,9 +61,7 @@
<div
class=
"col-md-8 products-right"
>
<div
class=
"agile_top_brands_grids"
>
<?php
$id
=
$_GET
[
'kd'
];
$sql
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE penerbit='
$id
' ORDER BY isbn"
);
while
(
$data
=
mysqli_fetch_array
(
$sql
)){
while
(
$data
=
mysqli_fetch_array
(
$sql
))
{
?>
<div
class=
"col-md-4 top_brand_left"
>
<div
class=
"hover14 column"
>
...
...
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