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
44957ddf
Commit
44957ddf
authored
May 19, 2017
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perubahan tampilan index
parent
82fb4f02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
9 deletions
+72
-9
index.php
index.php
+72
-9
No files found.
index.php
View file @
44957ddf
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
session_start
();
session_start
();
include_once
'functions/fungsi.php'
;
include_once
'functions/fungsi.php'
;
include_once
'connection/koneksi.php'
;
include_once
'connection/koneksi.php'
;
?>
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
...
@@ -14,6 +16,7 @@ include_once 'connection/koneksi.php';
...
@@ -14,6 +16,7 @@ include_once 'connection/koneksi.php';
<link
href=
'http://fonts.googleapis.com/css?family=Pacifico'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Pacifico'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"css/animate.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
...
@@ -28,6 +31,7 @@ include_once 'connection/koneksi.php';
...
@@ -28,6 +31,7 @@ include_once 'connection/koneksi.php';
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<div
class=
"container"
>
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
></ul>
<div
class=
"row"
>
<div
class=
"row"
>
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
...
@@ -41,23 +45,26 @@ include_once 'connection/koneksi.php';
...
@@ -41,23 +45,26 @@ include_once 'connection/koneksi.php';
</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Collect the nav links, forms, and other content for toggling -->
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
>
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav main-nav clear navbar-right "
>
<ul
class=
"nav navbar-nav main-nav clear navbar-right "
>
<li><a
class=
"navactive color_animation"
href=
"index.php"
>
WELCOME
</a></li>
<li><a
class=
"navactive color_animation"
href=
"index.php"
>
WELCOME
</a></li>
<?php
<?php
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"member"
))
{
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"member"
))
{
echo
(
'<li><a class="color_animation" href="#pricing">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="index.php #menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="pesanan.php">PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="pesanan.php">PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="
#pembayaran">Pembayaran
</a></li>'
);
echo
(
'<li><a class="color_animation" href="
upload_bukti.php">PEMBAYARAN
</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
}
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"karyawan"
||
get_session
(
'role'
)
==
"admin"
))
{
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"karyawan"
||
get_session
(
'role'
)
==
"admin"
))
{
echo
(
'<li><a class="color_animation" href="tambah_menu.php">OLAH MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="tambah_menu.php">OLAH MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="
#daftarpesanan
">DAFTAR PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="
daftar_pesanan.php
">DAFTAR PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="list_komentar.php">DAFTAR KOMENTAR</a></li>'
);
echo
(
'<li><a class="color_animation" href="list_komentar.php">DAFTAR KOMENTAR</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
}
if
(
!
isset
(
$_SESSION
[
'isLogin'
]))
{
if
(
!
isset
(
$_SESSION
[
'isLogin'
]))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="#menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="#menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="login.php">LOGIN</a></li>'
);
echo
(
'<li><a class="color_animation" href="login.php">LOGIN</a></li>'
);
echo
(
'<li><a class="color_animation" href="signup.php">SIGN UP</a></li>'
);
echo
(
'<li><a class="color_animation" href="signup.php">SIGN UP</a></li>'
);
...
@@ -81,15 +88,26 @@ include_once 'connection/koneksi.php';
...
@@ -81,15 +88,26 @@ include_once 'connection/koneksi.php';
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ============ Menu ============= -->
<!-- ============ Menu ============= -->
<?php
$per_hal
=
10
;
$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
;
?>
<section
id =
"menu"
class=
"description_content"
>
<section
id =
"menu"
class=
"description_content"
>
<div
class=
"pricing background_content"
>
<div
class=
"pricing background_content"
>
<h1>
Daftar Menu
</h1>
<h1>
Daftar Menu
</h1>
</div>
</div>
<div
class=
"text-content container"
>
<div
class=
"text-content container"
>
<div
class=
"container"
>
<div
class=
"container"
>
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
></ul>
<div
class=
"row"
>
<div
class=
"row"
>
<div
id=
"w"
>
<div
id=
"w"
>
<ul>
<ul>
...
@@ -104,17 +122,29 @@ include_once 'connection/koneksi.php';
...
@@ -104,17 +122,29 @@ include_once 'connection/koneksi.php';
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<li
class=
"item breakfast"
>
<li
class=
"item breakfast"
>
<img
src=
"foto/
<?=
$row
[
'gambar'
]
?>
"
class=
"img-responsive"
>
<?php
echo
$row
[
'nama'
]
?>
<img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-rounded"
height=
"200"
width=
"200"
class=
"col-md-12 img-responsive"
>
<h2
class=
"white"
>
Rp.
<?php
echo
$row
[
'harga'
];
?>
</h2>
<h2
class=
"white"
>
Rp.
<?php
echo
$row
[
'harga'
];
?>
</h2>
<a
href=
"pesan_barang.php?id=
<?=
$row
[
'id'
]
?>
"
>
<a
href=
"pesan_barang.php?id=
<?=
$row
[
'id'
]
?>
"
>
<button
class=
"text-center btn-block form-btn"
>
Pesan
</button>
<button
class=
"text-center btn-block form-btn"
>
Pesan
</button>
</a>
</a>
<?php
echo
$row
[
'deskripsi'
]
?>
</li>
</li>
<br>
</div>
</div>
<?php
}
<?php
}
?>
?>
<div
class=
"col-md-12"
>
<ul
class=
"pagination"
>
<?php
for
(
$x
=
1
;
$x
<=
$halaman
;
$x
++
)
{
?>
<li><a
href=
"?page=i
<?php
echo
$x
?>
"
>
<?php
echo
$x
?>
</a></li>
<?php
}
?>
</ul>
</div>
</div>
</ul>
</ul>
...
@@ -129,7 +159,7 @@ include_once 'connection/koneksi.php';
...
@@ -129,7 +159,7 @@ include_once 'connection/koneksi.php';
<section
id=
"komentar"
class=
"description_content"
>
<section
id=
"komentar"
class=
"description_content"
>
<div
class=
"bread background_content"
>
<div
class=
"bread background_content"
>
<h1>
Beri Komentar
!
</h1>
<h1>
Beri Komentar
</h1>
</div>
</div>
<div
class=
"text-content container"
>
<div
class=
"text-content container"
>
<div
class=
"inner contact"
>
<div
class=
"inner contact"
>
...
@@ -171,14 +201,47 @@ include_once 'connection/koneksi.php';
...
@@ -171,14 +201,47 @@ include_once 'connection/koneksi.php';
</div>
</div>
</section>
</section>
<!-- ============ Tampilan Komentar =========== -->
<div
class=
"text-content container"
>
<div
class=
"inner contact"
>
<div
class=
"row"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-8 col-md-6 col-xs-12"
>
<div
class=
"row"
>
<div
class=
"col-lg-12 col-md-6 col-xs-6"
>
<h2>
Komentar:
</h2><br>
</div>
<br><br><br><br>
<div
class=
"col-lg-12"
>
<?php
$query
=
"SELECT * FROM Komentar"
;
$result_set
=
$database
->
query
(
$query
);
while
(
$row
=
$result_set
->
fetch_assoc
())
{
?>
<div
class=
"alert alert-success"
role=
"alert"
>
<strong>
<?=
$row
[
'name'
]
?>
</strong>
<p>
<?=
$row
[
'komentar'
]
?>
</p></div>
<?php
}
?>
</div>
</div>
</div>
</div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</section>
<!-- ============ Footer Section ============= -->
<!-- ============ Footer Section ============= -->
<br>
<br>
<footer
class=
"sub_footer"
>
<footer
class=
"sub_footer"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
©
Cafe Bunga Toba, Design by
<a
href=
"
https://themewagon.com/
"
>
PA1-1617-D3TI05
</a></p></div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
©
Cafe Bunga Toba, Design by
<a
href=
"
#
"
>
PA1-1617-D3TI05
</a></p></div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Back to
<a
href=
"#top"
>
TOP
</a></p>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Back to
<a
href=
"#top"
>
TOP
</a></p>
</div>
</div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Built With Care By
<a
href=
"#"
target=
"_blank"
>
Us
</a></p></div>
</div>
</div>
</footer>
</footer>
...
...
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