| 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 : |
<!--Page main section start-->
<section id="min-wrapper" class="active">
<div id="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!--Top header start-->
<h3 class="ls-top-header">Add Flight Inventory</h3>
<!--Top header end -->
<!--Top breadcrumb start -->
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a></li>
<li class="active">My Inventory</li><li class="active">Flight Inventory</li><li class="active">Add Flight Inventory</li>
</ol>
<!--Top breadcrumb start -->
</div>
</div>
<!-- Main Content Element Start-->
<div class="row">
<div class="col-md-12">
<div class="leadeBorder">
<div class="panel-body alert alert-info no-margin">
<div class="col-md-4 no-padding">
<div class="form-group form-group1 no-margin">
<label class="inlinebl">Hotel Deals : </label>
<label class="radio inlinebl bulk">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" class="icheck-black" checked>
Bulk
</label>
<label class="radio inlinebl individual">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" class="icheck-black">
Individual
</label>
</div>
</div>
<a href="<?php echo $this->baseUrl('flight'); ?>" class="btn btn-primary pull-right"><i class="fa fa-arrow-circle-o-left"></i> Flight Listing</a>
</div>
<div class="panel-body bulkTab">
<div class="col-md-12 no-padding">
<div class="panel-body table-responsivenew no-padding no-border">
<form id="frmAddFlightInventory" name="frmAddFlightInventory" type="post">
<table class="table table-bordered no-margin">
<tr class="alert alert-success">
<th><strong>is 2 way</strong></th>
<th><strong>Flight No</strong></th>
<th><strong>Date</strong></th>
<th><strong>From</strong></th>
<th><strong>To</strong></th>
<th><strong>Stops</strong></th>
<th><strong>Type</strong></th>
<th><strong>Quantity</strong></th>
<th><strong>Currency</strong></th>
<th><strong>Rate</strong></th>
<th><strong>Mark Up</strong></th>
<th><strong>Supplier</strong></th>
<th><strong>Policies</strong></th>
<th><strong>Action</strong></th>
</tr>
<tr>
<td><label class="checkbox no-padding no-margin inwardid">
<input type="checkbox" name="is_way" id="is_way" value="0" class="icheck-green"></label>
</td>
<td>
<input type="text" name="flight_no" id="flight_no" class="form-control whbg ratetxtwidth75">
</td>
<td>
<input name="date" id="date" class="form-control datePickerOnly ratetxtwidth70 whbg" type="text"/>
</td>
<td><select id="select-country" class="demo-default select-country col-md-8" placeholder="Select" style="width:165px; white-space:nowrap; height:25px;">
<option value="15">Delhi (25/06/2016, 02:55)</option>
<option value="16">Pune (25/06/2016, 03:20)</option>
</select>
</td>
<td><select id="select-country" class="demo-default select-country col-md-8" placeholder="Select" style="width:165px;">
<option value="15">Mumbai (25/06/2016, 04:55)</option>
<option value="16">Pune (25/06/2016, 03:20)</option>
</select>
</td>
<td>0</td>
<td>Direct</td>
<td><input type="text" name="quantity" id="quantity" style="width:60px;" class="form-control whbg"></td>
<td><select id="currency_type" name="currency_type" class="demo-default select-supplier" placeholder="Select" style="width:90px;">
<option value="0">Select</option>
<?php if(count($this->arrCurrencyTypes) > 0 ) {
foreach($this->arrCurrencyTypes as $currency) { ?>
<option value="<?php echo $currency['CurrencyType']; ?>" <?php if($currency['CurrencyType'] == '1') echo "Selected"; ?>><?php echo $currency['Symbol']; ?></option>
<?php } } ?>
</select>
</td>
<td>5000</td>
<td><a href="javascript:void(0);" data-target="#myModa1allocate" data-toggle="modal">Manage</a></td>
<td><select id="supplier_type" name="supplier_type" class="demo-default select-country" placeholder="Select" style="width:110px;">
<option value="0">Select</option>
<?php
if(count($this->arrSupplierTypes) > 0 ) {
foreach($this->arrSupplierTypes as $type) { ?>
<option value="<?php echo $type['SupplierTypeSysId']; ?>"><?php echo $type['Title']; ?></option>
<?php
}
}
?>
</select>
</td>
<td><a href="javascript:void(0);" data-target="#myModa1allocate1" data-toggle="modal">Manage</a></td>
<td>
<a class="btn btn-success btn-sm" href="javascript:void(0);" onclick="addFlightInventory();"><i class="fa fa-fw fa-arrows"></i></a>
</td>
</tr>
<tr class="alert-warning twoway" style="display:none;">
<td><strong>Inward</strong></td>
<td>
<input type="text" class="form-control whbg ratetxtwidth75">
</td>
<td><input class="form-control datePickerOnly ratetxtwidth70 whbg" type="text"/></td>
<td><select id="select-country" class="demo-default select-country col-md-8" placeholder="Select" style="width:165px;">
<option value="15">Mumbai (27/06/2016, 02:55)</option>
<option value="16">Pune (27/06/2016, 03:20)</option>
</select></td>
<td><select id="select-country" class="demo-default select-country col-md-8" placeholder="Select" style="width:165px;">
<option value="15">Delhi (27/06/2016, 04:55)</option>
<option value="16">Pune (27/06/2016, 03:20)</option>
</select></td>
<td>1</td>
<td><a href="javascript:void(0);" data-target="#myModa1alconnecting" data-toggle="modal">Connecting</a></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="alert-info">
<td><strong>Onward</strong></td>
<td>AirAsia<br />I5-771</td>
<td>25/06/2016</td>
<td>Delhi (25/06/2016, 02:55)</td>
<td>Mumbai (25/06/2016, 04:55)</td>
<td>0</td>
<td>Direct</td>
<td>44</td>
<td>INR</td>
<td>5000</td>
<td>Customized</td>
<td>Internal</td>
<td>Standard</td>
<td style="white-space:nowrap;">
<button title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Copy"><i class="fa fa-copy"></i></button> <button title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-warning tooltipLink" data-original-title="Edit"><i class="fa fa-pencil-square-o"></i></button> <button title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Stop Sale"><i class="fa fa-stop"></i></button></td>
</tr>
<tr class="alert-info">
<td><strong>Inward</strong></td>
<td>AirAsia<br />I5-771</td>
<td>27/06/2016</td>
<td>Mumbai (27/06/2016, 02:55)</td>
<td>Delhi (27/06/2016, 04:55)</td>
<td>1</td>
<td>Connectiing</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>AirAsia<br />I5-771</td>
<td>25/06/2016</td>
<td>Delhi (25/06/2016, 02:55)</td>
<td>Mumbai (25/06/2016, 04:55)</td>
<td>0</td>
<td>Direct</td>
<td>44</td>
<td>INR</td>
<td>5000</td>
<td>Customized</td>
<td>Internal</td>
<td>Standard</td>
<td style="white-space:nowrap;">
<button title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Copy"><i class="fa fa-copy"></i></button> <button title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-warning tooltipLink" data-original-title="Edit"><i class="fa fa-pencil-square-o"></i></button> <button title="" data-placement="top" data-toggle="tooltip" class="btn btn-xs btn-danger tooltipLink" data-original-title="Stop Sale"><i class="fa fa-stop"></i></button></td>
</tr>
</table>
</form>
</div>
</div>
<div class="col-md-12 no-padding no-margin">
<div class="panel-footer text-right">
<button type="submit" class="btn btn-success">Save</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content Element End-->
</div>
</div>
<?php echo $this->render('copyrightfooter.phtml'); ?>
<!--<section class="" id="footer"><a href="http://aimmate.com" target="_blank">© TripsBank 2016</a></section>-->
</section>
<!--Page main section end -->
<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>
<input type="hidden" name="hidden_new_insert_id" id="hidden_new_insert_id" value="">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script type="text/javascript">
$('input[name="is_way"]').on('click', function(){
if ( $(this).is(':checked') ) {
alert("yes");
}
else {
alert("no");
}
});
$(function() {
$("#flight_no").autocomplete({
source: '/flight/get-flight-auto-search',
minLength: 2
});
});
</script>
<script type="text/javascript">
$(".standard").click(function(){
$(".standardtab").show();
$(".costomizetab").hide();
});
$(".customize").click(function(){
$(".standardtab").hide();
$(".costomizetab").show();
});
$(".standardpol").click(function(){
$(".standardpoltab").show();
$(".customizepoltab").hide();
});
$(".customizepol").click(function(){
$(".standardpoltab").hide();
$(".customizepoltab").show();
});
$(".inwardid").click(function(){
$(".twoway").toggle();
});
$("select").change(function(){
$(this).find("option:selected").each(function(){
if($(this).attr("value")=="addnew"){
$("#myModa1Modify").modal();
}
});
}).change();
$(window).load(function(){
$('.editbtn').click(function(){
var $div=$(this).parent().parent().children().children('span'), isEditable=$div.is('.editable');
$(this).parent().parent().children().children('span').prop('contenteditable',!isEditable).toggleClass('editable')
})
});
</script>
<script>
$().ready(function() {
disableForm();
viewHotelInventoryTable();
$("#hidden_new_insert_id").change( function() {
var intHotelId = $(this).val();
if(isEmpty(intHotelId)) {
disableForm();
}else {
getHotelDetail(intHotelId);
}
});
});
</script>
<script type="text/javascript">
function getHotelDetail(intHotelId) {
$.ajax({
url : '/hotel/get-hotel-detail',
data : {intHotelId : intHotelId},
method : 'POST',
type : 'json',
error : function() {
},
beforeSend : function() {
},
success : function(response) {
// alert(response.intLastInsertId);
// viewHotelInventoryTable();
enableForm();
}
});
}
function saveFlightInventory() {
var data = $('#frmAddFlightInventory').serialize();
$.ajax({
url : '/flight/save-inventory',
data : data,
method : 'POST',
type : 'json',
error : function() {
},
beforeSend : function() {
},
success : function(response) {
// alert(response.intLastInsertId);
// viewHotelInventoryTable();
}
});
return true;
}
function addFlightInventory() {
saveFlightInventory();
viewHotelInventoryTable();
}
function setHotelId() {
$("#hidden_new_insert_id").val( $("#hotel_id").val() ).trigger('change');
}
function manageMarkUp(url) {
saveHotelInventory();
//addHotelInventory();
// $("a#manage-markup").attr('data-target','#myModal');
// $("a#manage-markup").attr('href',url);
// $("a#manage-markup").click();
window.open(url,'','menubar=no,resizable=yes,top=100,width=700');
// if(false) {
// $("a#manage-markup").removeAttr('data-target');
// return false;
// }else {
// $("a#manage-markup").attr('data-target','#myModal');
// $("a#manage-markup").attr('href',url);
// $("a#manage-markup").click();
// return true;
// }
}
function viewHotelInventoryTable() {
$.ajax({
url : '/hotel/view-hotel-inventory-table',
method : 'POST',
type : 'json',
error : function() {
},
beforeSend : function() {
},
success : function(response) {
$("#hotel-inventory-grid").html(response);
//$("#hotel-inventory-grid").append(response);
}
});
}
function disableForm() {
$("#room_name").attr("disabled",true);
// $("#room_type").attr("disabled",true);
// $("#meal_plan").attr("disabled",true);
$("#from_dt").attr("disabled",true);
$("#to_dt").attr("disabled",true);
$("#daily_room_limit").attr("disabled",true);
//$("#permission").attr("disabled",true);
// $("#currency_type").attr("disabled",true);
$("#cost_double_occupancy").attr("disabled",true);
$("#cost_single_occupancy").attr("disabled",true);
$("#cost_extra_with_bed").attr("disabled",true);
$("#cost_extra_without_bed").attr("disabled",true);
// $("#supplier_type").attr("disabled",true);
$("#manage-markup").removeAttr("href");
$("#hidden_new_insert_id").val('');
}
function enableForm() {
$("#room_name").attr("disabled",false);
$("#room_type").attr("disabled",false);
$("#meal_plan").attr("disabled",false);
$("#from_dt").attr("disabled",false);
$("#to_dt").attr("disabled",false);
$("#daily_room_limit").attr("disabled",false);
$("#permission").attr("disabled",false);
$("#currency_type").attr("disabled",false);
$("#cost_double_occupancy").attr("disabled",false);
$("#cost_single_occupancy").attr("disabled",false);
$("#cost_extra_with_bed").attr("disabled",false);
$("#cost_extra_without_bed").attr("disabled",false);
$("#supplier_type").attr("disabled",false);
// $("#manage-markup").addAttr("href");
}
// $intHotelId = $this->getRequest()->getPost('hotel_id');
// $strRoomName = $this->getRequest()->getPost('room_name');
// $intRoomType = $this->getRequest()->getPost('room_type');
// $intMealPlan = $this->getRequest()->getPost('meal_plan');
// $strFromDate = $this->getRequest()->getPost('from_dt');
// $strToDate = $this->getRequest()->getPost('to_dt');
</script>