Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PSW_II_PARIWISATA_TRANSPORTASI
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyek_PSW_II_PARIWISATA
PSW_II_PARIWISATA_TRANSPORTASI
Commits
ea33750c
Commit
ea33750c
authored
Jun 06, 2020
by
11319009_Pratiwi Sibarani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
6570180f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
exportdatatiket.php
transportasi/admin/exportdatatiket.php
+59
-0
No files found.
transportasi/admin/exportdatatiket.php
0 → 100644
View file @
ea33750c
<?php
include
(
'function.php'
);
// menampilkan data
$query
=
"SELECT t_tiketsdia.id ,t_tiketsdia.kode_tiket, destinasi.nama_destinasi, pt_trans.nama_transp, t_tiketsdia.harga
FROM pt_trans INNER JOIN (destinasi INNER JOIN t_tiketsdia ON destinasi.id_destinasi = t_tiketsdia.t_destinasi) ON pt_trans.id_transp = t_tiketsdia.t_kendaraan;
"
;
$data
=
mysqli_query
(
$koneksi
,
$query
);
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<style
type=
"text/css"
>
body
{
font-family
:
sans-serif
;
}
table
{
margin
:
20px
auto
;
border-collapse
:
collapse
;
}
table
th
,
table
td
{
border
:
1px
solid
#3c3c3c
;
padding
:
3px
8px
;
}
</style>
<?php
header
(
"Content-type: application/vnd-ms-excel"
);
header
(
"Content-Disposition: attachment; filename=Data_Tiket.xls"
);
?>
<center>
<h1>
Daftar Tiket
<br/>
Travel OK
</h1>
</center>
<table
border=
"1"
>
<tr>
<th
scope=
"col"
>
Kode Tiket
</th>
<th
scope=
"col"
>
Tujuan Destinasi
</th>
<th
scope=
"col"
>
Kendaraan
</th>
<th
scope=
"col"
>
Harga
</th>
</tr>
<?php
while
(
$tiket
=
mysqli_fetch_array
(
$data
))
{
?>
<tr>
<td
align=
"center"
>
<?=
$tiket
[
'kode_tiket'
]
?>
</td>
<td
align=
"center"
>
<?=
$tiket
[
'nama_destinasi'
]
?>
</td>
<td
align=
"center"
>
<?=
$tiket
[
'nama_transp'
]
?>
</td>
<td>
Rp.
<?=
$tiket
[
'harga'
]
?>
</td>
</tr>
<?php
}
?>
</table>
</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