Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI08
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
Dodi Agustin Refansius Pakpahan
PA1-1617-D3TI08
Commits
9140327b
Commit
9140327b
authored
Jun 08, 2017
by
Eirene Hutasoit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menambahkan daftar pengunjung
parent
366e2369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
137 additions
and
0 deletions
+137
-0
pengunjung.php
pengunjung.php
+137
-0
No files found.
pengunjung.php
0 → 100644
View file @
9140327b
<?php
session_start
();
include_once
(
'fungsi.php'
);
if
(
!
isset
(
$_SESSION
[
'admin'
])){
header
(
"location: login.php"
);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
PENELOLA GIBEON
</title>
<link
href=
"css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"css/datepicker3.css"
rel=
"stylesheet"
>
<link
href=
"css/styles.css"
rel=
"stylesheet"
>
<!--Icons-->
<script
src=
"js/lumino.glyphs.js"
></script>
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#sidebar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"#"
><span>
GIBEON
</span>
Admin
</a>
<ul
class=
"user-menu"
>
<li
class=
"dropdown pull-right"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
><svg
class=
"glyph stroked male-user"
><use
xlink:href=
"#stroked-male-user"
></use></svg>
User
<span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li><a
href=
"Logout.php"
><svg
class=
"glyph stroked cancel"
><use
xlink:href=
"#stroked-cancel"
></use></svg>
Logout
</a></li>
</ul>
</li>
</ul>
</div>
</div>
<!-- /.container-fluid -->
</nav>
<div
id=
"sidebar-collapse"
class=
"col-sm-3 col-lg-2 sidebar"
>
<form
role=
"search"
>
</form>
<ul
class=
"nav menu"
>
<li
class=
"active"
><a
href=
"home.php"
><svg
class=
"glyph stroked dashboard-dial"
><use
xlink:href=
"#stroked-dashboard-dial"
></use></svg>
Dashboard
</a></li>
<li><a
href=
"isikeluhan.php"
><svg
class=
"glyph stroked calendar"
><use
xlink:href=
"#stroked-calendar"
></use></svg>
DAFTAR KELUHAN
</a></li>
<li><a
href=
"Daftar_pesanan.php"
><svg
class=
"glyph stroked table"
><use
xlink:href=
"#stroked-table"
></use></svg>
PESANAN
</a></li>
<li><a
href=
"Pengunjung.php"
><svg
class=
"glyph stroked table"
><use
xlink:href=
"#stroked-table"
></use></svg>
Daftar Pengunjung
</a></li>
<li
role=
"presentation"
class=
"divider"
></li>
</ul>
</div>
<!--/.sidebar-->
<div
class=
"col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main"
>
<div
class=
"row"
>
<ol
class=
"breadcrumb"
>
<li><a
href=
"home.php"
><svg
class=
"glyph stroked home"
><use
xlink:href=
"#stroked-home"
></use></svg></a></li>
<li
class=
"active"
>
Icons
</li>
</ol>
</div>
<!--/.row-->
<script
src=
"js/jquery-1.11.1.min.js"
></script>
<script
src=
"js/bootstrap.min.js"
></script>
<script
src=
"js/chart.min.js"
></script>
<script
src=
"js/chart-data.js"
></script>
<script
src=
"js/easypiechart.js"
></script>
<script
src=
"js/easypiechart-data.js"
></script>
<script
src=
"js/bootstrap-datepicker.js"
></script>
<script>
$
(
'#calendar'
).
datepicker
({
});
!
function
(
$
)
{
$
(
document
).
on
(
"click"
,
"ul.nav li.parent > a > span.icon"
,
function
(){
$
(
this
).
find
(
'em:first'
).
toggleClass
(
"glyphicon-minus"
);
});
$
(
".sidebar span.icon"
).
find
(
'em:first'
).
addClass
(
"glyphicon-plus"
);
}(
window
.
jQuery
);
$
(
window
).
on
(
'resize'
,
function
()
{
if
(
$
(
window
).
width
()
>
768
)
$
(
'#sidebar-collapse'
).
collapse
(
'show'
)
})
$
(
window
).
on
(
'resize'
,
function
()
{
if
(
$
(
window
).
width
()
<=
767
)
$
(
'#sidebar-collapse'
).
collapse
(
'hide'
)
})
</script>
<h3>
Daftar Pengunjung
</h3>
<table
class=
"table table-bordered table-hover"
>
<thead>
<th>
ID
</th>
<th>
Nama Pengunjung
</th>
<th>
Email Pengunjung
</th>
<th>
Alamat Pengunjung
</th>
<th>
Username
</th>
<th>
Password
</th>
</thead>
<?php
require_once
(
dirname
(
__FILE__
)
.
'/fungsi.php'
);
$User
=
getPengunjung
();
//jika data tidak kosong, maka akan melakukan perulangan while
$no
=
1
;
//membuat variabel $no untuk membuat nomor urut
foreach
(
$User
as
$data
)
{
//perulangan while dg membuat variabel $data yang akan mengambil data di database
//menampilkan row dengan data di database
echo
'<tr>'
;
echo
'<td>'
.
$data
[
'id'
]
.
'</td>'
;
echo
'<td>'
.
$data
[
'namalengkap'
]
.
'</td>'
;
echo
'<td>'
.
$data
[
'alamat'
]
.
'</td>'
;
echo
'<td>'
.
$data
[
'email'
]
.
'</td>'
;
echo
'<td>'
.
$data
[
'username'
]
.
'</td>'
;
echo
'<td>'
.
$data
[
'password'
]
.
'</td>'
;
echo
'</tr>'
;
}
?>
</body>
</html>
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