Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TB_Center
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
Andry F. Hutapea
TB_Center
Commits
4e99ec95
Commit
4e99ec95
authored
May 25, 2017
by
josua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in progress
parent
1c2a6319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
263 additions
and
64 deletions
+263
-64
index.html
index.html
+122
-31
index.php
index.php
+141
-33
No files found.
index.html
View file @
4e99ec95
<!DOCTYPE html>
<html>
<html
lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<link
href=
"css/metro-bootstrap.css"
rel=
"stylesheet"
>
<link
href=
"css/metro-bootstrap-responsive.css"
rel=
"stylesheet"
>
<link
href=
"css/iconFont.css"
rel=
"stylesheet"
>
<link
href=
"css/docs.css"
rel=
"stylesheet"
>
<link
href=
"scroll-persen.css"
rel=
"stylesheet"
>
<!-- Load JavaScript Libraries -->
<script
src=
"js/move-top.js"
></script>
<script
src=
"js/jquery/jquery.min.js"
></script>
<script
src=
"js/jquery/jquery.widget.min.js"
></script>
<script
src=
"js/jquery/jquery.mousewheel.js"
></script>
<script
src=
"scroll-persen.js"
></script>
<!-- Metro UI CSS JavaScript plugins -->
<script
src=
"js/load-metro.js"
></script>
<script
src=
"js/docs.js"
></script>
<style>
</style>
<title>
Selamat Datang di Website Kami
</title>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"author"
content=
""
>
<title>
TB SILALAHI CENTER
</title>
<!-- Bootstrap Core CSS/dipake -->
<link
href=
"../vendor/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
>
<!-- MetisMenu CSS -->
<link
href=
"../vendor/metisMenu/metisMenu.min.css"
rel=
"stylesheet"
>
<!-- Custom CSS -->
<link
href=
"../dist/css/sb-admin-2.css"
rel=
"stylesheet"
>
<!-- Custom Fonts -->
<link
href=
"../vendor/font-awesome/css/font-awesome.min.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body
class=
"metro"
><div
id=
"scroll"
></div>
<header
class=
"bg-darkCobalt"
data-load=
"atasan.php"
></header>
<div
class=
""
data-load=
"sampul.html"
></div>
<br
/>
<footer
class=
"dark"
data-load=
"bawahan.html"
></footer>
<body>
<div
id=
"wrapper"
>
<!-- Navigation -->
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-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=
"index.html"
>
Halaman Admin
</a>
</div>
<!-- /.navbar-header -->
<ul
class=
"nav navbar-top-links navbar-right"
>
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"fa fa-user fa-fw"
></i>
<i
class=
"fa fa-caret-down"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
<li><a
href=
"login.html"
><i
class=
"fa fa-sign-out fa-fw"
></i>
Logout
</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->
<div
class=
"navbar-default sidebar"
role=
"navigation"
>
<div
class=
"sidebar-nav navbar-collapse"
>
<ul
class=
"nav"
id=
"side-menu"
>
<li
class=
"sidebar-search"
>
<div
class=
"input-group custom-search-form"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"Search..."
>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-default"
type=
"button"
>
<i
class=
"fa fa-search"
></i>
</button>
</span>
</div>
<!-- /input-group -->
</li>
<li>
<a
href=
"index.html"
><i
class=
"fa fa-dashboard fa-fw"
></i>
Dashboard
</a>
</li>
<li>
<a
href=
"#"
></i><i
class=
"fa fa-sign-out fa-fw"
></i>
Daftar Komentar
</a>
</li>
<li>
<a
href=
"koleksi.php"
></i><i
class=
"fa fa-sign-out fa-fw"
></i>
Daftar Pemesan
</a>
</li>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<div
id=
"page-wrapper"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<h1
class=
"page-header"
>
Halaman Admin TB SILALAHI CENTER
</h1>
</div>
<!-- /.col-lg-12 -->
</div>
</div>
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script
src=
"../vendor/jquery/jquery.min.js"
></script>
<!-- Bootstrap Core JavaScript -->
<script
src=
"../vendor/bootstrap/js/bootstrap.min.js"
></script>
<!-- Metis Menu Plugin JavaScript -->
<script
src=
"../vendor/metisMenu/metisMenu.min.js"
></script>
</body>
</html>
index.php
View file @
4e99ec95
<!DOCTYPE html>
<html>
<?php
include_once
(
'config/koneksi.php'
);
open_page
(
'koleksi'
);
?>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<link
href=
"css/metro-bootstrap.css"
rel=
"stylesheet"
>
<link
href=
"css/metro-bootstrap-responsive.css"
rel=
"stylesheet"
>
<link
href=
"css/iconFont.css"
rel=
"stylesheet"
>
<link
href=
"css/docs.css"
rel=
"stylesheet"
>
<link
href=
"scroll-persen.css"
rel=
"stylesheet"
>
<!-- Load JavaScript Libraries -->
<script
src=
"js/move-top.js"
></script>
<script
src=
"js/jquery/jquery.min.js"
></script>
<script
src=
"js/jquery/jquery.widget.min.js"
></script>
<script
src=
"js/jquery/jquery.mousewheel.js"
></script>
<script
src=
"scroll-persen.js"
></script>
<!-- Metro UI CSS JavaScript plugins -->
<script
src=
"js/load-metro.js"
></script>
<script
src=
"js/docs.js"
></script>
<style>
</style>
<title>
Selamat Datang di Website Kami
</title>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"author"
content=
""
>
<title>
TB SILALAHI CENTER
</title>
<!-- Bootstrap Core CSS/dipake -->
<link
href=
"../vendor/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
>
<!-- MetisMenu CSS -->
<link
href=
"../vendor/metisMenu/metisMenu.min.css"
rel=
"stylesheet"
>
<!-- Custom CSS -->
<link
href=
"../dist/css/sb-admin-2.css"
rel=
"stylesheet"
>
<!-- Custom Fonts -->
<link
href=
"../vendor/font-awesome/css/font-awesome.min.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body
class=
"metro"
><div
id=
"scroll"
></div>
<header
class=
"bg-darkCobalt"
data-load=
"atasan.php"
></header>
<div
class=
""
data-load=
"sampul.php"
></div>
<br
/>
<div
class=
"container"
data-load=
"beranda.php"
></div>
<footer
class=
"dark"
data-load=
"bawahan.php"
></footer>
<body>
<div
id=
"wrapper"
>
<!-- Navigation -->
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-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=
"index.html"
>
Halaman Admin
</a>
</div>
<!-- /.navbar-header -->
<ul
class=
"nav navbar-top-links navbar-right"
>
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"fa fa-user fa-fw"
></i>
<i
class=
"fa fa-caret-down"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
<li><a
href=
"login.html"
><i
class=
"fa fa-sign-out fa-fw"
></i>
Logout
</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->
<div
class=
"navbar-default sidebar"
role=
"navigation"
>
<div
class=
"sidebar-nav navbar-collapse"
>
<ul
class=
"nav"
id=
"side-menu"
>
<li>
<a
href=
"index.php"
><i
class=
"fa fa-dashboard fa-fw"
></i>
Daftar Koleksi
</a>
</li>
<li>
<a
href=
"koleksi.php"
></i><i
class=
"fa fa-sign-out fa-fw"
></i>
Daftar Komentar
</a>
</li>
<li>
<a
href=
"koleksi.php"
></i><i
class=
"fa fa-sign-out fa-fw"
></i>
Daftar Pemesan
</a>
</li>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<div
id=
"page-wrapper"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<?php
include_once
(
'config/koneksi.php'
);
open_page
(
'koleksi'
);
$database
=
new
mysqli
(
'localhost'
,
'root'
,
''
,
'tb silalahi'
);
$query
=
'SELECT * FROM koleksi'
;
$result_set
=
$database
->
query
(
$query
);
echo
(
'<table
border="1">'
);
echo
(
'<tr>'
);
echo
(
'<td>Id</td>'
);
echo
(
'<td>Nama</td>'
);
echo
(
'<td>Description</td>'
);
echo
(
'<td>Image</td>'
);
echo
(
'</tr>'
);
while
(
$row
=
$result_set
->
fetch_assoc
()){
echo
'<tr>'
;
echo
'<tr>'
;
echo
'<td>'
.
$row
[
'id'
]
.
'</td>'
;
//menampilkan data nis dari database
echo
'<td>'
.
$row
[
'nama'
]
.
'</td>'
;
//menampilkan data nama lengkap dari database
echo
'<td>'
.
$row
[
'desc'
]
.
'</td>'
;
//menampilkan data kelas dari database
echo
'<td><img src="img/"'
.
$row
[
'image'
]
.
'" ></td>'
;
//menampilkan gambar sesuai dengan url dari database
}
echo
(
'</tr>'
);
echo
(
'</table>'
);
?>
</div>
<!-- /.col-lg-12 -->
</div>
</div>
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script
src=
"../vendor/jquery/jquery.min.js"
></script>
<!-- Bootstrap Core JavaScript -->
<script
src=
"../vendor/bootstrap/js/bootstrap.min.js"
></script>
<!-- Metis Menu Plugin JavaScript -->
<script
src=
"../vendor/metisMenu/metisMenu.min.js"
></script>
</body>
</html>
</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