-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlistMhs.php
More file actions
69 lines (58 loc) · 3.14 KB
/
listMhs.php
File metadata and controls
69 lines (58 loc) · 3.14 KB
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
<div class="row">
<!-- page header -->
<div class="col-lg-12">
<h1 class="page-header">Data Mahasiswa</h1>
</div>
<!-- end page header -->
</div>
<div class="row">
<div class="col-lg-12">
<!-- Advanced Tables -->
<div class="panel panel-primary">
<div class="panel-heading">
Data Mahasiswa
</div>
<div class="panel-body">
<div class="table-responsive">
<?php
$no = 1;
$sqlget = "SELECT * FROM datasets ";
$query = mysqli_query($conn,$sqlget) or die(mysqli_error($conn));
?>
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<table class="table table-striped table-bordered table-hover table-responsive" id="list">
<thead>
<tr class="odd gradeX">
<th>No</th>
<th>NIM</th>
<th>Nama Mahasiswa</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
while($row = mysqli_fetch_array($query)){
if($no%2==1) { $warna=""; } else {$warna="#ebebe0";}
?>
<tr class="odd gradeX" bgcolor="<?php echo $warna; ?>">
<td><?php echo $no++; ?></td>
<td><?php echo $row['nim']; ?></td>
<td><?php echo $row['nama']; ?></td>
<td class="text-center"><a href="?page=getDetail&nim=<?php echo $row['nim']; ?>" class="btn btn-primary btn-xs btn-flat">
<i class="fa fa-pencil"></i>
</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--End Advanced Tables -->
</div>
</div>