-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_Supplier.html
207 lines (196 loc) · 7.63 KB
/
data_Supplier.html
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html>
<head>
<title>Dashboard Holoprint</title>
<script src="js/firebase.js"></script>
<script src="js/jquery-3.2.1.slim.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="fonts/font-awesome.min.css">
<link href="css/styles.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet"
crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/js/all.min.js" crossorigin="anonymous">
</script>
</head>
<body onload="tampilData()" class="sb-nav-fixed">
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
<a class="navbar-brand" href="index.html">Holoprint</a>
<!-- Navbar Search-->
<form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
<!-- <div class="input-group">
<input class="form-control" type="text" placeholder="Search for..." aria-label="Search"
aria-describedby="basic-addon2" />
<div class="input-group-append">
<button class="btn btn-primary" type="button"><i class="fas fa-search"></i></button>
</div>
</div> -->
</form>
<!-- Navbar-->
<ul class="navbar-nav ml-auto ml-md-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="userDropdown" href="#" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
<a class="dropdown-item" href="#">Settings</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="login.html">Logout</a>
</div>
</li>
</ul>
</nav>
<!-- Sidebar Navigation -->
<div id="layoutSidenav">
<div id="layoutSidenav_nav">
<nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
<div class="sb-sidenav-menu">
<div class="nav">
<div class="sb-sidenav-menu-heading">Core</div>
<a class="nav-link" href="index.html">
<div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div>
Dashboard
</a>
<div class="sb-sidenav-menu-heading">Features</div>
<a class="nav-link" href="data_pesanan.html">
<div class="sb-nav-link-icon"><i class="fas fa-table"></i></div>
Data Pesanan
</a>
<a class="nav-link" href="data_barang.html">
<div class="sb-nav-link-icon"><i class="fas fa-table"></i></div>
Data Barang
</a>
<a class="nav-link" href="data_Supplier.html">
<div class="sb-nav-link-icon"><i class="fas fa-table"></i></div>
Data Supplier
</a>
<!-- <a class="nav-link" href="keuangan.html">
<div class="sb-nav-link-icon"><i class="fas fa-chart-area"></i></div>
Laporan Keuangan
</a> -->
</div>
</div>
<div class="sb-sidenav-footer">
<div class="small">Logged in as:</div>
Admin
</div>
</nav>
</div>
<!-- Content Tables -->
<div id="layoutSidenav_content">
<main>
<br>
<div class="card-header">
<div class="row no-gutters">
<div class="col align-self-center">
<h3 class="text-left"><i class="fa fa-home" onclick="tampilData()"
style="cursor: pointer;"></i>Daftar Supplier</h3>
</div>
<div class="col align-self-center" style="padding:12px;"><input id="text_cari" type="text"
placeholder="Cari berdasarkan nama" class="form-control" style="padding:6px;" /></div>
<div class="col-auto align-self-center" style="padding:6px;"><button class="btn btn-primary"
type="button" onclick="CariData()">Cari Data</button></div>
<div class="col-auto align-self-center" style="padding:6px;"><button class="btn btn-success"
type="button" id="tambah_data" style="margin-left:10px;" data-toggle="modal"
data-target="#ModalAdd" onclick="ambilDataTerakhir()">Tambah Data</button></div>
</div>
</div>
<div class="card-header">
<table id="tabel-status-Supplier" class="table table-striped table-bordered table-hover">
<thead class="thead-dark">
<tr>
<th scope="col">ID</th>
<th scope="col">Nama</th>
<th scope="col">Alamat</th>
<th scope="col">Kontak</th>
<th scope="col">Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</main>
<!-- Backend -->
<script src="js/db_Supplier.js"></script>
<!-- Modal Update -->
<div class="modal fade" id="ModalUpdate" tabindex="-1" role="dialog" aria-labelledby="ModalUpdateLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalUpdateLabel">Update Data</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>ID : </h6>
<input class="form-control" type="text" id="T4" readonly></br>
<h6>Nama Supplier : </h6>
<input class="form-control" type="text" id="t4_nama_Supplier"></br>
<h6>Alamat : </h6>
<input class="form-control" type="text" id="t4_alamat"></br>
<h6>Kontak : </h6>
<input class="form-control" type="text" id="t4_kontak"></br>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-primary" onclick="updateData_Proses()">Simpan</button>
</div>
</div>
</div>
</div>
<!-- Modal Add -->
<div class="modal fade" id="ModalAdd" tabindex="-1" role="dialog" aria-labelledby="ModalAddLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalUpdateLabel">Tambah Data Data</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>ID : </h6>
<input class="form-control" type="text" id="T4_add"></br>
<h6>Nama Supplier : </h6>
<input class="form-control" type="text" id="t4_nama_Supplier_add"></br>
<h6>Alamat : </h6>
<input class="form-control" type="text" id="t4_alamat_add"></br>
<h6>Kontak : </h6>
<input class="form-control" type="text" id="t4_kontak_add"></br>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-primary" onclick="addData_Proses()">Simpan</button>
</div>
</div>
</div>
</div>
<!-- Modal Hapus Data -->
<div class="modal fade" id="ModalDel" tabindex="-1" role="dialog" aria-labelledby="ModalDelLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalUpdateLabel">Konfirmasi Hapus Data</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>ID : </h6>
<input class="form-control" type="text" id="T4_del">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-danger" onclick="delData_Proses()">Hapus Data</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>