Update Banyak
This commit is contained in:
@@ -24,15 +24,18 @@
|
||||
<th>API Key</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
<?php if($_SESSION['master'] == 1) { ?>
|
||||
<th>Status</th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if($SvId == '1'){
|
||||
$SQL = "SELECT id,nama_server,nomor_whatsapp,url_whatsapp_gateway,apikey_whatsapp,status_whatsapp FROM data_server WHERE id != '1'";
|
||||
$SQL = "SELECT id,nama_server,nomor_whatsapp,url_whatsapp_gateway,apikey_whatsapp,status_whatsapp, expaired_date FROM data_server WHERE id != '1'";
|
||||
}
|
||||
else{
|
||||
$SQL = "SELECT id,nama_server,nomor_whatsapp,url_whatsapp_gateway,apikey_whatsapp,status_whatsapp FROM data_server WHERE id IN (".$SvId.")";
|
||||
$SQL = "SELECT id,nama_server,nomor_whatsapp,url_whatsapp_gateway,apikey_whatsapp,status_whatsapp, expaired_date FROM data_server WHERE id IN (".$SvId.")";
|
||||
}
|
||||
$no = 1;
|
||||
$aserver = mysqli_query($con,$SQL);
|
||||
@@ -60,7 +63,16 @@
|
||||
<td>
|
||||
<a href="?<?php echo encrypt_url('whatsapp_gateway_scan|'.$server['id']);?>" class="text-success"><i class="fas fa-qrcode fa-2x"></i></a>
|
||||
<a type="button" class="btn btn-sm btn-secondary btn-sm ml-3" data-toggle="modal" data-target="#modal-proses<?php echo $server['id'];?>" style="margin-top: -15px;">Edit</a>
|
||||
</td>
|
||||
<?php if($_SESSION['master'] == 1) { ?>
|
||||
<td><?php
|
||||
if ($server['expaired_date'] >= date('Y-m-d')) { ?>
|
||||
<span class="badge badge-success">Aktif</span>
|
||||
<?php } else { ?>
|
||||
<span class="badge badge-danger">Tidak Aktif</span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<div class="modal fade" id="modal-proses<?php echo $server['id'];?>">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
Reference in New Issue
Block a user