HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/www/m.beatleanalytics.com/application/views/customer/orderprocess.php
<?php 
	include ('include/header.php');
	
	include ('include/search.php');
	
	
	//echo "<pre>";
	//print_r($product_data);
	//print_r($user_data);
	//echo "</pre>";
?>




<!-------product------->

<div class="container offers">
  <div class="">
    <div class="my-offers">
         <h3>Order Process</h3>
    </div>
    <div class="alert alert-danger">
          <strong>Alert!</strong>  Please fill the following details to complete your order process
    </div>
    
    <div class="orderprocess">
      
        <div class="full_row main_container">
        
            <form name="frmSettings" id="frmSettings" method="post" action="">
           	<input type="hidden" name="type_" id="type_" value="neworder"  />
            <input type="hidden" name="proid" id="proid" value="<?php echo $this->uri->segment(3)?>"  />

            <input type="hidden" name="prodname" id="prodname" value="<?php echo $product_data[0]->name; ?>" />
            <input type="hidden" name="prodimage" id="prodimage" value="<?php echo $product_data[0]->prod_image; ?>" />
            
           <!------
                <div class="row">
            	<div class="col-xs-12">
                    <center> DSFDSFD </center>   
                </div>
             </div>
            <br>
            ---------->
             <div class="row">
             
             <div class="col-xs-8">
				 <div class="order-name">
                  
                    <h4><span><?php echo $product_data[0]->name;?></span></h4>
                    <h5>Redeem Points: <span>10</span></h5>
                  
                    </div>
                      
                 </div>
            	<div class="col-xs-4">
				 <div class="order-img">
                  
                    <center>
                    <a class="example-image-link" href="<?php echo base_url();?>/assets/products/<?php echo $product_data[0]->prod_image; ?>" data-lightbox="example-1"><img class="example-image" src="<?php echo base_url();?>/assets/products/<?php echo $product_data[0]->prod_image; ?>" alt="image-1" /></a></center>
                    </div>
                      
                 </div>
            </div>
            <br>

            
             <div class="row">
            	<div class="col-xs-12">
				      
                	<div class="ord-left"><!--<i class="fa fa-user" aria-hidden="true"></i>--> Full Name :</div>
                    <div class="ord-right">
                    <input name="name" id="name" class="form-control input-xs" type="text" value="<?php echo $user_data[0]->db_username;?>">   
                    </div>
                    
                </div>
            </div>
            <br>
            
             <div class="row">
            	<div class="col-xs-12">
				   
                	<div class="ord-left"><!----<i class="fa fa-envelope-open" aria-hidden="true"></i>---> Email id :</div>
                    <div class="ord-right">
                      <input name="email_" id="email_" disabled="disabled" class="form-control input-xs" type="text" value="<?php echo $user_data[0]->db_email;?>">
                      <input name="email" id="email" type="hidden" value="kk@gmail.com">
                    </div>
                    
                </div>
            </div>
            <br>
            
             <div class="row">
            	<div class="col-xs-12">
				   
                	<div class="ord-left"><!---<i class="fa fa-mobile" aria-hidden="true"></i>-----> Phone no :</div>
                    <div class="ord-right">
                    <input class="form-control input-xs" type="text" maxlength="10" name="contact_number" id="contact_number" value="<?php echo $user_data[0]->db_phone;?>">
                    </div>
                    <div class="col-xs-1"></div>
                </div>
            </div>
            <br>
            
             <div class="row">
            	<div class="col-xs-12">
				    
                	<div class="ord-left"><!---<i class="fa fa-address-card" aria-hidden="true"></i> ----->Address :</div>
                      
                    <div class="ord-right">
                      <textarea  class="form-control input-xs" name="address" id="address"><?php echo $user_data[0]->db_address;?></textarea>
                    </div>
                   
                </div>
            </div>
            <br>
            
             <div class="row">
            	<div class="col-xs-12">
				    
                	<div class="ord-left"><!----<i class="fa fa-file-archive-o" aria-hidden="true"></i>-----> PIN Code :</div>
                    <div class="ord-right">
                    <input class="form-control input-xs" id="pincode" maxlength="6" name="pincode" type="text" value="<?php echo $user_data[0]->db_pincode;?>">
                    </div>
                    <div class="col-xs-1"></div>
                </div>
            </div>
            <br>
            
             <div class="row">
            	<div class="col-xs-12">
					
                	<div class="ord-left"><!-----<i class="fa fa-flag" aria-hidden="true"></i> ----->State :</div>
                    <div class="ord-right">
                    <?php
					$rsState = $this->Customer_model->fetchStateData();
					//print_r($rsState);
                ?>
                     <select onchange="javascript: fetchCityDataAjax(this.value)" class="form-control" name="state" id="state">
                     	<?php
							$s_cnt = 0;
							$stateid = $rsState[0]->id;
							foreach($rsState as $sKey => $sVal) {
								$s_select = '';
								if($user_data[0]->db_state == $sVal->id){
									$s_select = 'selected="selected" ';
								}
								if($user_data[0]->db_state != 0 && !empty($user_data[0]->db_state)){
									$stateid = $user_data[0]->db_state;
								}
								
                        ?>
                        <option <?php echo $s_select; ?> value="<?php echo $sVal->id; ?>"><?php echo $sVal->name; ?></option>
                        <?php } ?>
                                            
                      	</select>  
                    </div>
                   
                </div>
            </div>
            <br>
            
            <script>
			function fetchCityDataAjax(sid){
				var xhttp = new XMLHttpRequest();
				xhttp.onreadystatechange = function() {
					if (this.readyState == 4 && this.status == 200) {
						document.getElementById("city").innerHTML = this.responseText;
				   }
				};
				xhttp.open("GET", "<?php echo base_url();?>index.php/customer/fetchCityDataAjax/"+sid, true);
				xhttp.send();
			}
			
			 function validateFrom(){
                                            
                                            var name = document.getElementById('name');
                                            var contact_number = document.getElementById('contact_number');
                                            var email = document.getElementById('email');
                                            //var user_name_hdn = document.getElementById('user_name_hdn');
											//var username = document.getElementById('username');
											
											var address = document.getElementById('address');
											var pincode = document.getElementById('pincode');
                                            
                                            
                                            var error = 0;
											
											//if(user_name_hdn.value.trim() == ""){
												/*if(username.value.trim() == ""){
                                                	username.style.border = "1px solid red";
                                               	 	error = 1;
												}else{
													username.style.border = "1px solid #ccc";
												}*/
												
											//}
											
											
											
                                            if(name.value.trim() == ""){
                                                name.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                name.style.border = "1px solid #ccc";
                                            }
                                            if(contact_number.value.trim() == ""){
                                                contact_number.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                contact_number.border = "1px solid #ccc";
                                            }
                                            if(contact_number.value.length != 10){
                                                contact_number.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                contact_number.style.border = "1px solid #ccc";
                                            }
                                            /*
											if(ValidateEmail(email) == false){
												email.style.border = "1px solid red";
											}else{
												email.style.border = "1px solid #ccc";
											}*/
											
											if(address.value.trim() == ""){
												address.style.border = "1px solid red";
												error = 1;
											}else{
												address.style.border = "1px solid #ccc";
											}
											
											if(pincode.value.trim() == ""){
												pincode.style.border = "1px solid red";
												error = 1;
											}else{
												pincode.style.border = "1px solid #ccc";
											}
												
                                            if(error == 1)
                                            return false;
											
											document.getElementById('frmSettings').submit();
											
                                    }
            </script>
			
                                 
             <div class="row">
                <div class="col-xs-12">
				  
                    <div class="ord-left"><!--<i class="fa fa-building" aria-hidden="true"></i>---> City :</div>
                    <div class="ord-right" id="city-data">
                    <?php
					$rsState = $this->Customer_model->fetchCityData($stateid);
					//print_r($rsState);
                ?>
                     <select class="form-control" name="city" id="city">
                     	<?php
							$s_cnt = 0;
							$stateid = 0;
							foreach($rsState as $sKey => $sVal) {
								$s_select = '';
								if($user_data[0]->db_city == $sVal->id){
									$s_select = 'selected="selected" ';
								}
								if($user_data[0]->db_state != 0 && !empty($user_data[0]->db_state)){
									$stateid = $user_data[0]->db_state;
								}
								
                        ?>
                        <option <?php echo $s_select; ?> value="<?php echo $sVal->id; ?>"><?php echo $sVal->name; ?></option>
                        <?php } ?>
                                            
                      	</select>
                    </div>
                    
                </div>
            </div>
            <br>
                                
       </form>
             
            <div class="save-btn">
                 <button type="button" onclick="javascript: return validateFrom();" class="btn btn-info">Save</button>
            </div>
        </div>
        
    </div>  
      
       
   
 </div>
</div>





<br><br><br>



<!-------product------->


<script>
	$(window).load(function(){
		loadingFade();
	});
	
</script>


<?php 
	include ('include/footer.php');
?>