SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.145.58.141
Web Server : Apache
System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User : rvway5nu4 ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rvway5nu4/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/www//payment_address.php
<?php
//require_once('./setting.php');
//echo ABSPATH;  exit; //  F:\xampp\htdocs\carivon/
include("./config/data.config.php"); 
include("$LIB_DIR/functions.lib.php");
include("$LIB_DIR/db.php");
include("$LIB_DIR/db/mysqli.php"); 
include("$LIB_DIR/data.constant.php");
include("$LIB_DIR/sitemsgs.php");
include("$LIB_DIR/class.paging.php");
include("$LIB_DIR/functions.mailer.php");
$error='';
$msg='';
if( !isset( $_SESSION['SESS_cust_i_customerID'] ) ){  		
		
		header('Location: '.SUB_DIR_PROJECT.'/checkout.php');
		exit;
}

global $SITE_URL, $IMG_DIR;  
$db	=	new Db( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME, $DB_REPORT_ERROR, $DB_PERSISTENT_CONN);

$sqlpara = '';
$rvtype = '';
if( isset($_REQUEST['i_itemID']) ){
	$i_itemID = $_REQUEST['i_itemID'];
	
}
//echo '<pre>';  print_r($_SESSION);  echo '</pre>'; // exit;
$sql = "SELECT * FROM tbl_setting  WHERE i_settingID = '1'  "; 
$result=$db->query($sql);
if($result->num_rows) {		
	foreach( $result->row AS $key=>$val){
			$$key  = stripslashes($val);
	}		
}


$sql = "SELECT * FROM tbl_register  WHERE i_customerID = '".$_SESSION['SESS_cust_i_customerID']."'  "; 
$result=$db->query($sql);
if($result->num_rows) {		
	foreach( $result->row AS $key=>$val){
			$$key  = stripslashes($val);
	}		
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>RV Way</title>
    <!-- mobile responsive meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link1.php'); ?>
	<?php //require_once($ROOT_DIR.'/page_content/us/common/header_common_link2.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link3.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link4.php');  ?>
</head>
<body>
	
	<!-- <div class="preloader"></div> -->
    <div class="page-wrapper"  >

		<!-- space for preloader -->
		<header class="site-header header-one" >
			<div class="top-header">
				<?php require_once($ROOT_DIR.'/page_content/us/common/header_top.php'); ?>
			</div><!-- /.top-header -->
			<nav class="navbar navbar-expand-lg navbar-light header-navigation stricky header-style-one" >
				<?php require_once($ROOT_DIR.'/page_content/us/common/header_nav.php'); ?>
            </nav>
		</header><!-- /.site-header -->
		<?php // require_once($ROOT_DIR.'/page_content/minimal-bootstrap-carousel_h.php'); ?>
		<?php // require_once($ROOT_DIR.'/page_content/us/home/minimal-bootstrap-carousel.php'); ?>
		<!--Start AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
        <div style="margin:20px 0px 20px 0px;">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
<?php
if( isset($_REQUEST['para']) ){
	$para = $_REQUEST['para'];
	$para_key  = $rv_array[$para];

	$i_rv_settingID  = $_REQUEST['i_rv_settingID'];
	$sql = "SELECT * FROM tbl_rv_setting  WHERE i_rv_settingID = '1'  "; 
	$result=$db->query($sql);
	if($result->num_rows) {		
		foreach( $result->row AS $key=>$val){
				$$key  = stripslashes($val);
		}		
	}
}

$sql = "SELECT * FROM tbl_country  order by name asc "; 
$result=$db->query($sql);
if($result->num_rows) {
	$country_str   = '';
	foreach( $result->rows AS $key=>$val ){   
			if( $b_country  == $val['iso_code_3'] ){
				$country_str .= '<option value="'.$val['iso_code_3'].'" SELECTED >'.$val['name'].'</option>';
			}else{
				$country_str .= '<option value="'.$val['iso_code_3'].'" >'.$val['name'].'</option>';
			}
	}	
}


?>


						<h3 class=""><?php echo $rvtype;  ?></h2>
						<h5 class=""><?php echo htmlentities($title_str); ?></h3>
					</div>
				</div>
			</div>
		</div>
        <div class="">
            <div class="container">

				<div class="row" style="">
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar " >01. Summary</div>								
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar ">02. Sign in</div>
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar ">03. Address</div>
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 chkoutbar1 " >04. Payment method</div>	
				</div>
				<div class="row">
					<div class="col-lg-12 col-sm-12 col-xs-12"> &nbsp; <div>
				</div>

                <div class="row">
                    <div class="col-lg-3 d-none d-sm-block">
					<div class="blog-sidebar">
						<form class="mb-30" method="get" action="<?php echo site_url.'used.php'; ?>" >						
						<?php require_once($ROOT_DIR.'/page_content/used_sidebar2.php'); ?>
						</form>						
					</div><!-- /.blog-sidebar -->						
                    </div><!-- /.col-lg-4 -->
                    <div class="col-lg-9 col-sm-12 col-xs-12">
						<div class="col-sm-12" style="margin-top:2px;" >
						 <?php echo htmlentities($desc_str); ?>
						</div>	
                        <form class="mb-30" method="post" action="<?php echo site_url.'payment.php'; ?>" >
						<article class="product_loop">

						<?php 
						   $show_deliverflag = NULL;
						   if( isset( $_SESSION['cart_item'] ) && is_array( $_SESSION['cart_item'] )  ){
							   foreach( $_SESSION['cart_item'] AS $sessVal){
								  if( isset( $sessVal['sale_type']) ){
									   	if( $sessVal['sale_type'] != 'sparepart_rv' ){
											$show_deliverflag = 1;
										}
								  }
							   
							   }
						   }

						 ?>
									   <h4>Choose Address for this:  <?php echo $_SESSION['SESS_cust_firstName'].'  '.$_SESSION['SESS_cust_lastName'];  ?> </h4><HR/>
										<?php  if( $show_deliverflag ){   ?>
										
										<div class="form-group row">
											<div class="col-md-1 col-lg-1 col-sm-12 col-xs-12 ">	
												<img class="img-responsive" src="<?php echo site_url; ?>/img/man_pickup.jpg" >
											</div>
											<div class="col-md-11 col-lg-11 col-sm-12 col-xs-12 ">	
												<strong> Delivery : </strong> &nbsp; &nbsp; &nbsp; <input type="radio" name="v_deleivery_charge" value="<?php echo $v_deleivery_charge;  ?>" required ><BR/>
												
											</div>
										</div>
										<div class="form-group row">
											<div class="col-md-1 col-lg-1 col-sm-12 col-xs-12 ">
												<img class="img-responsive" src="<?php echo site_url; ?>/img/car_pick.png" >
											</div>
											<div class="col-md-11 col-lg-11 col-sm-12 col-xs-12 ">	
												<strong> Pickup : </strong>&nbsp; &nbsp; &nbsp;<input type="radio" name="v_deleivery_charge" value="0" required ><BR/>
												
											</div>
										</div>
										<HR/>		
										<?php  }   ?>

										
						
                        </article>						

						
                        <article class="product_loop">
									   <h4>Please select the prefered method </h4><HR/>
										<div class="form-group row">
											
											<div class="col-md-11 col-lg-11 col-sm-12 col-xs-12 ">	
												<strong> Cash On delivery : </strong> &nbsp; &nbsp; &nbsp; <input type="radio" name="payment_method" value="0" required checked >
											</div>
										</div>
										<div class="form-group row">
											
											<div class="col-md-11 col-lg-11 col-sm-12 col-xs-12 ">	
												<strong> Knet & Vish Master : </strong>&nbsp; &nbsp; &nbsp;<input type="radio" name="payment_method" value="<?php echo $v_deleivery_charge;  ?>" required disabled >
											</div>
										</div>						
                        </article>						

						<HR/>

                        <article class="product_loop">
									   <h4>Shipping Address </h4>
										<div class="form-group row">
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">	
												First Name							
												<input type="text" name="b_first_name" id="b_first_name" class="form-control " value="<?php echo $b_first_name; ?>" required >
											</div>
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">
												Last Name	
												<input type="text" name="b_last_name" id="b_last_name" class="form-control " value="<?php echo $b_last_name; ?>" required >
											</div>
										</div>

										<div class="form-group row">
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">	
												Email								
												<input type="email" name="b_email" id="b_email" class="form-control " value="<?php echo $b_email; ?>" required >
											</div>
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">
												Phone							
												<input type="text" name="b_phone" id="b_phone" class="form-control " value="<?php echo $b_phone; ?>" required >
											</div>
										</div>
										<div class="form-group row">
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">	
												Address								
												<textarea  name="b_address" id="b_address" class="form-control " rows="8" cols="120"  required ><?php echo $first_name; ?></textarea>
											</div>
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">
												City							
												<input type="text" name="b_city" id="b_city" class="form-control " value="<?php echo $b_city; ?>" required ><BR/>
												State<BR/>							
												<input type="text" name="b_state" id="b_state" class="form-control " value="<?php echo $b_state; ?>" required ><BR/>
												Country<BR/>							
												<select name="b_country" id="b_country" class="form-control ">
												   <?php echo $country_str;  ?>
												</select>
											</div>
										</div>
										<div class="form-group row">
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">	
												<input type="hidden" name="submitRegister" id="submitRegister" class="form-control " value="yes">
												<button type="submit" name="submit" class="btn btn-success pull-left">Submit</button>
											</div>
											<div class="col-sm-12 col-xs-12 col-md-6 col-lg-6">
												<label>&nbsp;</label>	
												
											</div>
										</div>							
                        </article>

						<div class="col-sm-12" style="margin-top:2px;" >
						 <?php echo $footer_desc_str; ?>
						</div>
                    </div><!-- /.col-lg-8 -->

                </div><!-- /.row -->
            </div><!-- /.container -->
        </div><!-- /.blog blog-single -->
		<!--End AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
	</div><!-- /.page-wrapper -->

	<footer class="crop">
		<?php  require_once($ROOT_DIR.'/page_content/us/common/footer_middle.php'); ?>
		<?php require_once($ROOT_DIR.'/page_content/us/common/footer_bottom.php'); ?>
	</footer>
    <a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
    <!-- /.scroll-to-top -->
	<?php require_once($ROOT_DIR.'/page_content/us/common/footer_js.php'); ?>

		<script >
		   $('#partner_tab_2').hide();
		   $(".tabparner").on("click", function(){
			var tabparner_id = $(this).attr('id');
				//alert("The paragraph was clicked." + tabparner_id);
				if( tabparner_id == 'tab_1' ){
					$("#tab_1").addClass("activetab");
					$("#tab_1").removeClass("deactivetab");
					$("#tab_2").removeClass("activetab");
					$("#tab_2").addClass("deactivetab");
					$('#partner_tab_1').show();
					$('#partner_tab_2').hide();
				}
				
				if( tabparner_id == 'tab_2' ){
					$("#tab_2").addClass("activetab");
					$("#tab_2").removeClass("deactivetab");
					$("#tab_1").removeClass("activetab");
					$("#tab_1").addClass("deactivetab");
					$('#partner_tab_1').hide();
					$('#partner_tab_2').show();
				}
				
		   }); 
		
		</script>


    </body>
</html>

Anon7 - 2022
SCDN GOK