| 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/activities/ |
Upload File : |
<?php
$arrFlightInventoryList = $this->arrFlightInventoryList;
if(!empty($arrFlightInventoryList) )
{
foreach($arrFlightInventoryList as $arrFlightInventory)
{
if($arrFlightInventory['IsItTwoWay']==1)
{
$isWayClass = 'class="alert-info"';
} else {
$isWayClass = '';
}
$FromDateTime = (array) $arrFlightInventory['FromDate'];
$source_date_time = date("d/m/Y",strtotime($FromDateTime['date']));
$objFlight = new Travel_Model_TblFlight();
$arrFlightTimeDetails = $objFlight->getFlightTimeInventoryDetailsByFlightId($arrFlightInventory['XRefFlightSysId'],@$arrFlightInventory['StartPlaceSysId'],@$arrFlightInventory['DestPlaceSysId']);
//get flight departure time
$flightDepartureTime = (array) $arrFlightTimeDetails['DepartureTime'];
$flight_start_time = date("H:i",strtotime(@$flightDepartureTime['date']));
//Get flight arrival time
$flightArrivalTime = (array) $arrFlightTimeDetails['ArrivalTime'];
$flight_desti_time = date("H:i",strtotime(@$flightArrivalTime['date']));
?>
<tr <?php echo $isWayClass; ?>>
<td>
<?php if($arrFlightInventory['IsItTwoWay']==1 && $arrFlightInventory['IsItParent']==0) { ?>
<strong>Onward</strong>
<?php } else if($arrFlightInventory['IsItTwoWay']==1 && $arrFlightInventory['IsItParent']==1) { ?>
<strong>Inward</strong>
<?php } ?>
</td>
<td><?php echo $arrFlightInventory['Airline']; ?><br /><?php echo strtoupper($arrFlightInventory['FlightNumber']); ?></td>
<td><?php echo $source_date_time; ?></td>
<td><?php echo $arrFlightInventory['FromPlace']; ?> (<?php echo $flight_start_time; ?>)</td>
<td><?php echo $arrFlightInventory['ToPlace']; ?> (<?php echo $flight_desti_time; ?>)</td>
<td><?php echo $arrFlightInventory['StopCount']; ?></td>
<td>
<?php if(trim($arrFlightInventory['flightType'])=="Connecting") { ?>
<a id="manage-connecting-<?php echo $arrFlightInventory['InvnItemSysId']; ?>" style="cursor:pointer;" onclick="viewConnectingFlight('<?php echo $arrFlightInventory['InvnItemSysId']; ?>');" data-toggle="modal"><?php echo $arrFlightInventory['flightType']; ?></a>
<?php } else { echo $arrFlightInventory['flightType']; } ?>
</td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { echo $arrFlightInventory['PurchasedQty']; } ?></td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { echo $arrFlightInventory['PublishQty']; } ?></td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { echo @$arrFlightInventory['Currency']; } ?></td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { echo $arrFlightInventory['TotalCost']; } ?></td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { ?><a id="manage-markup-<?php echo $arrFlightInventory['InvnItemSysId']; ?>" style="cursor:pointer;" onclick="viewMarkUp('<?php echo $arrFlightInventory['InvnItemSysId']; ?>');" data-toggle="modal">Manage</a> <?php } ?></td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { echo $arrFlightInventory['SupplierType']; } ?></td>
<td><?php if($arrFlightInventory['IsItParent']!=1) { ?><a id="manage-markup_policies-<?php echo $arrFlightInventory['InvnItemSysId']; ?>" style="cursor:pointer;" onclick="viewMarkUpPolicies('<?php echo $arrFlightInventory['InvnItemSysId']; ?>');" data-toggle="modal">Manage</a><?php } ?></td>
<td style="white-space:nowrap;">
<?php if($arrFlightInventory['IsItParent']!=1) { ?>
<a href="javascript:void(0);" title="Copy" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Copy"><i class="fa fa-copy"></i></a>
<a href="javascript:void(0);" title="Edit" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-warning tooltipLink" data-original-title="Edit" onclick="editFlight('<?php echo $arrFlightInventory['InvnItemSysId']; ?>');"><i class="fa fa-pencil-square-o"></i></a>
<?php if($arrFlightInventory['IsActive']==1) { ?>
<a href="javascript:void(0);" title="Stop Sale" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Stop Sale" onclick="updateFlightSale('<?php echo $arrFlightInventory['InvnItemSysId']; ?>','0');"><i class="fa fa-stop"></i></a>
<?php } else { ?>
<a href="javascript:void(0);" title="Start Sale" data-placement="top" data-toggle="tooltip" class="btn btn-xs ls-green-btn tooltipLink" data-original-title="Start Sale" onclick="updateFlightSale('<?php echo $arrFlightInventory['InvnItemSysId']; ?>','1');"><i class="fa fa-play"></i></a>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } } else { ?>
<tr><td colspan="15" class="error">No record found.</td>
<?php } ?>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
</div>
</div>
</div>
<div class="modal fade" id="myModalPolicy" tabindex="-2" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
</div>
</div>
</div>
<script type="text/javascript">
function viewMarkUp(id) {
//$("a#manage-markup-" + id).attr('data-target','#myModal');
//$("a#manage-markup-" + id).attr('href',url);
// $('#myModal').modal('hide');
// $('body').removeClass('modal-open');
// $('div.modal-backdrop fade in').remove();
//$('#myModal').modal('show');
$("#myModal").modal({
remote: '/flight/manage-markup/id/' + id + '/key/single'
});
//$("a#manage-markup-" + id).click();
}
function viewMarkUpPolicies(id) {
//$("a#manage-markup_policies-" + id).attr('data-target','#myModalPolicy');
//$("a#manage-markup_policies-" + id).attr('href',url);
//$("a#manage-markup_policies-" + id).click();
$("#myModalPolicy").modal({
remote: '/flight/manage-policies/id/' + id
});
}
function viewConnectingFlight(id) {
$("#myModalConnecting").modal({
remote: '/flight/manage-connecting/id/' + id + '/key/single'
});
//$("a#manage-connecting-" + id).attr('data-target','#myModal');
//$("a#manage-connecting-" + id).attr('href',url);
}
function editFlight(flghtId)
{
editFlightBulkForm(flghtId);
}
function copyFlight11(flghtId)
{
copyFlightBulkForm(flghtId);
}
</script>
<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/jquery.toolbars.css'); ?>">
<!--Tooltip Bar Library Script Start -->
<script src="<?php echo $this->baseUrl('public/assets/js/jquery.toolbar.min.js'); ?>"></script>
<!--Tooltip Bar Library Script End -->