-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrxTest.php
157 lines (138 loc) · 5.04 KB
/
TrxTest.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php require_once('Connections/HMS.php'); ?>
<?php
include 'header.php';
mysql_select_db($database_HMS, $HMS);
$query_person = "SELECT * FROM person";
$person = mysql_query($query_person, $HMS) or die(mysql_error());
$row_person = mysql_fetch_assoc($person);
$totalRows_person = mysql_num_rows($person);
$query_clinicalTest = "SELECT * FROM clinicaltest";
$clinicalTest = mysql_query($query_clinicalTest, $HMS) or die(mysql_error());
$row_clinicalTest = mysql_fetch_assoc($clinicalTest);
$totalRows_clinicalTest = mysql_num_rows($clinicalTest);
?>
<script src="Calendar/popcalendar.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
function fnOpenCalendar(id1)
{
//alert("Opens the calendar");
var ctl1=document.getElementById(id1);
var ctl2=document.getElementById(id1);
popUpCalendar(ctl1,ctl2,'dd/mm/yyyy');
return true;
}
</script>
<div class="clear"></div>
<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
<div id="content">
<div id="page-heading"><h1>Prescribe Tests</h1></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 -->
<table border="0" cellpadding="5" cellspacing="5" id="id-form">
<tr>
<th> Patient: </th>
<td><select name="patientId" class="styledselect_form_1">
<?php do { ?>
<option value="<?php echo $row_person['personId']?>" <?php if (!(strcmp($row_person['personId'], $row_person['personId']))) {echo "SELECTED";} ?>><?php echo $row_person['fName']." ".$row_person['lName'];?></option>
<?php
} while ($row_person = mysql_fetch_assoc($person));
mysql_data_seek($person, 0);?></select></td>
</tr>
<tr>
<th> Doctor: </th>
<td><select name="doctorId" class="styledselect_form_1">
<?php do { ?>
<option value="<?php echo $row_person['personId']?>" <?php if (!(strcmp($row_person['personId'], $row_person['personId']))) {echo "SELECTED";} ?>><?php echo $row_person['fName']." ".$row_person['lName'];?></option>
<?php
} while ($row_person = mysql_fetch_assoc($person));
?></select></td>
</tr>
<tr>
<th>TestDate:</th>
<td><input id="txtDate1" type="text" name="testDate" value="" size="32" class="inp-form" /></td>
<td><img alt="" src="Calendar/calender.gif" style="float:left" onClick=" fnOpenCalendar('txtDate1');"/>
</td>
</tr>
<tr>
<th>DoctorName:</th>
<td><input type="text" name="doctorName" value="" size="32" class="inp-form" /></td>
</tr>
<tr>
<th>Test:</th>
<td><select name="testId" class="styledselect_form_1" >
<?php do { ?>
<option value="<?php echo $row_clinicalTest['testId']?>" <?php if (!(strcmp($row_clinicalTest['testId'], $row_clinicalTest['testId']))) {echo "SELECTED";} ?>><?php echo $row_clinicalTest['name'];?></option>
<?php
} while ($row_clinicalTest = mysql_fetch_assoc($clinicalTest));?></select></td>
</tr>
<tr>
<th>Report Details:</th>
<td><textarea rows="" cols="" class="form-textarea"></textarea></td>
</tr>
<tr>
<th>Files:</th>
<td><input type="file" class="file_1" /></td>
<td>
<div class="bubble-left"></div>
<div class="bubble-inner">JPEG, GIF 5MB max per image</div>
<div class="bubble-right"></div>
</td>
</tr>
<tr>
<th>Summary:</th>
<td><textarea rows="" cols="" class="form-textarea"></textarea></td>
</tr>
<tr>
<tr>
<th> </th>
<td valign="top">
<input type="submit" value="" class="form-submit" />
<input type="reset" value="" class="form-reset" />
</td>
<td></td>
</tr>
</table>
<!-- end table content -->
</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">
Admin Skin © Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
<!-- end footer-left -->
<div class="clear"> </div>
</div>
<!-- end footer -->
</body>
</html>