Advertisement
dhiforester

FormEditPengaturanVclaim

Dec 18th, 2023
745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.60 KB | Source Code | 0 0
  1. <?php
  2.     include "../../_Config/Connection.php";
  3.     include "../../_Config/Function.php";
  4.     if(!empty($_POST['id_pengaturan'])){
  5.         $id_pengaturan=$_POST['id_pengaturan'];
  6.     }else{
  7.         $id_pengaturan="";
  8.     }
  9.     $profile_pengaturan=getDataDetail($Conn,'pengaturan','id_pengaturan',$id_pengaturan,'profile_pengaturan');
  10.     $kategori_pengaturan=getDataDetail($Conn,'pengaturan','id_pengaturan',$id_pengaturan,'kategori_pengaturan');
  11.     $pengaturan=getDataDetail($Conn,'pengaturan','id_pengaturan',$id_pengaturan,'pengaturan');
  12.     $status=getDataDetail($Conn,'pengaturan','id_pengaturan',$id_pengaturan,'status');
  13.     $pengaturan = json_decode($pengaturan, true);
  14.     $url_api=$pengaturan['url_api'];
  15.     $cons_id=$pengaturan['cons_id'];
  16.     $user_key=$pengaturan['user_key'];
  17.     $secret_key=$pengaturan['secret_key'];
  18.     $kode_ppk=$pengaturan['kode_ppk'];
  19. ?>
  20. <form action="javascript:void(0);" id="ProsesPengaturanVclaim" autocomplete="off">
  21.     <input type="hidden" name="id_pengaturan" id="id_pengaturan" value="<?php echo "$id_pengaturan"; ?>">
  22.     <div class="row mb-3 mt-3">
  23.         <div class="col-md-4 mb-2">
  24.             <label for="profile_pengaturan">Nama Pengaturan</label>
  25.         </div>
  26.         <div class="col-md-8 mb-2">
  27.             <input type="text" name="profile_pengaturan" id="profile_pengaturan" class="form-control" value="<?php echo "$profile_pengaturan"; ?>">
  28.         </div>
  29.     </div>
  30.     <div class="row mb-3 mt-3">
  31.         <div class="col-md-4 mb-2">
  32.             <label for="url_api">Url Service</label>
  33.         </div>
  34.         <div class="col-md-8 mb-2">
  35.             <input type="url" name="url_api" id="url_api" class="form-control" value="<?php echo "$url_api"; ?>">
  36.         </div>
  37.     </div>
  38.     <div class="row mb-3 mt-3">
  39.         <div class="col-md-4 mb-2">
  40.             <label for="cons_id">Cons ID</label>
  41.         </div>
  42.         <div class="col-md-8 mb-2">
  43.             <input type="text" name="cons_id" id="cons_id" class="form-control" value="<?php echo "$cons_id"; ?>">
  44.         </div>
  45.     </div>
  46.     <div class="row mb-3 mt-3">
  47.         <div class="col-md-4 mb-2">
  48.             <label for="user_key">User Key</label>
  49.         </div>
  50.         <div class="col-md-8 mb-2">
  51.             <input type="text" name="user_key" id="user_key" class="form-control" value="<?php echo "$user_key"; ?>">
  52.         </div>
  53.     </div>
  54.     <div class="row mb-3 mt-3">
  55.         <div class="col-md-4 mb-2">
  56.             <label for="secret_key">Secret Key</label>
  57.         </div>
  58.         <div class="col-md-8 mb-2">
  59.             <input type="text" name="secret_key" id="secret_key" class="form-control" value="<?php echo "$secret_key"; ?>">
  60.         </div>
  61.     </div>
  62.     <div class="row mb-3 mt-3">
  63.         <div class="col-md-4 mb-2">
  64.             <label for="kode_ppk">Kode PPK</label>
  65.         </div>
  66.         <div class="col-md-8 mb-2">
  67.             <input type="text" name="kode_ppk" id="kode_ppk" class="form-control" value="<?php echo "$kode_ppk"; ?>">
  68.         </div>
  69.     </div>
  70.     <div class="row mb-3 mt-3">
  71.         <div class="col-md-4 mb-2">
  72.             <label for="status">Status</label>
  73.         </div>
  74.         <div class="col-md-8 mb-2">
  75.             <select name="status" id="status" class="form-control">
  76.                 <option <?php if($status==""){echo "selected";} ?> value="">Pilihan</option>
  77.                 <option <?php if($status=="Active"){echo "selected";} ?> value="Active">Active</option>
  78.                 <option <?php if($status=="Non Active"){echo "selected";} ?> value="Non Active">Non Active</option>
  79.             </select>
  80.         </div>
  81.     </div>
  82. </form>
Tags: simrs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement