更新桌面端底部表单

hotfix/paypal-note
LiaoYijun 4 years ago
parent 20dd54a006
commit 6f43e0ea92

@ -156,44 +156,48 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<div class="form_content_bg"></div>
<div class="form_content">
<div class="formtitle">
<h2>Why Travel with Global Highlights</h2>
<ul>
<li class="tailormade"><strong>Tailor-made experience:</strong> All of your ideas/needs will be carefully considered to create your ideal trip.</li>
<li class="worryfree"><strong>Worry-free planning: </strong>Every step of your trip, you will be looked after by your 1:1 travel consultant based in Asia.</li>
<li class="norisk"><strong>No-risk booking:</strong> We refund as much as we can and adapt flexibly to unexpected changes.</li>
<li class="tailormade"><strong>Tailor-made experience:</strong> All of your ideas/needs will be carefully
considered to create your ideal trip.</li>
<li class="worryfree"><strong>Worry-free planning: </strong>Every step of your trip, you will be looked
after by your 1:1 travel consultant based in Asia.</li>
<li class="norisk"><strong>No-risk booking:</strong> We refund as much as we can and adapt flexibly to
unexpected changes.</li>
</ul>
</div>
<div class="ghwhyus">
<form action="/form/save" id="booking_form_inquiry" method="post" name="booking_form_inquiry">
<div class="InquiryFormBox">
<div class="FieldSet">
<p><input class="FullName" data-required="Please enter your fullname" id="realname" name="realname" placeholder="Full name" required="" type="text" value=""> <span class="hidden" id="realname_errmsg"></span></p>
<p><input class="EmailAddress" data-required="Please enter your e-mail address" data-pattern="Expecting an e-mail address" id="email" name="email" pattern="^[\w\-\.]+@[\w\-\.]+(\.\w+)+$" placeholder="Email" required="" type="text" value=""> <span class="hidden" id="email_errmsg"></span></p>
<p><input class="InquiryCalendar hasDatepicker" data-min-date="7" id="starting_date" name="starting_date" placeholder="Starting date" required="" type="date" value="" min="2021-11-02"> <span class="hidden" id="starting_date_errmsg"></span></p>
<p><input class="Inquiryphone hasDatepicker" name="phone" placeholder="Phone or other ways to contact you" required="" type="text" value=""> </p>
<textarea id="additionalrequirements" name="additionalrequirements" placeholder="How many people, hotel style and changes to make... " style="margin-bottom:20px;"></textarea>
<p><input class="FullName" data-required="Please enter your fullname" id="realname" name="realname"
placeholder="Full name" required="" type="text" value=""></p>
<p><input class="EmailAddress" data-required="Please enter your e-mail address"
data-pattern="Expecting an e-mail address" id="email" name="email" pattern="^[\w\-\.]+@[\w\-\.]+(\.\w+)+$"
placeholder="Email" required type="text" value=""></p>
<p><input class="InquiryCalendar hasDatepicker" data-min-date="7" id="starting_date" name="starting_date"
placeholder="Starting date" required type="date"></p>
<p><input class="Inquiryphone hasDatepicker" name="phone" placeholder="Phone or other ways to contact you"
type="text"> </p>
<textarea id="additionalrequirements" name="additionalrequirements"
placeholder="How many people, hotel style and changes to make... " style="margin-bottom:20px;"></textarea>
<input name="nullemail" placeholder="Your alternative email?" type="hidden" value="">
<input name="cli_no" type="hidden" value="">
<input name="cli_sn" type="hidden" value="">
<input id="url" name="url" type="hidden" value="file:///D:/globalhighlights.com/design/top-nav.html">
<input id="url" name="url" type="hidden">
<input id="sourcetype" name="sourcetype" type="hidden" value="32113">
<button class="sendButton" id="submit_booking_form_inquiry" name="booking_form_inquiry_list" type="submit">
Send My Inquiry
</button>
</div>
</div>
</form>
<script>
(function() {
String.prototype.lpad = function(padString, length) {
</div>
</div>
<script>
(function () {
String.prototype.lpad = function (padString, length) {
var str = this;
while (str.length < length)
str = padString + str;
@ -203,7 +207,10 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
const dateOffset = document.getElementById('starting_date').dataset.minDate;
const today = new Date();
const startMinDate = new Date(today.setDate(today.getDate() + parseInt(dateOffset)));
const minDateStr = startMinDate.getFullYear() + '-' + (startMinDate.getMonth() + 1).toString().lpad('0', 2) + '-' + startMinDate.getDate().toString().lpad('0', 2);
const minDateStr =
startMinDate.getFullYear() + '-' +
(startMinDate.getMonth() + 1).toString().lpad('0', 2) + '-' +
startMinDate.getDate().toString().lpad('0', 2);
document.getElementById('starting_date').setAttribute("min", minDateStr);
const required_fields = document.querySelectorAll(":required");
required_fields.forEach(element => {
@ -217,10 +224,8 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
}
});
});
})();
</script>
</div>
</div>
})();
</script>
</div>

Loading…
Cancel
Save