酒店预订 单一日期选择 PHP
我正在尝试编辑 WordPress Traveler 主题,其中仅通过单个日期选择来选择签入和签出日期,但我遇到了问题。我已经删除了结帐部分,但当单击到达/出发时,它仍然显示多个日期选择。我怎样才能使它成为单一约会?
https://taskchimps.com/hotels/st_hotel/graace-hotel/
<?php
$start = STInput::get('start', date(TravelHelper::getDateFormat()));
$end = STInput::get('end', date(TravelHelper::getDateFormat(), strtotime("+ 1 day")));
$date = STInput::get('date', date('d/m/Y h:i a'). '-'. date('d/m/Y h:i a', strtotime('+1 day')));
$has_icon = (isset($has_icon))? $has_icon: false;
?>
<div class="form-group form-date-field date-enquire form-date-search clearfix <?php if($has_icon) echo ' has-icon '; ?>" data-format="<?php echo TravelHelper::getDateFormatMoment() ?>">
<?php
if($has_icon){
echo TravelHelper::getNewIcon('ico_calendar_search_box');
}
?>
<div class="date-wrapper clearfix">
<div class="check-in-wrapper">
<div class="st-item-date">
<label><?php echo __('Arrival / Departure', 'traveler'); ?></label>
<div class="render check-in-render"><?php echo esc_html($start); ?></div>
</div>
</div>
</div>
<input type="hidden" class="check-in-input" value="<?php echo esc_attr($start) ?>" name="start">
<input type="text" class="check-in-out" value="<?php echo esc_attr($date); ?>" name="date">
</div>
I'm trying to edit WordPress Traveler Theme where they have Checkin and Checkout Date selection by just single date selection and I'm having issues with it. I already removed the checkout section but when clicking on the Arrival / Departure it still shows multiple date selection. How can I make it a single date?
https://taskchimps.com/hotels/st_hotel/graace-hotel/
<?php
$start = STInput::get('start', date(TravelHelper::getDateFormat()));
$end = STInput::get('end', date(TravelHelper::getDateFormat(), strtotime("+ 1 day")));
$date = STInput::get('date', date('d/m/Y h:i a'). '-'. date('d/m/Y h:i a', strtotime('+1 day')));
$has_icon = (isset($has_icon))? $has_icon: false;
?>
<div class="form-group form-date-field date-enquire form-date-search clearfix <?php if($has_icon) echo ' has-icon '; ?>" data-format="<?php echo TravelHelper::getDateFormatMoment() ?>">
<?php
if($has_icon){
echo TravelHelper::getNewIcon('ico_calendar_search_box');
}
?>
<div class="date-wrapper clearfix">
<div class="check-in-wrapper">
<div class="st-item-date">
<label><?php echo __('Arrival / Departure', 'traveler'); ?></label>
<div class="render check-in-render"><?php echo esc_html($start); ?></div>
</div>
</div>
</div>
<input type="hidden" class="check-in-input" value="<?php echo esc_attr($start) ?>" name="start">
<input type="text" class="check-in-out" value="<?php echo esc_attr($date); ?>" name="date">
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论