Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
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
Mei Romauli Sagala
RestoranPondokEdo
Commits
e536007c
Commit
e536007c
authored
7 years ago
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Penambahan menu untuk member
parent
82793f93
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
member_menu.php
member_menu.php
+50
-0
No files found.
member_menu.php
0 → 100644
View file @
e536007c
<?php
require
'koneksi.php'
;
include
'common/header.php'
;
?>
<h3><span
class=
"glyphicon glyphicon-shopping-cart"
></span>
Daftar Menu
</h3>
<br/>
<hr/>
<?php
$per_hal
=
8
;
$jumlah_record
=
mysql_query
(
"SELECT COUNT(*) from menu"
);
$jum
=
mysql_result
(
$jumlah_record
,
0
);
$halaman
=
ceil
(
$jum
/
$per_hal
);
$page
=
(
isset
(
$_GET
[
'page'
]))
?
(
int
)
$_GET
[
'page'
]
:
1
;
$start
=
(
$page
-
1
)
*
$per_hal
;
?>
<br/>
<?php
$menu
=
mysql_query
(
"select * from menu limit
$start
,
$per_hal
"
);
while
(
$b
=
mysql_fetch_array
(
$menu
))
{
?>
<div
class=
"col-md-3"
>
<img
src=
"picture/
<?php
echo
$b
[
'gambar'
]
?>
"
class=
"img-rounded"
width=
"250"
height=
"250"
>
<div
class=
"caption"
>
<h4
style=
"color: #2e6da4;"
>
<?php
echo
$b
[
'nama'
];
?>
</h4>
<h4>
<b>
<?php
echo
number_format
(
$b
[
'harga'
])
?>
</b>
</h4>
<hr/>
<a
href=
"pesan.php?id=
<?php
echo
$b
[
'id_menu'
]
?>
"
class=
"btn btn-info"
>
<span
class=
"glyphicon glyphicon-shopping-cart"
></span>
Pesan
</a>
<br/>
<br/>
</div>
</div>
<?php
}
?>
<div
class=
"col-md-12"
>
<ul
class=
"pagination"
>
<?php
for
(
$x
=
1
;
$x
<=
$halaman
;
$x
++
)
{
?>
<li><a
href=
"?page=
<?php
echo
$x
?>
"
>
<?php
echo
$x
?>
</a></li>
<?php
}
?>
</ul>
</div>
<?php
include
'common/footer.php'
;
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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