Viewing file: view_image.php (7.05 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php ob_start(); require_once("getglobal.php"); $cat=$_GET['cat']; ?> <!DOCTYPE html> <html> <head> <!-- Basic --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php showtitle(); ?></title>
<meta name="keywords" content="<?php showkeyword(); ?>" /> <meta name="description" content="<?php showcontent(); ?>"> <meta name="author" content="mophlawyer.com">
<!-- Favicon --> <link rel="shortcut icon" href="img/favicon2.ico" type="image/x-icon" /> <link rel="apple-touch-icon" href="img/logoapple.png">
<!-- Mobile Metas --> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Web Fonts --> <link href="https://fonts.googleapis.com/css?family=Pridi" rel="stylesheet">
<!-- Vendor CSS --> <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.css"> <link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.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.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"> <link rel="stylesheet" href="css/theme-animate.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.js"></script> <script type="text/javascript" charset="utf-8" language="javascript" src="js/jquery.dataTables.js"></script> <script type="text/javascript" charset="utf-8" language="javascript" src="js/DT_bootstrap.js"></script>
</head>
<body>
<div class="body"> <?php include('header.php'); ?> <div role="main" class="main">
<section class="page-header"> <div class="container"> <div class="row"> <div class="col-md-12"> <ul class="breadcrumb"> <li><a href="index.php">หน้าหลัก</a></li> <li class="active">รูปภาพกิจกรรม</li> </ul> </div> </div> <div class="row-fluid"> <div class="col-md-12"> <h1> สมาคมนักกฏหมายสาธารณสุข </h1> </div> </div> </div> </section>
<div class="container">
<div class="row"> <?php require_once('sidebar.php'); ?> <div class="col-md-9">
<div class="col-md-12"> <ul class="portfolio-list sort-destination lightbox" data-sort-id="portfolio" data-plugin-options='{"delegate": "a", "type": "image", "gallery": {"enabled": true}}'> <?php require_once('admin/db.php'); require_once('f_thaidate.php'); $r_id = $_GET['id']; $resultcat = $conn->prepare("SELECT * FROM cat_image WHERE title_id='$r_id'"); $resultcat->execute(); $rowcat = $resultcat->fetch(); ?> <H4><?php echo $rowcat['title_name']; ?></H4> <span><i class="fa fa-calendar"></i> <?php echo DateThai($rowcat ['date_post']); ?> : เข้าชม </span> <span><i class="fa fa-eye"></i> <?php echo $rowcat ['num']; ?> ครั้ง </span> <hr class='tall'> <p> <?php echo $rowcat['detail']; ?></p> <div class="row push-top"> <?php $resultc = $conn->prepare("UPDATE cat_image SET num = num + 1 WHERE title_id ='$r_id'"); $resultc->execute(); $result1 = $conn->prepare("SELECT * FROM tbl_images where title_cat='$r_id' "); $result1->execute(); for($i=0; $row1 = $result1->fetch(); $i++){ //$id=$row1['title_id']; ?>
<li class="col-md-3 col-sm-6 col-xs-12 "> <div class="portfolio-item img-thumbnail"> <a href="admin/module/uploadphoto/uploads/<?php echo $row1 ['image_name']; ?>" class="thumb-info"> <img alt="" class="img-responsive" src="admin/module/uploadphoto/uploads/<?php echo $row1 ['image_name']; ?>"> <span class="thumb-info-action"> <span title="Universal" class="thumb-info-action-icon"><i class="fa fa-link"></i></span> </span> </a> </div> </li>
<?php } ?> </ul> </div>
</div> <hr /> </div> </div> </div> </div> </div> </div> <?php require_once('footer.php'); ?> </div>
<!-- Vendor --> <script src="vendor/jquery/jquery.js"></script> <script src="vendor/jquery.appear/jquery.appear.js"></script> <script src="vendor/jquery.easing/jquery.easing.js"></script> <script src="vendor/jquery-cookie/jquery-cookie.js"></script> <script src="vendor/bootstrap/js/bootstrap.js"></script> <script src="vendor/common/common.js"></script> <script src="vendor/jquery.validation/jquery.validation.js"></script> <script src="vendor/jquery.stellar/jquery.stellar.js"></script> <script src="vendor/jquery.easy-pie-chart/jquery.easy-pie-chart.js"></script> <script src="vendor/jquery.gmap/jquery.gmap.js"></script> <script src="vendor/jquery.lazyload/jquery.lazyload.js"></script> <script src="vendor/isotope/jquery.isotope.js"></script> <script src="vendor/owl.carousel/owl.carousel.js"></script> <script src="vendor/magnific-popup/jquery.magnific-popup.js"></script> <script src="vendor/vide/vide.js"></script> <!-- Theme Base, Components and Settings --> <script src="js/theme.js"></script> <!-- Theme Custom --> <script src="js/custom.js"></script> <!-- Theme Initialization Files --> <script src="js/theme.init.js"></script>
</body> </html>
|