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
0a1b9b51
Commit
0a1b9b51
authored
May 25, 2017
by
Loni Miranda Doloksaribu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In Progress
parent
61758d3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
198 additions
and
0 deletions
+198
-0
apply_tiket.php
apply_tiket.php
+198
-0
No files found.
apply_tiket.php
0 → 100644
View file @
0a1b9b51
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<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"
>
<link
href=
"css/animate1.css"
rel=
'stylesheet'
type=
'text/css'
/>
<!-- Custom Fonts -->
<link
href=
"vendor/font-awesome/css/font-awesome.min.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<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=
"admin.php"
>
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.php"
><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=
"admin.php"
><i
class=
"fa fa-dashboard fa-fw"
></i>
Dashboard
</a>
</li>
<li>
<a
href=
"main_forum.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 koleksi
</a>
</li>
<li>
<a
href=
"apply_tiket.php"
></i><i
class=
"fa fa-sign-out fa-fw"
></i>
Daftar Pemesan
</a>
</li>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
>
<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>
<?php
$host
=
"localhost"
;
// Host name
$username
=
"root"
;
// Mysql username
$password
=
""
;
// Mysql password
$db_name
=
"tbc"
;
// Database name
$tbl_name
=
"fpemesanan"
;
// Table name
// Connect to server and select databse.
$conn
=
mysqli_connect
(
"
$host
"
,
"
$username
"
,
"
$password
"
)
or
die
(
"cannot connect"
);
mysqli_select_db
(
$conn
,
"
$db_name
"
)
or
die
(
"cannot select DB"
);
$sql
=
"SELECT * FROM
$tbl_name
ORDER BY id DESC"
;
// OREDER BY id DESC is order result by descending
$result
=
mysqli_query
(
$conn
,
$sql
);
$no
=
0
;
?>
<table
width=
"90%"
border=
"0"
align=
"center"
cellpadding=
"3"
cellspacing=
"1"
bgcolor=
"#CCCCCC"
>
<tr>
<td
width=
"10%"
align=
"center"
bgcolor=
"#E6E6E6"
><strong>
No
</strong></td>
<td
width=
"10%"
align=
"center"
bgcolor=
"#E6E6E6"
><strong>
Jumlah Pesanan
</strong></td>
<td
width=
"15%"
align=
"center"
bgcolor=
"#E6E6E6"
><strong>
Nama Pemesan
</strong></td>
<td
width=
"15%"
align=
"center"
bgcolor=
"#E6E6E6"
><strong>
Kategori
</strong></td>
<td
width=
"13%"
align=
"center"
bgcolor=
"#E6E6E6"
><strong>
Replies
</strong></td>
<td
width=
"13%"
align=
"center"
bgcolor=
"#E6E6E6"
><strong>
Date/Time
</strong></td>
</tr>
<?php
// Start looping table row
while
(
$rows
=
mysqli_fetch_array
(
$result
)){
?>
<tr>
<td
align=
"center"
bgcolor=
"#FFFFFF"
>
<?php
echo
++
$no
;;
?>
</td>
<td
align=
"center"
bgcolor=
"#FFFFFF"
><a
href=
"tiket_admin.php?id=
<?php
echo
$rows
[
'id'
];
?>
"
>
<?php
echo
$rows
[
'topic'
];
?>
</a><BR></td>
<td
align=
"center"
bgcolor=
"#FFFFFF"
>
<?php
echo
$rows
[
'name'
];
?>
</td>
<td
align=
"center"
bgcolor=
"#FFFFFF"
>
<?php
echo
$rows
[
'detail'
];
?>
</td>
<td
align=
"center"
bgcolor=
"#FFFFFF"
>
<?php
echo
$rows
[
'reply'
];
?>
</td>
<td
align=
"center"
bgcolor=
"#FFFFFF"
>
<?php
echo
$rows
[
'datetime'
];
?>
</td>
</tr>
<?php
// Exit looping and close connection
}
//mysql_close();
?>
</table>
</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>
</BR>
</ul>
</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