Viewing file: admin-image.php (8.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once('check_session.php'); ?> <!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.html"> <i class="fa fa-home"></i> </a> </li> <li><span><?php shownamesite(); ?></span></li> </ol> <div class="sidebar-right-toggle"></div> </div> </header> <div class="col-md-12"> <section class="panel panel-success"> <header class="panel-heading">
<div class="panel-actions"> </div> <h2 class="panel-title"></h2> </header> <div class="panel-body"> <div class="table-responsive"> <table class="table table-hover mb-none"> <thead> <tr> <th class="center">#</th> <th class="center">รูปภาพ</th> <th class="center">ชื่อกิจกรรม</th> <th class="center">วันที่</th> <th class="center">Actions</th> </tr> </thead> <tbody> <?php require_once('db.php'); $result = $conn->prepare("SELECT * FROM cat_image ORDER BY cat_id DESC"); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['title_id']; ?> <tr> <td class="center">1</td> <td class="center"><div class="item"><img class="img-responsive img-rounded" src="module/uploadphoto/Thumbnails/<?php echo $row['thumbnail'] ; ?>" alt="" width="150px"> </div> </td> <td class="center"><?php echo substr_replace($row['title_name'],'...',40); ?></td> <td class="center"><?php echo DateThai($row['date_post']); ?></td> <td class="center"> <a href="forms-edit-image.php?id=<?php echo $id;?>"><button type="submit" class="mb-xs mt-xs mr-xs btn btn-success"><i class="fa fa-hand-o-right"></i> แก้ไข</button></a> <a href="#modalDanger<?php echo $id;?>" class="mb-xs mt-xs mr-xs modal-basic btn btn-danger"> <i class="fa fa-times"> </i> ลบ</a></td> <!--ลบข้อมูล --> <div id="modalDanger<?php echo $id;?>" class="modal-block modal-header-color modal-block-danger mfp-hide"> <form class="form-horizontal form-bordered" method="post" action="deleteimage.php?files_id=<?php echo $id; ?>" enctype="multipart/form-data"> <section class="panel"> <header class="panel-heading"> <h2 class="panel-title">ยืนยันการลบข้อมูล !!</h2> </header> <div class="panel-body"> <div class="modal-wrapper"> <div class="modal-icon"> <i class="fa fa-times-circle"></i> </div> <div class="modal-text"> <h4>คุณต้องการลบข้อมูล ? <?php echo $id; ?></h4> </div> </div> </div> <footer class="panel-footer"> <div class="row"> <div class="col-md-12 text-right"> <button class="btn btn-danger" type="submit" >ยืนยัน</button> <button class="btn btn-warning modal-dismiss" type="cancle" >ยกเลิก</button> </div> </div> </footer> </section> </form> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </section> </div>
</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> <script src="assets/javascripts/ui-elements/examples.modals.js"></script>
</body> </html>
|