-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-farmer2.php
79 lines (66 loc) · 1.9 KB
/
home-farmer2.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
<?php
//session_start();
require 'dbconfig/config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Farmer</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/homepage.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<section id="main">
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<?php include 'sidebar-farmer2.php'; ?>
<button type="button" onclick="loadDoc()">Change Content</button>
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div id="loadSection" class = "col-md-12">
<img src="Images/farmfinancetopheader" width="100%">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--<script type="text/javascript">
$(document).ready(function()
{
$('#a').on('click',function()
{
$('#loadSection').load('allPaddy.php');
});
});
</script>-->
<script>
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("loadSection").innerHTML =
this.responseText;
}
};
xhttp.open("GET", "allPaddy.php", true);
xhttp.send();
}
</script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>