Advertisement
dhiforester

ListPengaturanBridging

Dec 18th, 2023
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.85 KB | None | 0 0
  1. <?php
  2.     include "../../_Config/Connection.php";
  3.     //Menampilkan List Pengaturan Bridging
  4.     $no=1;
  5.     $query = mysqli_query($Conn, "SELECT * FROM pengaturan WHERE kategori_pengaturan='Bridging Vclaim'");
  6.     while ($data = mysqli_fetch_array($query)) {
  7.         $id_pengaturan = $data['id_pengaturan'];
  8.         $profile_pengaturan = $data['profile_pengaturan'];
  9.         $pengaturan = $data['pengaturan'];
  10.         $pengaturan = json_decode($pengaturan, true);
  11.         $status = $data['status'];
  12.  
  13. ?>
  14. <div class="accordion accordion-flush mb-3 border-bottom" id="accordionFlushExample">
  15.     <div class="accordion-item">
  16.         <h2 class="accordion-header" id="flush-headingOne<?php echo $no;?>">
  17.             <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapse1<?php echo $no;?>" aria-expanded="false" aria-controls="flush-collapse1<?php echo $no;?>">
  18.                 <?php echo "$no. $profile_pengaturan"; ?>
  19.             </button>
  20.         </h2>
  21.         <div id="flush-collapse1<?php echo $no;?>" class="accordion-collapse collapse" aria-labelledby="flush-headingOne<?php echo $no;?>" data-bs-parent="#accordionFlushExample" style="">
  22.             <div class="accordion-body mb-4">
  23.                 <div class="row mb-4">
  24.                     <div class="col col-md-12 mb-2"></div>
  25.                 </div>
  26.                 <div class="row mb-4">
  27.                     <div class="col col-md-4 mb-2"><b>Status Pengaturan</b></div>
  28.                     <div class="col col-md-8 mb-2"><?php echo "$status"; ?></div>
  29.                 </div>
  30.                 <div class="row mb-4">
  31.                     <div class="col col-md-4 mb-2"><b>URL</b></div>
  32.                     <div class="col col-md-8 mb-2"><?php echo $pengaturan['url_api']; ?></div>
  33.                 </div>
  34.                 <div class="row mb-4">
  35.                     <div class="col col-md-4 mb-2"><b>Cons ID</b></div>
  36.                     <div class="col col-md-8 mb-2"><?php echo $pengaturan['cons_id']; ?></div>
  37.                 </div>
  38.                 <div class="row mb-4">
  39.                     <div class="col col-md-4 mb-2"><b>Kode PPK</b></div>
  40.                     <div class="col col-md-8 mb-2"><?php echo $pengaturan['kode_ppk']; ?></div>
  41.                 </div>
  42.                 <div class="row mb-4">
  43.                     <div class="col col-md-4 mb-2"><b>User Key</b></div>
  44.                     <div class="col col-md-8 mb-2"><?php echo $pengaturan['user_key']; ?></div>
  45.                 </div>
  46.                 <div class="row mb-4">
  47.                     <div class="col col-md-4 mb-2"><b>Secret Key</b></div>
  48.                     <div class="col col-md-8 mb-2"><?php echo $pengaturan['secret_key']; ?></div>
  49.                 </div>
  50.                 <div class="row mb-4">
  51.                     <div class="col col-md-12 mb-2">
  52.                         <button type="button" class="btn btn-success btn-sm" title="Edit Pengaturan" data-bs-toggle="modal" data-bs-target="#ModalEditPengaturanVclaim" data-id="<?php echo "$id_pengaturan"; ?>">
  53.                             <i class="bi bi-pencil-square"></i>
  54.                         </button>
  55.                         <button type="button" class="btn btn-danger btn-sm" title="Hapus Pengaturan" data-bs-toggle="modal" data-bs-target="#ModalHapusPengaturanVclaim" data-id="<?php echo "$id_pengaturan"; ?>">
  56.                             <i class="bi bi-trash"></i>
  57.                         </button>
  58.                         <button type="button" class="btn btn-secondary btn-sm" title="Generate Signature" data-bs-toggle="modal" data-bs-target="#ModalGenerateSignature" data-id="<?php echo "$id_pengaturan"; ?>">
  59.                             <i class="bi bi-arrow-clockwise"></i>
  60.                         </button>
  61.                     </div>
  62.                 </div>
  63.             </div>
  64.         </div>
  65.     </div>
  66. </div>
  67. <?php $no++;} ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement