| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/application/views/emails/ |
Upload File : |
<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/summernote.css'); ?>">
<form name="SendVoucherEmailForm" id="SendVoucherEmailForm" method="post" action="javascript://">
<div class="modal-header">
<button type="button" class="close" onclick="closePopTTT();" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Send Voucher Email </h4>
</div>
<div class="modal-body">
<div class="col-md-12">
<div class="form-group active">
<label>Subject <?php echo MANDATORY_SIGN; ?></label>
<input type="text" name="emailSubject" id="emailSubjectPop" value="<?php echo $this->subject;?>" class="form-control whbg">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label></label>
<textarea class="input-block-level" id="EmailContentPop" class="summernote" name="EmailContent">
<table width="610" border="0" align="left" cellpadding="15" cellspacing="0">
<tr>
<td style=""><table width="610" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF" colspan="2" align="left" style=" padding:18px 40px;vertical-align: middle;">
<img style="max-height: 68px;" src="<?php echo $this->logo; ?>" />
</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><span style="font:bold 14px Tahoma, Geneva, sans-serif;">Dear <?php echo ucfirst($this->customerName); ?>,</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;">Greetings From <?php echo $this->agencyTitle; ?>!!!!</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;">Thanks for your booking with us for <?php echo $this->DestinationPlaces; ?> trip against proposal ID <?php echo $this->TPSysId; ?>.</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;">Please find the Vouchers for your trip which you can download from the below link.
<!--or you can login to our website <?php //echo $this->agencyWebsite;?> and download it under the booking section-->
</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Voucher Link: <a href="<?php echo $this->Url; ?>"><?php echo $this->Url; ?></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Please feel free to connect with us on below contact details in case of any query.</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;">Regards,</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;"><?php echo $this->agencyTitle; ?></span></td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;"><?php echo $this->agencyContact; ?></span></td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;"><a href="<?php echo $this->agencyWebsite; ?>"><?php echo $this->agencyWebsite; ?></a></span></td>
</tr>
<tr>
<td ><span style="font:normal 14px Tahoma, Geneva, sans-serif;"><a mailto="<?php echo $this->agencyEmailId; ?>"><?php echo $this->agencyEmailId; ?></a></span></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</textarea>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="modal-footer"><span class="msgmail"></span>
<button type="button" class="btn btn-primarygray btn-sm" onclick="closePopTTT();" aria-hidden="true">Cancel</button>
<button type="button" class="btn btn-primary btn-sm SendMailTo SendMailTomm" onclick="SendVoucherMailToCustomer();">Send</button>
</div>
</form>
<script src="<?php echo $this->baseUrl('public/assets/js/summernote.min.js'); ?>"></script>
<script>
$('#EmailContentPop').summernote({
height: "300px",
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['color', ['color']],
['para', ['ul', 'ol']]
]
});
</script>
<script>
function SendVoucherMailToCustomer() {
var BYOTPSYSId = '<?php echo $this->BYOTPSYSId;?>';
var type = '<?php echo $this->type;?>';
var emailSubject = $('#emailSubjectPop').val();
var EmailContent = $('#EmailContentPop').summernote('code');
$.ajax({
url: '/build-your-own/createpdf/download-voucher',
type: 'POST',
dataType: 'json',
async: true,
data: {
'BYOTPSYSId': BYOTPSYSId,
'type': type,
'sharetype': 'email',
'subsharetype': 1,
'emailSubject': emailSubject,
'EmailContent': EmailContent
},
beforeSend: function() {
$('.SendMailTomm').html('Please Wait...');
},
success: function(data) {
if(data.status == true){
$('.msgmail').html(data.message).css({'color':'green'}).fadeIn(1000).fadeOut(20000);;
}else{
alert(data.message);return false;
}
$('.SendMailTomm').html('Send');
setTimeout(function() { closePopTTT(); }, 1000);
}
});
}
function closePopTTT() {
$('#myModalVoucherView').modal('hide');
}
</script>