ไทยสมายล์ จับมือ สถาบันค้นคว้าและพัฒนาผลิตภัณฑ์อาหาร มก. ดันสินค้าเกษตรแปรรูป สู่ต่างชาติ
ฉัตรชัย ปานอยู่ (ที่สี่จากขวา) รักษาการประธานเจ้าหน้าที่ บริษัท ไทยสมายล์แอร์เวย์ จำกัด พร้อมด้วย รศ.ดร.สมบัติ ชิณะวงศ์ ผู้อำนวยการสถาบันค้นคว้าและพัฒนาผลิตภัณฑ์อาหาร มหาวิทยาลัยเกษตรศาสตร์ ร่วมลงนามบันทึกข้อตกลงความร่วมมือ “โครงการสร้างรอยยิ้มให้เกษตรกรไทย” ส่งเสริมสินค้าเกษตรแปรรูปเพื่อบริการบนเครื่องบิน หวังแก้ปัญหาผลผลิตเกษตรล้นตลาด ช่วยเกษตรกร เพิ่มมูลค่า กระจายรายได้ เผยแพร่เกษตรไทยสู่ต่างชาติ โดยมี เนตรนภางค์ ธีระวาส (ที่สามจากขวา) ประธานเจ้าหน้าที่สายการบริหารลูกค้า บริษัท ไทยสมายล์แอร์เวย์ จำกัด และ สัญชาญ สถาพรวุฒิคุณ (ที่สองจากขวา) ผู้อำนวยการฝ่ายบริการบนเครื่องบิน บริษัท ไทยสมายล์ แอร์เวย์ จำกัด ร่วมในพิธี ณ สถาบันค้นคว้าและพัฒนาผลิตภัณฑ์อาหาร มหาวิทยาลัยเกษตรศาสตร์ เมื่อเร็วๆ นี้
ฝ่ายสื่อสารองค์กร บริษัท ไทยสมายล์แอร์เวย์ จำกัด
คุณกุลนิษฐ์ นาคเลขา โทร 02 117 8762
THAI Smile has recently canceled flight from Bangkok – Surat Than..
即日起可在7-11支付泰微笑航空的机票款啦
', { value: _arr[a], "data-value": _arr[a], text: objDataMapping[_arr[a]], class:"DestinationDeskTop-stations" })); $('#M-'+n).append($('', { value: _arr[a], text: objDataMapping[_arr[a]] })); if($('.to_input').length > 0){ if($('.to_input').val() == _arr[a]){ $('.DestinationDeskTop').val(objDataMapping[_arr[a]]); } } if(!_bol){ _bol = true; selDestination = objDataMapping[_code+"_markets_"+i]; } } } $('.DestinationpickerM').selectpicker("rander"); if($('.to_input').length > 0){ $('.DestinationpickerM').selectpicker('val', $('.to_input').val()); } if(OriginpickerSelect == 1){ OriginpickerSelect = 0; $('.DestinationpickerM').selectpicker('toggle'); } $('.DestinationpickerM').on('changed.bs.select', function (e) { trace("test"); selDestination = $('.DestinationpickerM').selectpicker('val'); trace("test "+ $("select.DestinationpickerM option[value=" + selOrigin +"]").text()); $('.DestinationDeskTop').val($("select.DestinationpickerM option[value=" + selOrigin +"]").text()); }); $( ".DestinationpickerM" ).change(function() { trace("test"); }); //finish EDIT 2// } function setEventOrigin(){ $('#Origin').on('change', function() { selOrigin = $(this).val() selDestination = ''; getDestination($(this).val()); }); } function setEventDestination(){ if($('.to_input').length > 0){ selDestination = $('.to_input').val(); trace("selDestination "+selDestination); } } /////////////////////// สิ้นสุด cgode เรื่องต้นทาง สถานี ปลายทาง//////////////////////////// function setDataForPassenger(){ $('#ADT').empty() for(var i=1;i<=9;i++){ $('#ADT').append($('', { value: i, text: i })); } $('#CHD').empty() $('#CHD').append($('', { value: '', text: '' })); for(i=1;i<=9;i++){ $('#CHD').append($('', { value: i, text: i })); } $('#inl').empty() $('#inl').append($('', { value: '', text: '' })); for(i=1;i<=9;i++){ $('#inl').append($('', { value: i, text: i })); } } $( "body" ).on( "click", ".Fsubmit", function() { ////////////////////alert("test submit"); console.log('zh'); console.log($('.OriginpickerDeskTop').attr('market')); console.log('News_detail'); dataLayer.push({ 'language': 'zh', 'market': $('.OriginpickerDeskTop').attr('market'), 'page_type': 'News_detail' }); //var selOrigin = $('.OriginpickerDeskTop-stations').attr("data-value"); //var selDestination = $('.DestinationDeskTop-stations').attr("data-value"); // check One City or Multi City $(".OriginpickerDeskTop").removeClass("validate_feild"); $(".DestinationDeskTop").removeClass("validate_feild"); $(".picker_img_dd2").removeClass("validate_feild"); $(".picker_img").removeClass("validate_feild"); $(".picker_img").removeClass("validate_feild"); var check_city = $("#newbooking ul.flight_active").attr('id'); if (check_city == "div_onecity" ){ check_city = "onecity"; } else { check_city = "multicity"; } //For Multi City //console.log(check_city); if ($(".OriginpickerDeskTop").hasClass("check-switch")) { ////console.log("check-switch"); selDestination = $('.DestinationDeskTop').attr("data-switch"); selOrigin = $('.OriginpickerDeskTop').attr("data-switch"); } else { ////console.log("check-switch-none"); if (check_city == "multicity") { var Originphrases = []; $('#divdrop .newbookingbox').each(function(){ // this is inner scope, in reference to the .phrase element var phrase = ''; $(this).find('.origin_desktop').each(function(){ // cache jquery var var current = $(this); // check if our current li has children (sub elements) // if it does, skip it // ps, you can work with this by seeing if the first child // is a UL with blank inside and odd your custom BLANK text if(current.children().size() > 0) {return true;} // add current text to our current phrase phrase += current.attr("data-switch"); }); // now that our current phrase is completely build we add it to our outer array Originphrases.push(phrase); }); var destinationphrases = []; $('#divdrop .newbookingbox').each(function(){ // this is inner scope, in reference to the .phrase element var phrase = ''; $(this).find('.destination_desktop').each(function(){ // cache jquery var var current = $(this); // check if our current li has children (sub elements) // if it does, skip it // ps, you can work with this by seeing if the first child // is a UL with blank inside and odd your custom BLANK text if(current.children().size() > 0) {return true;} // add current text to our current phrase phrase += current.attr("data-switch"); }); // now that our current phrase is completely build we add it to our outer array destinationphrases.push(phrase); }); // note the comma in the //////////////////////////////////////////////////alert shows separate phrases ////////////////////////////////////////////////////alert(phrases); selDestination = destinationphrases; selOrigin = Originphrases; }//For if multi city else{ selDestination = $('.DestinationDeskTop').attr("data-switch"); selOrigin = $('.OriginpickerDeskTop').attr("data-switch"); } }//else //console.log("Origin = "+selOrigin); //console.log("Destination = "+selDestination); ////////////////////////////////////////////////////alert(selDestination); // //console.log(selSmlType); //var date_orgin = $('.dd1').val(); //var date_destination = $('.dd2').val(); //var check_trip = $('.oneway').is(':checked'); var date_orgin = $('.dd1').val(); var date_destination = $('.dd2').val(); var check_trip = $('.oneway').is(':checked'); //if(selOrigin!='' && selDestination!=''&& selDestination!='undefined'){ //flight_active // Check flight_active before send tripflow //if(selOrigin!='' && selDestination!=''){ if (check_city == "multicity") { ////////////////////////////////////////////////////alert(check_city); var check_OriginpickerDeskTop = $('#origin1 .OriginpickerDeskTop').val(); var check_DestinationDeskTop = $('#origin1 .DestinationDeskTop').val(); var check_OriginpickerDeskTop2 = $('#origin2 .OriginpickerDeskTop').val(); var check_DestinationDeskTop2 = $('#origin2 .DestinationDeskTop').val(); } else { var check_OriginpickerDeskTop = $('#onecity .OriginpickerDeskTop').val(); var check_DestinationDeskTop = $('#onecity .DestinationDeskTop').val(); var check_OriginpickerDeskTop2 = "none"; var check_DestinationDeskTop2 = "none"; var check_date_value = $('#onecity .picker_img').text(); if (check_date_value == ""){ //////////////////////////////////////////////alert("ว่าง"); } } if($(window).width() < 700) { var check_count_adult_label = parseInt($("#slider-step-value-adult").text()); $('.ADULT').val(check_count_adult_label); var check_count_chlid_label = parseInt($("#slider-step-value-child").text()); $('.CHILD').val(check_count_chlid_label); var check_count_infant_label = parseInt($("#slider-step-value-infant").text()); $('.INFANT').val(check_count_infant_label); var check_count_senior_label = parseInt($("#slider-step-value-senior").text()); $('.senior').val(check_count_senior_label); var check_count_student_label = parseInt($("#slider-step-value-student").text()); $('.student').val(check_count_student_label); } else { var check_count_adult_label = parseInt($("#amount-label").text()); $('.ADULT').val(check_count_adult_label); var check_count_chlid_label = parseInt($("#duration-label").text()); $('.CHILD').val(check_count_chlid_label); var check_count_infant_label = parseInt($("#infant-label").text()); $('.INFANT').val(check_count_infant_label); var check_count_senior_label = parseInt($("#senior-label").text()); $('.senior').val(check_count_senior_label); var check_count_student_label = parseInt($("#student-label").text()); $('.student').val(check_count_student_label); } var param = ''; param += 'o1='+selOrigin; param += '&d1='+selDestination; param += '&smltype='+selSmlType; // if($('.ADULT').selectpicker('val')){ // param += '&ADT='+$('.ADULT').selectpicker('val'); // } // if($('.CHILD').selectpicker('val')){ // param += '&CHD='+$('.CHILD').selectpicker('val'); // } // if($('.INFANT').selectpicker('val')){ // param += '&inl='+$('.INFANT').selectpicker('val'); // } if($('.ADULT').val()){ param += '&ADT='+$('.ADULT').val(); } if($('.CHILD').val()){ param += '&CHD='+$('.CHILD').val(); } if($('.INFANT').val()){ param += '&inl='+$('.INFANT').val(); } if($('.senior').val()){ param += '&sen='+$('.senior').val(); } if($('.student').val()){ param += '&stu='+$('.student').val(); } //กรณีที่เลือก one way ไม่ต้องส่งค่า dd2 ไป// param += '〈=CN'; if($('.oneway').is(':checked')){ param += '&dd1='+$('.dd1').val(); } else { if (check_city == "multicity") { param += '&dd1='+$('#divdrop .dd1').val(); param += '&dd2='+$('#divdrop .dd2').val(); } else { param += '&dd1='+$('#onecity .dd1').val(); param += '&dd2='+$('#onecity .dd2').val(); } //param += '&r=true'; param += '&r='+check_city; } trace('param : '+param); if (check_city != "multicity") { if ($('#div_onecity').hasClass('flight_active')) { if ($(".i-check").hasClass('checked')) { if (($("#div_onecity .OriginpickerDeskTop").val() == '') || ($("#div_onecity .DestinationDeskTop").val() == '') || ($("#div_onecity .picker_img").hasClass("hascalendar") == false ) ){ console.log("Have 0"); if (($("#div_onecity .OriginpickerDeskTop").val() == '')) { $("#div_onecity .OriginpickerDeskTop").addClass("validate_feild"); } if (($("#div_onecity .DestinationDeskTop").val() == '')) { $("#div_onecity .DestinationDeskTop").addClass("validate_feild"); } if (($("#div_onecity .picker_img").hasClass("hascalendar") == false)) { $("#div_onecity .picker_img").addClass("validate_feild"); } var pass = "validation"; console.log("one way"); //exit(); } } else { if (($("#div_onecity .OriginpickerDeskTop").val() == '') || ($("#div_onecity .DestinationDeskTop").val() == '') || ($("#div_onecity .picker_img").hasClass("hascalendar") == false ) || ($("#div_onecity .picker_img_dd2").hasClass("hascalendar") == false ) ){ console.log("Have 0"); //$("#popup_div_validation").slideDown(500); //$("#popupbox_validation").delay(500).fadeIn(500); if (($("#div_onecity .OriginpickerDeskTop").val() == '')) { $("#div_onecity .OriginpickerDeskTop").addClass("validate_feild"); } if (($("#div_onecity .DestinationDeskTop").val() == '')) { $("#div_onecity .DestinationDeskTop").addClass("validate_feild"); } if (($("#div_onecity .picker_img").hasClass("hascalendar") == false)) { $("#div_onecity .picker_img").addClass("validate_feild"); } if (($("#div_onecity .picker_img_dd2").hasClass("hascalendar") == false)) { $("#div_onecity .picker_img_dd2").addClass("validate_feild"); } var pass = "validation"; //exit(); } } } } else { if ($('#divdrop').hasClass('flight_active')) { if (($("#origin1 .OriginpickerDeskTop").val() == '') || ($("#origin1 .DestinationDeskTop").val() == '') || ($("#origin1 .picker_img").hasClass("hascalendar") == false ) ){ console.log("Have 1"); //$("#popup_div_validation").slideDown(500); //$("#popupbox_validation").delay(500).fadeIn(500); if (($("#origin1 .OriginpickerDeskTop").val() == '')) { $("#origin1 .OriginpickerDeskTop").addClass("validate_feild"); } if (($("#origin1 .DestinationDeskTop").val() == '')) { $("#origin1 .DestinationDeskTop").addClass("validate_feild"); } if (($("#origin1 .picker_img").hasClass("hascalendar") == false)) { $("#origin1 .picker_img").addClass("validate_feild"); } var pass = "validation"; //exit(); } } if ($('#divdrop').hasClass('flight_active')) { if (($("#origin2 .OriginpickerDeskTop").val() == '') || ($("#origin2 .DestinationDeskTop").val() == '') || ($("#origin2 .picker_img_dd2").hasClass("hascalendar") == false ) ){ console.log("Have 2"); // $("#popup_div_validation").slideDown(500); //$("#popupbox_validation").delay(500).fadeIn(500); if (($("#origin2 .OriginpickerDeskTop").val() == '')) { $("#origin2 .OriginpickerDeskTop").addClass("validate_feild"); } if (($("#origin2 .DestinationDeskTop").val() == '')) { $("#origin2 .DestinationDeskTop").addClass("validate_feild"); } if (($("#origin2 .picker_img_dd2").hasClass("hascalendar") == false)) { $("#origin2 .picker_img_dd2").addClass("validate_feild"); } var pass = "validation"; //exit(); } } } // For check popup message if (pass == "validation") { exit(); } else { var destination_array = ["DMK", "HGN", "BKK", "CEI", "CNX", "HDY", "HKT", "KKC", "UBP", "URT", "UTH", "NAW", "USM", "UPH", "KBV"]; var total_special = $("#total-special").text(); if ((jQuery.inArray(selDestination, destination_array)!='-1') && (jQuery.inArray(selOrigin, destination_array)!='-1') && (total_special != '0') ){ //////////////////////////////////////////alert(selDestination + ' is in the array!'); $("#popup_ok").removeAttr( "data-link" ); $("#popup_div_check_inbound").slideDown(500); $("#popupbox_inbound").delay(500).fadeIn(500); $("#popup_ok_inbound").attr( "data-link", param); } else { if((selOrigin =='BKK') && (selDestination=='REP') && (date_orgin==date_destination) && (check_trip === false)){ $("#popup_ok").removeAttr( "data-link" ); $("#popup_div").slideDown(500); $("#popupbox").delay(500).fadeIn(500); $("#popup_ok").attr( "data-link", param); } else { //window.open('/thaismiletripflow/tripflow4_for_new_booking_test_new_fare.php?'+param+'&s=true&mon=true&stm=%241%24eAbUgiF1%24qWm5Y%2FJI%2FIkKgPupNzFIb%2F','_blank'); var newparam = QueryStringToJSON(param+'&s=true&mon=true'); $.ajax({ url: '/thaismiletripflow/prepare_tripflow5', type: 'POST', data: newparam, async: false, cache: false, beforeSend: function(returndata) { //console.log(this.data); }, success: function (response) { //console.log(response); var form = document.createElement("form"); var element1 = document.createElement("input"); form.method = "POST"; form.action = "/thaismiletripflow/tripflow5_for_new_booking"; var ua = navigator.userAgent || navigator.vendor || window.opera; var inapp = false; if((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1) || (ua.indexOf("Line") > -1) || (ua.indexOf("MicroMessenger") > -1) || (ua.indexOf("Instagram") > -1)){ inapp = true; } if(!inapp){ form.target = "_blank"; } element1.value=response; element1.name="apir"; form.appendChild(element1); document.body.appendChild(form); form.submit(); }, error: function () { window.open('//www.thaismileair.com'); } }); } } } }); // ฟังก์ชั่น // function getJson(url,callback){ var obj = new Object(); trace("getJsonURL : "+url); trace("==============="); $.ajaxSetup({ headers: { 'Authorization': "Basic V1VOREVSTUFOOldVTkRFUkBQUkRfTURX", 'Accept-Language' : 'zh-CHS' //Response language format. Ex: en-US, th-TH, zh-CHS } }); //$.getJSON( url+'&callback=?',onComplete); $.getJSON( url,onComplete); function onComplete(e){ trace("onComplete"); trace(e); callback(e); } } }); $(function() { $('.text-search').tagEditor({ initialTags: [], delimiter: ',', placeholder: $('.text-search').attr("placeholder"), forceLowercase: false, beforeTagSave: function(field, editor, tags, tag, val) { }, onChange: function(field, editor, tags) { var keyword = (tags.length ? tags.join(',') : ''); var url = $('.text-search').attr("data-url"); if(keyword != ""){ if(url.indexOf("?") > -1){ window.location.href = url+"&search="+keyword; } else { window.location.href = url+"?search="+keyword; } } } , beforeTagDelete: function(field, editor, tags, val) { trace(tags.length); if(tags.length == 1){ var url = $('.text-search').attr("data-url"); window.location.href = url; } else { var keyword = (tags.length ? tags.join(',') : ''); var url = $('.text-search').attr("data-url"); if(keyword != ""){ } } } }).css('display', 'block').attr('readonly', true); $('.text-search-tour').tagEditor({ initialTags: [], delimiter: ',', placeholder: ' Search', beforeTagSave: function(field, editor, tags, tag, val) { }, onChange: function(field, editor, tags) { var keyword = (tags.length ? tags.join(',') : ''); var url = $('.text-search-tour').attr("data-url"); if(keyword != ""){ if(url.indexOf("?") > -1){ window.location.href = url+"&search="+keyword; } else { window.location.href = url+"?search="+keyword; } } } , beforeTagDelete: function(field, editor, tags, val) { trace(tags.length); if(tags.length == 1){ var url = $('.text-search-tour').attr("data-url"); window.location.href = url; } else { var keyword = (tags.length ? tags.join(',') : ''); var url = $('.text-search-tour').attr("data-url"); if(keyword != ""){ } } } }).css('display', 'block').attr('readonly', true); $('.text-search-d').tagEditor({ initialTags: [], delimiter: ',', placeholder: 'Search', beforeTagSave: function(field, editor, tags, tag, val) { }, onChange: function(field, editor, tags) { var keyword = (tags.length ? tags.join(',') : ''); var url = $('.text-search-d').attr("data-url"); if(keyword != ""){ if(url.indexOf("?") > -1){ window.location.href = url+"&search="+keyword; } else { window.location.href = url+"?search="+keyword; } } } , beforeTagDelete: function(field, editor, tags, val) { trace(tags.length); if(tags.length == 1){ var url = $('.text-search-d').attr("data-url"); window.location.href = url; } else { var keyword = (tags.length ? tags.join(',') : ''); var url = $('.text-search-d').attr("data-url"); if(keyword != ""){ } } } }).css('display', 'block').attr('readonly', true) });