| 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/scripts/leaddetail/ |
Upload File : |
<?php
$packageThemeList = $this->packageThemeList;
$packageInclList = $this->packageInclList;
$cityListArray = $this->cityListArray;
$customerId = $this->customerId;
$leadDetail = $this->leadDetail;
$customerId = $this->customerId;
$leadID = $this->leadID;
$tpintsysID = $this->tpintsysID;
?>
<?php echo $this->partial('leaddetail/leaddetailpartial.phtml',array('pageName'=>'To Do List','customerDetail' => $this->customerDetail, 'leadId'=>$this->leadId ,'leadDetail' => $this->leadDetail[0],'sourceCity' => $this->sourceCity,'customerId' => $this->customerId,'flightproposal'=>$this->flightproposal,'proposalCount'=>$this->proposalCount,'packageThemeList' => $this->packageThemeList ,'packageFoodPreferenceList'=>$this->packageFoodPreferenceList, 'packageInclList' => $this->packageInclList , 'cityListArray' => $this->cityListArray , 'tpintsysID' => $this->tpintsysID));?>
<style>
.txtoverdue{ color:red;}
.txtpending{ color:#0076CA;}
</style>
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading align_paddingbottom_0">
<h3 class="panel-title">Lead To-Do </h3>
</div>
<div class="panel-body table-responsive">
<table class="table tablestyle">
<tbody>
<tr class="alert alert-graylight">
<th class="small smallbold" width="5%">#</th>
<th class="small smallbold" width="10%">Type</th>
<th class="small smallbold" width="15%">Due Date</th>
<th class="small smallbold" width="15%">Subject</th>
<th class="small smallbold" width="20%" style="display:none;">Assigned To</th>
<th class="small smallbold">Details</th>
<th class="small smallbold" width="8%">Status</th>
<th class="small smallbold" width="5%">Action</th>
</tr>
<?php if (!empty($this->paginator) ):
$s=1;
foreach ($this->paginator as $getAllCustomerTODO){ //echo '<pre>'; print_r($roles); die;
$cureentDate_Str = strtotime(date('d-m-Y H:i:s'));
$startdate_Str = strtotime($getAllCustomerTODO['StartDateTime']->format('d-m-Y H:i:s'));
?>
<tr class="todoshow_<?php echo $getAllCustomerTODO['ToDoSysId'];?>">
<td><?php echo $s++; ?></td>
<td><?php echo ($getAllCustomerTODO['Type']==0)?'To Do':'Follow Up'; ?></td>
<td><?php echo $getAllCustomerTODO['StartDateTime']->format('d-M-y H:i:s');
//$getAllCustomerTODO['EndDateTime']->format('d/m/Y H:i:s'); ?></td>
<td><?php echo (isset($getAllCustomerTODO['Subject']) && !empty($getAllCustomerTODO['Subject']))?stripslashes($getAllCustomerTODO['Subject']):"NA"; ?></td>
<td style="display:none;"><?php echo trim($getAllCustomerTODO['AgencyUserEmailId'])?stripslashes($getAllCustomerTODO['AgencyUserFirstName']).stripslashes($getAllCustomerTODO['AgencyUserLastName'])."(".$getAllCustomerTODO['AgencyUserEmailId'].")":''; ?></td>
<td><?php echo $getAllCustomerTODO['Description']?stripslashes($getAllCustomerTODO['Description']):'NA'; ?></td>
<td><?php if($getAllCustomerTODO['IsCompleted']==1){ echo "Completed"; }else{
if($cureentDate_Str>$startdate_Str){ ?>
<span class="txtoverdue">Overdue</span> <?php } else { ?>
<span class="txtpending">In-complete</span> <?php }
} ?></td>
<td class="small">
<a class="view_text1 tooltipLink" title=" <?php if($getAllCustomerTODO['Type']==0){ ?> Update To Do <?php } else if($getAllCustomerTODO['Type']==1) { echo "Update Follow Up"; } else { echo "NA"; } ?>" href="<?php echo $this->baseUrl('/customer/customer-view-to-do/tid/'.base64_encode($getAllCustomerTODO['ToDoSysId']).'/cid/'.base64_encode($getAllCustomerTODO['CustSysId'])); ?>" title="Update To do" data-target="#myModalviewToDoDetail" data-toggle="modal" data-dismiss="modal"><i class="fa fa-pencil"></i></a>
</td>
</tr>
<?php }
else:?>
<tr>
<td align="center" colspan="7"><strong>No record found</strong></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<div class="panel-box clearfix">
<?php if (!empty($this->paginator) ) { ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
<?php } ?>
</div>
</div>
</div>
<!-- Main Content Element End-->
</div>
</div>
<?php echo $this->render('copyrightfooter.phtml'); ?>
<!-- modal for view to do details -->
<div class="modal fade in" id="myModalviewToDoDetail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="center">
<img class="loaderimg" id="loaderimg" src="<?php echo $this->baseUrl('/public/tinymce/skins/lightgray/img/loader.gif'); ?>"/>
</div>
</div>
</div>
</div>
<!--Page main section end -->
<?php include_once 'application/views/scripts/newfooter.phtml';?>
<script>
function deleteRemark(remarkId,customerId){
$.ajax({
url: '/customer/delete-remark',
data: {'id':remarkId,'customerId':customerId},
type: 'POST',
async:false,
dataType: 'json',
beforeSend: function (data) {
//$(".modalloader").show();
},
success: function (response) {
if(response.status=='success'){
//alert(response.id);
$(".remarkshow_"+response.id).fadeOut('slow');
}
},
error:function(){
alert("fail : Please try after some time");
}
});
}
$(document).ready(function(){
$('.iCheck-helper').click(function () {
var parent = $(this).parent().parent();
if(parent.hasClass('flightshow')){
$('.flightshow').trigger('click');
}
if(parent.hasClass('hotelshow')){
$('.hotelshow').trigger('click');
}
if(parent.hasClass('hotelflightshow')){
$('.hotelflightshow').trigger('click');
}
if(parent.hasClass('packageshow')){
$('.packageshow').trigger('click');
}
});
});
</script>