<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/> <link rel="stylesheet" type="text/css" href="css/sear.css"/> <link rel="stylesheet" type="text/css" href="css/edit2.css"/> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="admin.php">ย้อนกลับ</a> </div> </div> </nav> <?php include("connect.php"); ?> <?php $i=1; $q="SELECT *,b.name AS professor_name FROM project a LEFT JOIN professor b ON a.professor= b.id_professor WHERE 1 "; $sql = mysqli_query($con,$q); // เงื่อนไขการค้นหา ถ้ามีการส่งค่า ตัวแปร $_GET['keyword'] if(isset($_GET['keyword']) && $_GET['keyword']!=""){ // ต่อคำสั่ง sql $q.=" AND student_id LIKE '%".trim($_GET['keyword'])."%' or name_project LIKE '%".trim($_GET['keyword'])."%' or name_student LIKE '%".trim($_GET['keyword'])."%' or professor LIKE '%".trim($_GET['keyword'])."%' or years LIKE '%".trim($_GET['keyword'])."%' "; } $qr=mysqli_query($con,$q); ?> </br></br> <div class="container"> <div class="row"> <div class="col-md-12"> <form id="form_search" name="form_search" method="get" action=""> <div class="input-group" id="adv-search"> <input type="text" class="form-control" name="keyword" id="keyword"/> <div class="input-group-btn"> <div class="btn-group" role="group"> <button type="submit" class="btn btn-primary" name="button" id="button" value="ค้นหา" ><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button> </from> </div> </div> </div> </div> </div> </div> <tr> <tr> <div class="container"> <div class="row col-md-12 "> <table class="table table-striped custab"> <thead> <th>รหัสนักศึกษา</th> <th>ชื่อโครงงาน</th> <th>ชื่อนักศึกษา</th> <th>สาขาที่เรียน</th> <th>อาจารย์ที่ปรึกษา</th> <th>ปีที่จบ</th> <th>ความสนใจในการทำโปรแกรม</th> <th class="text-center">แก้ไข ลบข้อมูล</th> </tr> <?php while($result=mysqli_fetch_array($qr)) { ?> </thead> <tr> <td><?php echo $result['student_id'];?></td> <td><?php echo $result['name_project'];?></td> <td><?php echo $result['name_student'];?></td> <td><?php echo $result['branch_student'];?></td> <td><?php echo $result['professor_name'];?></td> <td><?php echo $result['years'];?></td> <td><?php echo $result['interest'];?></td> <td><a class='btn btn-info btn-xs' <a href="edit_project.php?editproject=<? echo $result['id'] ?>"><span class="glyphicon glyphicon-edit"></span>แก้ไข</a> <a href="del_project.php?id=<?php echo $result['id'];?>" class="btn btn-danger btn-xs" ><span class="glyphicon glyphicon-remove"></span>ลบข้อมูล</a></td> </tr> <?php } ?> </table> </div> </div> </table>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/> <link rel="stylesheet" type="text/css" href="css/sear.css"/> <link rel="stylesheet" type="text/css" href="css/edit2.css"/> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="admin.php">ย้อนกลับ</a> </div> </div> </nav> <?php include("connect.php"); ?> <?php $i=1; $q="SELECT *,b.name AS professor_name FROM project a LEFT JOIN professor b ON a.professor= b.id_professor WHERE 1 "; $sql = mysqli_query($con,$q); // เงื่อนไขการค้นหา ถ้ามีการส่งค่า ตัวแปร $_GET['keyword'] if(isset($_GET['keyword']) && $_GET['keyword']!=""){ // ต่อคำสั่ง sql $q.=" AND a.student_id LIKE '%".trim($_GET['keyword'])."%' or a.name_project LIKE '%".trim($_GET['keyword'])."%' or a.name_student LIKE '%".trim($_GET['keyword'])."%' or b.name LIKE '%".trim($_GET['keyword'])."%' or a.years LIKE '%".trim($_GET['keyword'])."%' "; } $qr=mysqli_query($con,$q); ?> </br></br> <div class="container"> <div class="row"> <div class="col-md-12"> <form id="form_search" name="form_search" method="get" action=""> <div class="input-group" id="adv-search"> <input type="text" class="form-control" name="keyword" id="keyword"/> <div class="input-group-btn"> <div class="btn-group" role="group"> <button type="submit" class="btn btn-primary" name="button" id="button" value="ค้นหา" ><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button> </from> </div> </div> </div> </div> </div> </div> <tr> <tr> <div class="container"> <div class="row col-md-12 "> <table class="table table-striped custab"> <thead> <th>รหัสนักศึกษา</th> <th>ชื่อโครงงาน</th> <th>ชื่อนักศึกษา</th> <th>สาขาที่เรียน</th> <th>อาจารย์ที่ปรึกษา</th> <th>ปีที่จบ</th> <th>ความสนใจในการทำโปรแกรม</th> <th class="text-center">แก้ไข ลบข้อมูล</th> </tr> <?php while($result=mysqli_fetch_array($qr)) { ?> </thead> <tr> <td><?php echo $result['student_id'];?></td> <td><?php echo $result['name_project'];?></td> <td><?php echo $result['name_student'];?></td> <td><?php echo $result['branch_student'];?></td> <td><?php echo $result['professor_name'];?></td> <td><?php echo $result['years'];?></td> <td><?php echo $result['interest'];?></td> <td><a class='btn btn-info btn-xs' <a href="edit_project.php?editproject=<? echo $result['id'] ?>"><span class="glyphicon glyphicon-edit"></span>แก้ไข</a> <a href="del_project.php?id=<?php echo $result['id'];?>" class="btn btn-danger btn-xs" ><span class="glyphicon glyphicon-remove"></span>ลบข้อมูล</a></td> </tr> <?php } ?> </table> </div> </div> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง