SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.135.184.124
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/admin/use_item/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/www/admin/use_item/add_use_item.php
<?php

include("../../config/data.config.php");
if (!isset($_SESSION["SESS_v_adminLoggedIn"]))
{	header ("Location: $MAP_VROOT_FILE_PATH/admin/login.php"); 		
	exit;
}
//echo '<pre>';  print_r( $_SESSION );  echo '</pre>';   echo $target = "$DOCUMENT_ROOT$PIC_DIR/banner/$filename";  exit;
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");
global $SITE_URL, $IMG_DIR;  

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

$img_preview  = '';
$img_name  = '';
$inactive_checked  = '';
$active_checked  = '';
$v_title  = '';
$i_itemID  = '';

if( !empty( $_REQUEST['action']) && $_REQUEST['action'] == 'edit' && !empty( $_REQUEST['i_itemID']) ){
		$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']."'  "; 
		$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;
				}
			}



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

		 }

}


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

$sid4chld0  = 'actve';
$sid4chld2  = 'actve';
$sid4show  = 'show';
function AddRV( $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;
		   
        }
		//echo '<pre>'; print_r($_REQUEST); echo '</pre>';  //exit;
		$sqlIn = "INSERT INTO  tbl_items SET language_type='".$_POST['language_type']."',special_offer='".$_POST['special_offer']."',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'])."', rent_price_per_day = '".addslashes($_POST['rent_price_per_day'])."',  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'])."', new_rv_select = '".addslashes($_POST['new_rv_select'])."',new_rv_text = '".addslashes($_POST['new_rv_text'])."', used_rv_select = '".addslashes($_POST['used_rv_select'])."',used_rv_text = '".addslashes($_POST['used_rv_text'])."',customized_rv_select = '".addslashes($_POST['customized_rv_select'])."',customized_rv_text = '".addslashes($_POST['customized_rv_text'])."',rent_rv_select = '".addslashes($_POST['rent_rv_select'])."',rent_rv_text = '".addslashes($_POST['rent_rv_text'])."',repair_rv_select = '".addslashes($_POST['repair_rv_select'])."',repair_rv_text = '".addslashes($_POST['repair_rv_text'])."',sale_rv_select = '".addslashes($_POST['sale_rv_select'])."',sale_rv_text = '".addslashes($_POST['sale_rv_text'])."',sale_rv_price_select = '".addslashes($_POST['sale_rv_price_select'])."', sparepart_rv_select = '".addslashes($_POST['sparepart_rv_select'])."',sparepart_rv_text = '".addslashes($_POST['sparepart_rv_text'])."',sparepart_rv_price_select = '".addslashes($_POST['sparepart_rv_price_select'])."', c_status = '".$c_status."', new_rv_price_select = '".addslashes($_POST['new_rv_price_select'])."', used_rv_price_select = '".addslashes($_POST['used_rv_price_select'])."', customized_rv_price_select = '".addslashes($_POST['customized_rv_price_select'])."', rent_rv_price_select = '".addslashes($_POST['rent_rv_price_select'])."', repair_rv_price_select = '".addslashes($_POST['repair_rv_price_select'])."', v_show_image_type = '".$_POST['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_addedDate = NOW(), v_type_of_addedby = 'admin'  ";  

		//echo $sqlIn;  exit;    
		$db->query($sqlIn);
		$new_i_itemID = $db->getLastId(); 
         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 ){
					$todel_img_name  = $_POST['todel_3dimg_name'];
					$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$todel_img_name";
					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;  // exit;
		header('Location: '.SUB_DIR_PROJECT.'/admin/use_item/edit_use_item.php?action=edit&i_itemID='.$new_i_itemID);
		exit;
	
}


?>

<!DOCTYPE html>
<html>
  <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>RV Way</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/vendor/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/vendor/font-awesome/css/font-awesome.min.css">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/fontastic.css">
    <!-- Google fonts - Roboto -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
    <!-- jQuery Circle-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/grasp_mobile_progress_circle-1.0.0.min.css">
    <!-- Custom Scrollbar-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/custom.css">
    <!-- Favicon-->
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
<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>


	<!-- 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);
	}
		
		// elements : "tx_description,elm2",
	</script>
	<!-- /tinyMCE -->

  </head>
  <body>
    <!-- Side Navbar -->

	<?php require_once(ABSPATH.'../admin/common/admin_sidebar.php'); ?>
    <div class="page">
      <!-- navbar-->
	  <?php require_once(ABSPATH.'../admin/common/admin_header_nav.php'); ?>
      <!-- Counts Section -->
      <section class="dashboard-counts section-padding">
        <form  method="post" enctype="multipart/form-data">
		<div class="container-fluid">
          	  		  
		  <div class="row">

			<!--  Start to RV -->
			<div class="col-xl-12 col-md-12 col-lg-12 card">
			  <div class="card-body">
			   	<div class="row" >					
					<div class="col-lg-12 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-3 col-sm-12"  >
							  <h4>RV Types</h4>
						</div>
					  </div>
					</div>					
					
					<div class="col-lg-4 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-12 col-sm-12"  > New RV<BR/>
							<select name="new_rv_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $new_rv_select == 1) ? 'SELECTED': '';  ?>  >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$new_rv_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
					 </div>
					</div>
					<div class="col-lg-4 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-12 col-sm-12"  >Used RV<BR/>
							<select name="used_rv_select" class="form-control"> 
							  <option value="1" <?php  echo $select  = ( $used_rv_select == 1) ? 'SELECTED': '';  ?>   >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$used_rv_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
					 </div>
					</div>
					<div class="col-lg-4 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-12 col-sm-12"  >Rent RV <BR/>
							<select name="rent_rv_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $rent_rv_select == 1) ? 'SELECTED': '';  ?> >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$rent_rv_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
					 </div>
					</div>
				</div>
			    </div>
			</div>
			<!--  END to RV -->
            <!-- Count item widget-->
            <div class="col-xl-12 col-md-12 col-lg-12 card">
               <!-- Start Form  -->
				<div class="card-header d-flex align-items-center">
				  <h4>Add Item</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">
							  </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">-->
								
								<select name="location" class="form-control">
                                                        <option>Aaland Islands</option>
                                                        <option>Afghanistan</option>
                                                        <option>Albania</option>
                                                        <option>Algeria</option>
                                                        <option>American Samoa</option>
                                                        <option>Andorra</option>
                                                        <option>Angola</option>
                                                        <option>Anguilla</option>
                                                        <option>Antarctica</option>
                                                        <option>Antigua and Barbuda</option>
                                                        <option>Argentina</option>
                                                        <option>Armenia</option>
                                                        <option>Aruba</option>
                                                        <option>Australia</option>
                                                        <option>Austria</option>
                                                        <option>Azerbaijan</option>
                                                        <option>Bahamas</option>
                                                        <option>Bahrain</option>
                                                        <option>Bangladesh</option>
                                                        <option>Barbados</option>
                                                        <option>Belarus</option>
                                                        <option>Belgium</option>
                                                        <option>Belize</option>
                                                        <option>Benin</option>
                                                        <option>Bermuda</option>
                                                        <option>Bhutan</option>
                                                        <option>Bolivia</option>
                                                        <option>Bonaire, Sint Eustatius and Saba</option>
                                                        <option>Bosnia and Herzegovina</option>
                                                        <option>Botswana</option>
                                                        <option>Bouvet Island</option>
                                                        <option>Brazil</option>
                                                        <option>British Indian Ocean Territory</option>
                                                        <option>Brunei Darussalam</option>
                                                        <option>Bulgaria</option>
                                                        <option>Burkina Faso</option>
                                                        <option>Burundi</option>
                                                        <option>Cambodia</option>
                                                        <option>Cameroon</option>
                                                        <option>Canada</option>
                                                        <option>Canary Islands</option>
                                                        <option>Cape Verde</option>
                                                        <option>Cayman Islands</option>
                                                        <option>Central African Republic</option>
                                                        <option>Chad</option>
                                                        <option>Chile</option>
                                                        <option>China</option>
                                                        <option>Christmas Island</option>
                                                        <option>Cocos (Keeling) Islands</option>
                                                        <option>Colombia</option>
                                                        <option>Comoros</option>
                                                        <option>Congo</option>
                                                        <option>Cook Islands</option>
                                                        <option>Costa Rica</option>
                                                        <option>Cote D'Ivoire</option>
                                                        <option>Croatia</option>
                                                        <option>Cuba</option>
                                                        <option>Curacao</option>
                                                        <option>Cyprus</option>
                                                        <option>Czech Republic</option>
                                                        <option>Democratic Republic of Congo</option>
                                                        <option>Denmark</option>
                                                        <option>Djibouti</option>
                                                        <option>Dominica</option>
                                                        <option>Dominican Republic</option>
                                                        <option>East Timor</option>
                                                        <option>Ecuador</option>
                                                        <option>Egypt</option>
                                                        <option>El Salvador</option>
                                                        <option>Equatorial Guinea</option>
                                                        <option>Eritrea</option>
                                                        <option>Estonia</option>
                                                        <option>Ethiopia</option>
                                                        <option>Falkland Islands (Malvinas)</option>
                                                        <option>Faroe Islands</option>
                                                        <option>Fiji</option>
                                                        <option>Finland</option>
                                                        <option>France, Metropolitan</option>
                                                        <option>French Guiana</option>
                                                        <option>French Polynesia</option>
                                                        <option>French Southern Territories</option>
                                                        <option>FYROM</option>
                                                        <option>Gabon</option>
                                                        <option>Gambia</option>
                                                        <option>Georgia</option>
                                                        <option>Germany</option>
                                                        <option>Ghana</option>
                                                        <option>Gibraltar</option>
                                                        <option>Greece</option>
                                                        <option>Greenland</option>
                                                        <option>Grenada</option>
                                                        <option>Guadeloupe</option>
                                                        <option>Guam</option>
                                                        <option>Guatemala</option>
                                                        <option>Guernsey</option>
                                                        <option>Guinea</option>
                                                        <option>Guinea-Bissau</option>
                                                        <option>Guyana</option>
                                                        <option>Haiti</option>
                                                        <option>Heard and Mc Donald Islands</option>
                                                        <option>Honduras</option>
                                                        <option>Hong Kong</option>
                                                        <option>Hungary</option>
                                                        <option>Iceland</option>
                                                        <option selected="">India</option>
                                                        <option>Indonesia</option>
                                                        <option>Iran (Islamic Republic of)</option>
                                                        <option>Iraq</option>
                                                        <option>Ireland</option>
                                                        <option>Israel</option>
                                                        <option>Italy</option>
                                                        <option>Jamaica</option>
                                                        <option>Japan</option>
                                                        <option>Jersey</option>
                                                        <option>Jordan</option>
                                                        <option>Kazakhstan</option>
                                                        <option>Kenya</option>
                                                        <option>Kiribati</option>
                                                        <option>Korea, Republic of</option>
                                                        <option>Kuwait</option>
                                                        <option>Kyrgyzstan</option>
                                                        <option>Lao People's Democratic Republic</option>
                                                        <option>Latvia</option>
                                                        <option>Lebanon</option>
                                                        <option>Lesotho</option>
                                                        <option>Liberia</option>
                                                        <option>Libyan Arab Jamahiriya</option>
                                                        <option>Liechtenstein</option>
                                                        <option>Lithuania</option>
                                                        <option>Luxembourg</option>
                                                        <option>Macau</option>
                                                        <option>Madagascar</option>
                                                        <option>Malawi</option>
                                                        <option>Malaysia</option>
                                                        <option>Maldives</option>
                                                        <option>Mali</option>
                                                        <option>Malta</option>
                                                        <option>Marshall Islands</option>
                                                        <option>Martinique</option>
                                                        <option>Mauritania</option>
                                                        <option>Mauritius</option>
                                                        <option>Mayotte</option>
                                                        <option>Mexico</option>
                                                        <option>Micronesia, Federated States of</option>
                                                        <option>Moldova, Republic of</option>
                                                        <option>Monaco</option>
                                                        <option>Mongolia</option>
                                                        <option>Montenegro</option>
                                                        <option>Montserrat</option>
                                                        <option>Morocco</option>
                                                        <option>Mozambique</option>
                                                        <option>Myanmar</option>
                                                        <option>Namibia</option>
                                                        <option>Nauru</option>
                                                        <option>Nepal</option>
                                                        <option>Netherlands</option>
                                                        <option>Netherlands Antilles</option>
                                                        <option>New Caledonia</option>
                                                        <option>New Zealand</option>
                                                        <option>Nicaragua</option>
                                                        <option>Niger</option>
                                                        <option>Nigeria</option>
                                                        <option>Niue</option>
                                                        <option>Norfolk Island</option>
                                                        <option>North Korea</option>
                                                        <option>Northern Mariana Islands</option>
                                                        <option>Norway</option>
                                                        <option>Oman</option>
                                                        <option>Pakistan</option>
                                                        <option>Palau</option>
                                                        <option>Palestinian Territory, Occupied</option>
                                                        <option>Panama</option>
                                                        <option>Papua New Guinea</option>
                                                        <option>Paraguay</option>
                                                        <option>Peru</option>
                                                        <option>Philippines</option>
                                                        <option>Pitcairn</option>
                                                        <option>Poland</option>
                                                        <option>Portugal</option>
                                                        <option>Puerto Rico</option>
                                                        <option>Qatar</option>
                                                        <option>Reunion</option>
                                                        <option>Romania</option>
                                                        <option>Russian Federation</option>
                                                        <option>Rwanda</option>
                                                        <option>Saint Kitts and Nevis</option>
                                                        <option>Saint Lucia</option>
                                                        <option>Saint Vincent and the Grenadines</option>
                                                        <option>Samoa</option>
                                                        <option>San Marino</option>
                                                        <option>Sao Tome and Principe</option>
                                                        <option>Saudi Arabia</option>
                                                        <option>Senegal</option>
                                                        <option>Serbia</option>
                                                        <option>Seychelles</option>
                                                        <option>Sierra Leone</option>
                                                        <option>Singapore</option>
                                                        <option>Slovak Republic</option>
                                                        <option>Slovenia</option>
                                                        <option>Solomon Islands</option>
                                                        <option>Somalia</option>
                                                        <option>South Africa</option>
                                                        <option>South Georgia &amp; South Sandwich Islands</option>
                                                        <option>South Sudan</option>
                                                        <option>Spain</option>
                                                        <option>Sri Lanka</option>
                                                        <option>St. Barthelemy</option>
                                                        <option>St. Helena</option>
                                                        <option>St. Martin (French part)</option>
                                                        <option>St. Pierre and Miquelon</option>
                                                        <option>Sudan</option>
                                                        <option>Suriname</option>
                                                        <option>Svalbard and Jan Mayen Islands</option>
                                                        <option>Swaziland</option>
                                                        <option>Sweden</option>
                                                        <option>Switzerland</option>
                                                        <option>Syrian Arab Republic</option>
                                                        <option>Taiwan</option>
                                                        <option>Tajikistan</option>
                                                        <option>Tanzania, United Republic of</option>
                                                        <option>Thailand</option>
                                                        <option>Togo</option>
                                                        <option>Tokelau</option>
                                                        <option>Tonga</option>
                                                        <option>Trinidad and Tobago</option>
                                                        <option>Tunisia</option>
                                                        <option>Turkey</option>
                                                        <option>Turkmenistan</option>
                                                        <option>Turks and Caicos Islands</option>
                                                        <option>Tuvalu</option>
                                                        <option>Uganda</option>
                                                        <option>Ukraine</option>
                                                        <option>United Arab Emirates</option>
                                                        <option>United Kingdom</option>
                                                        <option>United States</option>
                                                        <option>United States Minor Outlying Islands</option>
                                                        <option>Uruguay</option>
                                                        <option>Uzbekistan</option>
                                                        <option>Vanuatu</option>
                                                        <option>Vatican City State (Holy See)</option>
                                                        <option>Venezuela</option>
                                                        <option>Viet Nam</option>
                                                        <option>Virgin Islands (British)</option>
                                                        <option>Virgin Islands (U.S.)</option>
                                                        <option>Wallis and Futuna Islands</option>
                                                        <option>Western Sahara</option>
                                                        <option>Yemen</option>
                                                        <option>Zambia</option>
                                                        <option>Zimbabwe</option>
                                                        </select>
								
								
							  </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">Rent Price Per day</label>
							  <div class="col-sm-7">
								<input type="text" name="rent_price_per_day" value="<?php echo $rent_price_per_day;  ?>"  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="card-header d-flex align-items-center">
				  <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="1"  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="card-header d-flex align-items-center">
				  <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">
			  <div class="card-body">
			   	<div class="row" >
				<div class="col-lg-12 col-sm-12"  >
				 <div class="form-group row">
					<div class="col-lg-3 col-sm-12"  >
						
						  <h4>Tag</h4>
						
					</div>
				  </div>
				</div>

					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-3 col-sm-12"  >
						  New Arrival
						</div>
						<div class="col-lg-3 col-sm-12"  >
							<select name="new_arrival_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $new_arrival_select == 1) ? 'SELECTED': '';  ?>  >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$new_arrival_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
						<div class="col-lg-6 col-sm-12"  >
							<input type="text" name="new_arrival_text" value="<?php echo $new_arrival_text;  ?>"  class="form-control">
						</div>
					 </div>
					</div>

					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-3 col-sm-12"  >
						  In Stock
						</div>
						<div class="col-lg-3 col-sm-12"  >
							<select name="in_stock_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $in_stock_select == 1) ? 'SELECTED': '';  ?>   >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$in_stock_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
						<div class="col-lg-6 col-sm-12"  >
							<input type="text" name="in_stock_text" value="<?php echo $in_stock_text;  ?>"  class="form-control">
						</div>
					 </div>
					</div>

					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-3 col-sm-12"  >
						  Reduced
						</div>
						<div class="col-lg-3 col-sm-12"  >
							<select name="reduced_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $reduced_select == 1) ? 'SELECTED': '';  ?> >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$reduced_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
						<div class="col-lg-6 col-sm-12"  >
							<input type="text" name="reduced_text" value="<?php echo $reduced_text;  ?>"  class="form-control">
						</div>
					 </div>
					</div>

					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-3 col-sm-12"  >
						  Sale
						</div>
						<div class="col-lg-3 col-sm-12"  >
							<select name="sale_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $sale_select == 1) ? 'SELECTED': '';  ?> >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$sale_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
						<div class="col-lg-6 col-sm-12"  >
							<input type="text" name="sale_text" value="<?php echo $sale_text;  ?>"  class="form-control">
						</div>
					 </div>
					</div>


					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						<div class="col-lg-3 col-sm-12"  >
						  Special
						</div>
						<div class="col-lg-3 col-sm-12"  >
							<select name="special_select" class="form-control">
							  <option value="1" <?php  echo $select  = ( $special_select == 1) ? 'SELECTED': '';  ?> >Active</option>
							  <option value="0" <?php  echo $select  = ( (string)$special_select == '0') ? 'SELECTED': '';  ?> >Inactive</option>
							</select>
						</div>
						<div class="col-lg-6 col-sm-12"  >
							<input type="text" name="special_text" value="<?php echo $special_text;  ?>"  class="form-control">
						</div>
					 </div>
					</div>
					
			<div class="col-xl-12 col-md-12 col-lg-12 card">
			  <div class="card-body">
			   	<div class="row" >
				<div class="col-lg-12 col-sm-12" style="padding:0px; margin:0px; " ><HR/>
					<strong>Pic</strong>
					<span>To look proper upload image size : width * height: 650 * 500</span><BR/>
				</div>
				<HR/>
				<?php for( $i=1; $i < 21 ; $i++ ) {  ?>
					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						
						 
						 <label class="col-sm-12 form-control-label">Pic <?php echo $i;  ?></label>
						<div class="col-lg-12 col-sm-12"  >
						  <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-5 form-control-label">Delete Image :</label>
								<select name="delete_img_flag<?php echo $i;  ?>" class="col-sm-5 form-control-label" >
									<option value="0" selected >No</option>
									<option value="1"  >Yes</option>
								</select>
							</div>
						</div>
					 </div>
					</div>
				<?php 
					} ?>

				
				<div class="col-lg-12 col-sm-12"  >
					<div class="form-group row" style="padding-top: 20px; border-top:1px solid #ccc; ">
						<div class="col-lg-3 col-sm-12"  >
						  Upload Video
						</div>
						<div class="col-lg-9 col-sm-12"  >
							<input type="file" name="item_video"  id="item_video" class="form-control" >	
							
							<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>
							<select name="delete_item_video" class="col-sm-6 form-control-label" >
								<option value="0" selected >No</option>
								<option value="1"  >Yes</option>
							</select>
						</div>
					</div>
					<HR/>
				</div>

				<div class="col-lg-12 col-sm-12" style="padding:0px; margin:0px; " ><HR/>
					<strong>Upload Images to 3d view</strong>
					<span>To look proper upload image size : width * height: 650 * 500</span><BR/>
				</div>
				<HR/>			

				<?php for( $i=1; $i < 31 ; $i++ ) { ?>
					<div class="col-lg-6 col-sm-12"  >
					 <div class="form-group row">
						
						<label class="col-sm-12 form-control-label">Pic <?php echo $i;  ?></label>
						<div class="col-lg-12 col-sm-12"  >
						  <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-5 form-control-label">Delete Image :</label>
								<select name="delete_3dimg_flag<?php echo $i;  ?>" class="col-sm-5 form-control-label" >
									<option value="0" selected >No</option>
									<option value="1"  >Yes</option>
								</select>
							</div>
						</div>
					 </div>
					</div>
				<?php } ?>
			<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-6 col-sm-12"  >
				  <strong>3D image preview</strong>
				</div>
				<div class="col-lg-12 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; ">
						<div class="col-lg-3 col-sm-12"  >
						  Description
						</div>
						<div class="col-lg-9 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 card">
				<div class="col-lg-12 col-sm-12">
				    Special Offer 
				    <input type="checkbox" value="Yes" name="special_offer"><br>
				    Note*:- ( If you want add this in special offer please checked this checkbox. )
				    <br>
				    <br>
				    Arabic Language 
				    <input type="checkbox" value="Yes" name="language_type"><br>
				    Note*:- ( If you want add this product in Arabic. Please checked this checkbox. )
				    
				    
				    
					<div class="">
					 <div class="card-body">
						<div class="line"></div>
						<div class="form-group row">
						  <div class="col-sm-6 offset-sm-5"> 
							<input type="hidden" name="submitForm" value="yes"  class="form-control">
							<button type="submit" class="btn btn-primary">Add</button>
							<button type="reset" class="btn btn-secondary">Cancel</button>
						  </div>
						</div>
					 </div>
					</div>
				</div>
			</div>
          </div>
        </div>
      </section>
	  </form>
      <!-- Header Section-->
	  <?php require_once(ABSPATH.'../admin/common/admin_footer.php'); ?>
    </div>
	 <?php  require_once(ABSPATH.'../admin/common/admin_footer_js.php'); ?>
  </body>
</html>

Anon7 - 2022
SCDN GOK