Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PSW2-D3TI01
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
Julius Samosir
PSW2-D3TI01
Commits
f02b8744
Commit
f02b8744
authored
Jun 06, 2020
by
Visgha Olivia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
4a12ad68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
tiketMahasiswa.php
tiketMahasiswa.php
+75
-0
No files found.
tiketMahasiswa.php
0 → 100644
View file @
f02b8744
<?php
require_once
'common/database.php'
;
$id_akun
=
$_SESSION
[
'id_akun'
];
$id_paket
=
$_GET
[
'kode'
];
$query
=
"SELECT no_kursi, tiket.kode_paket,tiket.id_akun,tanggal
,nama_paket,deskripsi,harga,id_tiket,gambar FROM tiket INNER JOIN
paket WHERE paket.id_paket = tiket.kode_paket AND
id_akun = '
$id_akun
' AND tiket.kode_paket = '
$id_paket
'"
;
$sql
=
ExecuteQuery
(
$query
);
$data
=
array
();
$row
=
mysqli_fetch_assoc
(
$sql
);
$nama_paket
=
$row
[
'nama_paket'
];
$tanggal
=
$row
[
'tanggal'
];
$id_akun
=
$row
[
'id_akun'
];
$id_paket
=
$row
[
'kode_paket'
];
$no_kursi
=
$row
[
'no_kursi'
];
$gambar
=
$row
[
'gambar'
];
$harga
=
$row
[
'harga'
];
$data_gambar
=
"uploads/
$gambar
"
;
require_once
(
"FPDF_assets/fpdf.php"
);
$pdf
=
new
FPDF
();
$pdf
->
AddPage
();
$pdf
->
SetFillColor
(
199
,
118
,
130
);
$pdf
->
SetTextColor
(
255
);
$pdf
->
SetFont
(
'Arial'
,
'I'
,
30
);
$pdf
->
Cell
(
190
,
18
,
"Paket "
.
$nama_paket
,
'0'
,
1
,
'C'
,
true
);
$pdf
->
SetDrawColor
(
0
,
0
,
0
);
$pdf
->
SetFont
(
'Arial'
,
''
,
'16'
);
$pdf
->
SetTextColor
(
0
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
//warna background
$pdf
->
Cell
(
70
,
10
,
"Kode Paket "
,
'0'
,
0
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
$pdf
->
Cell
(
120
,
10
,
" : "
.
$id_paket
,
'0'
,
1
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
//warna background
$pdf
->
Cell
(
70
,
10
,
"Tanggal Paket "
,
'0'
,
0
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
$pdf
->
Cell
(
120
,
10
,
" : "
.
$tanggal
,
'0'
,
1
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
//warna background
$pdf
->
Cell
(
70
,
10
,
"Kode Pemesan "
,
'0'
,
0
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
$pdf
->
Cell
(
120
,
10
,
" : "
.
$id_akun
,
'0'
,
1
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
//warna background
$pdf
->
Cell
(
70
,
10
,
"No Kursi "
,
'0'
,
0
,
'L'
,
true
);
$pdf
->
SetFillColor
(
241
,
175
,
180
);
$pdf
->
Cell
(
120
,
10
,
" : "
.
$no_kursi
,
'0'
,
1
,
'L'
,
true
);
$pdf
->
Image
(
$data_gambar
,
"145"
,
"35"
,
"40"
,
"30"
);
$pdf
->
SetFillColor
(
0
,
0
,
0
);
$pdf
->
SetTextColor
(
255
);
$pdf
->
SetFont
(
'Arial'
,
'B'
,
'28'
);
$pdf
->
SetFillColor
(
199
,
118
,
130
);
$pdf
->
Cell
(
190
,
20
,
"Harga : Rp."
.
$harga
,
'0'
,
1
,
'C'
,
true
);
$pdf
->
Output
();
?>
\ No newline at end of file
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