Viewing file: admin-download-page.php (7.38 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!doctype html> <html class="fixed"> <head>
<!-- Basic --> <meta charset="UTF-8">
<title>Administrator | สมาคมนักกฎหมายสาธารณสุข</title> <meta name="keywords" content="HTML5 Admin Template" /> <meta name="description" content="สมาคมนักกฎหมายสาธารณสุข,กฎหมายกระทรวงสาธารณสุข"> <meta name="author" content="mophlawyer.com">
<!-- Mobile Metas --> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Web Fonts --> <link href="https://fonts.googleapis.com/css?family=Mitr:300" rel="stylesheet">
<!-- Vendor CSS --> <link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.css" /> <link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.css" /> <link rel="stylesheet" href="assets/vendor/magnific-popup/magnific-popup.css" /> <link rel="stylesheet" href="assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
<!-- Specific Page Vendor CSS --> <link rel="stylesheet" href="assets/vendor/bootstrap-fileupload/bootstrap-fileupload.min.css" />
<!-- Theme CSS --> <link rel="stylesheet" href="assets/stylesheets/theme.css" />
<!-- Skin CSS --> <link rel="stylesheet" href="assets/stylesheets/skins/default.css" />
<!-- Theme Custom CSS --> <link rel="stylesheet" href="assets/stylesheets/theme-custom.css">
<!-- Head Libs --> <script src="assets/vendor/modernizr/modernizr.js"></script><!-- Vendor CSS --> <link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.css" /> <link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.css" /> <link rel="stylesheet" href="assets/vendor/magnific-popup/magnific-popup.css" /> <link rel="stylesheet" href="assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
<!-- Specific Page Vendor CSS --> <link rel="stylesheet" href="assets/vendor/select2/select2.css" /> <link rel="stylesheet" href="assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
<!-- Theme CSS --> <link rel="stylesheet" href="assets/stylesheets/theme.css" />
<!-- Skin CSS --> <link rel="stylesheet" href="assets/stylesheets/skins/default.css" />
<!-- Theme Custom CSS --> <link rel="stylesheet" href="assets/stylesheets/theme-custom.css">
<!-- Head Libs --> <script src="assets/vendor/modernizr/modernizr.js"></script>
</head> <body> <section class="body">
<?php require_once("topnav.php"); ?>
<div class="inner-wrapper"> <?php require_once("sidebar.php"); ?> <?php require_once("../f_thaidate.php"); ?>
<section role="main" class="content-body"> <header class="page-header"> <h2>Admin : เพิ่ม ลบ แก้ไข ข้อมูล</h2> <div class="right-wrapper pull-right"> <ol class="breadcrumbs"> <li> <a href="index.php"> <i class="fa fa-home"></i> </a> </li> </ol> <a class="sidebar-right-toggle"><i class="fa fa-chevron-left"></i></a> </div> </header>
<!-- start: page --> <section class="panel panel-success"> <header class="panel-heading"> <h2 class="panel-title ">ดาวน์โหลดเอกสาร</h2> </header> <div class="panel-body"> <table class="table table-bordered table-striped mb-none" id="datatable-details"> <thead> <tr> <th>ไฟล์</th> <th>หัวเรื่อง</th> <th>วันที่ประกาศ</th> <th>หมวดหมู่</th> <th>Action</th> </tr> </thead> <?php require_once('db.php'); $result = $conn->prepare("SELECT u.id,u.filetype,u.fname,u.fdatein,uc.catname FROM up_files as u INNER JOIN upfile_cat as uc ON u.cattype = uc.cat_id Where u.cattype='3' ORDER BY u.id DESC"); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['id']; ?> <tbody> <tr class="gradeX"> <td> <?php if($row['filetype'] == ".pdf"): ?> <img src="images/icon-pdf.png" width="50px" height="50px"> <?php else: ?> <?php if($row['filetype'] == ".doc"): ?> <img src="images/icon-doc.png" width="50px" height="50px"> <?php else: ?> <?php if($row['filetype'] == ".ppt"): ?> <img src="images/icon-ppt.png" width="50px" height="50px"> <?php else: ?> <img src="images/default.png" width="50px" height="50px"> <?php endif;endif;endif; ?>
</td> <td> <?php echo $row ['fname']; ?> </td> <td class="center"><?php echo DateThai($row['fdatein']); ?></td> <td class="center"><?php echo $row ['catname']; ?></td> <td class="center"><button type="submit" class="mb-xs mt-xs mr-xs btn btn-success"><i class="fa fa-hand-o-right"></i> แก้ไข</button> <button type="reset" class="mb-xs mt-xs mr-xs btn btn-danger"> <i class="fa fa-times"> </i> ลบ</button></td> </tr> </tbody> <?php } ?> </table> </div> </section> <!-- end: page --> </section> </div>
</section>
<!-- Vendor --> <script src="assets/vendor/jquery/jquery.js"></script> <script src="assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.js"></script> <script src="assets/vendor/nanoscroller/nanoscroller.js"></script> <script src="assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script> <script src="assets/vendor/magnific-popup/magnific-popup.js"></script> <script src="assets/vendor/jquery-placeholder/jquery.placeholder.js"></script> <!-- Specific Page Vendor --> <script src="assets/vendor/select2/select2.js"></script> <script src="assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script> <script src="assets/vendor/jquery-datatables/extras/TableTools/js/dataTables.tableTools.min.js"></script> <script src="assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script> <!-- Theme Base, Components and Settings --> <script src="assets/javascripts/theme.js"></script> <!-- Theme Custom --> <script src="assets/javascripts/theme.custom.js"></script> <!-- Theme Initialization Files --> <script src="assets/javascripts/theme.init.js"></script>
<!-- Examples --> <script src="assets/javascripts/tables/examples.datatables.default.js"></script> <script src="assets/javascripts/tables/examples.datatables.row.with.details.js"></script> <script src="assets/javascripts/tables/examples.datatables.tabletools.js"></script>
</body> </html>
|