Professional Documents
Culture Documents
Antara Ini Atau Swal Fire
Antara Ini Atau Swal Fire
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.0/html2pdf.bundle.js"></
script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<style>
.modal-lg {
.stepper-wrapper {
margin-top: auto;
display: flex;
justify-content: space-between;
margin-bottom: 20px;
.stepper-item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
font-size: 12px;
.stepper-item::before {
position: absolute;
content: "";
width: 100%;
top: 20px;
left: -50%;
z-index: 2;
.stepper-item2 {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
font-size: 12px;
.stepper-item2::before {
position: absolute;
content: "";
width: 100%;
top: 20px;
left: -50%;
z-index: 2;
.stepper-item .step-counter {
position: relative;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: #ccc;
margin-bottom: 6px;
.stepper-item2 .step-counter {
position: relative;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background:lightgreen;
margin-bottom: 6px;
.stepper-item:first-child::before {
content: none;
.stepper-item:last-child::after {
content: none;
.stepper-item2:first-child::before {
content: none;
.stepper-item2:last-child::after {
content: none;
.progress-cell[data-status="Ready send"] {
background-color: orange;
color: black;
.progress-cell[data-status="Terima"] {
background-color: lightgrey;
color: black;
.progress-cell[data-status="Return"] {
background-color: red;
color: black;
}
.progress-cell[data-status="Close"] {
background-color: lightgreen;
color: black;
.progress-cell2[data-status="Ready send"] {
background-color: orange;
color: black;
.progress-cell2[data-status="Terima"] {
background-color: lightgrey;
color: black;
.progress-cell2[data-status="Return"] {
background-color: red;
color: black;
.progress-cell2[data-status="Close"] {
background-color: lightgreen;
color: black;
</style>
</head>
<body>
<div id="PPICCard">
<p></p>
<p></p>
<thead>
<tr>
<th>#</th>
<th>BM</th>
<th>Kode Produk</th>
<th>Progress</th>
<th>Status</th>
<th>Tanggal</th>
<th>Tanggal BPP</th>
<th>Keterangan</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<tr>
</td>
<td>
<div class="d-flex">
<div>
</div>
<div class="modal-content">
<div class="modal-header">
</div>
<div class="stepper-wrapper">
<div class="step-counter">1</div>
<div class="step-name">PPIC</div>
</div>
<div class="step-counter">2</div>
<div class="step-name">Produksi</div>
</div>
<div class="step-counter">3</div>
<div class="step-name">QA</div>
</div>
<div class="step-counter">1</div>
<div class="step-name">PPIC</div>
</div>
<div class="step-counter">2</div>
<div class="step-name">Produksi</div>
</div>
<div class="step-name">QA</div>
</div>
<div class="step-counter">1</div>
<div class="step-name">PPIC</div>
</div>
<div class="step-counter">2</div>
<div class="step-name">Produksi</div>
</div>
<div class="step-counter">3</div>
<div class="step-name">QA</div>
</div>
</div>
<div class="modal-body">
<thead>
<tr>
<th>#</th>
<th>BM</th>
<th>Kode Produk</th>
<th>Progress</th>
<th>Status</th>
<th>Tanggal</th>
<th>Tanggal BPP</th>
<th>Keterangan</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<tr>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
<div class="form-group">
</div>
<div class="form-group">
<label for="keterangan">Keterangan:</label>
</div>
<div class="modal-footer">
</div>
</form>
</div>
</div>
</div>
</div>
<script>
function confirmTerima() {
Swal.fire({
title: 'Konfirmasi',
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#28a745',
cancelButtonColor: '#d33',
confirmButtonText: 'Ya',
cancelButtonText: 'Tidak'
}).then((result) => {
if (result.isConfirmed) {
document.getElementById("updateFormsss").submit();
});
function confirmKirim() {
Swal.fire({
title: 'Konfirmasi',
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#007bff',
cancelButtonColor: '#d33',
confirmButtonText: 'Ya',
cancelButtonText: 'Tidak'
}).then((result) => {
if (result.isConfirmed) {
document.getElementById("updateFormsss").action = "<?=
base_url('user/insertMonitoringProd2/' . $pa['id']); ?>";
document.getElementById("updateFormsss").submit();
});
</script>
<div class="modal" id="updateModal2<?= $pa['id']; ?>">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
<div class="form-group">
<label for="keteranganqa">Keterangan:</label>
</div>
<div class="modal-footer">
</div>
</form>
</div>
</div>
</div>
</div>
<?php $i++; ?>
</tbody>
</table>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
<div class="form-group">
<label for="bnInput">BN:</label>
</div>
<div class="form-group">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</div>
</div>
</div>