Server IP : 162.241.126.129 / Your IP : 13.59.69.58 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/ |
Upload File : |
<?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); } 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; } } 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; //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') ){ 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; } //echo '<pre>'; print_r($_REQUEST); echo '</pre>'; exit; $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'])."', new_rv_select = '".addslashes($_POST['new_rv_select'])."',new_rv_text = '".addslashes($_POST['new_rv_text'])."',tx_description = '".addslashes($_POST['tx_description'])."',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'])."',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'])."', sale_rv_price_select = '".addslashes($_POST['sale_rv_price_select'])."', dt_modifyDate = NOW() WHERE i_itemID = '".$_POST['i_itemID']."' "; //echo $sqlIn; exit; $db->query($sqlIn); $new_i_itemID = $_POST['i_itemID']; // delete_img_flag 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 charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Carivon</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--> <link rel="shortcut icon" href="img/favicon.ico"> <!-- 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="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/ui-lightness/jquery-ui.css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/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: 300px; margin: 0 auto; } </style> </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"> <!-- 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"> </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="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="<?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="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> </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> </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> <!-- 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-6 col-sm-12" > <div class="form-group row"> <div class="col-lg-3 col-sm-12" > New RV </div> <div class="col-lg-3 col-sm-12" > <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 class="col-lg-3 col-sm-12" > Price Flag </div> <div class="col-lg-3 col-sm-12" > <select name="new_rv_price_select" class="form-control"> <option value="1" <?php echo $select = ( $new_rv_price_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$new_rv_price_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-12 col-sm-12" >New RV Message<BR/> <input type="text" name="new_rv_text" value="<?php echo $new_rv_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" > Used RV </div> <div class="col-lg-3 col-sm-12" > <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 class="col-lg-3 col-sm-12" > Price Flag </div> <div class="col-lg-3 col-sm-12" > <select name="used_rv_price_select" class="form-control"> <option value="1" <?php echo $select = ( $used_rv_price_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$used_rv_price_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-12 col-sm-12" >Used RV Message<BR/> <input type="text" name="used_rv_text" value="<?php echo $used_rv_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" > Customized RV </div> <div class="col-lg-3 col-sm-12" > <select name="customized_rv_select" class="form-control"> <option value="1" <?php echo $select = ( $customized_rv_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$customized_rv_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-3 col-sm-12" > Price Fag </div> <div class="col-lg-3 col-sm-12" > <select name="customized_rv_price_select" class="form-control"> <option value="1" <?php echo $select = ( $customized_rv_price_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$customized_rv_price_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-12 col-sm-12" >Customized RV Message<BR/> <input type="text" name="customized_rv_text" value="<?php echo $customized_rv_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" > Rent RV </div> <div class="col-lg-3 col-sm-12" > <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 class="col-lg-3 col-sm-12" > Price Flag </div> <div class="col-lg-3 col-sm-12" > <select name="rent_rv_price_select" class="form-control"> <option value="1" <?php echo $select = ( $rent_rv_price_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$rent_rv_price_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-12 col-sm-12" >Rent RV Message<BR/> <input type="text" name="rent_rv_text" value="<?php echo $rent_rv_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" > Repair RV </div> <div class="col-lg-3 col-sm-12" > <select name="repair_rv_select" class="form-control"> <option value="1" <?php echo $select = ( $repair_rv_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$repair_rv_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-3 col-sm-12" > Price Flag </div> <div class="col-lg-3 col-sm-12" > <select name="repair_rv_price_select" class="form-control"> <option value="1" <?php echo $select = ( $repair_rv_price_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$repair_rv_price_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-12 col-sm-12" >Repair RV Message<BR/> <input type="text" name="repair_rv_text" value="<?php echo $repair_rv_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 your RV </div> <div class="col-lg-3 col-sm-12" > <select name="sale_rv_select" class="form-control"> <option value="1" <?php echo $select = ( $sale_rv_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$sale_rv_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-3 col-sm-12" > Price Flag </div> <div class="col-lg-3 col-sm-12" > <select name="sale_rv_price_select" class="form-control"> <option value="1" <?php echo $select = ( $sale_rv_price_select == 1) ? 'SELECTED': ''; ?> >Active</option> <option value="0" <?php echo $select = ( (string)$sale_rv_price_select == '0') ? 'SELECTED': ''; ?> >Inactive</option> </select> </div> <div class="col-lg-12 col-sm-12" >Sale your RV Message<BR/> <input type="text" name="sale_r_text" value="<?php echo $repair_rv_text; ?>" class="form-control"> </div> </div> </div> <!-- END to RV --> <div class="col-lg-12 col-sm-12" ><HR/> <h4>Pic</h4> </div> <HR/> <?php for( $i=1; $i < 21 ; $i++ ) { ?> <div class="col-lg-6 col-sm-12" > <div class="form-group row"> <div class="col-lg-5 col-sm-12" > Pic <?php echo $i; ?> </div> <div class="col-lg-7 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-6 form-control-label">Delete Image :</label> <select name="delete_img_flag<?php echo $i; ?>" class="col-sm-6 form-control-label" > <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="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" > <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-5 col-sm-12" > Pic <?php echo $i; ?> </div> <div class="col-lg-7 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-6 form-control-label">Delete Image :</label> <select name="delete_3dimg_flag<?php echo $i; ?>" class="col-sm-6 form-control-label" > <option value="0" selected >No</option> <option value="1" >Yes</option> </select> </div> </div> </div> </div> <?php } ?> </div> </div> <HR/> <!-- --> <div class="row"> <div class="col-lg-12 col-sm-12" > <div class="rotatebox"> <div class="images"> </div> <div class="slider"></div> </div> <script> <!-- rotate([ "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_1.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_2.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_3.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_4.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_5.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_6.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_7.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_8.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_9.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_10.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_11.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_12.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_13.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_14.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_15.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_16.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_17.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_18.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_19.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_20.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_21.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_22.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_23.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_24.jpg", "<?php echo $SITE_URL.'/pic'; ?>/item/item3dimg_2_25.jpg" ]); --> </script> </div> </div> <!-- --> <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-6 col-sm-12"> <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"> <input type="hidden" name="i_itemID" value="<?php echo $i_itemID; ?>" class="form-control"> <button type="submit" class="btn btn-primary">Update</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>