-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome_siswa.php
49 lines (49 loc) · 1.27 KB
/
home_siswa.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
<?php
$dsis = mysql_fetch_array(mysql_query("SELECT s.*, DATE_FORMAT(tanggal_lahir, '%d %M %Y') AS tgl FROM `data_siswa` s where s.nis = '".$_SESSION['userid']."'"));
?>
<br />
<table width="100%" border="0">
<tr>
<td width="15%">NIS</td>
<td width="2%">:</td>
<td width="83%"><?php echo $dsis['nis']; ?></td>
</tr>
<tr>
<td>Nama Siswa</td>
<td>:</td>
<td><strong><?php echo $dsis['nama_siswa']; ?></strong></td>
</tr>
<tr>
<td>Tempat / Tanggal Lahir</td>
<td>:</td>
<td><?php echo $dsis['tempat_lahir']; ?> / <?php echo $dsis['tgl']; ?></td>
</tr>
<tr>
<td>Alamat</td>
<td>:</td>
<td><?php echo $dsis['alamat']; ?></td>
</tr>
<tr>
<td>Agama</td>
<td>:</td>
<td><?php echo $dsis['agama']; ?></td>
</tr>
<tr>
<td>Jenis Kelamin</td>
<td>:</td>
<td><?php if($dsis['jenis_kelamin']=="L") { echo "Pria"; } else { echo "Wanita"; } ?></td>
</tr>
<tr>
<td>Nama Orang Tua</td>
<td>:</td>
<td><?php echo $dsis['nama_orangtua']; ?></td>
</tr>
<tr>
<td>Tlp. Orang Tua</td>
<td>:</td>
<td><?php echo $dsis['telepon_orangtua']; ?></td>
</tr>
<tr>
<td colspan="3"><button type="button" class="btn" onclick="location.href='?mod=datasiswa'">Edit Data</button></td>
</tr>
</table>