-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalternatif.php
103 lines (86 loc) · 3.38 KB
/
alternatif.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
97
98
99
100
101
102
103
<?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 ;">
Alternatif
</div>
<ul class="nav nav-tabs">
<li class="active">
<a href="alternatif.php" data-toggle="tab">Tabel Alternatif</a>
</li>
<li>
<a style="color: #13464b;" href="alternatiftambah.php" data-toggle="tab">Tambah Alternatif</a>
</li>
</ul>
<div class="panel-body">
<!-- Tab panes -->
<div class="tab-content">
<div class="">
<!--tabel alternatif-->
<table class="table table-striped table-bordered table-hover">
<thead >
<tr>
<th>Kode Alternatif</th>
<th>NIK</th>
<th>Nama Alternatif</th>
<th>Bagian</th>
<th colspan="2">Aksi</th>
</tr>
</thead>
<tbody>
<?php
$no=1;
$sql = $koneksi->query('SELECT * FROM tab_alternatif Order by id_alternatif ');
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><?php echo $row[3] ?></td>
<td align="center"><a href="editalternatif.php?id_alternatif=<?php echo $row['id_alternatif'] ?>"><i class="fa fa-edit fa-fw" style="color: #13464b;"></i> </td>
<td align="center"><a href="hapusalternatif.php?id_alternatif=<?php echo $row['id_alternatif'] ?>"><i class="fa fa-trash fa-fw" style="color: red;"></i> </td>
</tr>
<?php } ?>
</tbody>
</table>
<!--tabel alternatif-->
</div>
</div>
</div>
<!--panel body-->
</div>
</div>
</div>
</div>
<!-- footer-->
<?php
include "footer.php"
?>
<!--plugin-->
<script src="tampilan/js/bootstrap.min.js"></script>
</body>
</html>