-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeuchik_detail.php
108 lines (108 loc) · 3.54 KB
/
geuchik_detail.php
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
104
105
106
107
108
<?php include 'header.php'; ?>
<div class="content">
<div class="panel panel-flat">
<div class="panel-heading">
<center>
<h1>
BIODATA CALON GEUCHIK
</h1>
</center>
</div>
<div class="panel-body">
<a href="geuchik.php" class="btn sm btn-primary"><i class="icon-arrow-left12"></i> KEMBALI</a>
<br/>
<br/>
<div class="table-responsive">
<?php
// menangkap id data yang ingin di edit
$id = $_GET['id'];
// query untuk mengambil data geuchik yang ber id di atas (yang di pilih)
$data = mysqli_query($config,"select * from geuchik where geuchik_id='$id'");
// menampilkan data yang di dapatkan dari query di atas
while($d=mysqli_fetch_array($data)){
?>
<div class="row">
<div class="col-md-3">
<img style="width: 260px;height: 270px" src="images/geuchik/<?php echo $d['geuchik_gambar']; ?>" class="img-thumbnail">
</div>
<div class="col-md-9">
<div>
<table class="table table-striped">
<tr>
<th width="20%">No.Urut</th>
<td>
<?php echo $d['geuchik_nomor']; ?>
</td>
</tr>
<tr>
<th width="20%">NIK</th>
<td><?php echo substr($d['geuchik_nik'], 0, 12) ?>****</td>
</tr>
<tr>
<th width="20%">Nama Lengkap</th>
<td><?php echo $d['geuchik_nama']; ?></td>
</tr>
<tr>
<th width="20%">Tempat Lahir</th>
<td><?php echo $d['geuchik_tempat_lahir']; ?></td>
</tr>
<tr>
<th width="20%">Tanggal Lahir</th>
<td><?php echo date('d F Y',strtotime($d['geuchik_tgl_lahir'])); ?></td>
</tr>
<tr>
<th width="20%">Umur</th>
<td><?php echo date('Y') - date('Y',strtotime($d['geuchik_tgl_lahir'])); ?> Tahun</td>
</tr>
<tr>
<th width="20%">Jenis Kelamin</th>
<td><?php echo $d['geuchik_jk']; ?></td>
</tr>
<tr>
<th>Alamat</th>
<td>
<?php echo $d['geuchik_alamat']; ?>
</td>
</tr>
<tr>
<th width="20%">Agama</th>
<td>
<?php echo $d['geuchik_agama']; ?>
</td>
</tr>
<tr>
<th>Visi</th>
<td class="text-justify">
<?php echo $d['geuchik_visi']; ?>
</td>
</tr>
<tr>
<th>Misi</th>
<td class="text-justify">
<?php echo $d['geuchik_misi']; ?>
</td>
</tr>
<tr>
<th>Tentang</th>
<td class="text-justify">
<?php echo $d['geuchik_tentang']; ?>
</td>
</tr>
<tr>
<th>Nama Saksi</th>
<td>
<?php echo $d['geuchik_saksi']; ?>
</td>
</tr>
</table>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>