MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/department.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="SemiColonWeb" />
	<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" />
	<!--[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 $title3;?></title>
	<!-- KEYWORDS -->
	<meta name="keywords" content="<?php echo $key3;?>" />
	<!-- DESCRIPTION -->
	<meta name="description" content="<?php echo $des3;?>" /> 

 <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" > 
		<?php include "include/manualdata.php"; ?>
		<?php 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 $menu2;?></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">
							<?php
								$strSQL = "SELECT * FROM clinic ORDER BY clinic_id";
								$objQuery = mysqli_query($objCon,$strSQL);							
							?>
							<?php
								while($objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC))    
							{ 
								switch($_SESSION["lang"])
									{
										case "th" :
											$clinic = $objResult["clinic1"];
											$subtitle = $objResult["sub1"];
											break;
										case "en" :
											$clinic = $objResult["clinic2"];
											$subtitle = $objResult["sub2"];
											break;
										case "cn" :
											$clinic = $objResult["clinic3"];
											$subtitle = $objResult["sub3"];
											break;
										case "jp" :
											$clinic = $objResult["clinic4"];
											$subtitle = $objResult["sub4"];
											break;
										case "mm" :
											$clinic = $objResult["clinic5"];
											$subtitle = $objResult["sub5"];
											break;
										case "ara" :
											$clinic = $objResult["clinic6"];
											$subtitle = $objResult["sub6"];
											break;
										default : 
											$clinic = $objResult["clinic1"];
											$subtitle = $objResult["sub1"];
											break;
									}
							?>
							<?php 
								if($clinic != "")    
								{
									?>
										<div class="col-md-4 bottommargin center">
											<i class="i-plain color i-large <?php echo $objResult["icon"];?> inline-block" style="margin-bottom: 15px;"></i>
											<div class="heading-block nobottomborder" style="margin-bottom: 15px;"> 
												<h4><a href="department-detail.php?clinic_id=<?php echo $objResult["clinic_id"];?>"><?php echo $clinic ;?></a></h4>
											</div>
											<p><?php echo $subtitle ;?></p>
										</div>
									<?php 
								}
							?>
							<?php
								}
							?>
						</div>

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

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

OHA YOOOO