Viewing file: view_article.php (5.98 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php ob_start(); require_once("getglobal.php"); $id=$_GET['id']; ?> <!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'); ?> <?php require_once('admin/db.php'); $resultcat = $conn->prepare("SELECT * FROM tbl_article WHERE id=$id"); $resultcat->execute(); //$row = $resultcat->fetch(); for($i=0; $row = $resultcat->fetch(); $i++){ $id=$row['id']; ?> <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"><?php echo $row['titlename']; ?></li> </ul> </div> </div> <div class="row-fluid"> <div class="col-md-12"> <h1><?php echo $row['titlename']; ?> : สมาคมนักกฏหมายสาธารณสุข </h1> </div> </div> </div> </section>
<div class="container">
<div class="row"> <?php require_once('sidebar.php'); require_once('f_thaidate.php'); ?> <div class="col-md-9">
<div class="col-md-12"> <div class="row push-top"> <div class="feature-box"> <div class="feature-box-icon"> <i class="fa fa-mail"></i> </div> <div class="feature-box-info"> <h4 class="shorter"><?php echo $row ['titlename']; ?></h4> <span><i class="fa fa-calendar"></i> <?php echo DateThai($row ['creat_date']); ?> </span> <hr class="tall"> <h4 class="shorter"><?php echo $row ['detail']; ?></h4> <br> <?php if($row['imgtype']=='.jpg'){ ?> <img class="img-responsive img-rounded" src="admin/uploads/<?php echo $row['image'].$row['imgtype']; ?>" alt=""> <?php } ?> </div> </div> </div> </div> </div> </div> </div>
</div> </div> <?php require_once('footer.php'); ?> </div> <?php } ?> <!-- 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>
|