MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/news-detail.php

<?  
session_start();
if($_SESSION["lang"] == "") $_SESSION["lang"] = "th" ;    
?> 
  <!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>

	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="" />
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />  

	<!-- Stylesheets
	============================================= -->
	<link href="http://fonts.googleapis.com/css?family=Lato:300,400,600,700|Montserrat:400,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
    <link href="https://fonts.googleapis.com/css?family=Kanit" rel="stylesheet">
	<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
	<link rel="stylesheet" href="css/style.css" type="text/css" />
	<link rel="stylesheet" href="css/swiper.css" type="text/css" />

	<!-- Medical Demo Specific Stylesheet -->
	<link rel="stylesheet" href="css/medical.css" type="text/css" />
	<!-- / -->

	<link rel="stylesheet" href="css/dark.css" type="text/css" />
	<link rel="stylesheet" href="css/font-icons.css" type="text/css" />
	<link rel="stylesheet" href="css/medical-icons.css" type="text/css" />
	<link rel="stylesheet" href="css/animate.css" type="text/css" />
	<link rel="stylesheet" href="css/magnific-popup.css" type="text/css" />

	<link rel="stylesheet" href="css/fonts.css" type="text/css" />

	<link rel="stylesheet" href="css/responsive.css" type="text/css" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<?php
		if($_SESSION["lang"] == "th")
		{
			?><link href="css/th.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "en")
		{
			?><link href="css/en.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "cn")
		{
			?><link href="css/cn.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "jp")
		{
			?><link href="css/jp.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "mm")
		{
			?><link href="css/mm.css" rel="stylesheet"><?php
		}
		elseif($_SESSION["lang"] == "ara")
		{
			?><link href="css/ara.css" rel="stylesheet"><?php
		}
	?>
	<!--[if lt IE 9]>
		<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
	<![endif]-->

	<link rel="stylesheet" href="css/colors.php?color=168c48" type="text/css" />

	<? include "include/titledata.php"; ?>
	<?					
		$news_id = null;

		if(isset($_GET['news_id']))
		{
			$news_id = $_GET['news_id'];
		}
						
		$strSQL = "SELECT * FROM news where news_id ='".$news_id."'";
		$objQuery = mysqli_query($objCon,$strSQL);
		$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
		switch($_SESSION["lang"])
			{
				case "th" :
					$news = $objResult["news1"];
					break;  
			}
						
		?>
	<!-- Document Title
	============================================= -->
	<title><?php echo $title12;?> <?php echo $news ;?></title>
	<!-- KEYWORDS -->
	<meta name="keywords" content="<?php echo $key12;?>" />
	<!-- DESCRIPTION -->
	<meta name="description" content="<?php echo $des12;?>" />

 <style> 
 #primary-menu ul li#promotion > a { color:#FFF; font-weight: 600; }
 </style>  

</head>

<body class="stretched"> 
	
	<!-- Document Wrapper
	============================================= -->
	<div id="wrapper" class="clearfix">     
		<? include "header.php"; ?>
		<?					
			$news_id = null;

			if(isset($_GET['news_id']))
			{
				$news_id = $_GET['news_id'];
			}
						
			$strSQL = "SELECT * FROM news where news_id ='".$news_id."'";
			$objQuery = mysqli_query($objCon,$strSQL);
			$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
			switch($_SESSION["lang"])
				{
					case "th" :    
						$news = $objResult["news1"];
						$blog = $objResult["blog1"];
						break;
			}
						
		?>
	  <!-- Page Title
	  ============================================= -->

      <section id="page-title"> 
             
              <div class="container clearfix"> 
				<ol class="breadcrumb">
					<li><a href="index.php">หน้าแรก</a></li> 
					<li><a href="news.php">ข่าวสาร</a></li>
					<li><?php echo $news ;?></li>
				</ol>
		 </div>
		</section><!-- #page-title end -->
 
		<!-- Content
		============================================= -->
		<section id="content">
			<div class="container clearfix">
			
            <div class="content-wrap nopadding " > 
 
					<?php echo $blog;?>
                               
			</div><!-- .portfolio-single-image end -->
 	 
			 
<div class="content-wrap  "> 
     
					<div class="divider divider-center"><i class="icon-circle"></i></div>

					<!-- Related Portfolio Items
					============================================= -->
					<h4><?php echo $relatednews;?></h4>

					<div id="related-portfolio" class="owl-carousel portfolio-carousel carousel-widget" data-margin="30" data-nav="false" data-autoplay="5000" data-items-xxs="1" data-items-xs="2" data-items-sm="3" data-items-lg="4">
						<?php
								date_default_timezone_set('Asia/Bangkok');
								$strSQL5 = "SELECT * FROM news where news_id != '".$news_id."' ORDER BY news_id";
								$objQuery5 = mysqli_query($objCon,$strSQL5);							
							?>
							<?php
								while($objResult5 = mysqli_fetch_array($objQuery5,MYSQLI_ASSOC))    
							{ 
								switch($_SESSION["lang"])
									{
										case "th" :
											$news = $objResult5["news1"];
											$subtitle = $objResult5["sub1"];
											break;
									}
						?>
						<div class="oc-item">
							<div class="iportfolio">
								<div class="portfolio-image">
									<a href="news-detail.php?news_id=<?php echo $objResult5["news_id"];?>">
										<img src="upload_file/<?php echo $objResult5["img"];?>" alt="<?php echo $news;?>">
									</a>
									<div class="portfolio-overlay">
										<a href="upload_file/<?php echo $objResult5["img"];?>" class="center-icon" data-lightbox="image"><i class="icon-line-plus"></i></a> 
									</div>
								</div>
								<div class="portfolio-desc">
									<a href="news-detail.php?news_id=<?php echo $objResult5["news_id"];?>"><h3><?php echo $news;?></h3></a>
									<span><?php echo $subtitle;?></span>
								</div>
							</div>
						</div>
                        <?php
							}
						?>
					</div><!-- .portfolio-carousel end -->

				</div>

			</div>

		</section><!-- #content end -->


 <? include "footer.php"; ?>  
</body>
</html>  	 

OHA YOOOO