Merge branch 'master' of github.com:hainatravel/information-system

master
赵鹏 2 years ago
commit f615f6e5a0

@ -227,7 +227,8 @@ class infofix extends CI_Controller
{
$ic_id = $this->input->get_post('ic_id');
$ic_content = $this->input->get_post('ic_content');
$this->infoContents_model->force_update($ic_id, $ic_content);
$rs = $this->infoContents_model->force_update($ic_id, $ic_content);
echo json_encode(array('status' => 1));
}
/**

@ -23,29 +23,29 @@
<p style="font-size: 22px;"><strong>Select a Ticket Type:</strong></p>
<div class="selectHotl" style="margin-bottom: 20px;">
<div class="optionLable" id="ticket_type_premium_khomloy">
<input type="radio" value="Premium+Transfer+Dinner" checked id="premium_khomloy" data-price="179" name="ticket_type">
<input type="radio" value="Premium+Transfer+Dinner" checked id="premium_khomloy" data-price="209" name="ticket_type">
<label for="premium_khomloy" style="font-size:18px;">
Premium+Transfer+Dinner
<div class="selectionMemo">
US$179 (6400THB)
US$209
</div>
</label>
</div>
<div class="optionLable" id="ticket_type_vip_khomloy">
<input type="radio" value="VIP+Transfer+Dinner" id="vip_khomloy" data-price="169" name="ticket_type">
<input type="radio" value="VIP+Transfer+Dinner" id="vip_khomloy" data-price="189" name="ticket_type">
<label for="vip_khomloy" style="font-size:18px;">
VIP+Transfer+Dinner
<div class="selectionMemo">
US$169 (5900THB)
US$189
</div>
</label>
</div>
<div class="optionLable" id="ticket_type_standard_khomloy">
<input type="radio" value="Standard+Transfer+Dinner" id="standard_khomloy" data-price="129" name="ticket_type">
<input type="radio" value="Standard+Transfer+Dinner" id="standard_khomloy" data-price="149" name="ticket_type">
<label for="standard_khomloy" style="font-size:18px;">
Standard+Transfer+Dinner
<div class="selectionMemo">
US$129 (4600THB)
US$149
</div>
</label>
</div>
@ -70,7 +70,7 @@
<input class="minaddBtn addadult" id='plusButton' type="button" value="+">
</div>
</div>
<div class="payonline_price">Total price: <strong id="totalPriceText">$129</strong></div>
<div class="payonline_price">Total price: <strong id="totalPriceText">$149</strong></div>
<p style="margin-top: 50px;"><strong>Please provide correct personal info. Double check.</strong></p>
<input class="FullName" id="ticket_realname" name="fullname"

@ -29,7 +29,7 @@
<div class="selectionMemo">
US$199
</div>
<div id='premium_khomloy_left' class="dynamic-label" style="font-size: 18px;">Sold out</div>
<div id='premium_khomloy_left' class="dynamic-label" style="font-size: 18px; display:none;">Sold out</div>
</label>
</div>
<div class="optionLable" id="ticket_type_vip_khomloy">
@ -39,7 +39,7 @@
<div class="selectionMemo">
US$179
</div>
<div id='vip_khomloy_left' class="dynamic-label" style="font-size: 18px;">65 left</div>
<div id='vip_khomloy_left' class="dynamic-label" style="font-size: 18px; display:none;">65 left</div>
</label>
</div>
<div class="optionLable" id="ticket_type_standard_khomloy">
@ -53,26 +53,6 @@
</label>
</div>
<!-- <div class="optionLable" id="ticket_type_premium_heritage" style="display: none;">
<input type="radio" value="Premium service+Exclusive Hotel Transfer+Dinner" id="premium_heritage" data-price="159" name="ticket_type">
<label for="premium_heritage" style="font-size:18px;">
Premium service+<strong>Exclusive Hotel Transfer</strong>+Dinner
<div class="selectionMemo">
US$159 (5500THB)
</div>
</label>
</div>
<div class="optionLable" id="ticket_type_vip_heritage" style="display: none;">
<input type="radio" value="VIP Service+Shuttle Transfer+Dinner" id="vip_heritage" data-price="109" name="ticket_type">
<label for="vip_heritage" style="font-size:18px;">
VIP Service+Shuttle Transfer+Dinner
<div class="selectionMemo">
US$109
</div>
</label>
</div> -->
</div>
<div id="ticket_type_errmsg" style="display: none">
<div class="requiredArea" style="margin-top:-10px;">Please select at least one option.</div>

@ -10,7 +10,7 @@
December 30th, 2024
</label>
</div>
<div class="optionLable">
<input type="radio" value="2024-12-31" checked id="december31st" name="ticket_date">
<label for="december31st">
@ -57,7 +57,7 @@
US$139 (4900THB)
<br>
Premium service + shuttle transfer + dinner
</div>
</div>
</label>
</div>
<div class="optionLable" id="vip_type_premium_december31th">
@ -83,7 +83,7 @@
US$109 (3900THB)
<br>
VIP service + shuttle transfer + dinner
</div>
</div>
</label>
</div>
<div class="optionLable" id="ticket_type_standard_december31th">
@ -96,7 +96,7 @@
US$139 (5,000 THB)
<br>
VIP service + shuttle transfer + dinner
</div>
</div>
</label>
</div>
</div>
@ -121,7 +121,7 @@
</div>
</div>
<div class="payonline_price">Total price: <strong id="totalPriceText">$129</strong></div>
<p style=" margin-top: 30px;
margin-bottom: 10px;"><strong>Please provide correct personal information for your ticket
booking. Double
@ -393,7 +393,7 @@
<option value="Åland Islands +385">Åland Islands&nbsp; &nbsp;+35818</option>
</select>
<input class="Inquiryphone" id="ticket_PhoneNo" name="PhoneNo"
placeholder="Phone number *" type="tel" value="" />
placeholder="Phone number *" type="tel" value="" />
<div id="ticket_contact_errmsg" style="display: none">
<div class="requiredArea" style="margin-top:-10px;">Please enter your phone number.</div>
</div>
@ -401,9 +401,9 @@
<p style="margin-top: 20px; margin-bottom: 10px;">For Elite Ticket bookings on December 31th, please provide your Chiang Mai hotel name and address for pick-up and drop-off purposes.</p>
<textarea name="additional_requirements" style="height: 60px;"></textarea>
<input name="total_price" id="totalPriceHidden" type="hidden" value="10000" />
<input name="product_code" id="cli_no" type="hidden" value="YDFW-AH"/>
<input name="total_price" id="totalPriceHidden" type="hidden" value="10000" />
<input name="product_code" id="cli_no" type="hidden" value="YDFW-AH"/>
<input name="itinerary" type="hidden" value="<?php echo $information->ic_title; ?>" />
<button class="sendButton" id="submit_ticket_button" name="submit_ticket_form"
type="button">Proceed to Payment</button>
@ -427,10 +427,10 @@
var totalPriceHidden = document.getElementById("totalPriceHidden");
var adultNumberValue = parseInt(adultNumberNode.value);
var currentTicketPrice = 10000;
var vip_december30thRadio = document.getElementById("vip_december30th");
var vip_december31thRadio = document.getElementById("vip_december31th");
var ticket_type_elite_december30th_div = document.getElementById("ticket_type_elite_december30th");
var ticket_type_elite_december31th_div = document.getElementById("ticket_type_elite_december31th");
var vip_type_premium_december30th_div = document.getElementById("vip_type_premium_december30th");
@ -453,15 +453,15 @@
}
var ticketDateList = document.querySelectorAll("input[name='ticket_date']");
for (var i = 0; i < ticketDateList.length; i++) {
var ticketDateNode = ticketDateList[i];
ticketDateNode.addEventListener('click', function (event) {
var currentTarget = event.currentTarget;
if (currentTarget.id === 'december30th') {
setDecember30thTicket();
} else if (currentTarget.id === 'december31th') {
setDecember31thTicket();
} else if (currentTarget.id === 'december31st') {
setDecember31stTicket();
}
});
}
@ -482,7 +482,7 @@
calcTotalPrice(currentTicketPrice, adultNumberValue);
}
function setDecember31thTicket() {
function setDecember31stTicket() {
ticket_type_elite_december30th_div.style.display = 'none';
ticket_type_elite_december31th_div.style.display = '';
@ -564,7 +564,7 @@
}
}
if (!selectedTicketType) {
if (!selectedTicketType) {
ticketTypeErrEl.style.display = '';
result = false;
}

Loading…
Cancel
Save