MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/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"; ?>
	<?					
			$cat_id = null;

			if(isset($_GET['cat_id']))
				{
					$cat_id = $_GET['cat_id'];
				}				
			$know_id = null;

			if(isset($_GET['know_id']))
				{
					$know_id = $_GET['know_id'];
				}
						
			$strSQL = "SELECT a.*, b.*
			FROM knowledge a
			LEFT JOIN know_cat b    
			ON a.cat_id=b.cat_id 
			where know_id ='".$know_id."'";
			$objQuery = mysqli_query($objCon,$strSQL);
			$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
						
						
	?>
	<!-- Document Title
	============================================= -->
	<title><?php echo $title6;?> <?php echo $objResult["know"];?></title>
	<!-- KEYWORDS -->
	<meta name="keywords" content="<?php echo $key6;?>" />
	<!-- DESCRIPTION -->
	<meta name="description" content="<?php echo $des6;?>" /> 

 <style>
 .form-control.error { border: 2px solid red; }
 #primary-menu ul li#news > a, li#news a { color:#FFF!important; font-weight: 600; }
 </style>

</head>

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

			if(isset($_GET['cat_id']))
				{
					$cat_id = $_GET['cat_id'];
				}				
			$know_id = null;

			if(isset($_GET['know_id']))
				{
					$know_id = $_GET['know_id'];
				}
						
			$strSQL = "SELECT a.*, b.*
			FROM knowledge a
			LEFT JOIN know_cat b    
			ON a.cat_id=b.cat_id 
			where know_id ='".$know_id."'";
			$objQuery = mysqli_query($objCon,$strSQL);
			$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
						
						
		?>
	
		<!-- Page Title
		============================================= -->
		<section id="page-title">

			<div class="container clearfix"> 
				<ol class="breadcrumb">
					<li><a href="index.php">หน้าแรก</a></li>
                    <li><a href="knowledge.php">ความรู้ทางการแพทย์</a></li>
					<li><?php echo $objResult["know"];?></li>
				</ol>
			</div>

		</section><!-- #page-title end -->

		<!-- Content
		============================================= -->
		<section id="content">

			<div class="content-wrap">

				<div class="container clearfix">

					<!-- Post Content
					============================================= -->
					<div class="postcontent nobottommargin clearfix">

						<!-- Posts
						============================================= -->
						<div id="posts">
							<?php echo $objResult["blog"];?>
						</div><!-- #posts end -->

						<!-- Pagination
						============================================= -->
						<!--
						<ul class="pager nomargin">
							<li class="previous"><a href="#">&larr; Older</a></li>
							<li class="next"><a href="#">Newer &rarr;</a></li>
						</ul>
						-->
						<!-- .pager end -->

					</div><!-- .postcontent end -->

					<!-- Sidebar
					============================================= -->
					<div class="sidebar nobottommargin col_last clearfix">
						<div class="sidebar-widgets-wrap">
  

							<div class="widget clearfix">

								<div class="tabs nobottommargin clearfix" id="sidebar-tabs">
                                
                                <div class="fancy-title title-dotted-border"><h4>ความรู้ทางการแพทย์</h4></div> 
                                     
									<div class="tab-container">

										<div class="tab-content clearfix" id="tabs-1">
											<div id="popular-post-list-sidebar">
												<?php
													$strSQL6 = "SELECT a.*, b.*
													FROM knowledge a
													LEFT JOIN know_cat b    
													ON a.cat_id=b.cat_id
													ORDER BY know_id DESC limit 4";
													$objQuery6 = mysqli_query($objCon,$strSQL6);							
												?>
												<?php
													while($objResult6 = mysqli_fetch_array($objQuery6,MYSQLI_ASSOC))    
													{ 
												?>
												<div class="spost clearfix">
													<div class="entry-image">
														<a href="detail.php?cat_id=<?php echo $objResult6["cat_id"];?>&know_id=<?php echo $objResult6["know_id"];?>" class="nobg"><img class="img-circle" src="upload_file/<?php echo $objResult6["img"];?>" alt=""></a>
													</div>
													<div class="entry-c">
														<div class="entry-title">
															<h4><a href="detail.php?cat_id=<?php echo $objResult6["cat_id"];?>&know_id=<?php echo $objResult6["know_id"];?>"><?php echo $objResult6["know"];?></a></h4>
														</div> 
													</div>
												</div>
												<?php
													}
												?>
											</div>
										</div> 

									</div>

								</div>

							</div>

						</div>

					</div><!-- .sidebar end -->

				</div>

			</div>

		</section><!-- #content end -->
 
 <? include "footer.php"; ?>   

</body>
</html>

OHA YOOOO