MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/content.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 $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,
        li#depart a {
            color: #FFF !important;
            font-weight: 600;
        }
    </style>

</head>

<body class="stretched">

    <!-- Document Wrapper
	============================================= -->
    <div id="wrapper" class="clearfix">

        <? include "header.php"; ?>

        <?
        $page = null;

        if (isset($_GET['page'])) {
            $page = $_GET['page'];
        }

        $strSQL = "SELECT * FROM tb_content where link_page ='" . $page . "'";
        $objQuery = mysqli_query($objCon, $strSQL);
        $objResult = mysqli_fetch_array($objQuery, MYSQLI_ASSOC);
        switch ($_SESSION["lang"]) {
            case "th":
                $name = $objResult["name_th"];
                $detail = $objResult["detail_th"];
                break;
            case "en":
                $name = $objResult["name_en"];
                $detail = $objResult["detail_en"];
                break;
            case "cn":
                $name = $objResult["name_cn"];
                $detail = $objResult["detail_cn"];
                break;
            case "jp":
                $name = $objResult["name_jp"];
                $detail = $objResult["detail_jp"];
                break;
            case "mm":
                $name = $objResult["name_mm"];
                $detail = $objResult["detail_mm"];
                break;
            case "ara":
                $name = $objResult["name_ara"];
                $detail = $objResult["detail_ara"];
                break;
            default:
                $name = $objResult["name_th"];
                $detail = $objResult["detail_th"];
                break;
        }

        ?>
        <!-- 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 $objResult['link_page']; ?></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">

                            <div class="entry clearfix">

                                <div class="padding20">
                                    <div class=" heading-block entry-title color">
                                        <h2 class="color"><?php echo $name; ?></h2>
                                    </div>

                                    <div class="entry-content">
                                        <?php echo $detail; ?>
                                    </div>
                                </div>

                            </div>


                        </div><!-- #posts end -->

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

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


                            <div class="widget clearfix">
                                <h4><?php echo $menu2; ?></h4>
                                <ul class="iconlist" style="padding-left:15px;">
                                    <?php
                                    $strSQL3 = "SELECT * FROM clinic ORDER BY clinic_id";
                                    $objQuery3 = mysqli_query($objCon, $strSQL3);
                                    ?>
                                    <?php
                                    while ($objResult3 = mysqli_fetch_array($objQuery3, MYSQLI_ASSOC)) {
                                        switch ($_SESSION["lang"]) {
                                            case "th":
                                                $clinic = $objResult3["clinic1"];
                                                break;
                                            case "en":
                                                $clinic = $objResult3["clinic2"];
                                                break;
                                            case "cn":
                                                $clinic = $objResult3["clinic3"];
                                                break;
                                            case "jp":
                                                $clinic = $objResult3["clinic4"];
                                                break;
                                            case "mm":
                                                $clinic = $objResult3["clinic5"];
                                                break;
                                            case "ara":
                                                $clinic = $objResult3["clinic6"];
                                                break;
                                            default:
                                                $clinic = $objResult3["clinic1"];
                                                break;
                                        }
                                    ?>
                                        <li><a href="department-detail.php?clinic_id=<?php echo $objResult3["clinic_id"]; ?>">
                                                <div><i class="<?php echo $objResult3["icon"]; ?>"></i><?php echo $clinic; ?></div>
                                            </a></li>
                                    <?php
                                    }
                                    ?>
                                </ul>

                            </div>

                        </div>

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

                </div>

            </div>

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

        <? include "footer.php"; ?>

</body>

</html>

OHA YOOOO