<?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_page">
          <?php foreach ($detail as $item): ?>
            <h1><?php echo $item->name_news ?></h1>
            <div class="post_commentbox">
            <a ><i class="fa fa-user"></i><?php echo $item->name . " " . $item->lname ?></a>
            <a > <i class="fa"></i></a>
            <a > <i class="fa fa-calendar"></i><?php echo $item->date_n . " " . "น." ?></a>
            <a > <i class="fa"></i></a>
            <a> <i class="fa fa-eye" ></i><?php echo $item->view ?></a>
            </div>

            <div class="single_page_content"> <img class="img-center" src="<?php echo base_url() . "images/" . $item->img_news ?>">
                <p> <br/> &emsp;&emsp;&emsp;
                  <?php echo $item->det_news ?>
                </p> </div>
          <?php endforeach;?>

            <div class="social_link">
              <ul class="sociallink_nav">
                <!-- <li><a href="#"><i class="fa fa-facebook"></i></a></li> -->
                <!-- <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                <li><a href="#"><i class="fa fa-google-plus"></i></a></li>
                <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                <li><a href="#"><i class="fa fa-pinterest"></i></a></li> -->
              </ul>
            </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 id="footer">
    <!-- <div class="footer_top">
      <div class="row">
        <div class="col-lg-4 col-md-4 col-sm-4">
          <div class="footer_widget wow fadeInLeftBig">
            <h2>Flickr Images</h2>
          </div>
        </div>
        <div class="col-lg-4 col-md-4 col-sm-4">
          <div class="footer_widget wow fadeInDown">
            <h2>Tag</h2>
            <ul class="tag_nav">
              <li><a href="#">Games</a></li>
              <li><a href="#">Sports</a></li>
              <li><a href="#">Fashion</a></li>
              <li><a href="#">Business</a></li>
              <li><a href="#">Life &amp; Style</a></li>
              <li><a href="#">Technology</a></li>
              <li><a href="#">Photo</a></li>
              <li><a href="#">Slider</a></li>
            </ul>
          </div>
        </div>
        <div class="col-lg-4 col-md-4 col-sm-4">
          <div class="footer_widget wow fadeInRightBig">
            <h2>Contact</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
            <address>
            Perfect News,1238 S . 123 St.Suite 25 Town City 3333,USA Phone: 123-326-789 Fax: 123-546-567
            </address>
          </div>
        </div>
      </div>
    </div> -->
    <div >
    <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>