-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist_supplier.php
96 lines (88 loc) · 2.92 KB
/
list_supplier.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
<html>
<header>
<?php include ('header.php');?>
</header>
<body>
<?php
$link = mysqli_connect("localhost", "root", "", "mudamandiri");
?>
<div class = "wrapper">
<!-- navbar -->
<?php include ("navbar.php"); ?>
<!-- SideBar -->
<?php include ("sidebar.php"); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-12">
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">Supplier</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>Kode Supplier</th>
<th>Nama Supplier</th>
<th>Alamat</th>
<th>No. Telp/HP</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
$sql="SELECT * FROM barang";
$result=mysqli_query($link,$sql);
// Associative array
while($data = mysqli_fetch_array($result,MYSQLI_ASSOC)){
?>
<tr>
<td><?php echo $data["kode_barang"]; ?></td>
<td><?php echo $data["nama_barang"]; ?></td>
<td><?php echo $data["jenis"]; ?></td>
<td><?php echo $data["warna"]; ?></td>
<td><?php echo $data["jumlah"]; ?></td>
<td><?php echo $data["harga"]; ?></td>
<td><?php echo $data["supplier"]; ?></td>
<td><?php echo $data["updated_time"]; ?></td>
<td><a class="btn btn-info btn-sm" href="edit_barang_masuk.php?ni=<?php echo $data['kode_barang'];?>">
<i class="fas fa-pencil-alt"></i>
Edit</a>
<a class="btn btn-danger btn-sm" href="deletebarang_masuk.php?ni=<?php echo $data['kode_barang'];?>">
<i class="fas fa-trash">
</i>
Delete</a>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</section>
</div>
</div>
</div>
</div>
<?php include ('footer.php');?>
</body>
</html>