-
Notifications
You must be signed in to change notification settings - Fork 3
/
laporan.php
64 lines (57 loc) · 1.89 KB
/
laporan.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
<?php
require('koneksi.php'); //dibutuhkan file koneksi.php untuk koneksi ke database
include('header.php'); //termasuk file header.php
?>
<div class="container">
<div class="row" style="margin-bottom:10px;">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<h3>SPK Fuzzy Hibrid</h3>
<h4>Menggunakan Metode Fuzzy Sugeno dan Profile Matching</h4>
<hr>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
<button type="button" class="print pull-right btn-lg btn btn-info no-print"><i class="glyphicon glyphicon-print"></i> Cetak</button>
</div>
</div>
<?php
$sql="select * from `08-view-fuzzy-sugeno`";
$hasil=mysql_query($sql)or die('Query Fuzzy Sugeno Error:'.mysql_error());
?>
<table class="table table-hover table-bordered table-striped table-condensed">
<thead>
<tr>
<th>No.</th>
<th>Nama Siswa</th>
<th>Asal Sekolah</th>
<th>Nilai TPA</th>
<th>Jalur Pendaftaran</th>
<th>Nilai UN</th>
<th>Hasil Fuzzy Sugeno</th>
<th class="no-print">Aksi</th>
</tr>
</thead>
<tbody>
<?php
if($hasil!=null){
$i=1;
while($row=mysql_fetch_array($hasil)){
echo "<tr>";
echo "<td>".$i."</td>";
echo "<td>".$row['nama_siswa']."</td>";
echo "<td>".$row['asal_sekolah']."</td>";
echo "<td>".$row['tpa']."</td>";
echo "<td>".($row['jalur']==33.3?'Kurang Mampu':($row['jalur']==66.6?'Reguler':'Prestasi'))."</td>";
echo "<td>".$row['nilai']."</td>";
echo "<td>".$row['fuzzy_output']."</td>";
echo "<td class='no-print'><div class='btn-group'><a class='btn btn-xs btn-success' href='proses.php?form=ppdb&a=edit&id=".$row['id_ppdb']."'><i class='glyphicon glyphicon-pencil'></i> Edit</a>
<a class='btn btn-danger btn-xs' href='proses.php?form=ppdb&a=delete&id=".$row['id_ppdb']."'><i class='glyphicon glyphicon-remove'></i> Hapus</a></td>";
echo "</tr>";
$i++;
}
}
?>
</tbody>
</table>
<?php
include('footer.php');
?>