<?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-12 col-md-12 col-sm-12">
                    <br />
                    <nav class="navbar" role="navigation">
                        <div id="navbar">
                            <div class="latest_newsarea"> <span>ข่าวล่าสุด</span>
                                <ul id="ticker01" class="news_sticker">
                                    <?php foreach ($query as $item): ?>
                                    <li><a href="<?php echo base_url(); ?>index.php/Newscontrol/detail?id=<?php echo $item->id ?>"><img
                                                src="<?php echo base_url() . 'images/' . $item->img_news ?>">
                                            <?php echo $item->name_news ?></a></li>
                                    <?php endforeach;?>
                                </ul>
                             <a href="<?php echo base_url(); ?>index.php/Newscontrol/login" ><button class="social_area" style="color:white; background-color: green; font-size: 18px;" >
                                 เข้าสู่ระบบ
                        </button></a>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </section>


        <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">
                            <h2><span>ข่าวประชาสัมพันธ์</span></h2>
                            <div class="single_post_content_left">
                                <ul class="business_catgnav  wow fadeInDown">
                                    <li>
                                        <figure class="bsbig_fig"> <a href="#" class="featured_img"> <img alt="" src="<?php echo base_url(); ?>images/welcom.png">
                                                <span class="overlay"></span> </a><br/>
                                            <figcaption style="color:green">สำนักงานสาธารณสุข จังหวัดสุรินทร์</figcaption>
                                            <p>ยินดีต้อนรับ เข้าสู่แหล่งข่าวของสำนักงานสาธารณสุข จังหวัดสุรินทร์</p><br/>
                                        </figure>
                                    </li>
                                </ul>
                            </div>
                            <div class="single_post_content_right">
                                <ul class="spost_nav">
                                    <?php $i = 1;foreach ($query as $item): if ($item->group_news == 1 & $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;?>
                                    <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=1&news_name=ข่าวประชาสัมพันธ์">
                                        <button type="button" class="btn btn-default" style="float: right; border-radius: 8px"><span
                                                style="color:green">ทั้งหมด</span></button></a>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-md-4 col-sm-4">
                    <aside class="right_content">
                        <div class="single_post_content">
                            <h2><span>ข่าวการประชุม</span></h2>
                            <ul class="spost_nav">
                                <?php $i = 1;foreach ($query as $item): if ($item->group_news == 2 & $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;?>
                                <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=2&news_name=ข่าวการประชุม">
                                    <button type="button" class="btn btn-default" style="float: right;border-radius: 8px"><span
                                            style="color:green">ทั้งหมด</span></button></a>
                            </ul>
                        </div>
                    </aside>
                </div>
            </div>
        </section>
        <section id="contentSection">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12">
                    <div class="left_content">

                        <div class="fashion_technology_area">
                            <div class="fashion">
                                <div class="single_post_content">
                                    <h2><span>ปชส. อบรม / สัมมนา</span></h2>

                                    <ul class="spost_nav">
                                        <?php $i = 1;foreach ($query as $item): if ($item->group_news == 3 & $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;?>
                                        <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=3&news_name=ปชส. อบรม / สัมมนา">
                                            <button type="button" class="btn btn-default" style="float: right;border-radius: 8px"><span
                                                    style="color:green">ทั้งหมด</span></button></a>
                                    </ul>
                                </div>
                            </div>

                            <!--  -->

                            <div class="technology">
                                <div class="single_post_content">
                                    <h2><span>รายงานการประชุม</span></h2>
                                    <ul class="spost_nav">
                                        <?php $i = 1;foreach ($query as $item): if ($item->group_news == 4 & $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;?>
                                        <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=4&news_name=รายงานการประชุม">
                                            <button type="button" class="btn btn-default" style="float: right;border-radius: 8px"><span
                                                    style="color:green">ทั้งหมด</span></button></a>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!--  -->

                <!-- <div class="col-lg-4 col-md-4 col-sm-4">
                    <aside class="right_content">
                        <div class="single_post_content">
                            <h2><span>ข่าว 43 แฟ้ม</span></h2>
                            <ul class="spost_nav">
                                <?php $i = 1;foreach ($query as $item): if ($item->group_news == 7 & $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;?>
                                <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=7&news_name=ข่าว 43 แฟ้ม">
                                    <button type="button" class="btn btn-default" style="float: right;border-radius: 8px"><span
                                            style="color:green">ทั้งหมด</span></button></a>
                            </ul>
                        </div>
                    </aside>
                </div> -->
            </div>



        </section>

        <section id="contentSection">
            <div class="row">
               <!-- <div class="col-lg-4 col-md-4 col-sm-4">
                    <aside class="right_content">
                        <div class="single_post_content">
                            <h2><span>รอบรั้ว สสจ.</span></h2>
                            <ul class="spost_nav">
                                <?php $i = 1;foreach ($query as $item): if ($item->group_news == 6 & $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;?>
                                <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=6&news_name=รอบรั้ว สสจ.">
                                    <button type="button" class="btn btn-default" style="float: right;border-radius: 8px"><span
                                            style="color:green">ทั้งหมด</span></button></a>
                            </ul>
                        </div>
                    </aside>
                </div> -->
                <div class="col-lg-12 col-md-12 col-sm-12">
                    <div class="left_content">
                        <div class="single_post_content">
                            <h2><span>ข่าวประกวดราคา</span></h2>

                            <div class="single_post_content">
                                <ul class="spost_nav">
                                    <?php $i = 1;foreach ($query as $item): if ($item->group_news == 5 & $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;?>
                                    <a href="<?php echo base_url(); ?>index.php/Newscontrol/listnews?id=5&news_name=ข่าวประกวดราคา">
                                        <button type="button" class="btn btn-default" style="float: right;border-radius: 8px"><span
                                                style="color:green">ทั้งหมด</span></button></a>
                                </ul>
                            </div>
                        </div>
                    </div>
                </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");?>
            </div>
        </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>