-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtampilmhs.php
74 lines (71 loc) · 1.94 KB
/
tampilmhs.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
<html>
<head>
<title>Data Mahasiswa</title>
<link rel="stylesheet" type="text/css" href="CSS/layout.css"/>
<link rel="stylesheet" type="text/css" href="CSS/font.css"/>
<link rel="stylesheet" type="text/css" href="CSS/element.css"/>
<script type="text/javascript" src="JS/krsjs.js"></script>
</head>
<body>
<div id="container">
<div id="header">
<table border="0" cellspacing="10">
<tr>
<td><img src="Images/admin.png" width="150" height="150" /></td>
<td><h1>Admin Page</h1></td>
</tr>
</table>
</div>
<div id="cpanel">
<table border="0" cellspacing="40">
<tr>
<td colspan="3"><h1>Data Mahasiswa</h1></td>
</tr>
<tr>
<td>
<a href="datamhs.html" title="Kembali"><img src="Images/back.png" /></a>
</td>
</tr>
<table border="0" cellspacing="35">
<tr>
<td><b>No</b></td>
<td><b>NIM</b></td>
<td><b>Nama</b></td>
<td><b>Password</b></td>
<td><b>Progdi</b></td>
<td><b>Aksi</b></td>
</tr>
<?php
include "koneksi.php";
$no = 1;
$tampil = "SELECT * FROM mhs;";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$id = $hasil['id'];
$nim = $hasil['NIM'];
$nama = $hasil['Nama'];
$pass = $hasil['Password'];
$progdi = $hasil['Progdi'];
?>
<tr>
<td><?php echo $no; ?></td>
<td><?php echo $nim; ?></td>
<td><?php echo $nama; ?></td>
<td><?php echo $pass; ?></td>
<td><?php echo $progdi; ?></td>
<td>
<a href="formupdatemhs.php?id=<?php echo $id; ?>" title="Update"><img src="Images/update.png" /></a>
<a href="deletemhs.php?id=<?php echo $id; ?>" title="Delete" onclick="return confirm('Anda Yakin Ingin Menghapusnya?')"><img src="Images/delete.png" /></a>
</td>
</tr>
<?php
$no++;
}
?>
</table>
</table>
</div>
</div>
<div id="footer">Copyright © 2013 ERA</div>
</body>
</html>