Server IP : 162.241.126.129 / Your IP : 3.133.122.95 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/public_html/admin/information/ |
Upload File : |
<?php if(isset($_GET['id'])) { $SettingID = $_GET['id']; } 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_rv_settingID = ''; if( true ){ $img_preview = ''; $img_name = ''; $inactive_checked = ''; $active_checked = ''; $v_title = ''; $i_rv_settingID = $_REQUEST['i_rv_settingID']; $sql = "SELECT * FROM tbl_rv_setting WHERE i_rv_settingID = '".$SettingID."' "; $result=$db->query($sql); if($result->num_rows) { foreach( $result->row AS $key=>$val){ $$key = stripslashes($val); } if( $c_status == 1 ){ $inactive_checked = ''; $active_checked = 'SELECTED'; }else{ $inactive_checked = 'SELECTED'; $active_checked = ''; } $target = "$DOCUMENT_ROOT$PIC_DIR/$v_image"; if ( $v_image != '' && file_exists("$target")) { $todel_img_name = $v_image; $img_preview = '<BR/><img src="'.$SITE_URL.'/pic/'.$v_image.'" class="img-responsive" >'; } } } if(($_POST['submitForm']) && ($_POST['submitForm'] == 'edit') ){ EditProduct( $db); } $sid9chld0 = 'actve'; $sid9chld1 = 'actve'; $sid9show = 'show'; function EditProduct($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; $title = addslashes($_POST['title']); $i_rv_settingID = $_POST['i_rv_settingID']; //echo '<pre>'; print_r( $_REQUEST); echo '</pre>'; exit; $sqlIn = "UPDATE tbl_rv_setting SET title = '".addslashes($_POST['title'])."', txt_sale_your_rv = '".addslashes($_POST['txt_sale_your_rv'])."', txt_rv_product_page = '".addslashes($_POST['txt_rv_product_page'])."', fotter_description = '".addslashes($_POST['fotter_description'])."',short_description = '".addslashes($_POST['short_description'])."',description = '".addslashes($_POST['description'])."', new_rv_title = '".addslashes($_POST['new_rv_title'])."',new_rv_description = '".addslashes($_POST['new_rv_description'])."',new_rv_short_description = '".addslashes($_POST['new_rv_short_description'])."',new_rv_fotter_description = '".addslashes($_POST['new_rv_fotter_description'])."', used_rv_title = '".addslashes($_POST['used_rv_title'])."',used_rv_description = '".addslashes($_POST['used_rv_description'])."',used_rv_short_description = '".addslashes($_POST['used_rv_short_description'])."',used_rv_fotter_description = '".addslashes($_POST['used_rv_fotter_description'])."', cus_rv_title = '".addslashes($_POST['cus_rv_title'])."',cus_rv_description = '".addslashes($_POST['cus_rv_description'])."',cus_rv_short_description = '".addslashes($_POST['cus_rv_short_description'])."',cus_rv_fotter_description = '".addslashes($_POST['cus_rv_fotter_description'])."', rent_rv_title = '".addslashes($_POST['rent_rv_title'])."',rent_rv_description = '".addslashes($_POST['rent_rv_description'])."',rent_rv_short_description = '".addslashes($_POST['rent_rv_short_description'])."',rent_rv_fotter_description = '".addslashes($_POST['rent_rv_fotter_description'])."', repair_rv_title = '".addslashes($_POST['repair_rv_title'])."',repair_rv_description = '".addslashes($_POST['repair_rv_description'])."',repair_rv_short_description = '".addslashes($_POST['repair_rv_short_description'])."',repair_rv_fotter_description = '".addslashes($_POST['repair_rv_fotter_description'])."', sale_rv_title = '".addslashes($_POST['sale_rv_title'])."',sale_rv_description = '".addslashes($_POST['sale_rv_description'])."',sale_rv_short_description = '".addslashes($_POST['sale_rv_short_description'])."',sale_rv_fotter_description = '".addslashes($_POST['sale_rv_fotter_description'])."', sparepart_rv_title = '".addslashes($_POST['sparepart_rv_title'])."',sparepart_rv_description = '".addslashes($_POST['sparepart_rv_description'])."',sparepart_rv_short_description = '".addslashes($_POST['sparepart_rv_short_description'])."',sparepart_rv_fotter_description = '".addslashes($_POST['sparepart_rv_fotter_description'])."', item_detail_title = '".addslashes($_POST['item_detail_title'])."',item_detail_short_description = '".addslashes($_POST['item_detail_short_description'])."',item_detail_description = '".addslashes($_POST['item_detail_description'])."',item_detail_fotter_description = '".addslashes($_POST['item_detail_fotter_description'])."', dt_modifyDate = NOW() WHERE i_rv_settingID = '".$i_rv_settingID."' "; // echo $sqlIn; exit; $db->query($sqlIn); $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>'.$title. ' '.$message.'update successfully. </div>'; $_SESSION['msg'] = $PROMPT; header('Location: '.SUB_DIR_PROJECT."/admin/information/rv_setting.php?id=$i_rv_settingID"); 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--> <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]--> <!-- 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 : "description,fotter_description,new_rv_description,new_rv_fotter_description,used_rv_description,used_rv_fotter_description,cus_rv_description,cus_rv_fotter_description, rent_rv_description, rent_rv_fotter_description, repair_rv_description, repair_rv_fotter_description, sale_rv_description, sale_rv_fotter_description, item_detail_description, item_detail_fotter_description, sparepart_rv_description, sparepart_rv_fotter_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"> <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="row"> <div class="col-lg-12 col-sm-12"> <form method="post" enctype="multipart/form-data"> <div class=""> <div class="card-header d-flex align-items-center"> <h4>RV Setting : <?php echo $v_code; ?></h4> </div> <div class="card-body"> <div class="form-group row"> <label class="col-sm-2 form-control-label">Title</label> <div class="col-sm-10"> <input type="text" name="title" value="<?php echo $title; ?>" class="form-control"> </div> </div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Level Sale Your RV</label> <div class="col-sm-10"> <input type="text" name="txt_sale_your_rv" value="<?php echo $txt_sale_your_rv; ?>" class="form-control"> </div> </div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Level RV Product page</label> <div class="col-sm-10"> <input type="text" name="txt_rv_product_page" value="<?php echo $txt_rv_product_page; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Short Description</label> <div class="col-sm-10"> <textarea id="short_description" name="short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Description</label> <div class="col-sm-10"> <textarea id="description" name="description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Fotter Description</label> <div class="col-sm-10"> <textarea id="fotter_description" name="fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($fotter_description)); ?></textarea> </div> </div> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">New Title</label> <div class="col-sm-10"> <input type="text" name="new_rv_title" value="<?php echo $new_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">New Short Description</label> <div class="col-sm-10"> <textarea id="new_rv_short_description" name="new_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($new_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">New Description</label> <div class="col-sm-10"> <textarea id="new_rv_description" name="new_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($new_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">New Fotter Description</label> <div class="col-sm-10"> <textarea id="new_rv_fotter_description" name="new_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($new_rv_fotter_description)); ?></textarea> </div> </div> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">Used Title</label> <div class="col-sm-10"> <input type="text" name="used_rv_title" value="<?php echo $used_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Used Short Description</label> <div class="col-sm-10"> <textarea id="used_rv_short_description" name="used_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($used_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Used Description</label> <div class="col-sm-10"> <textarea id="used_rv_description" name="used_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($used_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Used Fotter Description</label> <div class="col-sm-10"> <textarea id="used_rv_fotter_description" name="used_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($used_rv_fotter_description)); ?></textarea> </div> </div> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">Customized Title</label> <div class="col-sm-10"> <input type="text" name="cus_rv_title" value="<?php echo $cus_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Customized Short Description</label> <div class="col-sm-10"> <textarea id="cus_rv_short_description" name="cus_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($cus_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Customized Description</label> <div class="col-sm-10"> <textarea id="cus_rv_description" name="cus_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($cus_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Customized Fotter Description</label> <div class="col-sm-10"> <textarea id="cus_rv_fotter_description" name="cus_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($cus_rv_fotter_description)); ?></textarea> </div> </div> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">Rent Title</label> <div class="col-sm-10"> <input type="text" name="rent_rv_title" value="<?php echo $rent_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Rent Short Description</label> <div class="col-sm-10"> <textarea id="rent_rv_short_description" name="rent_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($rent_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Rent Description</label> <div class="col-sm-10"> <textarea id="rent_rv_description" name="rent_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($rent_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Rent Fotter Description</label> <div class="col-sm-10"> <textarea id="rent_rv_fotter_description" name="rent_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($rent_rv_fotter_description)); ?></textarea> </div> </div> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">Repair Title</label> <div class="col-sm-10"> <input type="text" name="repair_rv_title" value="<?php echo $repair_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Repair Short Description</label> <div class="col-sm-10"> <textarea id="repair_rv_short_description" name="repair_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($repair_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Repair Description</label> <div class="col-sm-10"> <textarea id="repair_rv_description" name="repair_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($repair_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Repair Fotter Description</label> <div class="col-sm-10"> <textarea id="repair_rv_fotter_description" name="repair_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($repair_rv_fotter_description)); ?></textarea> </div> </div> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sale Title</label> <div class="col-sm-10"> <input type="text" name="sale_rv_title" value="<?php echo $sale_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sale Short Description</label> <div class="col-sm-10"> <textarea id="sale_rv_short_description" name="sale_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($sale_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sale Description</label> <div class="col-sm-10"> <textarea id="sale_rv_description" name="sale_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($sale_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sale Fotter Description</label> <div class="col-sm-10"> <textarea id="sale_rv_fotter_description" name="sale_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($sale_rv_fotter_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sparepart RV Title</label> <div class="col-sm-10"> <input type="text" name="sparepart_rv_title" value="<?php echo $sparepart_rv_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sparepart RV Short Description</label> <div class="col-sm-10"> <textarea id="sparepart_rv_short_description" name="sparepart_rv_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($sparepart_rv_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sparepart RV Description</label> <div class="col-sm-10"> <textarea id="sparepart_rv_description" name="sparepart_rv_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($sparepart_rv_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Sparepart RV Fotter Description</label> <div class="col-sm-10"> <textarea id="sparepart_rv_fotter_description" name="sparepart_rv_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($sparepart_rv_fotter_description)); ?></textarea> </div> </div> <div class="line"></div> <HR/> <HR/> <div class="form-group row"> <label class="col-sm-2 form-control-label">Item Detail Title</label> <div class="col-sm-10"> <input type="text" name="item_detail_title" value="<?php echo $item_detail_title; ?>" class="form-control"> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Item Detail Short Description</label> <div class="col-sm-10"> <textarea id="item_detail_short_description" name="item_detail_short_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($item_detail_short_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Item Detail Description</label> <div class="col-sm-10"> <textarea id="item_detail_description" name="item_detail_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($item_detail_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <label class="col-sm-2 form-control-label">Item Detail Fotter Description</label> <div class="col-sm-10"> <textarea id="item_detail_fotter_description" name="item_detail_fotter_description" class="form-control" rows="6" cols="90%" ><?php echo htmlentities(stripslashes($item_detail_fotter_description)); ?></textarea> </div> </div> <div class="line"></div> <div class="form-group row"> <div class="col-sm-5 offset-sm-2"> <input type="hidden" name="submitForm" value="edit" class="form-control"> <input type="hidden" name="i_rv_settingID" value="<?php echo $i_rv_settingID; ?>" class="form-control"> <button type="submit" class="btn btn-primary">Update</button> <button type="reset" class="btn btn-secondary">Cancel</button> </div> </div> <HR/> </div> </div> </form> </div> </div> <!-- End Form --> </div> </div> </div> </section> <!-- Header Section--> <?php require_once(ABSPATH.'../admin/common/admin_footer.php'); ?> </div> <?php require_once(ABSPATH.'../admin/common/admin_footer_js.php'); ?> </body> </html>