Your IP : 18.227.140.251
<?php
session_start(); ob_start();
?>
<!doctype html>
<html lang="en" dir="ltr">
<head>
<!-- META DATA -->
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Fination Global Services">
<meta name="author" content="Fination Global Services">
<meta name="keywords" content="">
<!-- FAVICON -->
<link rel="shortcut icon" type="image/x-icon" href="../assets/images/brand/favicon.ico" />
<!-- TITLE -->
<title>Send Bulk Messages</title>
<!-- BOOTSTRAP CSS -->
<link id="style" href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<!-- STYLE CSS -->
<link href="../assets/css/style.css" rel="stylesheet"/>
<link href="../assets/css/plugins.css" rel="stylesheet"/>
<!-- Animate css -->
<link href="../assets/css/animated.css" rel="stylesheet" />
<!--- FONT ICONS -->
<link href="../assets/css/icons.css" rel="stylesheet"/>
</head>
<body class="app sidebar-mini ltr light-mode">
<!-- GLOBAL-LOADER
<div id="global-loader">
<img src="../assets/images/loader.svg" class="loader-img" alt="Loader">
</div>-->
<!-- /GLOBAL-LOADER -->
<!-- PAGE -->
<div class="page">
<div class="page-main">
<!-- app-Header -->
<?php include('header.php'); $pro->adminAccess();
//$pro->DeductAutomated(); ?>
<!--/APP-SIDEBAR-->
<!--app-content open-->
<div class="main-content app-content mt-0">
<div class="side-app">
<!-- CONTAINER -->
<div class="main-container container-fluid">
<!-- PAGE-HEADER -->
<div class="page-header">
<div>
<h1 class="page-title"> Bulk Messages</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Send Bulk Messages</li>
</ol>
</div>
<?php include('pagebtn.php') ?>
</div>
<!-- PAGE-HEADER END -->
<div class="card">
<div class="card-body">
<div class="card-title">
<h5 class="mb-0">Send Bulk Messages</h5>
</div>
<hr/>
<form method="post">
<?php
// $s1 = $db->query("SELECT DISTINCT email FROM user WHERE stage>0");
$s1 = $db->query("SELECT email FROM user WHERE stage>0");
$n1 = mysqli_num_rows($s1);
$s2 = $db->query("SELECT email FROM user ");
$n2 = mysqli_num_rows($s2);
$s3 = $db->query("SELECT email FROM user WHERE stage=0");
$n3 = mysqli_num_rows($s3);
$s4 = $db->query("SELECT email FROM user WHERE pack=5");
$n4 = mysqli_num_rows($s4);
$s5 = $db->query("SELECT email FROM user WHERE pack=25");
$n5 = mysqli_num_rows($s5);
$s6 = $db->query("SELECT email FROM user WHERE pack=50");
$n6 = mysqli_num_rows($s6);
?>
<div class="row">
<div class="col-lg-12 mb-2">
<input type="text" name="subject" placeholder="Message Subject" class="form-control" required></div>
<div class="col-lg-12 mb-2">
<select name="type" class="form-control " required>
<option value="">Select Message Recipients...</option>
<option value="1"> <?=$n1?> | Active Members</option>
<option value="2"><?=$n2?> | All Members</option>
<option value="3"><?=$n3?> | Non-Active Members</option>
<option value="4"><?=$n4?> | Regular Members</option>
<option value="5"><?=$n5?> | Pro Members</option>
<option value="6"><?=$n6?> | VIP Members</option>
</select>
</div>
<div class="col-lg-12 mb-2">
<textarea rows="8" name="message" placeholder="Enter Message" class="content" required></textarea></div>
<div class="col-lg-9 mt-3" >
</div>
<div class="col-lg-3 mt-3">
<button type="submit" class="btn btn-primary btn-block" name="SendMailToAll">Send Bulk Messages</button>
</div>
</div> </form>
</div>
</div>
<!--app-content end-->
<div class="card">
<div class="card-title">
<h4 class="m-2">Upload Images</h4>
</div>
<hr/>
<div class="card-body">
<form method="post" enctype="multipart/form-data">
<input type="file" name="photo" class="form-control"><br>
<button type="submit" class="btn btn-primary" name="MailPhoto">Submit Photograph</button>
</form>
<hr>
<div class="row">
<?php
$dirname = "uploadx/";
//$images = glob($dirname."*.jpg");
$images = glob($dirname."*");
$i=1;
foreach($images as $image) { $e=$i++;
?>
<div class="col-md-3">
<div class="card">
<div class="card-body p-2">
<?= '<img src="'.$image.'" width="100%" />' ?>
<br><br>
<input type="text" class="form-control" id="copy<?= $e ?>" value="https://finationglobal.com/account/<?= $image ?>" readonly> <button class="btn btn-primary" onclick="copyToClipboard('<?= $e ?>')"><i class="fa fa-copy"></i></button>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-title">
<h4 class="m-2">Message History</h4>
</div>
<hr/>
<div class="card-body">
<table class="table table-bordered">
<tr>
<th>SN</th><th>Recipient</th><th>Subject</th><th>Message</th>
</tr>
<?php $i=1; $sql = $db->query("SELECT * FROM bulkmsg ORDER BY sn DESC");
while($row = mysqli_fetch_assoc($sql)){$e=$i++;
$t = $row['catid'];
if($t==1){$type='Active Members';}
elseif($t==2){$type='All Members';}
elseif($t==3){$type='Non-Active Members';}
elseif($t==4){$type='Regular Members';}
elseif($t==5){$type='Pro Members';}
elseif($t==6){$type='VIP Members';}
echo '<tr><td>'.$e.'</td><td>'.$type.'</td><td>'.$row['subject'].'</td><td>'.$row['message'].'</td></tr>';
} ?>
</table>
</div>
</div>
</div>
<script type="text/javascript">
function copyToClipboard(v) {
var copyText = document.getElementById("copy"+v);
copyText.select();
copyText.setSelectionRange(0, 99999); /*For mobile devices*/
document.execCommand("copy");
alert("Copied to clipboard ");
}
</script>
<!-- FOOTER -->
<?php include('footer.php'); ?>
<!-- FOOTER END -->
</div>
<!-- BACK-TO-TOP -->
<a href="#top" id="back-to-top"><i class="fa fa-angle-up"></i></a>
<!-- JQUERY JS -->
<script src="../assets/js/jquery.min.js"></script>
<!-- BOOTSTRAP JS -->
<script src="../assets/plugins/bootstrap/js/popper.min.js"></script>
<script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- CHARTJS CHART JS-->
<script src="../assets/plugins/chart/Chart.bundle.js"></script>
<script src="../assets/plugins/chart/utils.js"></script>
<!-- C3 CHART JS -->
<script src="../assets/plugins/charts-c3/d3.v5.min.js"></script>
<script src="../assets/plugins/charts-c3/c3-chart.js"></script>
<!-- SIDEBAR JS -->
<script src="../assets/plugins/sidebar/sidebar.js"></script>
<!-- INPUT MASK JS-->
<script src="../assets/plugins/input-mask/jquery.mask.min.js"></script>
<!-- SIDE-MENU JS-->
<script src="../assets/plugins/sidemenu/sidemenu.js"></script>
<!-- Sticky js -->
<script src="../assets/js/sticky.js"></script>
<!-- Perfect SCROLLBAR JS-->
<script src="../assets/plugins/p-scroll/perfect-scrollbar.js"></script>
<script src="../assets/plugins/p-scroll/pscroll.js"></script>
<script src="../assets/plugins/p-scroll/pscroll-1.js"></script>
<!-- WYSIWYG Editor JS -->
<script src="../assets/plugins/wysiwyag/jquery.richtext.js"></script>
<script src="../assets/plugins/wysiwyag/wysiwyag.js"></script>
<!-- FORMEDITOR JS -->
<script src="../assets/plugins/quill/quill.min.js"></script>
<script src="../assets/js/form-editor2.js"></script>
<!-- Color Theme js -->
<script src="../assets/js/themeColors.js"></script>
<!-- swither styles js -->
<script src="../assets/js/swither-styles.js"></script>
<!-- CUSTOM JS -->
<script src="../assets/js/custom.js"></script>
</body>
</html>