Viewing file: article_post.php (11.5 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once('includes/f_thaidate.php'); require_once ('phb_admin/includes/db.php'); $post_send=$_GET['s_id']; $cat =$_GET['cat']; ?>
<!DOCTYPE html> <html> <head>
<!-- Basic --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์ จำกัด : องค์กรมั่งคง บริหารโปร่งใส เทคโนโลยีก้าวไกล ประทับใจบริการ</title>
<meta name="keywords" content="สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์ จำกัด เป็นองค์กรที่มั่นคงและยั่งยืน บริหารตามหลักธรรมาภิบาลและหลักสหกรณ์สีขาว มุ่งให้เกิดประโยชน์ต่อสมาชิกและสังคม ดำเนินงานตามแนวทางปรัชญาเศรษฐกิจพอเพียง" /> <meta name="description" content="สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์ จำกัด "> <meta name="author" content="phbcoop.com">
<!-- Favicon --> <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" /> <link rel="icon" type="image/png" sizes="16x16" href="img/logo_icon.png">
<!-- Mobile Metas --> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
<!-- Web Fonts --> <link href="https://fonts.googleapis.com/css?family=Prompt:300,400,600,700,800%7CShadows+Into+Light%7CPlayfair+Display:400" rel="stylesheet" type="text/css">
<!-- Vendor CSS --> <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="vendor/fontawesome-free/css/all.min.css"> <link rel="stylesheet" href="vendor/animate/animate.min.css"> <link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.min.css"> <link rel="stylesheet" href="vendor/owl.carousel/assets/owl.carousel.min.css"> <link rel="stylesheet" href="vendor/owl.carousel/assets/owl.theme.default.min.css"> <link rel="stylesheet" href="vendor/magnific-popup/magnific-popup.min.css">
<!-- Theme CSS --> <link rel="stylesheet" href="css/theme.css"> <link rel="stylesheet" href="css/theme-elements.css"> <link rel="stylesheet" href="css/theme-blog.css"> <link rel="stylesheet" href="css/theme-shop.css">
<!-- Current Page CSS --> <link rel="stylesheet" href="vendor/rs-plugin/css/settings.css"> <link rel="stylesheet" href="vendor/rs-plugin/css/layers.css"> <link rel="stylesheet" href="vendor/rs-plugin/css/navigation.css"> <link rel="stylesheet" href="vendor/circle-flip-slideshow/css/component.css"> <!-- Demo CSS -->
<!-- Skin CSS --> <link rel="stylesheet" href="css/skins/default.css">
<!-- Theme Custom CSS --> <link rel="stylesheet" href="css/custom.css">
<!-- Head Libs --> <script src="vendor/modernizr/modernizr.min.js"></script>
</head>
<!-- Current Page CSS --> <link rel="stylesheet" href="vendor/circle-flip-slideshow/css/component.css"> <link rel="stylesheet" href="vendor/nivo-slider/nivo-slider.css"> <link rel="stylesheet" href="vendor/nivo-slider/themes/default/default.css"> <!-- Demo CSS -->
<!-- Skin CSS --> <link rel="stylesheet" href="css/skins/default.css">
<!-- Theme Custom CSS --> <link rel="stylesheet" href="css/custom.css">
<!-- Head Libs --> <script src="vendor/modernizr/modernizr.min.js"></script>
</head> <body>
<div class="body">
<?php include ('includes/navbar.php'); ?>
<div class="container"> <div class="row pt-12">
<div class="col-lg-8 mb-5 mb-lg-0"> <div class="heading heading-border heading-middle-border"> <h3 class="font-weight-bold text-color-dark"> <strong><?php $catrow=$conn->prepare("SELECT categoryname FROM tbl_category Where id =$cat"); $catrow->execute(); while($val2 = $catrow->fetch()){ $catname =$val2['categoryname']; } ?> <?=$catname; ?> :</strong></h3><h3 class="font-weight-normal text-color-primary">สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์ </h3> </div> <?php $result = $conn->prepare("SELECT * FROM cat_news where home_cat = $post_send "); $result->execute(); while($val = $result->fetch()) { $new_startDate = date("Y-m-d",strtotime($val['date_post'])); //วันที่ $new_startTime = date("H:i:s",strtotime($val['date_post'])); //เวลา ?> <article class="post post-large blog-single-post border-0 m-0 p-0"> <div class="post-image ml-0"> </div> <div class="post-block mt-4 pt-2 post-author"> <div class="img-thumbnail img-thumbnail-no-borders d-block pb-3"> <img src="img/news-icon.png" alt=""> </div> </div> <div class="post-content ml-0"> <h2 class="font-weight-bold"><a href="blog-post.html"><?php echo $val['home_name']; ?></a></h2> <div class="post-meta"> <span><i class="far fa-calendar-alt"></i> <?= DateThai($new_startDate); ?></span> <span><i class="far fa-folder"></i> <a href="#"> <?php echo $catname; ?> </span> </div>
<p> <?php echo $val['detail']; ?> </p>
<div class="lightbox mb-4" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': true}}"> <?php $post_send=$_GET['s_id']; $result = $conn->prepare("SELECT * FROM tbl_news where home_id = $post_send "); $result->execute(); while($val = $result->fetch()) { ?> <a class="img-thumbnail img-thumbnail-no-borders d-inline-block mb-1 mr-1" href="phb_admin/uploadphoto/uploads/<?php echo $val['image_name']; ?>" title= "สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์"> <img class="img-fluid2" src="phb_admin/uploadphoto/uploads/<?php echo $val['image_name']; ?>" width="210" alt="Project"> </a> <?php } ?> </div>
</div> </div> </article> <?php } ?>
<div class="col-lg-4 mb-5 mb-lg-0"> <aside class="sidebar"> <div class="row">
<?php $result2 = $conn->prepare("SELECT * FROM tbl_boss where position_boss = 1 "); $result2->execute(); for($i=0; $row2 = $result2->fetch(); $i++){ $id2 = $row2['id']; ?> <div class="row justify-content-center"> <div class="col-8 col-lg-8 pt-3"> <a href="#" data-toggle="modal" data-target="#largeModal<?php echo $i; ?>" > <div class="img-fluid "> <img src="phb_admin/uploads/teams/<?php echo $row2['image_location']; ?>" class="img-fluid rounded-circle2 border-10" alt="<?php echo $row2['pname'].$row2['fname']." ".$row2['lname']; ?>" > </div> </a> </div> <div class="col-12 col-lg-12"> <div class="text-center p-3"> <H5 class="thumb-info-inner"><?php echo $row2['pname']." ".$row2['fname']." ".$row2['lname']; ?></H5> <p class="mb-0 text-dark"><?php echo $row2['position']; ?>สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์</p> </div> </div> </div> <?php } ?> <?php include('includes/rightmenu.php'); ?> </div> </aside> </div> </div> </div>
<?php include ('includes/footer.php'); ?> </div>
<!-- Vendor --> <script src="vendor/jquery/jquery.min.js"></script> <script src="vendor/jquery.appear/jquery.appear.min.js"></script> <script src="vendor/jquery.easing/jquery.easing.min.js"></script> <script src="vendor/jquery.cookie/jquery.cookie.min.js"></script> <script src="vendor/popper/umd/popper.min.js"></script> <script src="vendor/bootstrap/js/bootstrap.min.js"></script> <script src="vendor/common/common.min.js"></script> <script src="vendor/jquery.validation/jquery.validate.min.js"></script> <script src="vendor/jquery.easy-pie-chart/jquery.easypiechart.min.js"></script> <script src="vendor/jquery.gmap/jquery.gmap.min.js"></script> <script src="vendor/jquery.lazyload/jquery.lazyload.min.js"></script> <script src="vendor/isotope/jquery.isotope.min.js"></script> <script src="vendor/owl.carousel/owl.carousel.min.js"></script> <script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script> <script src="vendor/vide/jquery.vide.min.js"></script> <script src="vendor/vivus/vivus.min.js"></script> <!-- Theme Base, Components and Settings --> <script src="js/theme.js"></script>
<!-- Current Page Vendor and Views --> <script src="vendor/circle-flip-slideshow/js/jquery.flipshow.min.js"></script> <script src="vendor/nivo-slider/jquery.nivo.slider.min.js"></script> <!-- Current Page Vendor and Views --> <script src="vendor/rs-plugin/js/jquery.themepunch.tools.min.js"></script> <script src="vendor/rs-plugin/js/jquery.themepunch.revolution.min.js"></script> <script src="vendor/circle-flip-slideshow/js/jquery.flipshow.min.js"></script> <script src="js/views/view.home.js"></script> <!-- Examples --> <script src="js/examples/examples.lightboxes.js"></script> <!-- Theme Custom --> <script src="js/custom.js"></script> <!-- Theme Initialization Files --> <script src="js/theme.init.js"></script>
<!-- Google Analytics: Change UA-XXXXX-X to be your site's ID. Go to http://www.google.com/analytics/ for more information. <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-12345678-1', 'auto'); ga('send', 'pageview'); </script> -->
</body> </html>
|