Viewing file: admin-lawyer-page.php (7.32 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" />
<!-- 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"); ?>
<section role="main" class="content-body"> <header class="page-header"> <h2>Advanced Tables</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>Tables</span></li> <li><span>Advanced</span></li> </ol> <a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a> </div> </header>
<!-- start: page --> <section class="panel panel-primary"> <header class="panel-heading"> <div class="panel-actions"> <a href="#" class="fa fa-caret-down"></a> <a href="#" class="fa fa-times"></a> </div> <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>ตำแหน่ง</th> </tr> </thead> <?php require_once('db.php'); $result = $conn->prepare("SELECT * FROM tbl_image ORDER BY tbl_image_id ASC"); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['tbl_image_id']; ?> <tbody> <tr class="gradeX"> <td> <?php if($row['pname'] == "นาย"): ?> <img src="images/man.png" width="50px" height="50px"> <?php else: ?> <?php if($row['pname'] == "นาง"): ?> <img src="images/woman.png" width="50px" height="50px"> <?php else: ?> <?php if($row['pname'] == "นางสาว"): ?> <img src="images/woman.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 ['first_name']." ".$row ['last_name']; ?> </td> <td><?php echo "เขตสุขภาพ".$row ['area']; ?></td> <td class="center"><?php echo $row ['province']; ?></td> <td class="center"><?php echo $row ['position']; ?></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>
|