-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadmin_panel.php
38 lines (37 loc) · 919 Bytes
/
admin_panel.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
<?php include("header.php"); ?>
<?php check_session(); ?>
<div class="container" id="show_here" align="center">
</div>
<script>
$(document).ready(function(){
var get_table_of_details=function(flag)
{
$.ajax({
type: 'POST',
url: 'admin_interface.py',
data: 'flag='+flag,
success : function (data)
{
$("#show_here").empty();
$("#show_here").html(data);
}
});
};
$("#new_customers").click(function(){
get_table_of_details("new_customers");
});
$("#approved_customers").click(function(){
get_table_of_details("approved_customers");
});
$("#rejected_customers").click(function(){
get_table_of_details("rejected_customers");
});
$("#new_requests").click(function(){
get_table_of_details("new_requests");
});
$("#new_feedbacks").click(function(){
get_table_of_details("new_feedbacks");
});
});
</script>
<?php include("footer.php"); ?>