Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI05
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
Fredrick Mangampu Theodorus Pardosi
PA1-1617-D3TI05
Commits
a6bb0a8f
Commit
a6bb0a8f
authored
May 24, 2017
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
887bbce7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
index.php
index.php
+14
-4
No files found.
index.php
View file @
a6bb0a8f
...
...
@@ -111,8 +111,17 @@ $start = ($page - 1) * $per_hal;
<div
class=
"row"
>
<div
id=
"w"
>
<ul>
<div
class=
"col-lg-12"
>
<form
action=
"cari_process.php"
method=
"get"
>
<div
class=
"input-group col-md-5 col-md-offset-7"
>
<span
class=
"input-group-addon"
id=
"basic-addon1"
><span
class=
"glyphicon glyphicon-search"
></span></span>
<input
type=
"text"
class=
"form-control"
placeholder=
"Cari menu di sini .."
aria-describedby=
"basic-addon1"
name=
"cari"
>
</div>
</form>
</div>
<br><br>
<div
class=
"col-lg-12"
>
<?php
$query
=
"SELECT * FROM menu limit
$start
,
$per_hal
"
;
$result_set
=
$conn
->
query
(
$query
);
...
...
@@ -123,7 +132,7 @@ $start = ($page - 1) * $per_hal;
<li
class=
"item breakfast"
>
<?php
echo
$row
[
'nama'
]
?>
<img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-rounded"
height=
"2
00"
width=
"20
0"
class=
"col-md-12 img-responsive"
>
<img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-rounded"
height=
"2
60"
width=
"22
0"
class=
"col-md-12 img-responsive"
>
<h2
class=
"white"
>
Rp.
<?php
echo
$row
[
'harga'
];
?>
</h2>
<a
href=
"pesan_barang.php?id=
<?=
$row
[
'id'
]
?>
"
>
<button
class=
"text-center btn-block form-btn"
>
Pesan
</button>
...
...
@@ -132,9 +141,10 @@ $start = ($page - 1) * $per_hal;
</li>
<br>
</div>
<?php
}
?>
<div
class=
"col-md-12"
>
<ul
class=
"pagination"
>
<?php
...
...
@@ -218,7 +228,7 @@ $start = ($page - 1) * $per_hal;
$query
=
"SELECT * FROM Komentar"
;
$result_set
=
$conn
->
query
(
$query
);
while
(
$row
=
$result_set
->
fetch_assoc
())
{
while
(
$row
=
$result_set
->
fetch_assoc
())
{
?>
<div
class=
"alert alert-success"
role=
"alert"
>
<strong>
<?=
$row
[
'name'
]
?>
</strong>
<p>
<?=
$row
[
'komentar'
]
?>
</p></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