forked from leemacat2/FinalMadApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcenter.html
86 lines (59 loc) · 2.06 KB
/
center.html
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
<html>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile.structure-1.1.1.css" />
<link rel="stylesheet" type="text/css" href="css/ThisIsIt.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON("http://10.0.2.2/SERVER/center.php",function(result){
$.each(result,function(i,item){
$("#here").append("<div data-role='collapsible'><h1>"+item[0]+"</h1><div><ul><li><p>Centerhead : " +item[1]+ "</li></div></div>").trigger("create");
});
});
$("#submit").click(function(){
window.location="addnewcenter.html";
});
$("#managecenter").click(function(){
window.location="manage.html";
});
$("#logout").click(function(){
window.location="index.html";
})
$("#dashboard").click(function(){
window.location="home.html";
})
});
</script>
<body>
<div data-role="page">
<div data-role="header" data-theme="a" data-position="fixed" data-fullscreen="true">
<a href="" data-icon="home" data-iconpos="notext" id="dashboard"/>Home</a>
<h1>MADApp</h1>
<a href="index.html" data-iconpos="notext" data-icon="logout" id="logout">Logout</a>
</div>
<div data-role="content">
<br><br><br>
<div data-role="collapsible-set" data-iconpos="right">
<div id="here" >
</div>
</div>
<form action="" method="post">
<input type="button" value= "Add New Center" id="submit">
</form>
<form action="" method="post" id= "managecenterform">
<input type ="button" value="Manage Center" id="managecenter">
</form>
</div>
<div data-role="footer" data-theme="a" data-position="fixed" data-fullscreen="true">
<div data-role="navbar" >
<ul>
<li><a href="home.html" data-icon="back" data-ajax="false">Previous</a></li>
<li><a href="updates.html" data-icon="star" data-ajax="false">Updates</a></li>
<li><a href="profile.html" data-icon="info">Profile</a></li>
</ul>
</div><!-- /navbar -->
</div><!--footer-->
</div>
</body>
</html>