mirror of
https://github.com/itflow-org/itflow
synced 2026-11-11 15:07:24 +00:00
32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
<?php
|
|
|
|
require_once '../../../includes/modal_header.php';
|
|
|
|
$contact_ids = array_map('intval', $_GET['contact_ids'] ?? []);
|
|
|
|
$count = count($contact_ids);
|
|
|
|
ob_start();
|
|
|
|
?>
|
|
|
|
<div class="modal-header bg-dark">
|
|
<h5 class="modal-title"><i class="fa fa-fw fa-envelope-open me-2"></i>Send Email to <strong><?= $count ?></strong> contact<?= $count === 1 ? '' : 's' ?></h5>
|
|
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
|
</div>
|
|
<form action="post.php" method="post" autocomplete="off">
|
|
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
|
<?php foreach ($contact_ids as $contact_id) { ?><input type="hidden" name="contact_ids[]" value="<?= $contact_id ?>"><?php } ?>
|
|
<div class="modal-body">
|
|
<?php require __DIR__ . '/../../includes/bulk_email_fields.php'; ?>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="submit" name="send_bulk_mail_now" class="btn btn-primary text-bold"<?= emailReady() ? '' : ' disabled' ?>><i class="fas fa-paper-plane me-2"></i>Send</button>
|
|
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
|
</div>
|
|
</form>
|
|
|
|
<?php
|
|
require_once '../../../includes/modal_footer.php';
|