| 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/accommodation/ |
Upload File : |
<?php
$arrMealType = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getMealType();
$arrWeekend = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getWeekend();
$hotelDetails = $this->hotelDetails;
//echo "<pre>";print_r();die;
$HotelRateType = (int)$hotelDetails['HotelRateType'];
$ChildAge = (int)$hotelDetails['ChildAge'];
$MaxToDate = $this->MaxToDate;
$RateDeBySessionKey = $RDBS = $this->RateDeBySessionKey;
$results = $this->results;
if (empty($MaxToDate)) {
$MaxToDate = date('Y-m-d 00:00:00');
$MaxToDateNext = date("d/m/Y", strtotime("+0 day", strtotime($MaxToDate)));
$MaxToDateNext2 = date("d/m/Y", strtotime("+0 day", strtotime($MaxToDate)));
} else {
$MaxToDate = date('Y/m/d');
$MaxToDateNext = date('Y/m/d'); //date("d/m/Y", strtotime("+1 day", strtotime($MaxToDate)));
$MaxToDateNext2 = date('Y/m/d'); //date("d/m/Y", strtotime("+0 day", strtotime($MaxToDate)));
}
$RateType = !empty($RateDeBySessionKey[0]['RateType']) ? trim($RateDeBySessionKey[0]['RateType']) : '';
$rr_type = !empty($RateDeBySessionKey[0]['RackCommissionType']) ? ($RateDeBySessionKey[0]['RackCommissionType']) : '';
$RackCommission = !empty($RateDeBySessionKey[0]['RackCommission']) ? (int) ($RateDeBySessionKey[0]['RackCommission']) : '';
$B2CMarkup = $B2BMarkup = 0;
if (isset($this->HotelrateCardListLastDate) && !empty($this->HotelrateCardListLastDate)) {
$fromDate = isset($this->HotelrateCardListLastDate['FromDate']) ? $this->HotelrateCardListLastDate['FromDate']->format('d/m/Y') : date('d/m/Y');
$toDate = isset($this->HotelrateCardListLastDate['Todate']) ? $this->HotelrateCardListLastDate['Todate']->format('d/m/Y') : date('d/m/Y');
$RateDeBySessionKey[0]['FromDate'] = $this->MinFromDate;
$RateDeBySessionKey[0]['ToDate'] = $toDate;
$RateDeBySessionKey[0]['CostCurrency'] = $this->HotelrateCardListLastDate['TrxCurrency'];
$RateType = $this->HotelrateCardListLastDate['RateType'];
$HotelRateType = $this->HotelrateCardListLastDate['HotelRateType'];
$RackCommission = (int) $this->HotelrateCardListLastDate['RackCommission'];
$B2CMarkup = (float) $this->HotelrateCardListLastDate['B2CMarkup'];
$B2BMarkup = (float) $this->HotelrateCardListLastDate['B2BMarkup'];
$RateDeBySessionKey[0]['SupplierName'] = $this->HotelrateCardListLastDate['SupplierName'];
$RateDeBySessionKey[0]['SupplierSysId'] = $this->HotelrateCardListLastDate['SupplierSysId'];
}
if ($this->mode == 'addmore') {
$RateDeBySessionKey = array();
$RDBS = array();
}
//echo "<pre>";print_r($this->HotelrateCardByAgListByHotel);exit;
if ($RateType == 1) {
?>
<style>
.display-none-class{
display:none;
}
</style>
<?php } ?>
<!--Page main section start-->
<style>
p {
margin: 5px 0 5px !important;
}
.create_table {
overflow: hidden;
width: 100%;
}
.create_table table {
border-top: solid 1px #CCC;
border-left: solid 1px #CCC;
}
.create_table table td {
padding: 2px 2px;
vertical-align: middle;
border-bottom: solid 1px #CCC;
border-right: solid 1px #CCC;
font-size: 12px;
}
.font10 {
font-size: 10px !important;
}
.input80 {
width: 70px !important;
height: 28px !important;
text-align: right;
padding: 6px;
}
.input280 {
width: 60px !important;
height: 24px !important;
text-align: right;
}
.input50 {
width: 60px !important;
text-align: right;
}
input:focus {
border: solid 1px;
border-color: #FF8A8A !important;
}
</style>
<style>
.panel-heading .accordion-toggle:after {
/* symbol for "opening" panels */
font-family: 'Glyphicons Halflings';
/* essential for enabling glyphicon */
content: "\e114";
/* adjust as needed, taken from bootstrap.css */
float: right;
/* adjust as needed */
color: grey;
/* adjust as needed */
}
.panel-heading .accordion-toggle.collapsed:after {
/* symbol for "collapsed" panels */
content: "\e080";
/* adjust as needed, taken from bootstrap.css */
}
.accommodation-table th {
font-size: 12px;
line-height: 19px;
}
.accommodation-table-row:nth-child(odd) {
background-color: #f9f9f9;
}
.accommodation-table td {
font-size: 12px;
}
.header-room-meal-booking-table {
}
.header-room-meal-booking-table tr:first-child td {
width: 105px;
border-left: none !important;
}
.header-room-meal-booking-table tr:first-child td:nth-child(2) {
width: 115px;
word-wrap: break-word;
overflow: hidden;
white-space: normal;
}
.header-room-meal-booking-table td {
padding: 6px 8px;
}
.header-room-meal-booking-table td table tr:last-child {
border-bottom:none;
}
.header-room-meal-booking-table td table tr td {
border-left: 1px solid transparent !important;
}
.tablestyle tr {
border-bottom: 1px solid #cccccf;
}
.header-room-meal-booking-table td table tr td:last-child {
border-right: 1px solid transparent !important;
}
.header-room-meal-booking-table .tablestyle tr td {
border-right: 1px solid #cac9c9 !important;
}
.header-room-meal-booking-table tr:first-child td table {
table-layout: fixed;
width: 100%;
}
.room-meal-booking-table tr:first-child td {
width: 105px;
}
.room-meal-booking-table tr:first-child td:nth-child(2) {
width: 115px;
}
.room-meal-booking-table tr:last-child {
border-bottom:none;
}
.room-meal-booking-table tr td {
padding: 6px 0px;
}
.tablestyle tr td {
border-right: 1px solid #c2bebe !important;
}
.header-room-meal-booking-table {
table-layout: fixed;
width: 100%;
}
table.room-meal-booking-table {
table-layout: fixed;
width: 100%;
}
</style>
<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/lightGallery.css'); ?>">
<link href="<?php echo $this->baseUrl('public/assets/css/plugins/shuffle.css'); ?>" rel="stylesheet">
<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-->
<!--Top breadcrumb start -->
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a></li>
<li class="">Accommodation</li>
<li class="active"><?= !empty($this->hotel_id) ? 'Update Rate Card' : 'add'; ?> </li>
<li class="active"><strong><?= !empty($this->hotel_id) ? $hotelDetails['Title'] . '' : ''; ?></strong> </li>
</ol>
<!--Top breadcrumb start -->
</div>
<!--for display message div-->
<?php if (is_array($this->messages) && count($this->messages)) { ?>
<div class="col-md-12" id="message_hotel_div">
<div class="alert alert-success">
<button aria-hidden="true" id="hideHotelMessage" class="close" type="button">×</button>
<?php foreach ($this->messages as $message) { ?>
<span id="success-message-box"><?php echo $this->escape($message); ?></span>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
<script type="text/javascript">
$("#hideHotelMessage").click(function () {
$("#message_hotel_div").hide();
});
</script>
<!-- Main Content Element Start-->
<div class="row">
<div class="col-md-12">
<div class="leadeBorder2">
<div class="panel-body ">
<div class="form-group form-group1 text-right query_listing_bg_margin_bottom_15">
<span style="float:left; margin-left:5px; text-decoration: none; font-weight: bold;font-size: 16px;"><?= !empty($this->hotel_id) ? $hotelDetails['Title'] . ' (' . $this->hotel_id . ')' . '' : ''; ?></span>
<!--<a href="<?php echo $this->baseUrl('hotel/manage'); ?>" style="float:left;" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> Rate Expired (10)</a>
<a href="<?php echo $this->baseUrl('hotel/manage'); ?>" style="float:left; margin-left:5px;" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> Promotion (20)</a>-->
<?php if ($hotelDetails['PropertyType'] == 12) { ?>
<a href="<?php echo $this->baseUrl('accommodation/manage'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-eye"></i> My Villas</a>
<a href="<?php echo $this->baseUrl('accommodation/add-villas'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-plus"></i> Add villas</a>
<a href="<?php echo $this->baseUrl('accommodation/inventory'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-eye"></i> Villas Rates List</a>
<?php } else { ?>
<a href="<?php echo $this->baseUrl('accommodation/manage'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-eye"></i> My Hotels</a>
<a href="<?php echo $this->baseUrl('accommodation/add-hotels'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-plus"></i> Add Hotel</a>
<a href="<?php echo $this->baseUrl('accommodation/inventory'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-eye"></i> Hotel Rates List</a>
<?php }
?>
<!--<a href="<?php //echo $this->baseUrl('accommodation/rate-card'); ?>" class="btn btn-warning btn-sm"><i class="fa fa-fw fa-arrows"></i> Add Hotel Rates</a>-->
</div>
<div class="panel with-nav-tabs panel-default itenary_top" >
<div class="col-md-12">
<div class="mobile_scrolling">
<?php
if (isset($this->hotel_id) && !empty($this->hotel_id)) {
if ($hotelDetails['PropertyType'] == 12) {
?>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!/" pages="addhotel" class="btn btn-danger btn-sm btnpadding">Add Villa</a>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!villacontact" pages="villacontact" class="btn btn-danger btn-sm btnpadding">Villa Contact</a>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!villafacility" pages="villafacility" class="btn btn-danger btn-sm btnpadding">Villa Facility</a>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!villaaroundproperty" pages="villaaroundproperty" class="btn btn-danger btn-sm btnpadding">Around Property</a>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!villaroomdetails" pages="villaroomdetails" page="villaroomdetails" class="btn btn-danger btn-sm btnpadding">Room Details</a>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!villatnc" pages="villatnc" page="villatnc" class="btn btn-danger btn-sm btnpadding">Booking T&C</a>
<a href="/accommodation/add-villas/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!villa-mealplanrates" pages="villa-mealplanrates" page="villa-mealplanrates" class="btn btn-danger btn-sm btnpadding">Meal Plan Rates</a>
<a data-toggle="tab" href="javascript:void(0)" arpId="" roomId="" data="<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" class="btn btn-warning btn-sm btnpadding">Rate Card </a>
<?php } else { ?>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!/" pages="addhotel" class="btn btn-danger btn-sm btnpadding">Add Hotel</a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!hotelcontact" pages="hotelcontact" class="btn btn-danger btn-sm btnpadding">Hotel Contact</a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!hotelfacility" pages="hotelfacility" class="btn btn-danger btn-sm btnpadding">Hotel Facility</a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!aroundproperty" pages="aroundproperty" class="btn btn-danger btn-sm btnpadding">Around Property</a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!roomdetails" pages="roomdetails" page="roomdetails" class="btn btn-danger btn-sm btnpadding">Room Details</a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!tnc" pages="tnc" page="tnc" class="btn btn-danger btn-sm btnpadding">Booking T&C</a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!mealplanrates" pages="mealplanrates" page="mealplanrates" class="btn btn-danger btn-sm btnpadding">Meal Plan Rates</a>
<a data-toggle="tab" href="javascript:void(0)" arpId="" roomId="" data="<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" class="btn btn-warning btn-sm btnpadding">Rate Card </a>
<a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!promotion" pages="promotion" page="promotion" class="btn btn-danger btn-sm btnpadding">Promotion</a>
<a href="<?php echo $this->baseUrl('/accommodation/transport-rate-card/id/'.$this->hotel_id); ?>" pages="promotion" page="promotion" class="btn btn-danger btn-sm btnpadding">Transfer & Taxes</a>
<a href="<?php echo $this->baseUrl('accommodation/cancellation/id'); ?>/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" class="btn btn-danger btn-sm btnpadding" arpId="" roomId="" data="<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" pages="hotelcontact">Cancellation Policy</a>
<?php }
?>
<?php } else { ?>
<div class="">
<h3 class="panel-title">Add Hotel</h3>
</div>
<?php } ?>
</div>
</div>
<div class="clear"></div>
<?php if (!empty($this->HotelrateCardByAgListByHotel)) { ?>
<div class="row">
<!-- <div class="col-md-12" style="display:<?php echo!empty($this->SessionKey) ? 'none' : 'block'; ?>"> -->
<div class="col-md-12">
<div class="leadeBorder2">
<div class="panel-body ">
<div class="col-md-12 mb-5 text-right">
<div class="row">
<a class="btn btn-warning btn-sm" href="<?php echo $this->baseUrl('accommodation/rate-card/id'); ?>/<?php echo!empty($this->hotel_id) ? $this->hotel_id : ''; ?>/mode/addmore#preview_pre" title="add rate"><i class="fa fa-pencil-square-o"></i>Add Rate</a>
</div>
</div>
<table class="table tablestyle no-margin accommodation-table">
<tr class="alert alert-graylight">
<th class="text-center smallbold" nowrap=""><span class="center-block">From Date - To Date</span></th>
<th class="text-center smallbold" style="padding:0;">
<table style="width:100%" class="header-room-meal-booking-table">
<tr>
<td style="width:10%;">Room</td>
<td style="width:10%;">Meal Type/<br/>Booking Type</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td colspan="2" style="padding-bottom:25px">Single</td>
</tr>
<tr>
<td>Week Days</td>
<td>Weekend</td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td colspan="2" style="padding-bottom:25px">Double</td>
</tr>
<tr>
<td>Week Days</td>
<td>Weekend</td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td colspan="2">Extra With Bed(Adult)</td>
</tr>
<tr>
<td>Week Days</td>
<td>Weekend</td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td colspan="2">Extra With Bed(Child)</td>
</tr>
<tr>
<td>Week Days</td>
<td>Weekend</td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td colspan="2" style="padding-bottom:25px">Extra W/O Bed</td>
</tr>
<tr>
<td>Week Days</td>
<td>Weekend</td>
</tr>
</table>
</td>
</tr>
</table>
</th>
<th class="text-center smallbold" nowrap=""><span class="center-block">Last Updated</span></th>
<th class="text-center smallbold" nowrap=""><span class="center-block">Action</span></th>
</tr>
<?php
foreach ($this->HotelrateCardByAgListByHotel as $ky1 => $vK1) {
foreach ($vK1 as $ky => $vK) {
$val = $vK['hotel'];
$FromDate = date("d-M-y", strtotime($val['FromDate']));
$ToDate = date("d-M-y", strtotime($val['ToDate']));
?>
<tr class="85351_17-10-2024_31-10-2024_1_1 accommodation-table-row">
<td class="text-center"><?= $FromDate . ' - ' . $ToDate ?> </td>
<td class="text-center" style="padding:0">
<table style="width: 100%;" class="room-meal-booking-table">
<?php
$EconomyType = array();
$econoMealT = array();
ksort($vK['RoomArray']);
foreach ($vK['RoomArray'] as $key => $value) {
$EconomyType[] = $key;
$roomtype = $value['EconomyType'];
$MealPlanType = array();
foreach ($value['RoomType'] as $roomVal) {
$MealPlanType[] = $roomVal;
if ($roomVal == 'EP') {
$mealplan = 9;
} else if ($roomVal == 'AP') {
$mealplan = 8;
} else if ($roomVal == 'MAP') {
$mealplan = 7;
} else if ($roomVal == 'CP') {
$mealplan = 6;
} else if ($roomVal == 'AI') {
$mealplan = 3;
}
$MealPlanTypeId = array();
$econoMealT[] = implode(',', $MealPlanTypeId);
$BookingType = ($value['BookingType'] == 1) ? 'Instant' : 'On Request';
$objAccoModel = new Travel_Model_AccommodationModel();
$NewFinArrr = [];
$RByRIdddd = $objAccoModel->HotelRateListByRoomId($val['hotelId'], $this->intLoggedinUserAgencySysId, $value['XRefItemSysId'][0], $val['XRateSessionKey'],0);
//echo "<pre>";print_r($RByRIdddd);die;
$weekends = explode(',', $this->HotelrateCardListLastDate['WeekendDefine']);
if ($val['HotelRateType'] == 2) {
foreach ($RByRIdddd as $ke => $vall) {
$nKey = $vall['MealPlanType'];
$NewArr[$nKey]['SOWeekendCost'] = ($vall['NetSOccupCost']) ? $vall['NetSOccupCost'] : '';
$NewArr[$nKey]['NetSOWeekendCost'] = ($vall['WkNetSOccupCost']) ? $vall['WkNetSOccupCost'] : '';
$NewArr[$nKey]['DOWeekendCost'] = ($vall['NetDOccupCost']) ? $vall['NetDOccupCost'] : '';
$NewArr[$nKey]['NetDOWeekendCost'] = ($vall['WkNetDOccupCost']) ? $vall['WkNetDOccupCost'] : '';
$NewArr[$nKey]['ExtraBedWeekendCost'] = ($vall['NetExtraBedCost']) ? $vall['NetExtraBedCost'] : '';
$NewArr[$nKey]['NetExtraBedWeekendCost'] = ($vall['WkNetExtraBedCost']) ? $vall['WkNetExtraBedCost'] : '';
$NewArr[$nKey]['TriWeekendCost'] = ($vall['NetTriOccupCost']) ? $vall['NetTriOccupCost'] : '';
$NewArr[$nKey]['NetTriWeekendCost'] = ($vall['WkNetTriOccupCost']) ? $vall['WkNetTriOccupCost'] : '';
$NewArr[$nKey]['ExtraWOBedWeekendCost'] = ($vall['NetExtraWOBedCost']) ? $vall['NetExtraWOBedCost'] : '';
$NewArr[$nKey]['NetExtraWOBedWeekendCost'] = ($vall['WkNetExtraWOBedCost']) ? $vall['WkNetExtraWOBedCost'] : '';
}
} else {
foreach ($RByRIdddd as $ke => $vall) {
if (in_array($vall['FromDate']->format("D"), $weekends)) {
$NewFinArrr[$vall['MealPlanType']]['wk'] = $vall;
} else {
$NewFinArrr[$vall['MealPlanType']]['wd'] = $vall;
}
}
$NewArr = array();
foreach ($NewFinArrr as $nKey => $nVal) {
$NewArr[$nKey]['SOWeekendCost'] = ($nVal['wd']['SOccupCost']) ? $nVal['wd']['SOccupCost'] : '';
$NewArr[$nKey]['NetSOWeekendCost'] = ($nVal['wk']['NetSOccupCost']) ? $nVal['wk']['NetSOccupCost'] : '';
$NewArr[$nKey]['DOWeekendCost'] = ($nVal['wd']['DOccupCost']) ? $nVal['wd']['DOccupCost'] : '';
$NewArr[$nKey]['NetDOWeekendCost'] = ($nVal['wk']['NetDOccupCost']) ? $nVal['wk']['NetDOccupCost'] : '';
$NewArr[$nKey]['ExtraBedWeekendCost'] = ($nVal['wd']['ExtraBedCost']) ? $nVal['wd']['ExtraBedCost'] : '';
$NewArr[$nKey]['NetExtraBedWeekendCost'] = ($nVal['wk']['NetExtraBedCost']) ? $nVal['wk']['NetExtraBedCost'] : '';
$NewArr[$nKey]['TriWeekendCost'] = ($nVal['wd']['TriOccupCost']) ? $nVal['wd']['TriOccupCost'] : '';
$NewArr[$nKey]['NetTriWeekendCost'] = ($nVal['wk']['NetTriOccupCost']) ? $nVal['wk']['NetTriOccupCost'] : '';
$NewArr[$nKey]['ExtraWOBedWeekendCost'] = ($nVal['wd']['ExtraWOBedCost']) ? $nVal['wd']['ExtraWOBedCost'] : '';
$NewArr[$nKey]['NetExtraWOBedWeekendCost'] = ($nVal['wk']['NetExtraWOBedCost']) ? $nVal['wk']['NetExtraWOBedCost'] : '';
}
}
?>
<tr>
<td style="padding:0;width:10%;"><?php echo $roomtype; ?></td>
<td style="padding:0;width:10%;"><?php echo $roomVal . ' (' . $BookingType . ')'; ?></td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td><?php echo ($NewArr[$mealplan]['SOWeekendCost']) ? $NewArr[$mealplan]['SOWeekendCost'] : ' '; ?></td>
<td><?php echo ($NewArr[$mealplan]['NetSOWeekendCost']) ? $NewArr[$mealplan]['NetSOWeekendCost'] : ' '; ?></td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td><?php echo $NewArr[$mealplan]['DOWeekendCost']; ?></td>
<td><?php echo $NewArr[$mealplan]['NetDOWeekendCost']; ?></td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td><?php echo $NewArr[$mealplan]['ExtraBedWeekendCost']; ?></td>
<td><?php echo $NewArr[$mealplan]['NetExtraBedWeekendCost']; ?></td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td><?php echo $NewArr[$mealplan]['TriWeekendCost']; ?></td>
<td><?php echo $NewArr[$mealplan]['NetTriWeekendCost']; ?></td>
</tr>
</table>
</td>
<td style="padding:0;width:10%;">
<table>
<tr>
<td><?php echo $NewArr[$mealplan]['ExtraWOBedWeekendCost']; ?></td>
<td><?php echo $NewArr[$mealplan]['NetExtraWOBedWeekendCost']; ?></td>
</tr>
</table>
</td>
</tr>
<?php
}
}
?>
</table>
<?php
$finalMealPlanim = implode(',', $econoMealT);
$finalMealPlan = implode(',', array_unique(explode(',', $finalMealPlanim)));
$finalEconoType = implode(',', $EconomyType);
//echo $val['XRefItemSysId'];
?>
</td>
<td class="text-center"><?= $val['CreatedDate']->format('d-M-y h:i:s') ?> </td>
<td class="text-center" style="white-space: nowrap;">
<a href="<?php echo $this->baseUrl('accommodation/rate-card/id'); ?>/<?php echo!empty($val['hotelId']) ? $val['hotelId'] : ''; ?>/SessionKey/<?php echo!empty($val['XRateSessionKey']) ? trim($val['XRateSessionKey']) : ''; ?>#preview_pre" title="" class="view_text1 tooltipLink" data-toggle="tooltip modal" data-placement="top" data-original-title="Edit"><i class="fa fa-pencil-square-o"></i></a>
</td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="" id="preview_pre" style="min-height:300px; ">
<div class="tab-content" id="preview">
<?php if (empty($this->hotel_id)) { ?>
<form name="" id="search_hotel" action="<?php echo $this->baseUrl('accommodation/search-hotels'); ?>" method="post" enctype="multipart/form-data">
<div class="table-responsivenew">
<table class="table table-bordered">
<tr>
<td><div class="mb_tdwidth_80px">Country <span class="red">*</span></div></td>
<td><div class="mb_tdwidth_150px"><input type="text" class="form-control whbg" value="<?= $results['Count_title'] ?>" name="ContName" id="CountryName" placeholder="Select Country">
<input type="hidden" class="form-control whbg" value="<?= $results['ContId'] ?>" name="ContId" id="ContId">
</div>
</td>
<td><div class="mb_tdwidth_80px">City <span class="red">*</span></div></td>
<td>
<div class="mb_tdwidth_150px">
<a href="javascript:void(0);" id="change-city" onclick="changeCity();" style="display:none">Change City</a>
<input type="text" name="city_name" id="city_name" placeholder="City Name" value="<?= $results['City_title'] ?>" class="form-control whbg">
<input type="hidden" name="selected_city_id" id="selected_city_id" value="<?= $results['CityId'] ?>">
</div>
</td>
<td><div class="mb_tdwidth_80px">Hotel <span class="red">*</span></div></td>
<td>
<div class="mb_tdwidth_150px">
<a href="javascript:void(0);" id="change-hotel" onclick="changeHotel();" style="display:none">Change Hotel</a>
<a href="javascript:void(0);" id="gethoteldetails" data-toggle="modal" data-target="#myModalhotelView" style="display:none" onclick="gethoteldetails();">Hotel Details</a>
<input type="text" name="hotel_name" id="hotel_name" placeholder="Hotel Name" value="<?= $results['Title'] ?>" class="form-control whbg">
<input type="hidden" name="hidden_selected_hotel_id" id="hidden_selected_hotel_id" value="<?= $results['AccomSysId'] ?>">
</div>
</td>
<td><div class="mb_tdwidth_80px">Room Type <span class="red">*</span></div></td>
<td id="roomTypeData">
<select id="room_type" name="room_type[]" multiple class="demo-default select-state" placeholder="Select room types" style="width:220px;">
</select>
</td>
<td><button type="submit" class="btn btn-warning saveaction">Submit</button></td>
</tr>
</table>
</div>
</form>
<?php } else { ?>
<form name="" id="rate_card" action="<?php echo $this->baseUrl('accommodation/addupdateratecard'); ?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="update_hotel_id" id="update_hotel_id" value="<?= $this->hotel_id ?>">
<input type="hidden" name="hotel_id" id="hotel_id" value="<?= $this->hotel_id ?>">
<input type="hidden" name="SuppliertService" value="Hotel">
<?php if ($hotelDetails['PropertyType'] != 12) { ?>
<input type="hidden" id="hotelRateMode" value="<?php echo!empty($this->mode) ? 'add' : ''; ?>">
<?php } ?>
<?php
if (!empty($this->SessionKey)) {
$from_dt = '';
$to_dt = '';
$readonly = 'readonly="readonly"';
?>
<input type="hidden" name="SessionKey" id="SessionKey" value="<?= $this->SessionKey ?>">
<?php
} else {
$from_dt = 'from_dt';
$to_dt = 'to_dt';
$readonly = '';
}
?>
<?php
if ($RDBS) {
foreach ($RDBS as $k => $value) {
?>
<input type="hidden" name="update_InvnItemSysId[]" id="update_InvnItemSysId" value="<?= $value['InvnItemSysId'] ?>">
<?php
}
}
?>
<?php if (!empty($this->SessionKey || empty($RateDeBySessionKey))) { ?>
<div class="tab-pane fade active in" id="tab1default">
<div class="ls-editable-table table-responsive ls-table">
<input type="hidden" name="from_dt_check" id="from_dt_check" value="<?php echo!empty($RateDeBySessionKey[0]['FromDate']) ? trim($RateDeBySessionKey[0]['FromDate']) : ''; ?>">
<input type="hidden" name="to_dt_check" id="to_dt_check" value="<?php echo!empty($RateDeBySessionKey[0]['ToDate']) ? trim($RateDeBySessionKey[0]['ToDate']) : ''; ?>">
<table class="table table-bordered">
<tr>
<td>From Date <span class="red">*</span></td>
<td><input type="text" name="from_dt" id="from_dt" placeholder="dd/mm/yyyy" value="<?php echo!empty($RateDeBySessionKey[0]['FromDate']) ? trim($RateDeBySessionKey[0]['FromDate']) : ''; ?>" size="10" class="form-control datePickerOnly from_dt" autocomplete="off"> </td>
<td align="right">To Date <span class="red">*</span></td>
<td><input type="text" name="to_dt" id="to_dt" placeholder="dd/mm/yyyy" value="<?php echo!empty($RateDeBySessionKey[0]['ToDate']) ? trim($RateDeBySessionKey[0]['ToDate']) : ''; ?>" size="10" class="form-control datePickerOnly to_dt" autocomplete="off"></td>
<td>Currency <span class="red">*</span></td>
<td><select id="currency_type" name="currency_type" class="form-control" style="display:none;">
<option value="">Select</option>
<!--<option value="1" selected>INR</option>-->
<?php
if (!empty($this->arrCurrencyTypes)) {
foreach ($this->arrCurrencyTypes as $currency) {
?>
<option value="<?php echo $currency['CurrencyType']; ?>" <?php
if (trim($RateDeBySessionKey[0]['CostCurrency']) == $currency['CurrencyType']) {
echo "selected";
} else {
echo ($currency['CurrencyType'] == $hotelDetails['CurrencyType']) ? 'selected' : '';
}
?>><?php echo trim($currency['Symbol']); ?></option>
<?php
}
}
?>
</select>
<span><?php echo $hotelDetails['Symbol']; ?></span>
</td>
</tr>
<input type="hidden" id="WeekendDefineAllVal" value="<?php echo (trim($hotelDetails['WeekendDefine']) == 'Mon,Tue,Wed,Thu,Fri,Sat,Sun') ? 1 : 0; ?>">
<tr>
<td>Weekend</td>
<td colspan="3">
<table width="95%">
<tr>
<?php
if ($arrWeekend) {
foreach ($arrWeekend as $key => $week) {
$checked = '';
if (isset($hotelDetails['WeekendDefine'])) {
if (in_array($key, explode(',', $hotelDetails['WeekendDefine']))) {
$checked = 'checked';
}
} else {
if (in_array($key, array('Sat', 'Sun'))) {
$checked = 'checked';
}
}
?>
<td>
<label class="checkbox_popup">
<input type="checkbox" class="weekend" value="<?= $key ?>" <?= $checked ?> name="weekend[]" id="weekend">
<?= $week ?>
<span class="checkmark"></span>
</label>
</td>
<?php
}
}
?>
</tr>
</table>
</td>
<td>Supplier <span class="red">*</span></td>
<td><input disabled="" type="text" name="supplier_name" id="supplier_name" value="<?php echo $hotelDetails['SupplierName']; ?>" class="form-control whbg">
<input type="hidden" name="hidden_selected_supplier_sys_id" id="hidden_selected_supplier_sys_id" value="<?php echo $hotelDetails['SupplierSysId']; ?>">
</td>
</tr>
<tr>
<td colspan="6">
<table width="100%" border="0" class="">
<tr>
<td>
<input type="radio" class="checkrate_type NR" id="checkrate_typeNR" name="ratetype" value="NR" <?= ('1' == $RateType) ? 'checked="checked"' : ''; ?>>
<label for="checkrate_typeNR" class="hide-btn-pub">Net rate <?= $rr_type ?></label>
</td>
<td>
<input type="radio" class="checkrate_type RR" id="checkrate_typeRR" name="ratetype" value="RR" <?= ('0' == $RateType) ? 'checked="checked"' : ''; ?>>
<label for="checkrate_typeRR" class="show-btn-pub">Commissionable Rate</label>
</td>
<td>
<div class="CommissionableRateInPercentage" style="<?= (0 == $RateType) ? '' : 'display:none;'; ?>">
<span style="display:none;"><input type="radio" class="rr_type" name="rr_type" id="rr_typeId" value="0" disabled="disabled" checked="checked"> </span>
<label for="rr_typeId" style="margin-bottom: 0px;">In Percentage</label>
<input type="text" class="rr_value CalNR form-control" style="width: 50%;display: initial;" name="rr_value" id="" disabled="disabled" placeholder="Enter Value" value="<?php echo!empty($RackCommission) ? trim($RackCommission) : ''; ?>" size="10" data="">
</div>
</td>
<td>
<select name="age_free" style="display:none;">
<!--<option value="">Child Free Age</option>-->
<?php for ($i = 1; $i <= 12; $i++) { ?>
<option value="<?php echo $i; ?>" <?php
if (trim($RateDeBySessionKey[0]['InfantAgeLimit']) == $i) {
echo "selected";
}
?>>Upto <?php echo $i; ?> year</option>
<?php } ?>
</select>
</td>
<td><strong class="bold">Mark Up%:</strong></td>
<td>
B2B:<input type="text" class="form-control" style="width: 25%;display: initial;" name="B2BMarkup" id="" placeholder="Enter Markup" value="<?php echo $B2BMarkup; ?>">
B2C:<input type="text" class="form-control" style="width: 25%;display: initial;" name="B2CMarkup" id="" placeholder="Enter Markup" value="<?php echo $B2CMarkup; ?>">
</td>
</tr>
</table>
</td>
</tr>
<tr style="display:none;">
<td >
<label class="checkbox_popup">
<input type="checkbox" class="promotional_rate" value="1" name="promotional_rate" id="promotional_rate">
Promotional Rate
<span class="checkmark"></span>
</label>
</td>
<td colspan="5">
<table class="promotional_rate_dates" style="display:none;">
<tr>
<td>
Booking From <span class="red">*</span>
</td>
<td>
<input type="text" name="booking_from_dt" id="booking_from_dt" placeholder="dd/mm/yyyy" value="<?php echo!empty($RateDeBySessionKey[0]['BookingFromDate']) ? trim($RateDeBySessionKey[0]['BookingFromDate']) : ''; ?>" size="10" class="form-control datePickerOnly booking_from_dt" autocomplete="off">
</td>
<td>
Booking To <span class="red">*</span>
</td>
<td>
<input type="text" name="booking_to_dt" id="booking_to_dt" placeholder="dd/mm/yyyy" value="<?php echo!empty($RateDeBySessionKey[0]['BookingToDate']) ? trim($RateDeBySessionKey[0]['BookingToDate']) : ''; ?>" size="10" class="form-control datePickerOnly booking_to_dt" autocomplete="off">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6">
<div class="create_table" id="create_table">
<div class="panel-group" id="accordion">
<?php
//print_r($new_key);
if ($this->roomDetailsList) {
foreach ($this->roomDetailsList as $key => $rooms) {
$objAccoModel = new Travel_Model_AccommodationModel();
$NewFinArr = [];
$RByRId = $objAccoModel->HotelRateListByRoomId($this->hotel_id, $this->intLoggedinUserAgencySysId, $rooms['room']['ItemSysId'], $this->SessionKey,0);
// echo "<pre>";print_r($RByRId);die;
if ($this->mode == 'addmore') {
$RByRId = array();
}
$weekends = explode(',', $this->HotelrateCardListLastDate['WeekendDefine']);
foreach ($RByRId as $ke => $val) {
if (in_array($val['FromDate']->format("D"), $weekends)) {
$NewFinArr[$val['MealPlanType']]['wk'] = $val;
} else {
$NewFinArr[$val['MealPlanType']]['wd'] = $val;
}
}
//echo "<pre>";print_r($NewFinArr);die;
$NewArr = array();
if (isset($this->HotelrateCardListLastDate['WeekendDefine']) && $this->HotelrateCardListLastDate['WeekendDefine'] != '') {
foreach ($NewFinArr as $nKey => $nVal) {
// echo "<pre>";
// print_r($nVal);
if($hotelDetails['HotelRateType']==2){
// $NewArr[$nKey] = (isset($nVal['wd'])) ? $nVal['wd'] : $nVal['wk'];
// $disableboxwd = '';
// $disableboxwk = 'disabled="disabled"';
// $days = 'wk';
// $NewArr[$nKey]['SOWeekendCost'] = ($nVal['wk']['SOccupCost']) ? $nVal['wk']['SOccupCost'] : $NewArr[$nKey]['SOccupCost'];
// $NewArr[$nKey]['NetSOWeekendCost'] = ($nVal['wk']['NetSOccupCost']) ? $nVal['wk']['NetSOccupCost'] : $NewArr[$nKey]['NetSOccupCost'];
// $NewArr[$nKey]['DOWeekendCost'] = ($nVal['wk']['DOccupCost']) ? $nVal['wk']['DOccupCost'] : $NewArr[$nKey]['DOccupCost'];
// $NewArr[$nKey]['NetDOWeekendCost'] = ($nVal['wk']['NetDOccupCost']) ? $nVal['wk']['NetDOccupCost'] : $NewArr[$nKey]['NetDOccupCost'];
// $NewArr[$nKey]['TriWeekendCost'] = ($nVal['wk']['TriOccupCost']) ? $nVal['wk']['TriOccupCost'] : $NewArr[$nKey]['TriOccupCost'];
// $NewArr[$nKey]['NetTriWeekendCost'] = ($nVal['wk']['TriOccupCost']) ? $nVal['wk']['TriOccupCost'] : $NewArr[$nKey]['NetTriOccupCost'];
// $NewArr[$nKey]['ExtraBedWeekendCost'] = ($nVal['wk']['ExtraBedCost']) ? $nVal['wk']['ExtraBedCost'] : $NewArr[$nKey]['ExtraBedCost'];
// $NewArr[$nKey]['NetExtraBedWeekendCost'] = ($nVal['wk']['ExtraBedCost']) ? $nVal['wk']['ExtraBedCost'] : $NewArr[$nKey]['NetExtraBedCost'];
// $NewArr[$nKey]['ExtraWOBedWeekendCost'] = ($nVal['wk']['ExtraWOBedCost']) ? $nVal['wk']['ExtraWOBedCost'] : $NewArr[$nKey]['ExtraWOBedCost'];
// $NewArr[$nKey]['NetExtraWOBedWeekendCost'] = ($nVal['wk']['NetExtraWOBedCost']) ? $nVal['wk']['NetExtraWOBedCost'] : $NewArr[$nKey]['NetExtraWOBedCost'];
// echo "<pre>";print_r($nVal);die;
$NewArr[$nKey] = (isset($nVal['wd'])) ? $nVal['wd'] : $nVal['wk'];
$disableboxwd = '';
$disableboxwk = 'disabled="disabled"';
$days = 'wk';
$NewArr[$nKey]['SOWeekendCost'] = ($NewArr[$nKey]['NetSOccupCost']) ? $NewArr[$nKey]['NetSOccupCost'] : '';
$NewArr[$nKey]['NetSOWeekendCost'] = ($NewArr[$nKey]['WkNetSOccupCost']) ? $NewArr[$nKey]['WkNetSOccupCost'] : '';
$NewArr[$nKey]['DOWeekendCost'] = ($NewArr[$nKey]['NetDOccupCost']) ? $NewArr[$nKey]['NetDOccupCost'] : '';
$NewArr[$nKey]['NetDOWeekendCost'] = ($NewArr[$nKey]['WkNetDOccupCost']) ? $NewArr[$nKey]['WkNetDOccupCost'] : '';
$NewArr[$nKey]['ExtraBedWeekendCost'] = ($NewArr[$nKey]['NetExtraBedCost']) ? $NewArr[$nKey]['NetExtraBedCost'] : '';
$NewArr[$nKey]['NetExtraBedWeekendCost'] = ($NewArr[$nKey]['WkNetExtraBedCost']) ? $NewArr[$nKey]['WkNetExtraBedCost'] : '';
$NewArr[$nKey]['TriWeekendCost'] = ($NewArr[$nKey]['NetTriOccupCost']) ? $NewArr[$nKey]['NetTriOccupCost'] : '';
$NewArr[$nKey]['NetTriWeekendCost'] = ($NewArr[$nKey]['WkNetTriOccupCost']) ? $NewArr[$nKey]['WkNetTriOccupCost'] : '';
$NewArr[$nKey]['ExtraWOBedWeekendCost'] = ($NewArr[$nKey]['NetExtraWOBedCost']) ? $NewArr[$nKey]['NetExtraWOBedCost'] : '';
$NewArr[$nKey]['NetExtraWOBedWeekendCost'] = ($NewArr[$nKey]['WkNetExtraWOBedCost']) ? $NewArr[$nKey]['WkNetExtraWOBedCost'] : '';
} else{
$NewArr[$nKey] = (isset($nVal['wd'])) ? $nVal['wd'] : $nVal['wk'];
$disableboxwd = '';
$disableboxwk = 'disabled="disabled"';
$days = 'wk';
$NewArr[$nKey]['SOWeekendCost'] = ($nVal['wk']['SOccupCost']) ? $nVal['wk']['SOccupCost'] : $NewArr[$nKey]['SOccupCost'];
$NewArr[$nKey]['NetSOWeekendCost'] = ($nVal['wk']['NetSOccupCost']) ? $nVal['wk']['NetSOccupCost'] : $NewArr[$nKey]['NetSOccupCost'];
$NewArr[$nKey]['DOWeekendCost'] = ($nVal['wk']['DOccupCost']) ? $nVal['wk']['DOccupCost'] : $NewArr[$nKey]['DOccupCost'];
$NewArr[$nKey]['NetDOWeekendCost'] = ($nVal['wk']['NetDOccupCost']) ? $nVal['wk']['NetDOccupCost'] : $NewArr[$nKey]['NetDOccupCost'];
$NewArr[$nKey]['TriWeekendCost'] = ($nVal['wk']['TriOccupCost']) ? $nVal['wk']['TriOccupCost'] : $NewArr[$nKey]['TriOccupCost'];
$NewArr[$nKey]['NetTriWeekendCost'] = ($nVal['wk']['NetTriOccupCost']) ? $nVal['wk']['NetTriOccupCost'] : $NewArr[$nKey]['NetTriOccupCost'];
$NewArr[$nKey]['ExtraBedWeekendCost'] = ($nVal['wk']['ExtraBedCost']) ? $nVal['wk']['ExtraBedCost'] : $NewArr[$nKey]['ExtraBedCost'];
$NewArr[$nKey]['NetExtraBedWeekendCost'] = ($nVal['wk']['ExtraBedCost']) ? $nVal['wk']['ExtraBedCost'] : $NewArr[$nKey]['NetExtraBedCost'];
$NewArr[$nKey]['ExtraWOBedWeekendCost'] = ($nVal['wk']['ExtraWOBedCost']) ? $nVal['wk']['ExtraWOBedCost'] : $NewArr[$nKey]['ExtraWOBedCost'];
$NewArr[$nKey]['NetExtraWOBedWeekendCost'] = ($nVal['wk']['NetExtraWOBedCost']) ? $nVal['wk']['NetExtraWOBedCost'] : $NewArr[$nKey]['NetExtraWOBedCost'];
}
//
}
} else {
$disableboxwd = 'disabled="disabled"';
$disableboxwk = '';
$days = 'wd';
}
// echo "<pre>";print_r($NewArr);die;
?>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title ratecard-title">
<input type="hidden" name="check_room_type[]" id="<?= $key; ?>" value="0" />
<a class="accordion-toggle ratecard-box" data-toggle="collapse" href="#collapseOne_<?= $key ?>">
<span style="visibility: hidden;">test</span>
<input type="hidden" name="room_id[<?= $key; ?>][]" id="hide_room_id<?= $key; ?>" value="<?php echo $rooms['room']['ItemSysId']; ?>" disabled="disabled">
<input type="hidden" name="room_type_id[<?= $key; ?>][]" id="hide_room_type_id<?= $key; ?>" value="<?php echo $rooms['room']['RoomTypeId']; ?>" disabled="disabled">
<input type="hidden" name="RoomType[<?= $key; ?>][]" id="RoomType<?= $key; ?>" value="<?php echo $rooms['room']['RoomType']; ?>">
<input type="hidden" name="RoomQty[<?= $key; ?>][]" id="RoomQty<?= $key; ?>" value="<?php echo $rooms['room']['Qty']; ?>">
</a>
<label class="checkbox_popup ratecard-checkbox">
<input type="checkbox" title="Check room for rates" value="1" name="check_room_type[]" <?= (isset($RByRId[0]['XRefItemSysId']) && $rooms['room']['ItemSysId'] == $RByRId[0]['XRefItemSysId']) ? 'checked="checked"' : ''; ?> id="room<?= $key; ?>" class="check_room_dis check_room<?= $key; ?>" onclick="$(this).check_room(<?= $key; ?>)">
<?php echo ($rooms['room']['PropertyType'] != 12) ? $rooms['room']['RoomType'] : 'Villa'; ?>
<span class="checkmark ratecard-checkmark"></span>
</label>
</h4>
</div>
<div id="collapseOne_<?= $key ?>" class="panel-collapse collapse <?php echo ($key == 0) ? 'in' : 'in'; ?>">
<div class="panel-body">
<table width="100%" border="0" class="tablestyle">
<tr class="alert alert-graylight">
<th><?php echo ($HotelRateType != 2) ? 'Daily Room Limit' : '';?></th>
<th> </th>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0) { ?>
<th colspan="2" align="center" title="Room Only" class="aligncenter">
<label class="checkbox_popup checkbox_width_auto align_margin_auto">
<input type="checkbox" <?= (isset($NewArr[9]['MealPlanType']) && 9 == $NewArr[9]['MealPlanType']) ? 'checked="checked"' : ''; ?> title="Check meal for rates" value="9" name="check_meal_type[<?= $key; ?>][]" id="ep_<?= $key; ?>" class="MealPlanType checkmealep<?= $key; ?> meal<?= $key; ?> " data="ep" onclick="$(this).EnableRateInput(<?= $key; ?>, 'ep')">
EP
<span class="checkmark"></span>
</label>
</th>
<?php } ?>
<?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0) { ?>
<th colspan="2" align="center" title="Bed & Breakfast" class="aligncenter">
<label class="checkbox_popup checkbox_width_auto align_margin_auto">
<input type="checkbox" <?= (isset($NewArr[6]['MealPlanType']) && 6 == $NewArr[6]['MealPlanType']) ? 'checked="checked"' : ''; ?> title="Check meal for rates" value="6" name="check_meal_type[<?= $key; ?>][]" id="cp_<?= $key; ?>" class="MealPlanType checkmealcp<?= $key; ?> meal<?= $key; ?> " data="cp" onclick="$(this).EnableRateInput(<?= $key; ?>, 'cp')">
CP/BB
<span class="checkmark"></span>
</label>
</th>
<?php } ?>
<?php if ($hotelDetails['RateType'] == 0) { ?>
<th colspan="2" align="center" title="Breakfast & Lunch or Dinner" class="aligncenter">
<label class="checkbox_popup checkbox_width_auto align_margin_auto">
<input type="checkbox" <?= (isset($NewArr[7]['MealPlanType']) && 7 == $NewArr[7]['MealPlanType']) ? 'checked="checked"' : ''; ?> title="Check meal for rates" value="7" name="check_meal_type[<?= $key; ?>][]" id="map_<?= $key; ?>" class="MealPlanType checkmealmap<?= $key; ?> meal<?= $key; ?>" data="map" onclick="$(this).EnableRateInput(<?= $key; ?>, 'map')">
MAP
<span class="checkmark"></span>
</label>
</th>
<th colspan="2" align="center" title="Breakfast & Lunch & Dinner" class="aligncenter">
<label class="checkbox_popup checkbox_width_auto align_margin_auto">
<input type="checkbox" <?= (isset($NewArr[8]['MealPlanType']) && 8 == $NewArr[8]['MealPlanType']) ? 'checked="checked"' : ''; ?> title="Check meal for rates" value="8" name="check_meal_type[<?= $key; ?>][]" id="ap_<?= $key; ?>" class="MealPlanType checkmealap<?= $key; ?> meal<?= $key; ?>" data="ap" onclick="$(this).EnableRateInput(<?= $key; ?>, 'ap')">
AP
<span class="checkmark"></span>
</label>
</th>
<th colspan="2" align="center" title="All Inclusive" class="aligncenter">
<label class="checkbox_popup checkbox_width_auto align_margin_auto">
<input type="checkbox" <?= (isset($NewArr[3]['MealPlanType']) && 3 == $NewArr[3]['MealPlanType']) ? 'checked="checked"' : ''; ?> title="Check meal for rates" value="3" name="check_meal_type[<?= $key; ?>][]" id="ai_<?= $key; ?>" class="MealPlanType checkmealai<?= $key; ?> meal<?= $key; ?>" data="ai" onclick="$(this).EnableRateInput(<?= $key; ?>, 'ai')">
AI
<span class="checkmark"></span>
</label>
</th>
<?php } ?>
</tr>
<!--<input type="text" placeholder="Extra Adult" class="input80" maxlength="15" >
<input type="text" placeholder="Extra Child" class="input80" maxlength="15" >-->
<!--<tr>
<td bgcolor="#E0F2F7"> </td>
<td bgcolor="#E0F2F7"> </td>
<td align="center" bgcolor="#E0F2F7">Ext. Adult </td>
<td align="center" bgcolor="#E0F2F7">Ext. Child </td>
<td align="center" bgcolor="#E0F2F7">Ext. Adult</td>
<td align="center" bgcolor="#E0F2F7">Ext. Child</td>
<td align="center" bgcolor="#E0F2F7">Ext. Adult</td>
<td align="center" bgcolor="#E0F2F7">Ext. Child</td>
<td align="center" bgcolor="#E0F2F7">Ext. Adult</td>
<td align="center" bgcolor="#E0F2F7">Ext. Child</td>
</tr>-->
<tr class="alert alert-graylight tabletopborder">
<td style="width: 22%;">
<div style="<?php echo ($HotelRateType == 2) ? 'display:none;' : '';?>">
<input type="text" index="<?= $key; ?>" name="allocation[<?= $key; ?>][]" id="allocation_<?= $key; ?>" value="<?= (isset($RByRId[0]['DailyRoomLimit']) ? $RByRId[0]['DailyRoomLimit'] : $rooms['room']['Qty']) ?>" maxlength="3" class="input50 a_o_e<?= $key; ?> textboxee<?= $key; ?> dailyroom form-control" disabled="disabled" style="display:inline-block;">
<label class="checkbox_popup pull-right" style="width:65%;">
<input class="BookingType" type="checkbox" title="Instant Booking" value="1" name="BookingType[<?= $key; ?>]" <?php echo (isset($RByRId[0]['BookingType']) && $RByRId[0]['BookingType'] == 1) ? 'checked' : '' ?> >
Instant Booking
<span class="checkmark "></span>
</label>
</div>
<br>
<span class="pull-right smallbold">Apply Markup</span>
</td>
<td class="small smallbold">
<!--<input type="text" name="occupancy[<?= $key; ?>][]" id="occupancy_<?= $key; ?>" value="0" maxlength="3" class="input50 a_o_e<?= $key; ?> textbox<?= $key; ?>" disabled="disabled">-->
</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="small smallbold">Week Days</td>
<td align="center" class="small smallbold">Weekend</td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="small smallbold">Week Days</td>
<td align="center" class="small smallbold">Weekend</td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="small smallbold">Week Days</td>
<td align="center" class="small smallbold">Weekend</td>
<td align="center" class="small smallbold">Week Days</td>
<td align="center" class="small smallbold">Weekend</td>
<td align="center" class="small smallbold">Week Days</td>
<td align="center" class="small smallbold">Weekend</td>
<?php } ?>
</tr>
<tr >
<td rowspan="3" align="left" valign="middle">
Single
<input type="checkbox" title="Check for markup" value="1" name="check_markup_sg[<?= $key; ?>][]" class="check_markup_type_S<?= $key; ?> pull-right check_markup" <?php echo (isset($RByRId[0]['IsAllowMarkupSO'])) ? ($RByRId[0]['IsAllowMarkupSO'] == 1 ? 'checked' : '') : 'checked' ?> >
</td>
<td align="left" class="pup_net_rate display-none-class">Pub Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wd[9][<?= $key; ?>]" id="sg_pub_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'pub', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['SOccupCost'] != null) ? $NewArr[9]['SOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mp_r_ep<?= $key; ?> form-control" data="wd_ep_sg" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wk[9][<?= $key; ?>]" id="sg_pub_wk_ep<?= $key; ?>" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['SOWeekendCost'] != null) ? $NewArr[9]['SOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_ep_sg" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wd[6][<?= $key; ?>]" id="sg_pub_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'pub', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['SOccupCost'] != null) ? $NewArr[6]['SOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mp_r_cp<?= $key; ?> form-control" data="wd_cp_sg" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wk[6][<?= $key; ?>]" id="sg_pub_wk_cp<?= $key; ?>" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['SOWeekendCost'] != null) ? $NewArr[6]['SOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_cp_sg" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wd[7][<?= $key; ?>]" id="sg_pub_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'pub', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['SOccupCost'] != null) ? $NewArr[7]['SOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mp_r_map<?= $key; ?> form-control" data="wd_map_sg" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wk[7][<?= $key; ?>]" id="sg_pub_wk_map<?= $key; ?>" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['SOWeekendCost'] != null) ? $NewArr[7]['SOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_map_sg" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wd[8][<?= $key; ?>]" id="sg_pub_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'pub', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['SOccupCost'] != null) ? $NewArr[8]['SOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mp_r_ap<?= $key; ?> form-control" data="wd_ap_sg" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wk[8][<?= $key; ?>]" id="sg_pub_wk_ap<?= $key; ?>" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['SOWeekendCost'] != null) ? $NewArr[8]['SOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_ap_sg" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wd[3][<?= $key; ?>]" id="sg_pub_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'pub', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['SOccupCost'] != null) ? $NewArr[3]['SOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mp_r_ai<?= $key; ?> form-control" data="wd_ai_sg" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="sg_pub_wk[3][<?= $key; ?>]" id="sg_pub_wk_ai<?= $key; ?>" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['SOWeekendCost'] != null) ? $NewArr[3]['SOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_ai_sg" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr>
<td align="left">Net Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="sg_net_wd[9][<?= $key; ?>]" id="sg_net_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetSOccupCost'] != null) ? $NewArr[9]['NetSOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mn_r_ep<?= $key; ?> form-control" data="wd_ep_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[9]['NetSOccupCost']) && $NewArr[9]['NetSOccupCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wk[9][<?= $key; ?>]" id="sg_net_wk_ep<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wk', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetSOWeekendCost'] != null) ? $NewArr[9]['NetSOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_ep_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[9]['NetSOWeekendCost']) && $NewArr[9]['NetSOWeekendCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="sg_net_wd[6][<?= $key; ?>]" id="sg_net_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetSOccupCost'] != null) ? $NewArr[6]['NetSOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mn_r_cp<?= $key; ?> form-control" data="wd_cp_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[6]['NetSOccupCost']) && $NewArr[6]['NetSOccupCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wk[6][<?= $key; ?>]" id="sg_net_wk_cp<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wk', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetSOWeekendCost'] != null) ? $NewArr[6]['NetSOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_cp_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[6]['NetSOWeekendCost']) && $NewArr[6]['NetSOWeekendCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="sg_net_wd[7][<?= $key; ?>]" id="sg_net_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetSOccupCost'] != null) ? $NewArr[7]['NetSOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mn_r_map<?= $key; ?> form-control" data="wd_map_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[7]['NetSOccupCost']) && $NewArr[7]['NetSOccupCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wk[7][<?= $key; ?>]" id="sg_net_wk_map<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wk', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetSOWeekendCost'] != null) ? $NewArr[7]['NetSOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_map_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[7]['NetSOWeekendCost']) && $NewArr[7]['NetSOWeekendCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wd[8][<?= $key; ?>]" id="sg_net_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetSOccupCost'] != null) ? $NewArr[8]['NetSOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mn_r_ap<?= $key; ?> form-control" data="wd_ap_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[8]['NetSOccupCost']) && $NewArr[8]['NetSOccupCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wk[8][<?= $key; ?>]" id="sg_net_wk_ap<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wk', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetSOWeekendCost'] != null) ? $NewArr[8]['NetSOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_ap_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[8]['NetSOWeekendCost']) && $NewArr[8]['NetSOWeekendCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wd[3][<?= $key; ?>]" id="sg_net_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetSOccupCost'] != null) ? $NewArr[3]['NetSOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> mn_r_ai<?= $key; ?> form-control" data="wd_ai_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[3]['NetSOccupCost']) && $NewArr[3]['NetSOccupCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<td align="center"><input type="text" name="sg_net_wk[3][<?= $key; ?>]" id="sg_net_wk_ai<?= $key; ?>" onkeyup="$(this).copypaste('sg', 'net', 'wk', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetSOWeekendCost'] != null) ? $NewArr[3]['NetSOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_S_<?= $key; ?> form-control" data="wk_ai_sg" index="<?= $key; ?>" <?php echo (isset($NewArr[3]['NetSOWeekendCost']) && $NewArr[3]['NetSOWeekendCost'] > 0) ? '' : 'disabled="disabled"'; ?>></td>
<?php } ?>
</tr>
<tr><td></td></tr>
<tr style="display:none;">
<td align="left"><span class="leftsidearea texarea_text">Is Tax Extra?</span>
<label class="checkbox_popup checkbox_width_auto">
<input type="checkbox" title="Check tax for rates" value="1" name="check_tax_sg[<?= $key; ?>][]" class="check_tax_type_S<?= $key; ?> tax<?= $key; ?>" onclick="$(this).EnableTaxInput(<?= $key; ?>, 'S')">
(%)
<span class="checkmark"></span>
</label>
</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="sg_tax_wd[9][<?= $key; ?>]" id="sg_tax_wd_ep<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wd_ep', 'sg_pub_wd_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_S_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" data="wd_ep" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wk[9][<?= $key; ?>]" id="sg_tax_wk_ep<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wk_ep', 'sg_pub_wk_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_S_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" data="wk_ep" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="sg_tax_wd[6][<?= $key; ?>]" id="sg_tax_wd_cp<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wd_cp', 'sg_pub_wd_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_S_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" data="wd_cp" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wk[6][<?= $key; ?>]" id="sg_tax_wk_cp<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wk_cp', 'sg_pub_wk_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_S_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" data="wk_cp" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="sg_tax_wd[7][<?= $key; ?>]" id="sg_tax_wd_map<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wd_map', 'sg_pub_wd_map', '<?= $key ?>')" maxlength="2" class="input280 tx_S_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" data="wd_map" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wk[7][<?= $key; ?>]" id="sg_tax_wk_map<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wk_map', 'sg_pub_wk_map', '<?= $key ?>')" maxlength="2" class="input280 tx_S_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" data="wk_map" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wd[8][<?= $key; ?>]" id="sg_tax_wd_ap<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wd_ap', 'sg_pub_wd_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_S_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" data="wd_ap" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wk[8][<?= $key; ?>]" id="sg_tax_wk_ap<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wk_ap', 'sg_pub_wk_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_S_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" data="wk_ap" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wd[3][<?= $key; ?>]" id="sg_tax_wd_ai<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wd_ai', 'sg_pub_wd_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_S_4<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" data="wd_ai" disabled="disabled"></td>
<td align="center"><input type="text" name="sg_tax_wk[3][<?= $key; ?>]" id="sg_tax_wk_ai<?= $key; ?>" onkeyup="$(this).IsTaxExtra('sg_net_wk_ai', 'sg_pub_wk_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_S_4<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" data="wk_ai" disabled="disabled"></td>
<?php } ?>
</tr>
<tr>
<td rowspan="3" align="left" valign="middle">
Double/ Room Base Price
<input type="checkbox" title="Check for markup" value="1" name="check_markup_db[<?= $key; ?>][]" class="check_markup_type_D<?= $key; ?> pull-right check_markup" <?php echo (isset($RByRId[0]['IsAllowMarkupDO'])) ? ($RByRId[0]['IsAllowMarkupDO'] == 1 ? 'checked' : '') : 'checked' ?>>
</td>
<td align="left" class="pup_net_rate display-none-class">Pub Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wd[9][<?= $key; ?>]" id="db_pub_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('db', 'pub', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['DOccupCost'] != null) ? $NewArr[9]['DOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mp_r_ep<?= $key; ?> form-control" data="wd_ep_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wk[9][<?= $key; ?>]" id="db_pub_wk_ep<?= $key; ?>" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['DOWeekendCost'] != null) ? $NewArr[9]['DOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_ep_db" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wd[6][<?= $key; ?>]" id="db_pub_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('db', 'pub', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['DOccupCost'] != null) ? $NewArr[6]['DOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mp_r_cp<?= $key; ?> form-control" data="wd_cp_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wk[6][<?= $key; ?>]" id="db_pub_wk_cp<?= $key; ?>" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['DOWeekendCost'] != null) ? $NewArr[6]['DOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_cp_db" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wd[7][<?= $key; ?>]" id="db_pub_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('db', 'pub', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['DOccupCost'] != null) ? $NewArr[7]['DOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mp_r_map<?= $key; ?> form-control" data="wd_map_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wk[7][<?= $key; ?>]" id="db_pub_wk_map<?= $key; ?>" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['DOWeekendCost'] != null) ? $NewArr[7]['DOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_map_db" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wd[8][<?= $key; ?>]" id="db_pub_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('db', 'pub', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['DOccupCost'] != null) ? $NewArr[8]['DOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mp_r_ap<?= $key; ?> form-control" data="wd_ap_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wk[8][<?= $key; ?>]" id="db_pub_wk_ap<?= $key; ?>" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['DOWeekendCost'] != null) ? $NewArr[8]['DOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_ap_db" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wd[3][<?= $key; ?>]" id="db_pub_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('db', 'pub', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['DOccupCost'] != null) ? $NewArr[3]['DOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mp_r_ai<?= $key; ?> form-control" data="wd_ai_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="db_pub_wk[3][<?= $key; ?>]" id="db_pub_wk_ai<?= $key; ?>" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['DOWeekendCost'] != null) ? $NewArr[3]['DOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_ai_db" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr>
<td align="left">Net Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="db_net_wd[9][<?= $key; ?>]" id="db_net_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetDOccupCost'] != null) ? $NewArr[9]['NetDOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mn_r_ep<?= $key; ?> form-control" data="wd_ep_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="db_net_wk[9][<?= $key; ?>]" id="db_net_wk_ep<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wk', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetDOWeekendCost'] != null) ? $NewArr[9]['NetDOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_ep_db" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="db_net_wd[6][<?= $key; ?>]" id="db_net_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetDOccupCost'] != null) ? $NewArr[6]['NetDOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mn_r_cp<?= $key; ?> form-control" data="wd_cp_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="db_net_wk[6][<?= $key; ?>]" id="db_net_wk_cp<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wk', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetDOWeekendCost'] != null) ? $NewArr[6]['NetDOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_cp_db" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="db_net_wd[7][<?= $key; ?>]" id="db_net_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetDOccupCost'] != null) ? $NewArr[7]['NetDOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mn_r_map<?= $key; ?> form-control" data="wd_map_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="db_net_wk[7][<?= $key; ?>]" id="db_net_wk_map<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wk', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetDOWeekendCost'] != null) ? $NewArr[7]['NetDOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_map_db" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="db_net_wd[8][<?= $key; ?>]" id="db_net_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetDOccupCost'] != null) ? $NewArr[8]['NetDOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mn_r_ap<?= $key; ?> form-control" data="wd_ap_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="db_net_wk[8][<?= $key; ?>]" id="db_net_wk_ap<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wk', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetDOWeekendCost'] != null) ? $NewArr[8]['NetDOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_ap_db" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="db_net_wd[3][<?= $key; ?>]" id="db_net_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetDOccupCost'] != null) ? $NewArr[3]['NetDOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> mn_r_ai<?= $key; ?> form-control" data="wd_ai_db" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="db_net_wk[3][<?= $key; ?>]" id="db_net_wk_ai<?= $key; ?>" onkeyup="$(this).copypaste('db', 'net', 'wk', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetDOWeekendCost'] != null) ? $NewArr[3]['NetDOWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_D_<?= $key; ?> form-control" data="wk_ai_db" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr><td></td></tr>
<tr style="display:none;">
<td align="left"><span class="leftsidearea texarea_text">Is Tax Extra?</span>
<label class="checkbox_popup checkbox_width_auto">
<input type="checkbox" title="Check tax for rates" value="1" name="check_tax_db[<?= $key; ?>][]" class="check_tax_type_D<?= $key; ?> tax<?= $key; ?>" onclick="$(this).EnableTaxInput(<?= $key; ?>, 'D')">
(%)
<span class="checkmark"></span>
</label>
</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="db_tax_wd[9][<?= $key; ?>]" id="db_tax_wd_ep<?= $key; ?>" data="wd_ep" onkeyup="$(this).IsTaxExtra('db_net_wd_ep', 'db_pub_wd_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_D_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wk[9][<?= $key; ?>]" id="db_tax_wk_ep<?= $key; ?>" data="wk_ep" onkeyup="$(this).IsTaxExtra('db_net_wk_ep', 'db_pub_wk_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_D_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="db_tax_wd[6][<?= $key; ?>]" id="db_tax_wd_cp<?= $key; ?>" data="wd_cp" onkeyup="$(this).IsTaxExtra('db_net_wd_cp', 'db_pub_wd_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_D_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wk[6][<?= $key; ?>]" id="db_tax_wk_cp<?= $key; ?>" data="wk_cp" onkeyup="$(this).IsTaxExtra('db_net_wk_cp', 'db_pub_wk_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_D_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="db_tax_wd[7][<?= $key; ?>]" id="db_tax_wd_map<?= $key; ?>" data="wd_map" onkeyup="$(this).IsTaxExtra('db_net_wd_map', 'db_pub_wd_map', '<?= $key ?>')" maxlength="2" class="input280 tx_D_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wk[7][<?= $key; ?>]" id="db_tax_wk_map<?= $key; ?>" data="wk_map" onkeyup="$(this).IsTaxExtra('db_net_wk_map', 'db_pub_wk_map', '<?= $key ?>')" maxlength="2" class="input280 tx_D_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wd[8][<?= $key; ?>]" id="db_tax_wd_ap<?= $key; ?>" data="wd_ap" onkeyup="$(this).IsTaxExtra('db_net_wd_ap', 'db_pub_wd_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_D_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wk[8][<?= $key; ?>]" id="db_tax_wk_ap<?= $key; ?>" data="wk_ap" onkeyup="$(this).IsTaxExtra('db_net_wk_ap', 'db_pub_wk_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_D_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wd[3][<?= $key; ?>]" id="db_tax_wd_ai<?= $key; ?>" data="wd_ai" onkeyup="$(this).IsTaxExtra('db_net_wd_ai', 'db_pub_wd_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_D_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="db_tax_wk[3][<?= $key; ?>]" id="db_tax_wk_ai<?= $key; ?>" data="wk_ai" onkeyup="$(this).IsTaxExtra('db_net_wk_ai', 'db_pub_wk_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_D_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?>
</tr>
<tr>
<td rowspan="3" align="left" valign="middle">
Extra With Bed(Adult)
<input type="checkbox" title="Check for markup" value="1" name="check_markup_tri[<?= $key; ?>][]" class="check_markup_type_T<?= $key; ?> pull-right check_markup" <?php echo (isset($RByRId[0]['IsAllowMarkupTO'])) ? ($RByRId[0]['IsAllowMarkupTO'] == 1 ? 'checked' : '') : 'checked' ?>>
</td>
<td align="left" class="pup_net_rate display-none-class">Pub Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wd[9][<?= $key; ?>]" id="ex_wbed_pub_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'pub', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['ExtraBedCost'] != null) ? $NewArr[9]['ExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mp_r_ep<?= $key; ?> form-control" data="wd_ep_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wk[9][<?= $key; ?>]" id="ex_wbed_pub_wk_ep<?= $key; ?>" onkeyup="$(this).copypastewk('ex_wbed', 'pub', 'wk', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['ExtraBedWeekendCost'] != null) ? $NewArr[9]['ExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_ep_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wd[6][<?= $key; ?>]" id="ex_wbed_pub_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'pub', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['ExtraBedCost'] != null) ? $NewArr[6]['ExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mp_r_cp<?= $key; ?> form-control" data="wd_cp_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wk[6][<?= $key; ?>]" id="ex_wbed_pub_wk_cp<?= $key; ?>" onkeyup="$(this).copypastewk('ex_wbed', 'pub', 'wk', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['ExtraBedWeekendCost'] != null) ? $NewArr[6]['ExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_cp_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wd[7][<?= $key; ?>]" id="ex_wbed_pub_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'pub', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['ExtraBedCost'] != null) ? $NewArr[7]['ExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mp_r_map<?= $key; ?> form-control" data="wd_map_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wk[7][<?= $key; ?>]" id="ex_wbed_pub_wk_map<?= $key; ?>" onkeyup="$(this).copypastewk('ex_wbed', 'pub', 'wk', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['ExtraBedWeekendCost'] != null) ? $NewArr[7]['ExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_map_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wd[8][<?= $key; ?>]" id="ex_wbed_pub_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'pub', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['ExtraBedCost'] != null) ? $NewArr[8]['ExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mp_r_ap<?= $key; ?> form-control" data="wd_ap_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wk[8][<?= $key; ?>]" id="ex_wbed_pub_wk_ap<?= $key; ?>" onkeyup="$(this).copypastewk('ex_wbed', 'pub', 'wk', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['ExtraBedWeekendCost'] != null) ? $NewArr[8]['ExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_ap_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wd[3][<?= $key; ?>]" id="ex_wbed_pub_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'pub', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['ExtraBedCost'] != null) ? $NewArr[3]['ExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mp_r_ai<?= $key; ?> form-control" data="wd_ai_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="ex_wbed_pub_wk[3][<?= $key; ?>]" id="ex_wbed_pub_wk_ai<?= $key; ?>" onkeyup="$(this).copypastewk('ex_wbed', 'pub', 'wk', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['ExtraBedWeekendCost'] != null) ? $NewArr[3]['ExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_ai_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr>
<td align="left">Net Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="ex_wbed_net_wd[9][<?= $key; ?>]" id="ex_wbed_net_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetExtraBedCost'] != null) ? $NewArr[9]['NetExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mn_r_ep<?= $key; ?> form-control" data="wd_ep_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_net_wk[9][<?= $key; ?>]" id="ex_wbed_net_wk_ep<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wk', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetExtraBedWeekendCost'] != null) ? $NewArr[9]['NetExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_ep_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="ex_wbed_net_wd[6][<?= $key; ?>]" id="ex_wbed_net_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetExtraBedCost'] != null) ? $NewArr[6]['NetExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mn_r_cp<?= $key; ?> form-control" data="wd_cp_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_net_wk[6][<?= $key; ?>]" id="ex_wbed_net_wk_cp<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wk', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetExtraBedWeekendCost'] != null) ? $NewArr[6]['NetExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_cp_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="ex_wbed_net_wd[7][<?= $key; ?>]" id="ex_wbed_net_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetExtraBedCost'] != null) ? $NewArr[7]['NetExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mn_r_map<?= $key; ?> form-control" data="wd_map_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_net_wk[7][<?= $key; ?>]" id="ex_wbed_net_wk_map<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wk', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetExtraBedWeekendCost'] != null) ? $NewArr[7]['NetExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_map_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="ex_wbed_net_wd[8][<?= $key; ?>]" id="ex_wbed_net_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetExtraBedCost'] != null) ? $NewArr[8]['NetExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mn_r_ap<?= $key; ?> form-control" data="wd_ap_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_net_wk[8][<?= $key; ?>]" id="ex_wbed_net_wk_ap<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wk', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetExtraBedWeekendCost'] != null) ? $NewArr[8]['NetExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_ap_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="ex_wbed_net_wd[3][<?= $key; ?>]" id="ex_wbed_net_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetExtraBedCost'] != null) ? $NewArr[3]['NetExtraBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> mn_r_ai<?= $key; ?> form-control" data="wd_ai_exwbed" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_net_wk[3][<?= $key; ?>]" id="ex_wbed_net_wk_ai<?= $key; ?>" onkeyup="$(this).copypaste('ex_wbed', 'net', 'wk', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetExtraBedWeekendCost'] != null) ? $NewArr[3]['NetExtraBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_T_<?= $key; ?> form-control" data="wk_ai_exwbed" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr><td></td></tr>
<tr style="display:none;">
<td align="left"><span class="leftsidearea texarea_text">Is Tax Extra?</span>
<label class="checkbox_popup checkbox_width_auto">
<input type="checkbox" title="Check tax for rates" value="1" name="check_tax_tri[<?= $key; ?>][]" class="check_tax_type_T<?= $key; ?> tax<?= $key; ?>" onclick="$(this).EnableTaxInput(<?= $key; ?>, 'T')">
(%)
<span class="checkmark"></span>
</label>
</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="ex_wbed_tax_wd[9][<?= $key; ?>]" id="ex_wbed_tax_wd_ep<?= $key; ?>" data="wd_ep" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wd_ep', 'ex_wbed_pub_wd_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_T_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wk[9][<?= $key; ?>]" id="ex_wbed_tax_wk_ep<?= $key; ?>" data="wk_ep" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wk_ep', 'ex_wbed_pub_wk_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_T_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="ex_wbed_tax_wd[6][<?= $key; ?>]" id="ex_wbed_tax_wd_cp<?= $key; ?>" data="wd_cp" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wd_cp', 'ex_wbed_pub_wd_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_T_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wk[6][<?= $key; ?>]" id="ex_wbed_tax_wk_cp<?= $key; ?>" data="wk_cp" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wk_cp', 'ex_wbed_pub_wk_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_T_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="ex_wbed_tax_wd[7][<?= $key; ?>]" id="ex_wbed_tax_wd_map<?= $key; ?>" data="wd_map" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wd_map', 'ex_wbed_pub_wd_map', '<?= $key ?>')" maxlength="2" class="input280 tx_T_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wk[7][<?= $key; ?>]" id="ex_wbed_tax_wk_map<?= $key; ?>" data="wk_map" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wk_map', 'ex_wbed_pub_wk_map', '<?= $key ?>')" maxlength="2" class="input280 tx_T_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wd[8][<?= $key; ?>]" id="ex_wbed_tax_wd_ap<?= $key; ?>" data="wd_ap" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wd_ap', 'ex_wbed_pub_wd_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_T_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wk[8][<?= $key; ?>]" id="ex_wbed_tax_wk_ap<?= $key; ?>" data="wk_ap" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wk_ap', 'ex_wbed_pub_wk_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_T_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wd[3][<?= $key; ?>]" id="ex_wbed_tax_wd_ai<?= $key; ?>" data="wd_ai" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wd_ai', 'ex_wbed_pub_wd_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_T_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="ex_wbed_tax_wk[3][<?= $key; ?>]" id="ex_wbed_tax_wk_ai<?= $key; ?>" data="wk_ai" onkeyup="$(this).IsTaxExtra('ex_wbed_net_wk_ai', 'ex_wbed_pub_wk_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_T_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?>
</tr>
<tr>
<td rowspan="3" align="left" valign="middle">
<?php
$ChildAgeLimit = (isset($RByRId[0]['ChildAgeLimit']) && trim($RByRId[0]['ChildAgeLimit']) > 0) ? trim($RByRId[0]['ChildAgeLimit']) : $ChildAge;
?>
Extra With Bed(Child) <br>
<select name="age_paid[<?= $key; ?>][]" id="age_paid_<?= $key; ?>">
<option value="0">Age</option>
<?php for ($i = 3; $i <= 12; $i++) { ?>
<option value="<?php echo $i; ?>" <?php
echo ($ChildAgeLimit == $i) ? "selected" : "";
?>><?php echo $i; ?> year</option>
<?php } ?>
</select>
<input type="checkbox" title="Check for markup" value="1" name="check_markup_ex[<?= $key; ?>][]" class="check_markup_type_E<?= $key; ?> pull-right check_markup" <?php echo (isset($RByRId[0]['IsAllowMarkupEB'])) ? ($RByRId[0]['IsAllowMarkupEB'] == 1 ? 'checked' : '') : 'checked' ?>>
</td>
<td align="left" class="pup_net_rate display-none-class">Pub Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wd[9][<?= $key; ?>]" id="tri_pub_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'pub', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['TriOccupCost'] != null) ? $NewArr[9]['TriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mp_r_ep<?= $key; ?> form-control" data="wd_ep_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wk[9][<?= $key; ?>]" id="tri_pub_wk_ep<?= $key; ?>" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['TriWeekendCost'] != null) ? $NewArr[9]['TriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_ep_tri" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wd[6][<?= $key; ?>]" id="tri_pub_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'pub', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['TriOccupCost'] != null) ? $NewArr[6]['TriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 p CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mp_r_cp<?= $key; ?> form-control" data="wd_cp_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wk[6][<?= $key; ?>]" id="tri_pub_wk_cp<?= $key; ?>" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['TriWeekendCost'] != null) ? $NewArr[6]['TriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_cp_tri" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wd[7][<?= $key; ?>]" id="tri_pub_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'pub', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['TriOccupCost'] != null) ? $NewArr[7]['TriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mp_r_map<?= $key; ?> form-control" data="wd_map_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wk[7][<?= $key; ?>]" id="tri_pub_wk_map<?= $key; ?>" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['TriWeekendCost'] != null) ? $NewArr[7]['TriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_map_tri" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wd[8][<?= $key; ?>]" id="tri_pub_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'pub', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['TriOccupCost'] != null) ? $NewArr[8]['TriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mp_r_ap<?= $key; ?> form-control" data="wd_ap_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wk[8][<?= $key; ?>]" id="tri_pub_wk_ap<?= $key; ?>" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['TriWeekendCost'] != null) ? $NewArr[8]['TriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_ap_tri" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wd[3][<?= $key; ?>]" id="tri_pub_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'pub', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['TriOccupCost'] != null) ? $NewArr[3]['TriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mp_r_ai<?= $key; ?> form-control" data="wd_ai_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="tri_pub_wk[3][<?= $key; ?>]" id="tri_pub_wk_ai<?= $key; ?>" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['TriWeekendCost'] != null) ? $NewArr[3]['TriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_ai_tri" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr>
<td align="left">Net Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="tri_net_wd[9][<?= $key; ?>]" id="tri_net_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetTriOccupCost'] != null) ? $NewArr[9]['NetTriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mn_r_ep<?= $key; ?> form-control" data="wd_ep_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_net_wk[9][<?= $key; ?>]" id="tri_net_wk_ep<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wk', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetTriWeekendCost'] != null) ? $NewArr[9]['NetTriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_ep_tri" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="tri_net_wd[6][<?= $key; ?>]" id="tri_net_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetTriOccupCost'] != null) ? $NewArr[6]['NetTriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mn_r_cp<?= $key; ?> form-control" data="wd_cp_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_net_wk[6][<?= $key; ?>]" id="tri_net_wk_cp<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wk', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetTriWeekendCost'] != null) ? $NewArr[6]['NetTriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_cp_tri" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="tri_net_wd[7][<?= $key; ?>]" id="tri_net_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetTriOccupCost'] != null) ? $NewArr[7]['NetTriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mn_r_map<?= $key; ?> form-control" data="wd_map_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_net_wk[7][<?= $key; ?>]" id="tri_net_wk_map<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wk', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetTriWeekendCost'] != null) ? $NewArr[7]['NetTriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_map_tri" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="tri_net_wd[8][<?= $key; ?>]" id="tri_net_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetTriOccupCost'] != null) ? $NewArr[8]['NetTriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mn_r_ap<?= $key; ?> form-control" data="wd_ap_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_net_wk[8][<?= $key; ?>]" id="tri_net_wk_ap<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wk', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetTriWeekendCost'] != null) ? $NewArr[8]['NetTriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_ap_tri" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="tri_net_wd[3][<?= $key; ?>]" id="tri_net_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetTriOccupCost'] != null) ? $NewArr[3]['NetTriOccupCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> mn_r_ai<?= $key; ?> form-control" data="wd_ai_tri" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_net_wk[3][<?= $key; ?>]" id="tri_net_wk_ai<?= $key; ?>" onkeyup="$(this).copypaste('tri', 'net', 'wk', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetTriWeekendCost'] != null) ? $NewArr[3]['NetTriWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_E_<?= $key; ?> form-control" data="wk_ai_tri" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr><td></td></tr>
<tr style="display:none;">
<td align="left"><span class="leftsidearea texarea_text">Is Tax Extra?</span>
<label class="checkbox_popup checkbox_width_auto">
<input type="checkbox" title="Check tax for rates" value="1" name="check_tax_ex[<?= $key; ?>][]" class="check_tax_type_E<?= $key; ?> tax<?= $key; ?> form-control" onclick="$(this).EnableTaxInput(<?= $key; ?>, 'E')">
(%)
<span class="checkmark"></span>
</label>
</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="tri_tax_wd[9][<?= $key; ?>]" id="tri_tax_wd_ep<?= $key; ?>" data="wd_ep" onkeyup="$(this).IsTaxExtra('tri_net_wd_ep', 'tri_pub_wd_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_E_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wk[9][<?= $key; ?>]" id="tri_tax_wk_ep<?= $key; ?>" data="wk_ep" onkeyup="$(this).IsTaxExtra('tri_net_wk_ep', 'tri_pub_wk_ep', '<?= $key ?>')" maxlength="2" class="input280 tx_E_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="tri_tax_wd[6][<?= $key; ?>]" id="tri_tax_wd_cp<?= $key; ?>" data="wd_cp" onkeyup="$(this).IsTaxExtra('tri_net_wd_cp', 'tri_pub_wd_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_E_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wk[6][<?= $key; ?>]" id="tri_tax_wk_cp<?= $key; ?>" data="wk_cp" onkeyup="$(this).IsTaxExtra('tri_net_wk_cp', 'tri_pub_wk_cp', '<?= $key ?>')" maxlength="2" class="input280 tx_E_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="tri_tax_wd[7][<?= $key; ?>]" id="tri_tax_wd_map<?= $key; ?>" data="wd_map" onkeyup="$(this).IsTaxExtra('tri_net_wd_map', 'tri_pub_wd_map', '<?= $key ?>')" maxlength="2" class="input280 tx_E_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wk[7][<?= $key; ?>]" id="tri_tax_wk_map<?= $key; ?>" data="wk_map" onkeyup="$(this).IsTaxExtra('tri_net_wk_map', 'tri_pub_wk_map', '<?= $key ?>')" maxlength="2" class="input280 tx_E_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wd[8][<?= $key; ?>]" id="tri_tax_wd_ap<?= $key; ?>" data="wd_ap" onkeyup="$(this).IsTaxExtra('tri_net_wd_ap', 'tri_pub_wd_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_E_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wk[8][<?= $key; ?>]" id="tri_tax_wk_ap<?= $key; ?>" data="wk_ap" onkeyup="$(this).IsTaxExtra('tri_net_wk_ap', 'tri_pub_wk_ap', '<?= $key ?>')" maxlength="2" class="input280 tx_E_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wd[3][<?= $key; ?>]" id="tri_tax_wd_ai<?= $key; ?>" data="wd_ai" onkeyup="$(this).IsTaxExtra('tri_net_wd_ai', 'tri_pub_wd_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_E_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="tri_tax_wk[3][<?= $key; ?>]" id="tri_tax_wk_ai<?= $key; ?>" data="wk_ai" onkeyup="$(this).IsTaxExtra('tri_net_wk_ai', 'tri_pub_wk_ai', '<?= $key ?>')" maxlength="2" class="input280 tx_E_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?>
</tr>
<tr>
<td rowspan="3" align="left" valign="middle">
Extra W/O Bed
<input type="checkbox" title="Check for markup" value="1" name="check_markup_chpaid[<?= $key; ?>][]" class="check_markup_type_C<?= $key; ?> pull-right check_markup" <?php echo (isset($RByRId[0]['IsAllowMarkupWOB'])) ? ($RByRId[0]['IsAllowMarkupWOB'] == 1 ? 'checked' : '') : 'checked' ?>>
</td>
<td align="left" class="pup_net_rate display-none-class">Pub Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wd[9][<?= $key; ?>]" id="chpaid_pub_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'pub', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['ExtraWOBedCost'] != null) ? $NewArr[9]['ExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mp_r_ep<?= $key; ?> form-control" data="wd_ep_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wk[9][<?= $key; ?>]" id="chpaid_pub_wk_ep<?= $key; ?>" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['ExtraWOBedWeekendCost'] != null) ? $NewArr[9]['ExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ep<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_ep_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wd[6][<?= $key; ?>]" id="chpaid_pub_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'pub', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['ExtraWOBedCost'] != null) ? $NewArr[6]['ExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mp_r_cp<?= $key; ?> form-control" data="wd_cp_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wk[6][<?= $key; ?>]" id="chpaid_pub_wk_cp<?= $key; ?>" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['ExtraWOBedWeekendCost'] != null) ? $NewArr[6]['ExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_cp<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_cp_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wd[7][<?= $key; ?>]" id="chpaid_pub_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'pub', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['ExtraWOBedCost'] != null) ? $NewArr[7]['ExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mp_r_map<?= $key; ?> form-control" data="wd_map_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wk[7][<?= $key; ?>]" id="chpaid_pub_wk_map<?= $key; ?>" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['ExtraWOBedWeekendCost'] != null) ? $NewArr[7]['ExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_map<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_map_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wd[8][<?= $key; ?>]" id="chpaid_pub_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'pub', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['ExtraWOBedCost'] != null) ? $NewArr[8]['ExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mp_r_ap<?= $key; ?> form-control" data="wd_ap_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wk[8][<?= $key; ?>]" id="chpaid_pub_wk_ap<?= $key; ?>" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['ExtraWOBedWeekendCost'] != null) ? $NewArr[8]['ExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ap<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_ap_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wd[3][<?= $key; ?>]" id="chpaid_pub_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'pub', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['ExtraWOBedCost'] != null) ? $NewArr[3]['ExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mp_r_ai<?= $key; ?> form-control" data="wd_ai_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center" class="pup_net_rate display-none-class"><input type="text" name="chpaid_pub_wk[3][<?= $key; ?>]" id="chpaid_pub_wk_ai<?= $key; ?>" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['ExtraWOBedWeekendCost'] != null) ? $NewArr[3]['ExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR p_r_ai<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_ai_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr>
<td align="left">Net Rate</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="chpaid_net_wd[9][<?= $key; ?>]" id="chpaid_net_wd_ep<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wd', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetExtraWOBedCost'] != null) ? $NewArr[9]['NetExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mn_r_ep<?= $key; ?> form-control" data="wd_ep_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_net_wk[9][<?= $key; ?>]" id="chpaid_net_wk_ep<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wk', 'ep', '<?= $key ?>')" value="<?= (isset($NewArr[9]['MealPlanType']) && $NewArr[9]['MealPlanType'] == 9) ? ($NewArr[9]['NetExtraWOBedWeekendCost'] != null) ? $NewArr[9]['NetExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ep<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_ep_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="chpaid_net_wd[6][<?= $key; ?>]" id="chpaid_net_wd_cp<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wd', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetExtraWOBedCost'] != null) ? $NewArr[6]['NetExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mn_r_cp<?= $key; ?> form-control" data="wd_cp_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_net_wk[6][<?= $key; ?>]" id="chpaid_net_wk_cp<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wk', 'cp', '<?= $key ?>')" value="<?= (isset($NewArr[6]['MealPlanType']) && $NewArr[6]['MealPlanType'] == 6) ? ($NewArr[6]['NetExtraWOBedWeekendCost'] != null) ? $NewArr[6]['NetExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_cp<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_cp_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="chpaid_net_wd[7][<?= $key; ?>]" id="chpaid_net_wd_map<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wd', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetExtraWOBedCost'] != null) ? $NewArr[7]['NetExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mn_r_map<?= $key; ?> form-control" data="wd_map_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_net_wk[7][<?= $key; ?>]" id="chpaid_net_wk_map<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wk', 'map', '<?= $key ?>')" value="<?= (isset($NewArr[7]['MealPlanType']) && $NewArr[7]['MealPlanType'] == 7) ? ($NewArr[7]['NetExtraWOBedWeekendCost'] != null) ? $NewArr[7]['NetExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_map<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_map_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="chpaid_net_wd[8][<?= $key; ?>]" id="chpaid_net_wd_ap<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wd', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetExtraWOBedCost'] != null) ? $NewArr[8]['NetExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mn_r_ap<?= $key; ?> form-control" data="wd_ap_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_net_wk[8][<?= $key; ?>]" id="chpaid_net_wk_ap<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wk', 'ap', '<?= $key ?>')" value="<?= (isset($NewArr[8]['MealPlanType']) && $NewArr[8]['MealPlanType'] == 8) ? ($NewArr[8]['NetExtraWOBedWeekendCost'] != null) ? $NewArr[8]['NetExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ap<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_ap_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<td align="center"><input type="text" name="chpaid_net_wd[3][<?= $key; ?>]" id="chpaid_net_wd_ai<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wd', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetExtraWOBedCost'] != null) ? $NewArr[3]['NetExtraWOBedCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> mn_r_ai<?= $key; ?> form-control" data="wd_ai_chpaid" index="<?= $key; ?>" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_net_wk[3][<?= $key; ?>]" id="chpaid_net_wk_ai<?= $key; ?>" onkeyup="$(this).copypaste('chpaid', 'net', 'wk', 'ai', '<?= $key ?>')" value="<?= (isset($NewArr[3]['MealPlanType']) && $NewArr[3]['MealPlanType'] == 3) ? ($NewArr[3]['NetExtraWOBedWeekendCost'] != null) ? $NewArr[3]['NetExtraWOBedWeekendCost'] + '0' : '' : ''; ?>" maxlength="15" class="input80 CalNR n_r_ai<?= $key; ?> textbox<?= $key; ?> re_C_<?= $key; ?> form-control" data="wk_ai_chpaid" disabled="disabled" index="<?= $key; ?>"></td>
<?php } ?>
</tr>
<tr><td></td></tr>
<tr style="display:none;">
<td align="left"><span class="leftsidearea texarea_text">Is Tax Extra?</span>
<label class="checkbox_popup checkbox_width_auto">
<input type="checkbox" title="Check tax for rates" value="1" name="check_tax_chpaid[<?= $key; ?>][]" id="<?= $key; ?>" class="check_tax_type_C<?= $key; ?> tax<?= $key; ?> form-control" onclick="$(this).EnableTaxInput(<?= $key; ?>, 'C')">
(%)
<span class="checkmark"></span>
</label>
</td>
<?php if ($hotelDetails['RateType'] == 1 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="chpaid_tax_wd[9][<?= $key; ?>]" id="chpaid_tax_wd_ep<?= $key; ?>" data="wd_ep" onkeyup="$(this).IsTaxExtra('chpaid_net_wd_ep', 'chpaid_pub_wd_ep', '<?= $key ?>')" maxlength="15" class="input280 tx_C_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wk[9][<?= $key; ?>]" id="chpaid_tax_wk_ep<?= $key; ?>" data="wk_ep" onkeyup="$(this).IsTaxExtra('chpaid_net_wk_ep', 'chpaid_pub_wk_ep', '<?= $key ?>')" maxlength="15" class="input280 tx_C_0<?= $key; ?> tx_r_ep<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 2 || $hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="chpaid_tax_wd[6][<?= $key; ?>]" id="chpaid_tax_wd_cp<?= $key; ?>" data="wd_cp" onkeyup="$(this).IsTaxExtra('chpaid_net_wd_cp', 'chpaid_pub_wd_cp', '<?= $key ?>')" maxlength="15" class="input280 tx_C_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wk[6][<?= $key; ?>]" id="chpaid_tax_wk_cp<?= $key; ?>" data="wk_cp" onkeyup="$(this).IsTaxExtra('chpaid_net_wk_cp', 'chpaid_pub_wk_cp', '<?= $key ?>')" maxlength="15" class="input280 tx_C_1<?= $key; ?> tx_r_cp<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?><?php if ($hotelDetails['RateType'] == 0 || $hotelDetails['RateType'] == null) { ?>
<td align="center"><input type="text" name="chpaid_tax_wd[7][<?= $key; ?>]" id="chpaid_tax_wd_map<?= $key; ?>" data="wd_map" onkeyup="$(this).IsTaxExtra('chpaid_net_wd_map', 'chpaid_pub_wd_map', '<?= $key ?>')" maxlength="15" class="input280 tx_C_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wk[7][<?= $key; ?>]" id="chpaid_tax_wk_map<?= $key; ?>" data="wk_map" onkeyup="$(this).IsTaxExtra('chpaid_net_wk_map', 'chpaid_pub_wk_map', '<?= $key ?>')" maxlength="15" class="input280 tx_C_2<?= $key; ?> tx_r_map<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wd[8][<?= $key; ?>]" id="chpaid_tax_wd_ap<?= $key; ?>" data="wd_ap" onkeyup="$(this).IsTaxExtra('chpaid_net_wd_ap', 'chpaid_pub_wd_ap', '<?= $key ?>')" maxlength="15" class="input280 tx_C_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wk[8][<?= $key; ?>]" id="chpaid_tax_wk_ap<?= $key; ?>" data="wk_ap" onkeyup="$(this).IsTaxExtra('chpaid_net_wk_ap', 'chpaid_pub_wk_ap', '<?= $key ?>')" maxlength="15" class="input280 tx_C_3<?= $key; ?> tx_r_ap<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wd[3][<?= $key; ?>]" id="chpaid_tax_wd_ai<?= $key; ?>" data="wd_ai" onkeyup="$(this).IsTaxExtra('chpaid_net_wd_ai', 'chpaid_pub_wd_ai', '<?= $key ?>')" maxlength="15" class="input280 tx_C_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<td align="center"><input type="text" name="chpaid_tax_wk[3][<?= $key; ?>]" id="chpaid_tax_wk_ai<?= $key; ?>" data="wk_ai" onkeyup="$(this).IsTaxExtra('chpaid_net_wk_ai', 'chpaid_pub_wk_ai', '<?= $key ?>')" maxlength="15" class="input280 tx_C_3<?= $key; ?> tx_r_ai<?= $key; ?> textbox<?= $key; ?> form-control" disabled="disabled"></td>
<?php } ?>
</tr>
</table>
</div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="col-md-12 no-padding no-margin">
<div class="panel-footer ">
<div class="col-md-7 text-right" id="message__yes"></div>
<div class="col-md-3 ">
<label class="checkbox_popup pull-right">
<input type="checkbox" title="Check Display On Website" value="1" name="val" <?php echo ($hotelDetails['IsWebsite'] == 1) ? 'checked' : ''?>>
Display On Website
<span class="checkmark "></span>
</label>
</div>
<div class="col-md-2 text-right">
<a href="<?php echo $this->baseUrl('accommodation/manage'); ?>" class="btn btn-primarygray btn-sm">Cancel</a>
<button type="submit" class="btn btn-primary saveaction">Save</button>
</div>
</div>
</div>
<?php } ?>
</form>
<?php } ?>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModactpopup" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
<div class="modal fade" id="UpdateExtraMeal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
<div class="modal fade" id="myModalhotelView" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" id="hotelmodalres"> </div>
</div>
<!-- Main Content Element End-->
</div>
</div>
<?php echo $this->render('copyrightfooter.phtml'); ?>
</section>
<!--Page main section end -->
<?php include_once 'application/views/scripts/newfooter.phtml'; ?>
<link href="<?php echo $this->baseUrl('public/notify/dist/styles/metro/notify-metro.css'); ?>" rel="stylesheet" />
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/jquery.validate.min.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/notify/dist/notify.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/notify/dist/styles/metro/notify-metro.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/js/hotel/accommodation.js?v=1.2'); ?>"></script>
<?php echo $this->render('supplier/add.phtml'); ?>
<?php //echo $MaxToDateNext;die;
?>
<script>
$(document).ready(function () {
// Set div display to none
$(".hide-btn-pub").click(function () {
$(".pup_net_rate").css("display", "none");
});
// Set div display to block
$(".show-btn-pub").click(function () {
$(".pup_net_rate").css("display", "table-cell");
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$('.input80').keypress(function (e) {
//alert($(this).val().length);
if ($(this).val() == 0 && e.which == 48) {
$(this).val('');
return false;
}
});
$('.input80').on('change', function (e) {
//$(this).val('');
if ($(this).val() == 0) {
$(this).val('');
return false;
}
});
var selectorme = function (dateStr) {
var d1 = $('#from_dt').val();
//$('input[name="to_dt"]').val(d1);
var d2 = $('#to_dt').val();
var days = 0;
if (d1 && d2 && d1 != '__/__/____' && d2 != '__/__/____') {
var mdy = d1.split('/');
if (mdy[1] > 0) {
var monthSelection = mdy[1] - 1;
} else {
var monthSelection = mdy[1];
}
var d1 = new Date(mdy[2], parseInt(monthSelection), mdy[0]);
var mdy2 = d2.split('/');
if (mdy2[1] > 0) {
var monthSelection2 = mdy2[1] - 1;
} else {
var monthSelection2 = mdy2[1];
}
var d2 = new Date(mdy2[2], parseInt(monthSelection2), mdy2[0]);
var currentTime = new Date();
var dd = currentTime.getDate();
var mm = currentTime.getMonth(); //January is 0!
var yyyy = currentTime.getFullYear();
var currentDate = new Date(yyyy, mm, dd);
if (Date.parse(d1) > Date.parse(d2) || Date.parse(d1) < Date.parse(currentDate)) {
var dt = new Date(dateStr);
var currentSelectedDate = dt.setDate(dt.getDate() + 1);
var currentSelectedDate = new Date(currentSelectedDate);
var currentdd = pad(currentSelectedDate.getDate());
var currentmm = pad(currentSelectedDate.getMonth() + 1); //January is 0!
var currentyyyy = currentSelectedDate.getFullYear();
$("#to_dt").val(currentdd + '/' + currentmm + '/' + currentyyyy);
}
var days = Math.floor((Date.parse(d2) - Date.parse(d1)) / 86400000);
if (days > 0) {
var days = days;
} else {
var days = 0;
}
}
//$('#nights').val(days);
}
var selectorme1 = function (dateStr) {
var d1 = $('#booking_from_dt').val();
//$('input[name="to_dt"]').val(d1);
var d2 = $('#booking_to_dt').val();
var days = 0;
if (d1 && d2 && d1 != '__/__/____' && d2 != '__/__/____') {
var mdy = d1.split('/');
if (mdy[1] > 0) {
var monthSelection = mdy[1] - 1;
} else {
var monthSelection = mdy[1];
}
var d1 = new Date(mdy[2], parseInt(monthSelection), mdy[0]);
var mdy2 = d2.split('/');
if (mdy2[1] > 0) {
var monthSelection2 = mdy2[1] - 1;
} else {
var monthSelection2 = mdy2[1];
}
var d2 = new Date(mdy2[2], parseInt(monthSelection2), mdy2[0]);
var currentTime = new Date();
var dd = currentTime.getDate();
var mm = currentTime.getMonth(); //January is 0!
var yyyy = currentTime.getFullYear();
var currentDate = new Date(yyyy, mm, dd);
if (Date.parse(d1) > Date.parse(d2) || Date.parse(d1) < Date.parse(currentDate)) {
var dt = new Date(dateStr);
var currentSelectedDate = dt.setDate(dt.getDate() + 1);
var currentSelectedDate = new Date(currentSelectedDate);
var currentdd = pad(currentSelectedDate.getDate());
var currentmm = pad(currentSelectedDate.getMonth() + 1); //January is 0!
var currentyyyy = currentSelectedDate.getFullYear();
$("#booking_to_dt").val(currentdd + '/' + currentmm + '/' + currentyyyy);
}
var days = Math.floor((Date.parse(d2) - Date.parse(d1)) / 86400000);
if (days > 0) {
var days = days;
} else {
var days = 0;
}
}
//$('#nights').val(days);
}
function pad(n) {
return n < 10 ? '0' + n : n;
}
<?php if (empty($RateDeBySessionKey)) { ?>
$('input:checkbox').attr("disabled", true);
$('.check_markup').attr("disabled", false);
$('.promotional_rate').attr("disabled", false);
$('input[name="weekend[]"]:checkbox').attr("disabled", false);
$('input[name="val"]:checkbox').attr("disabled", false);
$('input[class="BookingType"]:checkbox').attr("disabled", false);
<?php } ?>
var MaxDate = "<?= $MaxToDateNext ?>";
var MaxDate2 = "<?= $MaxToDateNext2 ?>";
var RateDeBySessionKey = "<?= $RateDeBySessionKey[0]['FromDate'] ?>";
//alert(RateDeBySessionKey);
// $(".from_dt").change(function () {
// alert('Manual date change not allowed! Please select data from calendar');
// $(".from_dt").val(MaxDate);
// });
// $(".to_dt").change(function () {
// alert('Manual date change not allowed! Please select data from calendar');
// $(".to_dt").val(MaxDate);
// });
if (MaxDate !== '' && RateDeBySessionKey === '') {
//$('#from_dt, #from_dt_check').val(MaxDate);
}
if (MaxDate2 !== '' && RateDeBySessionKey === '') {
//$('#to_dt, #to_dt_check').val(MaxDate2);
}
//alert(MaxDate);
$('#from_dt, #from_dt_check').datetimepicker({
timepicker: false,
datepicker: true,
formatDate: 'd/m/Y',
format: 'd/m/Y',
minDate: (MaxDate) ? MaxDate : '0',
onChangeDateTime: selectorme,
//maxDate: '20/08/2017',
});
$('#to_dt, #to_dt_check').datetimepicker({
timepicker: false,
datepicker: true,
defaultSelect: false,
formatDate: 'd/m/Y',
format: 'd/m/Y',
minDate: (MaxDate2) ? MaxDate2 : '0',
onChangeDateTime: selectorme,
onShow: function (ct) {
this.setOptions({
value: ($('#from_dt').val() !== '' && $('#from_dt').val() !== '__/__/____') ? $('#from_dt').val() : '',
minDate: ($('#from_dt').val() !== '') ? $('#from_dt').val() : false,
});
}
});
$('#booking_from_dt').datetimepicker({
timepicker: false,
datepicker: true,
formatDate: 'd/m/Y',
format: 'd/m/Y',
minDate: '0',
onChangeDateTime: selectorme1,
//maxDate: '20/08/2017',
});
$('#booking_to_dt').datetimepicker({
timepicker: false,
datepicker: true,
defaultSelect: false,
formatDate: 'd/m/Y',
format: 'd/m/Y',
minDate: '0',
onChangeDateTime: selectorme1,
onShow: function (ct) {
this.setOptions({
value: ($('#booking_from_dt').val() !== '' && $('#booking_from_dt').val() !== '__/__/____') ? $('#booking_from_dt').val() : '',
minDate: ($('#booking_from_dt').val() !== '') ? $('#booking_from_dt').val() : false,
});
}
});
//Get Country Name
$("#CountryName").autocomplete({
source: '/hotel/get-country-auto-search',
minLength: 2,
select: function (event, ui) {
var CountryId = ui.item.ContId;
$("#ContId").val(CountryId);
}
});
//Get City Name
$("#city_name").focus(function () {
var country = $("#CountryName").val();
var ContId = $("#ContId").val();
if ((country == '0' || country == '')) {
//$.notify({title: 'Please select country.'}, {position:'top center',style: 'metro',className: 'error',hideDuration: 100});
alert("Please select country");
$("#CountryName").focus();
return false;
}
if ((country == '0' || country == '') || (ContId == '0' || ContId == '')) {
$.notify({
title: 'Please select valid country.'
}, {
position: 'top center',
style: 'metro',
className: 'error',
hideDuration: 100
});
//alert("Please select valid country");
$("#CountryName").focus();
return false;
}
});
$("#city_name").autocomplete({
source: function (request, response) {
$.getJSON("/hotel/get-city-auto-search", {
term: request.term,
countryId: $("#ContId").val()
},
response);
},
minLength: 2,
focus: function (event, ui) {
event.preventDefault();
$("#tags").val(ui.item.label);
},
select: function (event, ui) {
event.preventDefault();
var CitySysId = ui.item.value;
$("input[name=city_name]").val(ui.item.label);
$("#selected_city_id").val(CitySysId).trigger('change');
$("#change-city").css("display", "inherit");
$("input[name=city_name]").attr("readonly", true);
}
});
//Get Hotel Name
$("#hotel_name").focus(function () {
var city_name = $("#city_name").val();
var selected_city_id = $("#selected_city_id").val();
if ((city_name == '0' || city_name == '')) {
alert("Please select city");
$("#city_name").focus();
return false;
}
if ((city_name == '0' || city_name == '') || (selected_city_id == '0' || selected_city_id == '')) {
$.notify({
title: 'Please select valid city.'
}, {
position: 'top center',
style: 'metro',
className: 'error',
hideDuration: 100
});
//alert("Please select valid country");
$("#city_name").focus();
return false;
}
});
$("input[name=hotel_name]").autocomplete({
source: function (request, response) {
$.getJSON("/hotel/autosuggesthotel", {
term: request.term,
countryId: $("#ContId").val(),
cityId: $("#selected_city_id").val()
},
response);
},
focus: function (event, ui) {
event.preventDefault();
$("#tags").val(ui.item.label);
},
messages: {
noResults: '',
results: function () {}
},
minLength: 0,
select: function (event, ui) {
event.preventDefault();
if (ui.item.value == '-1') {
$("#hidden_new_hotel_added_via_page").val('BULK');
window.open('/accommodation/add-hotels', '_blank');
//addNewHotelPopup();
} else {
$("#change-hotel").css("display", "inherit");
$("#gethoteldetails").css("display", "inherit");
$("input[name=hotel_name]").val(ui.item.label);
$("input[name=hotel_name]").attr("readonly", true);
$("#hidden_selected_hotel_id").val(ui.item.value).trigger('change');
}
var AccomSysId = $("#hidden_selected_hotel_id").val();
//populateRoomType(AccomSysId);
//alert(AccomSysId);
checkHotelRoomType(AccomSysId);
}
});
});
function checkHotelRoomType(AccomSysId) {
$.ajax({
url: '/accommodation/check-hotel-roomtype',
data: {
AccomSysId: AccomSysId
},
type: 'POST',
dataType: 'html',
error: function () {},
beforeSend: function () {
},
success: function (response) {
var shtmldata = '<select id="room_type" name="room_type[]" multiple class="demo-default select-state" placeholder="Select room types" style="width:220px;">';
shtmldata += response;
shtmldata += '</select>';
$('td#roomTypeData').html(shtmldata);
$('#room_type').selectize({
maxItems: 1000,
create: true
});
console.log(response);
}
});
}
function changeHotel() {
$("#hidden_selected_hotel_id").val('');
$("input[name=hotel_name]").removeAttr("readonly");
$("input[name=hotel_name]").val('');
$("#room_type_div").html('<select id="room_type" name="room_type" class="form-control" placeholder="Select" style="width:125px;"><option value="0">Select</option></select>');
$("#change-hotel").hide();
$("#gethoteldetails").hide();
}
function changeCity() {
$("#selected_city_id").val('');
$("input[name=city_name]").removeAttr("readonly");
$("input[name=city_name]").val('');
$("#change-city").hide();
$("#hidden_selected_hotel_id").val('');
$("input[name=hotel_name]").removeAttr("readonly");
$("input[name=hotel_name]").val('');
$("#change-hotel").hide();
$("#gethoteldetails").hide();
}
function addNewSupplierPopup() {
document.getElementById("frmAddSupplierInventory").reset();
$("#supplier-popup-error-message-box").hide();
$("#CitySysId").html('<option value="0">Select</option>');
$("#supplier_name").val('');
$("#hidden_module_name").val('hotel');
$("#addNewSupplierForm").modal();
}
$(function () {
$("#supplier_name").autocomplete({
source: '/flight/get-supplier-auto-search',
minLength: 2,
select: function (event, ui) {
var SupplierSysId = ui.item.SupplierSysId;
if (SupplierSysId == 0) {
$("#hidden_selected_supplier_sys_id").val(SupplierSysId);
$("#supplier_name").val('');
addNewSupplierPopup();
} else {
$("#hidden_selected_supplier_sys_id").val(SupplierSysId);
}
}
});
});
function GetSupplierInfo(suppliersysID) {
$.ajax({
url: '/package/supplierinfo/',
data: {
suppliersysID: suppliersysID
},
type: 'POST',
dataType: 'html',
error: function () {},
beforeSend: function () {
var image = "<div class= 'col-md-12' style='text-align: center; top: 150px;'><img id='imgId' src='<?php echo $this->baseUrl('public/images/load3.gif'); ?>'></div>";
$("#myModactpopup").html(image);
},
success: function (response) {
$("#myModactpopup").show();
$("#myModactpopup").html(response);
//alert(response);
}
});
}
function UpdateExtraMeal(XRateSessionKey, hotel_id) {
$.ajax({
url: '/accommodation/updateextrameal/',
data: {
XRateSessionKey: XRateSessionKey,
id: hotel_id
},
type: 'POST',
dataType: 'html',
error: function () {},
beforeSend: function () {
var image = "<div class= 'col-md-12' style='text-align: center; top: 150px;'><img id='imgId' src='<?php echo $this->baseUrl('public/images/load3.gif'); ?>'></div>";
$("#UpdateExtraMeal").html(image);
},
success: function (response) {
$("#UpdateExtraMeal").show();
$("#UpdateExtraMeal").html(response);
//alert(response);
}
});
}
function closepopup() {
$("#myModactpopup").hide();
}
function closepopup1() {
$("#UpdateExtraMeal").hide();
}
var acc = document.getElementsByClassName("tabaccordion");
var i;
$('#active_0').show();
for (i = 0; i < acc.length; i++) {
acc[i].onclick = function () {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
}
}
$('.input50, .input80, .input280').keypress(function (event) {
if (event.which != 8 && isNaN(String.fromCharCode(event.which))) {
event.preventDefault();
}
});
function gethoteldetails() {
var hotelid = $('#hidden_selected_hotel_id').val();
var city = '';
$.ajax({
url: '/publicpackage/view-hotel-details',
data: {
hotelid: hotelid,
city: city
},
dataType: 'html',
type: 'POST',
error: function () {
},
beforeSend: function () {
$('#myModalhotelView').removeData('bs.modal');
var image = "<div class= 'col-md-12' style='text-align: center; top: 150px;'><img id='imgId' src='<?php echo $this->baseUrl('public/images/load3.gif'); ?>'></div>";
$("#hotelmodalres").html(image);
},
success: function (response) {
$("#hotelmodalres").html(response);
}
});
}
$('.promotional_rate').on('click',function(){
var ischecked = $(this).prop('checked');
if(ischecked == true){
$('.promotional_rate_dates').show();
}else{
$('.promotional_rate_dates').hide();
}
})
</script>
<?php if ($this->mode == 'add' || $this->mode == 'addmore') { ?>
<script>
setTimeout(function () {
$('#checkrate_typeNR').prop('checked', true).click();
$(".pup_net_rate").css("display", "none");
}, 1000);
</script>
<?php } ?>