1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php session_start();
if(isset($_SESSION['username'])){
//koneksi terpusat
include "config/koneksi.php";
$username=$_SESSION['username'];
?>
<!DOCTYPE html>
<html>
<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">
<!-- Load JavaScript Libraries -->
<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>
<!-- Metro UI CSS JavaScript plugins -->
<script src="js/load-metro.js"></script>
<!-- Local JavaScript -->
<script src="js/docs.js"></script>
<style>
</style>
<title>Detail User</title>
</head>
<body class="metro">
<header class="bg-darkCobalt" data-load="atasan.php"></header>
<div class="" data-load="sampul.html"></div>
<?php
$query =mysql_query("SELECT * FROM tbl_user WHERE username='$username'");
$tampil =mysql_fetch_array($query);
?>
<!-- ---------------------------------------- ISI TAB ------------------------------------- -->
<div class="container">
<div class="span6">
<legend><p><h3><?php echo $tampil['nama_user']; ?></h3></p></legend>
</div>
<div class="span6">
<table class="table striped hovered">
<tbody>
<tr>
<th class="text-left">Email</th>
<th class="text-left"><abbr title="Email tidak dapat dirubah!"><em><?php echo $tampil['email_user']; ?></em></abbr></th>
</tr>
<tr>
<th class="text-left">Nomor Identitas</th>
<th class="text-left">[<?php echo $tampil['tipe_id']; ?>] <?php echo $tampil['no_id']; ?></th>
</tr>
<tr>
<th class="text-left">Telpon/Handphone</th>
<th class="text-left"><em><?php echo $tampil['no_hp']; ?></em></th>
</tr>
<tr>
<th class="text-left">Nomor Rekening</th>
<th class="text-left"><abbr title="Rekening digunakan sebagai konfirmasi pembayaran tiket secara transfer."><em><?php echo $tampil['no_rek']; ?> a/n. <?php echo $tampil['nama_rek']; ?></em></abbr></th>
</tr>
<tr>
<th class="text-left">Tanggal Lahir</th>
<th class="text-left"><em><?php echo $tampil['tgl_lahir']; ?></em></th>
</tr>
<tr>
<th class="text-left">Jenis Kelamin</th>
<th class="text-left"><em><?php if($tampil[jekel]=='L'){
echo "Laki-laki";
}else if($tampil[jekel]=='P'){
echo "Perempuan";
}else{
echo "";
}?></em></th>
</tr>
<tr>
<th class="text-left">Alamat</th>
<th class="text-left"><em><?php echo $tampil['alamat']; ?></em></th>
</tr>
</tbody>
</table>
<p class="tertiary-text-secondary"><small>nb: Silahkan lengkapi biodata ini dulu sebelum melakukan booking!!</small></p>
<a class="button" href="editProfil.php">Edit Profil</a>
</div>
</div>
<!-- ---------------------------------------- ISI TAB ------------------------------------- -->
<br />
<footer class="dark" data-load="bawahan.html"></footer>
</body>
</html>
<?php
}else{
session_destroy();
header('Location:formRegistrasi.php?status=Silahkan Login');
}
?>