Viewing file: admin-all-person.php (9.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); if(!$_SESSION['fullname']){ header("location: index.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" /> <link rel="stylesheet" href="assets/vendor/pnotify/pnotify.custom.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>
<!-- start: page --> <section class="panel panel-primary"> <header class="panel-heading"> </header> <div class="panel-body"> <table class="table table-bordered table-striped mb-none"> <thead> <tr> <th class="center">รูป</th> <th class="center">ชื่อ-นามสกุล</th> <th class="center">ตำแหน่ง</th> <th class="center">เขต</th> <th class="center">Action</th> </tr> </thead> <?php require_once('db.php'); $result = $conn->prepare("SELECT * FROM tbl_members ORDER BY ABS(position_boss) ASC"); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['id']; ?> <tbody> <tr class="gradeX"> <td align='center' style="vertical-align: middle;"> <a href="lawyer_memberview.php<?php echo '?id='.$id; ?>"> <?php if($row['image_location']<>"noimage.jpg"): ?> <img src="module/uploadphoto/uploads/team/<?php echo $row['image_location']; ?>" width="77px" height="77px" class="img-circle img-responsive"> <?php else: ?> <?php if($row['pname'] == "นาย"): ?> <img src="module/uploadphoto/uploads/team/man.png" width="100px" height="100px"> <?php else: ?> <?php if($row['pname'] == "นาง"): ?> <img src="module/uploadphoto/uploads/team/woman.png" width="100px" height="100px"> <?php else: ?> <?php if($row['pname'] == "นางสาว"): ?> <img src="module/uploadphoto/uploads/team/woman.png" width="100px" height="100px"> <?php else: ?> <img src="module/uploadphoto/uploads/team/default.png" width="100px" height="100px"> <?php endif;endif;endif;endif; ?> </a> </td> <td> <?php echo $row ['pname'].$row ['fname'].' '.$row ['lname']; ?> </td> <td class="center"><?php echo $row['position']; ?></td> <td class="center"><?php echo $row ['area']; ?></td> <td class="center"><a href="forms-edit-person.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="deleteperson.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 $row ['pname'].$row ['fname'].' '.$row ['lname']; ?></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> </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> <script src="assets/vendor/pnotify/pnotify.custom.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>
|