MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/branch.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 $title9;?></title>
	<!-- KEYWORDS -->
	<meta name="keywords" content="<?php echo $key9;?>" />
	<!-- DESCRIPTION -->
	<meta name="description" content="<?php echo $des9;?>" /> 

 <style> 
 #primary-menu ul li#branch > a { color:#FFF!important; font-weight: 600; }
 .entry { border:none!important; }
 </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">หน้าแรก</a></li>
					<li>เครือวิภาราม</li>
				</ol>
			</div>

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

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

			<div class="content-wrap">

				<div class="container clearfix">
            
              <!-- Post Content
					============================================= -->
					<?php
						$strSQL = "SELECT * FROM branch ORDER BY branch_no ASC";
						$objQuery = mysqli_query($objCon,$strSQL);							
					?>
						<?php
							while($objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC))    
							{ 
							?>
							<div class=" col_full nobottommargin clearfix">
			 
								 <div id="posts" class="small-thumbs">
							
								   <div class="entry clearfix"> 
											<div class="entry-image">
												<div class="fslider" data-arrows="false" data-lightbox="gallery">
													<div class="flexslider">
														<div class="slider-wrap">
															<?php
																$strSQL2 = "SELECT * FROM branch_pic where branch_id ='".$objResult["branch_id"]."' ORDER BY pic_id";
																$objQuery2 = mysqli_query($objCon,$strSQL2);	
															?>
																<?php
																	while($objResult2 = mysqli_fetch_array($objQuery2,MYSQLI_ASSOC))    
																	{ 
																	?>
															<div class="slide"><a href="upload_file/<?php echo $objResult2["pic"];?>" data-lightbox="gallery-item"><img class="image_fade" src="upload_file/<?php echo $objResult2["pic"];?>" alt="image"></a></div> 
															<?php
																}        
															?>
														 </div>
													</div>
												</div> 
											</div>  
									
											<div class="entry-c">  
												<div class="panel panel-default events-meta">
													<div class="panel-body">
													 <span> <img class="image_fade" src="upload_file/<?php echo $objResult["logo"];?>" alt="logo"> </span> 
														<ul class="portfolio-meta nobottommargin">
														<?php if ($objResult["company_1"] == NULL) { ?>	
															
														<?php 
														}else{ ?>
															<li><span><i class="icon-hospital"></i>ชื่อ :</span><?php echo $objResult["company_1"];?> </li>
														<?php } ?>
														<?php if ($objResult["tel"] == NULL) { ?>	
															
														<?php 
														}else{ ?>
															<li><span><i class="icon-call"></i>เบอร์โทร :</span><?php echo $objResult["tel"];?></li>
														<?php } ?>
														<?php if ($objResult["fax"] == NULL) { ?>	
															
														<?php 
														}else{ ?>
															<li><span><i class="icon-printer"></i>แฟกซ์ :</span><?php echo $objResult["fax"];?></li>
														<?php } ?>
														<?php if ($objResult["mail"] == NULL) { ?>	
															 	
														<?php 
														}else{ ?>
															<li><span><i class="icon-envelope2"></i>อีเมล :</span><?php echo $objResult["mail"];?></li>	
														<?php } ?>
														<?php if ($objResult["address_1"] == NULL) { ?>	
															
														<?php 
														}else{ ?>
															<li><span><i class="icon-map-marker2"></i>ที่อยู่ :</span><?php echo $objResult["address_1"];?></li>
														<?php } ?>
														<?php if ($objResult["website"] == NULL) { ?>	
															
														<?php 
														}else{ ?>
															<li><span><i class="icon-link"></i>เว็บไซต์ :</span><a href="<?php echo $objResult["website"];?>"><?php echo $objResult["website"];?></a></li>
														<?php } ?>
														</ul>
													</div>
												</div> <!-- panel End --> 
											 </div>
									</div><!-- entry End --> 
					   
								</div><!-- #posts end --> 
					 
							</div> <!-- # Post Content end -->
									
								
							<?php
								}
							?>

			  </div>

			</div>

		</section><!-- #content end -->
 
 <? include "footer.php"; ?>   
 
	<script type="text/javascript">

		jQuery(window).load(function(){

			var $container = $('#posts');

			$container.infinitescroll({
				loading: {
					finishedMsg: '<i class="icon-line-check"></i>',
					msgText: '<i class="icon-line-loader icon-spin"></i>',
					img: "images/preloader-dark.gif",
					speed: 'normal'
				},
				state: {
					isDone: false
				},
				nextSelector: "#load-next-posts a",
				navSelector: "#load-next-posts",
				itemSelector: "div.entry"
			},
			function( newElements ) {
				$container.isotope( 'appended', $( newElements ) );
				var t = setTimeout( function(){ $container.isotope('layout'); }, 2000 );
				SEMICOLON.initialize.resizeVideos();
				SEMICOLON.widget.loadFlexSlider();
				SEMICOLON.widget.masonryThumbs();
			});

		});
	</script>

</body>
</html>

OHA YOOOO