| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/application/views/scripts/hotel/ |
Upload File : |
<!--Page main section start-->
<section id="min-wrapper" class="active">
<div id="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!--Top header start-->
<h3 class="ls-top-header"><?php echo $this->PageTitle; ?></h3>
<!--Top header end -->
<!--Top breadcrumb start -->
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a></li>
<li class="active">Hotels List</li><li class="active">Add Hotel</li>
</ol>
<!--Top breadcrumb start -->
</div>
<!--for display message div-->
<?php if (count($this->messages)) { ?>
<div class="col-md-12" id="message_hotel_list_div">
<div class="alert alert-success">
<button aria-hidden="true" id="hideHotelListMessage" 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">
$("#hideHotelListMessage").click( function(){
$("#message_hotel_list_div").hide();
});
</script>
<!-- Main Content Element Start-->
<div class="row">
<div class="col-md-12">
<div class="alert alert-success" style="display:none">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<span id="success-message-box"></span>
</div>
<div class="alert alert-danger" style="display:none">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<span id="error-message-box"></span>
</div>
</div>
<div class="col-md-12">
<div class="leadeBorder">
<div id="ajax-page-loader" style="display:none"><img src="<?php echo $this->baseUrl('public/assets/images/ajax-loader.gif'); ?>"></div>
<div class="col-md-12" >
<div id="hotel-inventory-page-loader" style="display:none; width:100%; text-align: center; color:red; margin-top: 50px; margin-bottom: 50px;">Please wait...</div>
</div>
<div class="panel-body individualTab" id="hotel-entry-form-via-ajax">
<!-- Nav tabs -->
<ul class="nav nav-tabs icon-tab">
<li id="overview-tab" class="individual-hotels-tab active"><a href="javascript:void(0)" id="hotel_overview_tab" data-toggle="tab"><i class="fa fa-home"></i> <span>Hotel Overview</span></a></li>
</ul>
<!-- <div id="hotel-tabs-page-loader" style="display:none"><img src="<?php echo $this->baseUrl('public/assets/images/ajax-loader.gif'); ?>"></div>-->
<div id="hotel-tabs-page-loader" style="display:none; color:red; margin-top: 25px; margin-bottom: 25px; text-align: center;">Please wait...</div>
<div id="individual-hotel-ajax-content">
<form name="frmHotelOverview" id="frmHotelOverview" method="post" action="<?php echo $this->baseUrl('hotel/save-hotel'); ?>">
<!-- Tab panes -->
<div class="tab-content tab-border">
<div class="tab-pane fade in active" id="home">
<div class="col-md-12 no-padding no-margin">
<div class="col-md-6">
<div class="form-group">
<label>Hotel Name</label>
<input type="text" name="hotel_name" id="hotel_name" value="<?php if(!empty($this->arrHotelInfo['Title'])) { echo $this->arrHotelInfo['Title']; } ?>" class="form-control" maxlength="200">
<input type="hidden" name="hidden_selected_hotel_id" id="hidden_selected_hotel_id" value="<?php if($this->arrHotelInfo['AccomSysId']) { echo $this->arrHotelInfo['AccomSysId']; } else { echo "0"; } ?>" class="form-control" maxlength="200">
</div>
<div class="form-group">
<label>Hotel Chain</label>
<select id="hotel_chain" name="hotel_chain" class="form-control" placeholder="Select">
<option value="0">Select</option>
<?php
if(!empty($this->arrAccomodationGroups) ) {
foreach($this->arrAccomodationGroups as $group) { ?>
<option value="<?php echo $group['AccomGrSysId']; ?>" <?php if($this->arrHotelGroupInfo['AccomGrSysId']==$group['AccomGrSysId']) { echo "Selected"; } ?>><?php echo $group['Title']; ?></option>
<?php }
}
?>
</select>
</div>
<div class="form-group">
<label>Accommodation Type</label>
<select id="hotel_type" name="hotel_type" class="form-control" placeholder="Select">
<option value="">Select</option>
<?php
if(!empty($this->arrAccomodationEconomyType) ) {
foreach($this->arrAccomodationEconomyType as $type) { ?>
<option value="<?php echo $type['EconomyType']; ?>" <?php if($this->arrHotelInfo['EconomyTypeId'] == $type['EconomyType']) echo "selected"; ?>><?php echo $type['Title']; ?></option>
<?php }
}
?>
</select>
</div>
<?php
$arrStarRatings = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getStarRatings();
?>
<div class="form-group">
<label>Star Rating</label>
<select id="star_rating" name="star_rating" class="form-control" placeholder="Select">
<option value="">Select</option>
<?php
if(!empty($arrStarRatings) ) {
while ( list($key, $value) = each($arrStarRatings) ) { ?>
<option value="<?php echo $key; ?>" <?php if($this->arrHotelInfo['Stars'] == $key) echo "selected"; ?>><?php echo $value; ?></option>
<?php
}
}
?>
</select>
</div>
<div class="form-group">
<label>Check-In Time</label>
<input type="text" id="CheckinTime" name="CheckinTime" class="form-control timePickerOnly" value="<?php echo trim($this->arrHotelInfo['CheckinTime']); ?>">
<!-- <span class="input-group-addon dateTimePickerCustom1"><i class="fa fa-calendar"></i></span>-->
</div>
<div class="form-group">
<label>Check-Out Time</label>
<input type="text" id="CheckOutTime" name="CheckOutTime" class="form-control timePickerOnly" value="<?php echo trim($this->arrHotelInfo['CheckOutTime']); ?>">
<!-- <span class="input-group-addon dateTimePickerCustom1"><i class="fa fa-calendar"></i></span>-->
</div>
<!-- <div class="form-group">
<label>Total Room Capacity</label>
<input type="text" id="RoomCounts" name="RoomCounts" class="form-control numberonly" value="<?php //echo $this->arrHotelInfo['RoomCounts']; ?>" maxlength="4">
</div>-->
<div class="form-group">
<label>Country </label>
<?php if(!empty($this->arrHotelInfo['CountryName'])) { ?>
<select class="form-control" id="select_hotel_country" name="select_hotel_country">
<option value="<?php echo $this->arrHotelInfo['ContSysId']; ?>"><?php echo $this->arrHotelInfo['CountryName']; ?></option>
</select>
<?php } else { ?>
<select id="select_hotel_country" name="select_hotel_country" class="form-control" placeholder="Select" onchange="populateCity();">
<option value="">Select</option>
<?php
if(!empty($this->arrCountryList) ) {
foreach($this->arrCountryList as $country) {?>
<option value="<?php echo $country['ContId']; ?>"><?php echo $country['Title']; ?></option>
<?php }
}
?>
</select>
<?php } ?>
</div>
<!-- <div class="form-group">
<label>State </label>
<select id="select-hotel-state" name="select-hotel-state" class="form-control" placeholder="Select">
<option value="0">Select</option>
</select>
</div>-->
<div class="form-group">
<label>City </label>
<?php if(!empty($this->arrHotelInfo['CityName'])) { ?>
<select id="select_hotel_city" name="select_hotel_city" class="form-control" placeholder="Select">
<option value="<?php echo $this->arrHotelInfo['CitySysId']; ?>"><?php echo $this->arrHotelInfo['CityName']; ?></option>
</select>
<?php } else { ?>
<select id="select-hotel-city" name="select_hotel_city" class="form-control" placeholder="Select">
<option value="">Select</option>
</select>
<?php } ?>
</div>
<div class="form-group">
<label>Pin Code</label>
<input type="text" id="pinCode" name="pinCode" class="form-control numberonly" value="<?php echo trim($this->arrHotelInfo['PinCode']); ?>" maxlength="6">
</div>
<div class="form-group">
<label>Hotel Address</label>
<textarea placeholder="" name="address" id="address" class="form-control"><?php echo trim($this->arrHotelInfo['Address']); ?></textarea>
</div>
<div class="form-group">
<label>Latitude</label>
<input type="text" id="latitude" name="latitude" class="form-control numberonly" value="<?php echo trim(@$this->arrHotelInfo['GeoLat']); ?>" maxlength="20">
</div>
<div class="form-group">
<label>Longitude</label>
<input type="text" id="longitude" name="longitude" class="form-control numberonly" value="<?php echo trim(@$this->arrHotelInfo['GeoLong']); ?>" maxlength="20">
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">About Hotel</h3>
</div>
<div class="panel-body">
<!-- <div class="summernote">Enter ...</div>-->
<textarea id="brief" name="brief" class="form-control"><?php echo $this->arrHotelInfo['Brief']; ?></textarea>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-search"></i> Find Location</h3>
</div>
<div class="panel-body no-padding">
<div id="findLocation">
</div>
<div class="mapDirectionsData">
<div class="form-group form-group1">
<input class="form-control" type="text" id="findLocationArea" value="" placeholder="Address here"/>
</div>
<button id="findLocationSubmit" type="button" class="btn ls-red-btn"><i class="fa fa-search"></i> Search</button>
</div>
</div>
</div>
<!-- <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-upload"></i> Upload Photo</h3>
</div>
<div class="panel-body">
<input id="file-1" type="file" class="file whbg" multiple=false data-preview-file-type="any">
</div>
</div>-->
</div>
</div>
<div class="clear"></div></div>
</div>
<div class="col-md-12 no-padding no-margin">
<div class="panel-footer text-right">
<button type="submit" class="btn btn-success" id="save-overview" onclick="return hotelValidate();">Save</button>
<a href="<?php echo $this->baseUrl('hotel/manage-hotel'); ?>" class="btn btn-success btn-sm">Cancel</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content Element End-->
</div>
</div>
<!--Page main section end -->
<div class="modal fade " id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
</div>
</div>
</div>
<?php echo $this->render('copyrightfooter.phtml'); ?>
</section>
<!--Page main section end -->
<?php include_once 'application/views/scripts/newfooter.phtml';?>
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/jquery.validate.min.js'); ?>"></script>
<!-- Date & Time Picker Library Script Start -->
<script src="<?php echo $this->baseUrl('public/assets/js/jquery.datetimepicker.js'); ?>"></script>
<!-- Date & Time Picker Library Script End -->
<!--Demo for Date, Time Color Picker Script Start -->
<script src="<?php echo $this->baseUrl('public/assets/js/pages/pickerTool.js'); ?>"></script>
<!--Demo for Date, Time Color Picker Script End -->
<!--selectize Library start-->
<script src="<?php echo $this->baseUrl('public/assets/js/selectize.min.js'); ?>"></script>
<!--selectize Library End-->
<!--Select & Tag demo start-->
<script src="<?php echo $this->baseUrl('public/assets/js/pages/selectTag.js'); ?>"></script>
<!--Select & Tag demo end-->
<script type="text/javascript">
$( document ).ready(function() {
var val1 = '<?php if(isset($this->arrHotelInfo['CheckinTime'])) { echo trim($this->arrHotelInfo['CheckinTime']); } else { echo "__:__"; } ?>';
//alert(val1);
var val2 = '<?php if(isset($this->arrHotelInfo['CheckOutTime'])) { echo trim($this->arrHotelInfo['CheckOutTime']); } else { echo "__:__"; } ?>';
$('#CheckinTime').val(val1);
$('#CheckOutTime').val(val2);
});
</script>
<script type="text/javascript">
function populateCity() {
var intCountryId = $("#select-hotel-country").val();
$.ajax({
url : '<?php echo $this->baseUrl('/general/getcitydropdown') ?>',
data : { intCountryId : intCountryId },
type : 'POST',
dataType : 'html',
beforeSend : function() {
$("#select-hotel-city").empty();
},
success : function(response) {
$("#select-hotel-city").append(response);
}
});
}
</script>