-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindexbk.php
More file actions
59 lines (50 loc) · 1.54 KB
/
indexbk.php
File metadata and controls
59 lines (50 loc) · 1.54 KB
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
<?php
//include auth.php file on all secure pages
require('config/config.php');
include("auth.php");
//sql files for calucated
include ('sql/mainSql.php');
//for upload CSV
include('upload-functions.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'nav/meta.php'; ?>
<?php include 'nav/css.php'; ?>
</head>
<body id="page-top">
<?php include 'nav/home-nav.php'; ?>
<?php include 'nav/home-header.php'; ?>
<?php include 'nav/gridsection.php'; ?>
<?php include 'nav/about.php'; ?>
<?php include 'nav/home-footer.php'; ?>
<?php include 'nav/modal.php'; ?>
<?php include 'nav/script.php'; ?>
<script>
$(document).ready(function () {
load_data();
function load_data(query) {
$.ajax({
url: "config/searchdata.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>
</body>
</html>