Viewing file: article.php (11.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once('includes/f_thaidate.php'); $cat = $_GET['v_id']; ?>
<!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'); ?>
<section class="page-header page-header-modern page-header-background page-header-background-sm " style="background-image: url(img/page-header/bg_blue.jpg);"> <div class="container"> <div class="row"> <div class="col-md-12 align-self-center p-static order-2 text-center">
</div> <div class="col-md-12 align-self-center order-1"> <ul class="breadcrumb breadcrumb-light d-block text-center"> <li><H4><a href="index.php">Home</a></li> <li class="active"> <?php $catrow=$conn->prepare("SELECT categoryname FROM tbl_category Where id =$cat"); $catrow->execute(); while($val2 = $catrow->fetch()){ $catname =$val2['categoryname']; } ?> <?= $catname; ?> </li></H4> </ul> </div> </div> </div> </section>
<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> <?=$catname; ?> :</strong></h3><h3 class="font-weight-normal text-color-primary">สหกรณ์ออมทรัพย์สาธารณสุขจังหวัดเพชรบูรณ์ </h3> </div> <?php //$r_id=$_GET['v_id']; $result = $conn->prepare("SELECT * FROM cat_news WHERE group_id =$cat ORDER BY cat_id DESC "); $result->execute(); while($val = $result->fetch()) { $catid=$val['home_cat']; $new_startDate = date("Y-m-d",strtotime($val['date_post'])); //วันที่ $new_startTime = date("H:i:s",strtotime($val['date_post'])); //เวลา ?> <article class="post post-medium"> <div class="row mb-3"> <div class="col-lg-5"> <div class="post-image"> <a href="article_post.php?s_id=<?php echo $catid;?>&&cat=<?=$cat; ?>"> <img src="phb_admin/uploadphoto/Thumbnails/<?php echo $val['thumbnail']; ?>" class="img-fluid2 img-thumbnail rounded" alt="" /> </a> </div> </div> <div class="col-lg-7"> <div class="post-content"> <h2 class="font-weight-semibold pt-4 pt-lg-0 text-5 line-height-4 mb-2"><a href="article_post.php?s_id=<?php echo $catid;?>&&cat=<?=$cat; ?>"><?php echo $val['home_name']; ?></a></h2> <p class="mb-0"><?php echo $val['detail']; ?></p> </div> <br> <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; ?> </a></span> </div> </div> </div> </article> <?php } ?>
</div> <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> </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> <!-- 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>
|