Viewing File: /home/rareljzw/public_html/admin/include/adminFunction.php
<?php
//include '../vendor/autoload.php';
//use PHPMailer\PHPMailer\PHPMailer;
const APP_NAME = "RareSea Mint";
function toast_alert($type,$msg, $title = false){
if ($title === false){
$alert_title = "Ops!!";
}else{
$alert_title = $title;
}
$toast = '<script type="text/javascript">
$(document).ready(function(){
swal({
type: "'.$type.'",
title: "'.$alert_title.'",
text: "'.$msg.'",
padding: "2em",
});
});
</script>';
echo $toast;
}
function transStatus($row){
if ($row['wallet_status'] == '0') {
return '<span class="text-yellow">Pending</span>';
}
if($row['wallet_status'] == '1'){
return '<span class="text-green">Approved</span>';
}
if($row['wallet_status'] == '2') {
return '<span class="text-red">On Hold</span>';
}
if($row['wallet_status'] == '3') {
return '<span class="text-red">Rejected</span>';
}
}
Back to Directory
File Manager
<