-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoin.php
96 lines (82 loc) · 3.07 KB
/
poin.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
<?php
//koneksi
session_start();
include ("koneksi.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cv. Fajar Jaya</title>
<!--bootstrap-->
<link href="tampilan/css/bootstrap.min.css" rel="stylesheet">
<!--icon-->
<link href="tampilan/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- navbar -->
<?php
include "header.php";
?>
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-offset-3">
<div class="panel panel-primary">
<div class="panel-heading text-center" style="background-color: #13464b; color: white ;">
Poin
</div>
<ul class="nav nav-tabs">
<li class="active">
<a href="poin.php" data-toggle="tab">Tabel Poin</a>
</li>
<li>
<a style="color: #13464b;" href="pointambah.php" data-toggle="tab">Tambah Poin</a>
</li>
</ul>
<div class="panel-body">
<!-- Tab panes -->
<div class="tab-content">
<div class="">
<!--tabel poin-->
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>ID Poin</th>
<th>Poin</th>
<th>Sub-Kriteria</th>
<th colspan="2">Aksi</th>
</tr>
</thead>
<tbody>
<?php
$sql = $koneksi->query('SELECT * FROM tab_poin');
while ($row = $sql->fetch_array()) {
?>
<tr>
<td><?php echo $row[0] ?></td>
<td><?php echo $row[1] ?></td>
<td><?php echo $row[2] ?></td>
<td align="center"><a href="editpoin.php?id_poin=<?php echo $row['id_poin'] ?>"><i class="fa fa-edit fa-fw" style="color: #13464b;"></i> </td>
<td align="center"><a href="hapuspoin.php?id_poin=<?php echo $row['id_poin'] ?>"><i class="fa fa-trash fa-fw" style="color: red;"></i> </td>
</tr>
<?php }?>
</tbody>
</table>
<!--tabel poin-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer-->
<?php
include "footer.php"
?>
<!--plugin-->
<script src="tampilan/js/bootstrap.min.js"></script>
</body>
</html>