<!DOCTYPE html>
<html>
	<head>
     <?php 
if(isset($_SESSION['language'])){
	$temp=$_SESSION['language'];
	if($temp=="en"){
		include("include/spkm/headeren.php");
		 }elseif($temp=="pr"){
			 include("include/spkm/headerfa.php");
			  } }
			  $eimage=$db->query("SELECT * FROM picturespart where adid='".$post['id']."' and profile=1");
			 $image=$db->fetchNextArray($eimage); ?>
              <?php
$sql_portal=$db->query("select * from chitaportal where portalID=1");
$res_portal=$db->fetchNextArray($sql_portal);
?>
		<title><?php if($_SESSION['language']=="pr"){echo $res_portal['title'];}else{echo $res_portal['titleen'];}?> - <?php if($_SESSION['language']=="pr"){echo $post['name'];}else{echo $post['nameen'];}?></title>
		
		<!-- metas -->
		<meta charset="utf-8">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
		<!--/ metas -->
		
		<!-- styles -->
		
		
		<!--/ styles -->
		
		<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
	</head>
	
	<body>
		<div class="page">

			<!-- page header -->
			<?php include("include/spkm/menu.php"); ?>
			<!--/ page header -->
			
			<!-- quick search -->
			<?php	include("include/spkm/search.php");?>
			<!--/ quick search -->

			<!-- page title -->
			<section class="page-title">
				<div class="grid-row clearfix">
					<h1><?php if($_SESSION['language']=="pr"){echo 'محصولات';}else{echo 'products';}?></h1>
					
					<nav class="bread-crumbs">
						<a href="index.php"><?php if($_SESSION['language']=="pr"){echo 'صفحه اصلی';}else{echo 'Home';}?></a>&nbsp;&nbsp;<i class="fa fa-angle-left"></i>&nbsp; <?php $epics11=$db->query("select * from categories where id='".$post['procat']."'");
		 $pics11=$db->fetchNextArray($epics11)?>
						<a href="category/<?php echo $pics11['slug'];?>">
                        
                       
						<?php if($_SESSION['language']=="pr"){echo $pics11['name'];}else{echo $pics11['name_en'];}?>
                        
                        
                        
                        
                        </a>&nbsp;&nbsp;<i class="fa fa-angle-left"></i>&nbsp;
						<a href="#"><?php if($_SESSION['language']=="pr"){echo $post['name'];}else{echo $post['nameen'];}?></a>
					</nav>
				</div>
			</section>
			<!--/ page title -->
			
			<!-- page content -->
			<main class="page-content">
				<div class="grid-row">       
                    <div class="grid-col grid-col-3">
						<!-- appointment -->
						<?php include("include/spkm/contact.php"); ?>                        
                        <div class="grid-row-sep" style="margin: 20px auto 26px !important;
    width: 100% !important;"></div>
                        <section class="widget widget-appointment">
							<div class="widget-title"><?php if($_SESSION['language']=="pr"){echo 'جستار مرتبط';}else{echo 'Related Search';}?></div>
                        <?php tags($post['id']);?>
                        </section>
                        
						<!--/ appointment -->	
					</div>
                    

					<div class="grid-col grid-col-9">
						<!-- photo tour -->
						<section class="widget photo-tour photo-tour-1">	
							<div class="widget-title"><?php if($_SESSION['language']=="pr"){echo $post['name'];}else{echo $post['nameen'];}?></div>
																	
							<div class="grid clearfix">
								<div class="item item2">
									<div class="pic">
										<img src="<?php echo $image['file'];?>" width="870" height="458" alt="Nullam euismod commodo">
									</div>
								</div>
							</div>
						</section>
						<!--/ photo tour -->
						<!-- details -->
						<section class="widget widget-details">
							<div class="widget-title"><?php if($_SESSION['language']=="pr"){echo 'توضیحات محصول';}else{echo 'Products Description';}?></div>
							<div class="text">
								<p><?php if($_SESSION['language']=="pr"){echo stripslashes($post['des']);}else{echo stripslashes($post['desen']);}?></p>
								
								
							</div>
						</section>
						<!--/ details -->
					</div>
					
					
				</div>
			
					<div class="grid-row-sep"></div>
				<div class="grid-row">					
					<!-- related projects -->
					<section id="photo-tour" class="widget photo-tour photo-tour-4">
						<div class="widget-title"><?php if($_SESSION['language']=="pr"){echo 'محصولات مشابه';}else{echo 'Similar Products';}?></div>
						
						<div class="grid">
                        <?php 
				$ebrand = $db->query("SELECT * FROM parts WHERE category = '11' and procat = '".$post['procat']. "' limit 4");
				while($brand=$db->fetchNextArray($ebrand)){?>							
							<div class="item item1">
								<div class="pic">
                               <?  $eimage1=$db->query("SELECT * FROM picturespart where adid='".$brand['id']."' and profile=1");
			 $image1=$db->fetchNextArray($eimage1); ?>
									<img src="<?php echo $image1['file'];?>" width="270" height="142" alt="Nullam euismod commodo">
									<div class="links">
										<ul>
											<li><a href="<?php echo seourl('post',$brand['id']);?>" class="fa fa-link"></a></li>										
										</ul>
									</div>
								</div>
								<h3><?php if($_SESSION['language']=="pr"){echo $brand['name'];}else{echo $brand['nameen'];}?></h3>
								<p></p>
							</div>
					<?php } ?>
						</div>
					</section>
					<!--/ related projects -->
				</div>
			</main>
			<!--/ page content -->

			
			<!-- copyrights -->
			<?php include("include/spkm/footer.php"); ?>
			<!--/ copyrights -->

		</div>
		
		<!-- scripts -->
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="js/jquery.migrate.min.js"></script>
		<script type="text/javascript" src="js/owl.carousel.min.js"></script>
		<script type="text/javascript" src="js/jquery.isotope.min.js"></script>
		<script type="text/javascript" src="js/jquery.fancybox.pack.js"></script>
		<script type="text/javascript" src="js/jquery.fancybox-media.js"></script>
		<script type="text/javascript" src="js/jquery.flot.js"></script>
		<script type="text/javascript" src="js/jquery.flot.pie.js"></script>
		<script type="text/javascript" src="js/jquery.flot.categories.js"></script>
		<script type="text/javascript" src="js/greensock.js"></script>
		<script type="text/javascript" src="js/layerslider.transitions.js"></script>
		<script type="text/javascript" src="js/layerslider.kreaturamedia.jquery.js"></script>

	<!-- Superscrollorama -->		
		<script type="text/javascript" src="js/jquery.superscrollorama.js"></script>
		<script type="text/javascript" src="js/TweenMax.min.js"></script>
		<script type="text/javascript" src="js/TimelineMax.min.js"></script>
	<!--/ Superscrollorama -->
	
		<script type="text/javascript" src="js/jquery.ui.core.min.js"></script>
		<script type="text/javascript" src="js/jquery.ui.widget.min.js"></script>
		<script type="text/javascript" src="js/jquery.ui.tabs.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>
		<script type="text/javascript" src="js/jquery.ui.accordion.min.js"></script>
		<script type="text/javascript" src="js/jquery.tweet.js"></script>
	<!-- EASYPIECHART -->
		<script type="text/javascript" src="js/jquery.easypiechart.js"></script>
	<!--/ EASYPIECHART -->
		<script type="text/javascript" src="js/jquery.autocomplete.min.js"></script>
		<script type="text/javascript" src="js/scripts.js"></script>
		<!--/ scripts -->
		
	</body>
</html>