 |
|
อยากทำให้วันอาทิตย์-วันพฤหัสบดีเลือกแล้วราคามันไปอีกเรทนึง
ส่วนพอกดวันศุกร์-วันเสาร์คำนวนอีกเรทราคานึงนะครับ
ไม่รู้ว่าจะคำนวณยังไงดี
Code (PHP)
$('#demo').daterangepicker({
"dateLimit": {
"days": 7
},
"locale": {
"format": "MM/DD/YYYY",
"separator": " - ",
"applyLabel": "Apply",
"cancelLabel": "Cancel",
"fromLabel": "From",
"toLabel": "To",
"customRangeLabel": "Custom",
"weekLabel": "W",
"daysOfWeek": [
"Su",
"Mo",
"Tu",
"We",
"Th",
"Fr",
"Sa"
],
"monthNames": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
],
"firstDay": 1
},
"startDate": "02/16/2018",
"endDate": "02/22/2018"
}, function(start, end, label) {
console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')');
});

Tag : PHP, MySQL, HTML, JavaScript, Windows
|
ประวัติการแก้ไข 2018-02-22 10:41:33 2018-02-22 14:43:02 2018-02-22 21:12:29
|
 |
 |
 |
 |
Date :
2018-02-22 10:38:55 |
By :
Mr.Ctos |
View :
1192 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |