-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_donor.php
74 lines (60 loc) · 1.32 KB
/
admin_donor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
session_start();
include("config.php");
include("admin_function.php");
if(!isset($_SESSION['usertype']))
{
header("location:admin.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include("admin_head.php");?>
</head>
<body>
<?php include("admin_topnav.php"); ?>
<div class="container" style='margin-top:70px'>
<div class="row">
<div class="col-sm-3">
<?php include("admin_side_nav.php");?>
</div>
<div class="col-sm-9" >
<h3 class="text-danger"> Search Donor Details </h3>
<hr>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form role="form">
<div class="form-group text-danger">
<label>Search Text</label>
<input type="text" id="q" class="form-control">
</div>
</form>
</div>
<div class='col-md-12'>
<div class='table-responsive' id="feedback">
<?php
$sql="Select * from blood_donor";
load_donor($sql,$con);
?>
<div>
</div>
</div>
</div>
</div>
</div>
<hr>
<?php include("admin_footer.php"); ?>
<script>
$(document).ready(function()
{
$("#q").keyup(function(){
var txt=$("#q").val();
$.post('admin_ser.php',{q:txt},function(data){
$("#feedback").html(data);
});
});
});
</script>
</body>
</html>