| 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/hotel/ |
Upload File : |
<link href="<?php echo $this->baseUrl('public/assets/css/bootstrap.min.css'); ?>" rel="stylesheet">
<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/selectize.bootstrap3.css'); ?>">
<!-- Plugin Css End -->
<!-- Custom styles Style -->
<link href="<?php echo $this->baseUrl('public/assets/css/style.css'); ?>" rel="stylesheet">
<!-- Custom styles Style End-->
<!-- Responsive Style For-->
<link href="<?php echo $this->baseUrl('public/assets/css/responsive.css'); ?>" rel="stylesheet">
<!-- Responsive Style For-->
<!-- Custom styles for this template -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/lib/jquery-1.11.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('public/js/functions.js'); ?>"></script>
<?php
// echo "<pre>";
// print_r($this->arrHotelInventoryList);
// exit;
// echo "<pre>";
// print_r(ARR_PERMISSIONS);
// exit;
?>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Mark Up Settings ( <?php echo $this->arrHotelInventoryList['HotelName']; ?> - <?php echo $this->arrHotelInventoryList['Title']; ?>)</h4>
</div>
<div class="modal-body">
<div class="col-md-6">
<div class="form-group">
<label>Mark Up Setting</label>
<div class="col-md-12 no-padding">
<label class="radio inlinebl standard" onclick="viewMarkupSetting('<?php echo $this->InvnItemSysId; ?>','STANDARD')">
<input type="radio" name="optMarkupSettings" id="optionsRadios2" value="S" class="icheck-black" checked>
Standard
</label>
<label class="radio inlinebl customize" onclick="viewMarkupSetting('<?php echo $this->InvnItemSysId; ?>','CUSTOMIZE')">
<input type="radio" name="optMarkupSettings" id="optionsRadios2" value="C" class="icheck-black">
Customize
</label>
</div>
</div>
</div>
<div class="col-md-6" id="markup-type-block">
<div class="form-group">
<label>Mark Up Type</label>
<select id="markup-type" name="markup-type" class="demo-default select-country" placeholder="Select" onchange="ShowFixedMarkupForm('<?php echo $this->InvnItemSysId; ?>')">
<option value="0">Select</option>
<option value="<?php echo FIXED_AMOUNT_MARKUP_ID ; ?>">Fixed Amount</option>
<option value="<?php echo FIXED_PERCENTAGE_MARKUP_ID ; ?>" selected="">Fixed %</option>
</select>
</div>
</div>
<!-- <div class="error-message-box" id="markup-setting-error-messages" style="display:none">Errors</div>-->
<?php
// echo "<pre>";
// print_r($this->arrHotelInventoryList);
// exit;
$arrMarketPlaces = Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getMarketPlaces();
$arrPermissions = Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getPermissions();
?>
<input type="hidden" name="hidden_InvnItemSysId" id="hidden_InvnItemSysId" value="<?php echo $this->InvnItemSysId; ?>"
<div class="col-md-12 no-padding standardtab" id='standardtab-fixed-amount'>
<div class="panel-body table-responsive no-padding no-border" id="markup-settings-grid-content">
</div>
</div>
<!-- <div class="col-md-12 no-padding costomizetab-fixed-percentage-markup-form" id="fixed-percentage-markup-container" style="display:none;">
<form id="fixed-percentage-markup-form" name="fixed-percentage-markup-form" method="post">
<div class="panel-body table-responsive no-padding no-border">
<table class="table table-bordered no-margin">
<thead>
<tr class="alert alert-success">
<th><strong>Market Place</strong></th>
<th><strong>Permission</strong></th>
<th><strong>Mark up Fixed %</strong></th>
<th colspan="4" class="text-center"><strong>Offer Price</strong></th>
<th><strong>T & C</strong></th>
<th><strong>Action</strong></th>
</tr>
<tr class="alert alert-info">
<td colspan="3"> </td>
<td class="text-center small"><strong>Double occupancy (<?php echo $this->arrHotelInventoryList['DOccupCost']; ?>)</strong></td>
<td class="text-center small"><strong>Single occupancy (<?php echo $this->arrHotelInventoryList['SOccupCost']; ?>)</strong></td>
<td class="text-center small"><strong>Extra with bed (<?php echo $this->arrHotelInventoryList['ExtraBedCost']; ?>)</strong></td>
<td class="text-center small"><strong>Extra W/O bed (<?php echo $this->arrHotelInventoryList['ExtraWOBedCost']; ?>)</strong></td>
<td colspan="2"> </td>
</tr>
<tr>
<td>
<?php
reset($arrMarketPlaces);
reset($arrPermissions);
?>
<select id="customized-fixed-percentage-market-place" name="customized-fixed-percentage-market-place" class="demo-default select-country" placeholder="Select" style="width:150px; white-space:nowrap;">
<option value="0">Select</option>
<?php
if(count($arrMarketPlaces) > 0 ) {
foreach($arrMarketPlaces as $place ) { ?>
<option value="<?php echo $place['MPType']; ?>"><?php echo $place['Title']; ?></option>
<?php
}
}
?>
</select>
</td>
<td>
<select id="customized-fixed-percentage-permissions" name="customized-fixed-percentage-permissions" class="demo-default select-country" placeholder="Select" style="width:110px;">
<option value="">Select</option>
<?php while( list($key, $value) = each( $arrPermissions) ) { ?>
<option value="<?php echo $key; ?>" <?php if($key == 0) echo "selected"; ?>><?php echo $value; ?></option>
<?php } ?>
</select>
</td>
<td><input id="customized-fixed-percentage-percentage" name="customized-fixed-percentage-percentage" type="text" class="form-control whbg ratetxtwidth75" onkeyUp="autofillRates(this)" value=""></td>
<td><input id="customized-fixed-percentage-doccupancy" name="customized-fixed-percentage-doccupancy" type="text" class="form-control whbg ratetxtwidth75" readonly="true" value=""></td>
<td><input id="customized-fixed-percentage-soccupancy" name="customized-fixed-percentage-soccupancy" type="text" class="form-control whbg ratetxtwidth75" readonly="true" value=""></td>
<td><input id="customized-fixed-percentage-extra-bed" name="customized-fixed-percentage-extra-bed" type="text" class="form-control whbg ratetxtwidth75" readonly="true" value=""></td>
<td><input id="customized-fixed-percentage-extra-without-bed" name="customized-fixed-percentage-extra-without-bed" type="text" class="form-control whbg ratetxtwidth75" readonly="true" value=""></td>
<td style="position:relative;"><a href="javascript:void(0);" class="edittxt" onclick="viewTermsAndConditions('new','')" >Edit</a>
<div class="editBoxContainer" style="display:none;">
<div class="form-group form-group1">
<textarea name="customized-fixed-percentage-details" id="customized-fixed-percentage-details" cols="45" rows="2" class="form-control whbg"></textarea>
</div>
<div class="col-md-12 no-padding text-right">
<a href="javascript:void(0);" class="btn btn-success btn-round btn-sm submittxt" onclick="saveTermsAndConditions()">Submit</a>
<a href="javascript:void(0);" class="btn btn-default btn-round btn-sm canceltxt" onclick="cancelTermsAndConditions()">Cancel</a>
</div>
</div>
</td>
<td>
<a class="btn btn-success btn-sm" href="javascript:void(0);" onclick="addCustomizedMarkup('<?php echo $this->arrHotelInventoryList['InvnItemSysId']; ?>')"><i class="fa fa-fw fa-arrows"></i></a></td>
</tr>
</thead>
<tbody id="customized-fixedPercentage-markup-grid">
</tbody>
</table>
</div>
</form>
</div>
<div class="col-md-12 no-padding costomizetab-fixed-amount-markup-form" id="fixed-amount-markup-container" style="display:none;">
<form id="fixed-amount-markup-form" name="fixed-amount-markup-form" method="post">
<div class="panel-body table-responsive no-padding no-border">
<table class="table table-bordered no-margin">
<thead>
<tr class="alert alert-success">
<th><strong>Market Place</strong></th>
<th><strong>Permission</strong></th>
<th><strong>Mark up (Fixed Amt)</strong></th>
<th colspan="4" class="text-center"><strong>Offer Price</strong></th>
<th><strong>T & C</strong></th>
<th><strong>Action</strong></th>
</tr>
<tr class="alert alert-info">
<td colspan="2"> </td>
<td class="text-center small"><strong>Double occupancy (<?php echo $this->arrHotelInventoryList['DOccupCost']; ?>)</strong></td>
<td class="text-center small"><strong>Single occupancy (<?php echo $this->arrHotelInventoryList['SOccupCost']; ?>)</strong></td>
<td class="text-center small"><strong>Extra with bed (<?php echo $this->arrHotelInventoryList['ExtraBedCost']; ?>)</strong></td>
<td class="text-center small"><strong>Extra W/O bed (<?php echo $this->arrHotelInventoryList['ExtraWOBedCost']; ?>)</strong></td>
<td colspan="2"> </td>
</tr>
<tr>
<td>
<?php
$arrMarketPlaces = Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getMarketPlaces();
?>
<select id="customized-fixed-amount-market-place" name="customized-fixed-amount-market-place" class="demo-default select-country" placeholder="Select" style="width:150px; white-space:nowrap;">
<option value="0">Select</option>
<?php
if(count($arrMarketPlaces) > 0 ) {
foreach($arrMarketPlaces as $place ) { ?>
<option value="<?php echo $place['MPType']; ?>"><?php echo $place['Title']; ?></option>
<?php
}
}
?>
</select>
</td>
<td>
<?php
$arrPermissions = Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getPermissions();
?>
<select id="customized-fixed-amount-permissions" name="customized-fixed-amount-permissions" class="demo-default select-country" placeholder="Select" style="width:110px;">
<option value="">Select</option>
<?php while( list($key, $value) = each( $arrPermissions) ) { ?>
<option value="<?php echo $key; ?>" <?php if($key == 0) echo "selected"; ?>><?php echo $value; ?></option>
<?php } ?>
</select>
</td>
<td><input id="customized-fixed-amount-markup-amount" name="customized-fixed-amount-markup-amount" type="text" class="form-control whbg ratetxtwidth75" onkeyUp="autofillRates(this)" value=""></td>
<td><input id="customized-fixed-amount-doccupancy" name="customized-fixed-amount-doccupancy" type="text" class="form-control whbg ratetxtwidth75" value=""></td>
<td><input id="customized-fixed-amount-soccupancy" name="customized-fixed-amount-soccupancy" type="text" class="form-control whbg ratetxtwidth75" value=""></td>
<td><input id="customized-fixed-amount-extra-bed" name="customized-fixed-amount-extra-bed" type="text" class="form-control whbg ratetxtwidth75" value=""></td>
<td><input id="customized-fixed-amount-extra-without-bed" name="customized-fixed-amount-extra-without-bed" type="text" class="form-control whbg ratetxtwidth75" value=""></td>
<td style="position:relative;"><a href="javascript:void(0);" class="edittxt">Edit</a>
<div class="editBoxContainer" style="display:none;">
<div class="form-group form-group1">
<textarea name="customized-fixed-amount-details" id="customized-fixed-amount-details" cols="45" rows="2" class="form-control whbg"></textarea>
</div>
<div class="col-md-12 no-padding text-right">
<a href="javascript:void(0);" class="btn btn-success btn-round btn-sm submittxt">Submit</a>
<a href="javascript:void(0);" class="btn btn-default btn-round btn-sm canceltxt">Cancel</a>
</div>
</div>
</td>
<td>
<a class="btn btn-success btn-sm" href="javascript:void(0);" onclick="addCustomizedMarkup('<?php echo $this->arrHotelInventoryList['InvnItemSysId']; ?>')"><i class="fa fa-fw fa-arrows"></i></a></td>
</tr>
</thead>
<tbody id="customized-fixedAmount-markup-grid">
</tbody>
</table>
</div>
</form>
</div>
-->
<div class="clear"></div></div>
<div class="modal-footer">
<button type="button" class="btn btn-warning btn-round" data-dismiss="modal">Submit</button>
<button type="button" class="btn btn-default btn-round" data-dismiss="modal">Cancel</button>
</div>
<input type="hidden" id="hidden_doccupancy" name="hidden_doccupancy" value="<?php echo $this->arrHotelInventoryList['DOccupCost']; ?>">
<input type="hidden" id="hidden_soccupancy" name="hidden_soccupancy" value="<?php echo $this->arrHotelInventoryList['SOccupCost']; ?>">
<input type="hidden" id="hidden_extrabed" name="hidden_extrabed" value="<?php echo $this->arrHotelInventoryList['ExtraBedCost']; ?>">
<input type="hidden" id="hidden_extra_withoutbed" name="hidden_extra_withoutbed" value="<?php echo $this->arrHotelInventoryList['ExtraWOBedCost']; ?>">
<script type="text/javascript">
$().ready(function() {
viewMarkupSettingGrid('<?php echo $this->arrHotelInventoryList['InvnItemSysId']; ?>','STANDARD', 2);
});
function autofillRates(obj) {
var markUpPercentage = $(obj).val();
var doccupancy = $("#hidden_doccupancy").val();
var soccupancy = $("#hidden_soccupancy").val();
var extrabed = $("#hidden_extrabed").val();
var extra_withoutbed = $("#hidden_extra_withoutbed").val();
doccupancy = getPercentage(markUpPercentage, doccupancy);
soccupancy = getPercentage(markUpPercentage, soccupancy);
extrabed = getPercentage(markUpPercentage, extrabed);
extra_withoutbed = getPercentage(markUpPercentage, extra_withoutbed);
$("#customized-fixed-percentage-doccupancy").val(doccupancy);
$("#customized-fixed-percentage-soccupancy").val(soccupancy);
$("#customized-fixed-percentage-extra-bed").val(extrabed);
$("#customized-fixed-percentage-extra-without-bed").val(extra_withoutbed);
}
</script>
<!--Layout Script start -->
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/lib/jquery-1.11.min.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/assets/js/lib/jqueryui.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/bootstrap.min.js'); ?>"></script>
<!--switchery Script Start -->
<script src="<?php echo $this->baseUrl('public/assets/js/switchery.min.js'); ?>"></script>
<!--switchery Script End -->
<!--bootstrap switch Button Script Start-->
<script src="<?php echo $this->baseUrl('public/assets/js/bootstrap-switch.js'); ?>"></script>
<!--bootstrap switch Button Script End-->
<!--selectize Library start-->
<script src="<?php echo $this->baseUrl('public/assets/js/selectize.min.js'); ?>"></script>
<!--selectize Library End-->
<!--Select & Tag demo start-->
<script src="<?php echo $this->baseUrl('public/assets/js/pages/selectTag.js'); ?>"></script>
<!--Select & Tag demo end-->
<!-- Script For Icheck -->
<script src="<?php echo $this->baseUrl('public/assets/js/icheck.min.js'); ?>"></script>
<!-- Script For Icheck -->
<!--Advance Radio and checkbox demo start-->
<script src="<?php echo $this->baseUrl('public/assets/js/pages/checkboxRadio.js'); ?>"></script>
<!--Advance Radio and checkbox demo start-->