MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/patient.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"; ?>
	<!-- Document Title
	============================================= -->
	<title><?php echo $title4;?></title>
	<!-- KEYWORDS -->
	<meta name="keywords" content="<?php echo $key4;?>" />
	<!-- DESCRIPTION -->
	<meta name="description" content="<?php echo $des4;?>" /> 

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

</head>

<body class="stretched"> 
	
	<!-- Document Wrapper
	============================================= -->
	<div id="wrapper" class="clearfix"> 
		<? include "header.php"; ?>
	
		<!-- Page Title
		============================================= -->
		<section id="page-title">

			<div class="container clearfix"> 
				<ol class="breadcrumb">
					<li><a href="index.php"><?php echo $home;?></a></li>   
					<li><?php echo $menu3;?></li>
				</ol>
			</div>

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

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

			<div class="content-wrap">
  
				<div class="  nobottommargin">
					<div class="container clearfix">

						<div class="row clearfix">
						<div class="portfolio portfolio-5 clearfix">
						<?php
							$strSQL3 = "SELECT * FROM service ORDER BY service_id DESC";
							$objQuery3 = mysqli_query($objCon,$strSQL3);							
						?>
						<?php
							while($objResult3 = mysqli_fetch_array($objQuery3,MYSQLI_ASSOC))    
							{ 
								switch($_SESSION["lang"])
								{
										case "th" :
											$service = $objResult3["service1"];
											$subtitle = $objResult3["sub1"];
											break;
										case "en" :
											$service = $objResult3["service2"];
											$subtitle = $objResult3["sub2"];
											break;
										case "cn" :
											$service = $objResult3["service3"];
											$subtitle = $objResult3["sub3"];
											break;
										case "jp" :
											$service = $objResult3["service4"];
											$subtitle = $objResult3["sub4"];
											break;
										case "mm" :
											$service = $objResult3["service5"];
											$subtitle = $objResult3["sub5"];
											break;
										case "ara" :
											$service = $objResult3["service6"];
											$subtitle = $objResult3["sub6"];
											break;
										default : 
											$service = $objResult3["service1"];
											$subtitle = $objResult3["sub1"];
											break;
								}
							?> 
							<?php 
								if($service != "")
								{
									?>
										<article class="portfolio-item">    
											<div class="portfolio-image">
												<a href="patient-detail.php?service_id=<?php echo $objResult3["service_id"];?>">
													<img src="upload_file/<?php echo $objResult3["img"];?>" alt="Service">
												</a>
												<div class="portfolio-overlay"> 
													<a href="patient-detail.php?service_id=<?php echo $objResult3["service_id"];?>" class="center-icon"><i class="<?php echo $objResult3["icon"];?>"></i></a>
												</div>
											</div>
											<div class="portfolio-desc">
												<h3><a href="patient-detail.php?service_id=<?php echo $objResult3["service_id"];?>"><?php echo $service;?></a></h3>
												<span><?php echo $subtitle;?></span>
											</div>
										</article>
									<?php 
								}
							?>
							<?php
								}
							?>
						</div>
						</div>

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

</body>
</html>

OHA YOOOO