-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.php
135 lines (114 loc) · 5.12 KB
/
client.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php include_once('security.php'); ?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>List of clients | Activspaces Manager (ASM)</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php include_once('header_links.php'); ?>
</head>
<body>
<?php include_once('side_bar.php'); ?>
<?php include_once('nav_bar.php'); ?>
<div class="breadcome-area">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="breadcome-list single-page-breadcome">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="breadcome-heading">
<form role="search" class="sr-input-func">
<input type="text" name="search_text" placeholder="Search Client" id="search_text" class="search-int form-control">
<a href="#"><i class="fa fa-search"></i></a>
</form>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="product-status mg-b-15">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="product-status-wrap drp-lst">
<h2 class="m-0 font-weight-bold text-primary">List Of Registered Clients</h2>
<div class="add-product">
<a type="button" href="add_admin.php" class="pd-setting">Add new Client</a></h4>
</div>
<div class="">
<?php
if(isset($_SESSION['success']) && $_SESSION['success'] !='')
{
echo '<h2 class="pd-setting text-white">'. $_SESSION['success']. '</h2>';
unset($_SESSION['success']);
}
if(isset($_SESSION['status']) && $_SESSION['status'] !='')
{
echo '<h2 class="bg-danger text-white">'. $_SESSION['status']. '</h2>';
unset($_SESSION['status']);
}
?>
<div class="container">
<br />
<div id="result"></div>
</div>
<div style="clear:both"></div>
<br />
<div class="custom-pagination">
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include_once('footer.php'); ?>
</div>
<?php include_once('footer_links.php'); ?>
</body>
</html>
<script>
$(document).ready(function(){
load_data();
function load_data(query)
{
$.ajax({
url:"fetch.php",
method:"post",
data:{query:query},
success:function(data)
{
$('#result').html(data);
}
});
}
$('#search_text').keyup(function(){
var search = $(this).val();
if(search != '')
{
load_data(search);
}
else
{
load_data();
}
});
});
</script>