Viewing file: member.php (8.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once("getglobal.php"); ?> <!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'); ?> <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">ข้อมูลบุคลากร</li> </ul> </div> </div> <div class="row-fluid"> <div class="col-md-12"> <h1>นิติกร</h1> </div> </div> </div> </section>
<div class="container">
<div class="row"> <div class="col-md-12">
<div class="row"> <div class="col-md-8"> <h2 class="mb-none">ข้อมูลนิติกร</h2> <p>สมาคมนักกฏหมายสาธารณสุข</p>
</div> <div class="col-md-4"> <form id="searchform" action="search_person.php" method="post"> <div class="search"> <div class="col-md-4"> <div class="input-group"> <select name="cbosearch" class="form-control"> <option value="fname">ชื่อ-นามสกุล</option> <option value="area">เขตสุขภาพ</option> <option value="province">จังหวัด</option> </select> </div> </div> <div class="input-group"> <input type="text" class="form-control search" name="txtsearch" id="txtsearch" placeholder="Search..." required> <span class="input-group-btn"> <button class="btn btn-primary" type="submit"><i class="fa fa-search "></i></button> </span> </div> </form> </div> </div>
<div class="row"> <div class="col-md-12">
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example"> <thead> <tr> <td align='center'> <H4>ลำดับ </H4> </td> <td align='center'> <H4>รูปภาพ</H4> </td> <td align='left'> <H4>ชื่อ-นามสกุล</H4> </td> <td align='center'> <H4>เขตสุขภาพ</H4> </td> <td align='center'> <H4>จังหวัด</H4> </td> <td align='center'> <H4>ระดับตำแหน่ง</H4> </td> </tr> </thead> <?php require_once('admin/db.php'); $result = $conn->prepare("SELECT * FROM tbl_members WHERE position LIKE'นิติกร%' ORDER BY position_boss IS NOT NULL ASC"); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['id']; ?> <tbody> <tr valign='middle'> <td align='center' style="vertical-align: middle;"> <?php echo $i+1; ?> </td> <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="img/team/<?php echo $row['image_location']; ?>" width="100px" height="100px" class="img-circle img-responsive"> <?php else: ?> <?php if($row['pname'] == "นาย"): ?> <img src="admin/images/man.png" width="100px" height="100px"> <?php else: ?> <?php if($row['pname'] == "นาง"): ?> <img src="admin/images/woman.png" width="100px" height="100px"> <?php else: ?> <?php if($row['pname'] == "นางสาว"): ?> <img src="admin/images/woman.png" width="100px" height="100px"> <?php else: ?> <img src="admin/images/default.png" width="100px" height="100px"> <?php endif;endif;endif;endif; ?> </a> </td> <td style="vertical-align: middle;"> <?php echo $row ['pname'].$row ['fname']." ".$row ['lname'];?> </td> <td align='center' style="vertical-align: middle;"> <?php echo "เขต ".$row ['area']; ?> </td> <td align='center' style="vertical-align: middle;"> <?php echo $row ['province']; ?> </td> <td align='center' style="vertical-align: middle;"> <?php echo $row ['position']; ?> </td> </tr> </tbody> <?php } ?> </table> </div>
</div> </div>
</div>
</div>
</div> </div> <?php require_once('footer.php'); ?> </div>
<!-- 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>
|