-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViewPatients.php
133 lines (119 loc) · 3.53 KB
/
ViewPatients.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
<?php require_once('Connections/HMS.php'); ?>
<?php
include 'header.php';
?>
<script type="text/javascript">
$(document).ready(function(e) {
implementSearch();
});
function display_visit(Id)
{
document.getElementById("userId_visit").value=Id;
document.forms["visit_form"].submit();
}
function populate(event)
{
var name = $("#key").val();
if(name == "Search")
name="";
var rows = this.options[this.selectedIndex].text;
$("#fill").animate({height:'toggle'},1000).empty();
$.ajax({
url:"AjaxPatients.php",
data:"name="+name+"&rows="+rows+"&page=1",
success: function(data){
$("#fill").append(data);
}
});
$("#fill").animate({height:'toggle'},1000);
}
function setPage(page)
{
var name = $("#key").val();
if(name == "Search")
name="";
var rows = $("#rows").val();
$("#fill").animate({height:'toggle'},1000).empty();
$.ajax({
url:"AjaxPatients.php",
data:"name="+name+"&rows="+rows+"&page="+page,
success: function(data){
$("#fill").append(data);
}
});
$("#fill").animate({height:'toggle'},1000);
}
function implementSearch()
{
var name = $("#key").val();
if(name == "Search")
name="";
var rows = $("#rows").val();
$("#fill").animate({height:'toggle'},1000).empty();
$.ajax({
url:"AjaxPatients.php",
data:"name="+name+"&rows=10&page=1",
success: function(data){
$("#fill").append(data);
}
});
$("#fill").animate({height:'toggle'},1000);
}
</script>
<div class="clear"></div>
<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
<div id="content">
<div id="page-heading"><h1>Patients</h1></div>
<div style="float:right; margin-right:50px;"><a href="AddPerson.php"><img src="images/add.png" /></a></div>
<div style="float:right;"><a href="AddPerson.php"><h3> Add New</h3></a></div>
<!-- start content table -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
<th class="topleft"></th>
<td id="tbl-border-top"> </td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td>
<!-- start content-table-inner -->
<div id="content-table-inner">
<!-- start table-content -->
<div id="table-content">
<form id="visit_form" action="ViewVisits.php" method="post">
<input id="userId_visit" name="userId" value="" type="hidden" />
</form>
<div id="fill">
</div>
</div>
<!-- end content-table-inner -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom"> </td>
<th class="sized bottomright"></th>
</tr>
</table>
</div>
<!-- end content -->
<div class="clear"> </div>
</div>
<!-- end content-outer........................................................END -->
<div class="clear"> </div>
<!-- start footer -->
<div id="footer">
<!-- start footer-left -->
<div id="footer-left">
Medical Soft © Copyright Sharad Consultants <span id="spanYear"></span> <a href="">www.sharadconsultants.com</a>. All rights reserved.</div>
<!-- end footer-left -->
<div class="clear"> </div>
</div>
<!-- end footer -->
</body>
</html>