<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html>

<head>
<!-- Google Analytics เว็บหลัก-->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-128658141-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-128658141-1');
</script>
    <title>สำนักงานสาธารณสุขจังหวัดสุรินทร์</title>
    <link rel="icon" type="image/png" href="<?php echo base_url();?>images/logo_MOPH.png">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/animate.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/font.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/li-scroller.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/slick.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/jquery.fancybox.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/theme.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/style.css">

</head>

<body>
    <div id="preloader">
        <div id="status">&nbsp;</div>
    </div>
    <a class="scrollToTop" href="#"><i class="fa fa-angle-up"></i></a>
    <div class="container">
    <header id="header">
        <? $this->load->view("header_view");?>
        </header>






        <section id="contentSection">
            <div class="row">
                <div class="col-lg-8 col-md-8 col-sm-8">
                    <div class="left_content">
                        <div class="single_post_content">
                            <br />
                            <h2><span>
                                    <?php echo $_GET['news_name']; ?></span></h2>

                            <div class="single_post_content">
                                <ul class="spost_nav" style="overflow-y: scroll;height:400px">

                                    <?php foreach ($select as $item): if ($item->group_news == $_GET['id']): ?>
	                                    <li>
	                                        <div title="ลงข่าววันที่ : <?php echo date('d-m-Y', strtotime($item->date_n)); ?> เวลา : <?php echo date('H:i:s', strtotime($item->date_n)); ?> น." class="media  fadeInDown "> <a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>" class="media wow fadeInDown"> <a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>" class="media  fadeInDown "> <a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>"
	                                                class="media-left">
	                                                <img src="<?php echo base_url() . 'images/' . $item->img_news ?>"></a>
	                                            <div class="media-body catg_title">
	                                                <a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>"
	                                                    class="catg_title">
	                                                    <?php echo $item->name_news ?></a> </div>
	                                        </div>
	                                    </li>
	                                    <?php endif;endforeach;?>

                                </ul>
                                <div class="single_page_content"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-lg-4 col-md-4 col-sm-4">
                    <aside class="right_content">
                        <div class="single_sidebar">
                            <br />
                            <h2><span>ข่าวล่าสุด</span></h2>
                            <ul class="spost_nav">
                                <?php $i = 1;foreach ($select as $item): if ($i <= 5): ?>
	                                <li>
	                                    <div class="media wow fadeInDown"> <a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>"
	                                            class="media-left">
	                                            <img src="<?php echo base_url() . 'images/' . $item->img_news ?>"></a>
	                                        <div class="media-body catg_title">
	                                            <a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>"
	                                                class="catg_title">
	                                                <?php echo $item->name_news ?></a> </div>
	                                    </div>
	                                </li>
	                                <?php $i++;endif;endforeach;?>
                            </ul>
                        </div>




                    </aside>
                </div>
            </div>
        </section>
        <footer >
        <div align="center" class="col-md-12 col-lg-12 col-sm-12 col-xs-12" style="font-size:12px;color:white;padding:5px; background-color:#232222;">
   <? $this->load->view("footer_sview");?>
        </footer>
    </div>
    <script src="<?php echo base_url(); ?>assets/js/jquery.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/wow.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/slick.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/jquery.li-scroller.1.0.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/jquery.newsTicker.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/jquery.fancybox.pack.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/custom.js"></script>
</body>

</html>