
<?php
$sql_portal=$db->query("select * from chitaportal where portalID=1");
$res_portal=$db->fetchNextArray($sql_portal);
?><!DOCTYPE html>
<html>
	<head>
		<title><?php if($_SESSION['language']=="pr"){echo $res_portal['title'];}else{echo $res_portal['titleen'];}?> - <?php if($_SESSION['language']=="pr"){echo 'مقالات و اخبار';}else{echo 'Articles And News';}?></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 -->
	<?php 
if(isset($_SESSION['language'])){
	$temp=$_SESSION['language'];
	if($temp=="en"){
		include("include/spkm/headeren.php");
		 }elseif($temp=="pr"){
			 include("include/spkm/headerfa.php");
			  } } ?>
		
		<!--/ 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 'Articles And News';}?></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;
						<a><?php if($_SESSION['language']=="pr"){echo 'مقالات و اخبار';}else{echo 'Articles And News';}?></a>&nbsp;&nbsp;<i class="fa fa-angle-left"></i>&nbsp;
					</nav>
				</div>
			</section>
			<!--/ page title -->
			
			<!-- page content -->
			<main class="page-content">
				<div class="grid-row">
					<!-- photo tour -->
					<section id="photo-tour" class="widget photo-tour photo-tour-4">
						<div class="widget-title"><?php if($_SESSION['language']=="pr"){echo 'مقالات و اخبار';}else{echo 'Articles And News';}?></div>
						
						
						
						<div class="grid">
							 <?php 
				$ebrand = $db->query("SELECT * FROM parts WHERE category = '12' order by id desc");
				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>
					<!--/ photo tour -->
				</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>