forked from smuwanga/ViralLoad
/
tpl.verify.default.php
411 lines (383 loc) · 24.2 KB
/
tpl.verify.default.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
<?
//security check
if(!$GLOBALS['vlDC'] || !$_SESSION["VLEMAIL"]) {
die("<font face=arial size=2>You must be logged in to view this page.</font>");
}
//encrypted samples
$searchQuery=0;
if($encryptedSample) {
$searchQuery=validate(vlDecrypt($encryptedSample));
$approvedstatus="search";
}
//envelope Number From
$searchQueryFrom=0;
$searchQueryTo=0;
if($envelopeNumberFrom && $envelopeNumberTo) {
$searchQueryFrom=validate(vlDecrypt($envelopeNumberFrom));
$searchQueryTo=validate(vlDecrypt($envelopeNumberTo));
$approvedstatus="search";
}
if($encryptedSampleUnverified) {
$searchQuery=validate(vlDecrypt($encryptedSampleUnverified));
$approvedstatus="reverse";
}
//assign approvedstatus
if(!$approvedstatus) {
$approvedstatus="pending";
}
//process reversals
if($reverseApprovalRejection) {
//were any samples checked
if(count($sampleVerifyCheckbox)) {
//reverse the approvals/rejections
foreach($sampleVerifyCheckbox as $sv) {
/*
* delete from the following
* vl_samples_verify.sampleID = vl_samples.id
* vl_samples_worksheet.sampleID = vl_samples.id
* vl_results_roche.SampleID = vl_samples.vlSampleID
* vl_results_abbott.sampleID = vl_samples.vlSampleID
* vl_results_override.sampleID = vl_samples.vlSampleID
* vl_logs_worksheetsamplesviewed.sampleID = vl_samples.id
* vl_logs_worksheetsamplesprinted.sampleID = vl_samples.id
* vl_logs_samplerepeats.sampleID = vl_samples.id
* vl_logs_printedresults.sampleID = vl_samples.id
* vl_logs_printedrejectedresults.sampleID = vl_samples.id
* vl_logs_dispatchedresults.sampleID = vl_samples.id
*/
//get vlSampleID
$vlSampleID=0;
$vlSampleID=getDetailedTableInfo2("vl_samples","id='$sv' limit 1","vlSampleID");
//implement the removals
logDataRemoval("delete from vl_samples_verify where sampleID='$sv'");
mysqlquery("delete from vl_samples_verify where sampleID='$sv'");
logDataRemoval("delete from vl_samples_worksheet where sampleID='$sv'");
mysqlquery("delete from vl_samples_worksheet where sampleID='$sv'");
logDataRemoval("delete from vl_results_roche where SampleID='$vlSampleID'");
mysqlquery("delete from vl_results_roche where SampleID='$vlSampleID'");
logDataRemoval("delete from vl_results_abbott where sampleID='$vlSampleID'");
mysqlquery("delete from vl_results_abbott where sampleID='$vlSampleID'");
logDataRemoval("delete from vl_results_override where sampleID='$vlSampleID'");
mysqlquery("delete from vl_results_override where sampleID='$vlSampleID'");
logDataRemoval("delete from vl_logs_worksheetsamplesviewed where sampleID='$sv'");
mysqlquery("delete from vl_logs_worksheetsamplesviewed where sampleID='$sv'");
logDataRemoval("delete from vl_logs_worksheetsamplesprinted where sampleID='$sv'");
mysqlquery("delete from vl_logs_worksheetsamplesprinted where sampleID='$sv'");
logDataRemoval("delete from vl_logs_samplerepeats where sampleID='$sv'");
mysqlquery("delete from vl_logs_samplerepeats where sampleID='$sv'");
logDataRemoval("delete from vl_logs_printedresults where sampleID='$sv'");
mysqlquery("delete from vl_logs_printedresults where sampleID='$sv'");
logDataRemoval("delete from vl_logs_printedrejectedresults where sampleID='$sv'");
mysqlquery("delete from vl_logs_printedrejectedresults where sampleID='$sv'");
logDataRemoval("delete from vl_logs_dispatchedresults where sampleID='$sv'");
mysqlquery("delete from vl_logs_dispatchedresults where sampleID='$sv'");
//log this reversal
mysqlquery("insert into vl_logs_reversals_sampleapprovalsrejections
(sampleID,created,createdby)
values
('$sv','$datetime','$trailSessionUser')");
}
//reversed flag
$reversed=count($sampleVerifyCheckbox);
} else {
$notreversed=1;
}
}
?>
<table width="100%" border="0" class="vl">
<? if(!getDetailedTableInfo2("vl_samples","id!='' limit 1","id")) { ?>
<tr>
<td class="vl_error">
There are No Samples on the System!<br />
<a href="/samples/capture/">Click Here to input the First Sample.</a></td>
</tr>
<tr>
<td> </td>
</tr>
<?
}
if($modified) {
?>
<tr>
<td class="vl_success">Sample Changes Modified Successfully!</td>
</tr>
<tr>
<td> </td>
</tr>
<?
}
if($approved) {
?>
<tr>
<td class="vl_success">Sample Approved!</td>
</tr>
<tr>
<td> </td>
</tr>
<?
}
if($rejected) {
?>
<tr>
<td class="vl_success">Sample Rejected!</td>
</tr>
<tr>
<td> </td>
</tr>
<?
}
if($reversed) {
?>
<tr>
<td class="vl_success"><?=number_format((float)$reversed)?> Approval<?=($reversed==1?"":"s")?>/Rejection<?=($reversed==1?"":"s")?> Reversed Successfully!</td>
</tr>
<tr>
<td> </td>
</tr>
<?
}
if($notreversed) {
?>
<tr>
<td class="vl_error">
<div style="padding:0px 0px 2px 0px"><strong>No Approvals/Rejections have been Reversed!</strong></div>
<div style="padding:2px 0px 0px 0px">Ensure you have checked/selected some samples before clicking "Reverse"</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
<? } ?>
<tr>
<td>
<? if($approvedstatus=="reverse") { ?>
<script Language="JavaScript" Type="text/javascript">
<!--
function validate(results) {
//ammend the form action variable
if(document.pressed == ' Reverse Approval/Rejection ') {
if(confirm('Are you sure you wish to Proceed?')) {
document.results.action = "/verify/reverse/";
return (true);
} else {
return (false);
}
}
}
//-->
</script>
<!--<form name="results" method="post" action="/verify/reverse/" onsubmit="return validate(this)">-->
<form name="results" method="post" action="/verify/reverse/">
<? } ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="vl">
<?
//pages
if(!$pg) {
$pg=1;
}
$offset=0;
$offset=($pg-1)*$rowsToDisplay;
//proceed with query
$query=0;
$xquery=0;
/*if($searchQuery) {
if($approvedstatus=="search") {
$query=mysqlquery("select * from vl_samples where order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc limit $offset, $rowsToDisplay");
$xquery=mysqlquery("select * from vl_samples where formNumber='$searchQuery' or vlSampleID='$searchQuery' or concat(lrCategory,lrEnvelopeNumber,'/',lrNumericID) like '$searchQuery%' order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc");
} elseif($approvedstatus=="reverse") {
$query=mysqlquery("select * from vl_samples where verified=1 and formNumber='$searchQuery' or vlSampleID='$searchQuery' or concat(lrCategory,lrEnvelopeNumber,'/',lrNumericID) like '$searchQuery%' order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc limit $offset, $rowsToDisplay");
$xquery=mysqlquery("select * from vl_samples where verified=1 and formNumber='$searchQuery' or vlSampleID='$searchQuery' or concat(lrCategory,lrEnvelopeNumber,'/',lrNumericID) like '$searchQuery%' order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc");
}
} elseif($searchQueryFrom && $searchQueryTo) {
$query=mysqlquery("select * from vl_samples where concat(lrCategory,lrEnvelopeNumber)>='$searchQueryFrom' and concat(lrCategory,lrEnvelopeNumber)<='$searchQueryTo' order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc limit $offset, $rowsToDisplay");
$xquery=mysqlquery("select * from vl_samples where concat(lrCategory,lrEnvelopeNumber)>='$searchQueryFrom' and concat(lrCategory,lrEnvelopeNumber)<='$searchQueryTo' order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc");
} else {
if(!$approvedstatus || $approvedstatus=="pending") {
$query=mysqlquery("select * from vl_samples where verified=0 order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc limit $offset, $rowsToDisplay");
$xquery=mysqlquery("select * from vl_samples where verified=0 order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc");
} elseif($approvedstatus=="processed" || $approvedstatus=="reverse") {
$query=mysqlquery("select * from vl_samples where verified=1 order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc limit $offset, $rowsToDisplay");
$xquery=mysqlquery("select * from vl_samples where verified=1 order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,created desc");
}
}*/
if($searchQuery) {
if($approvedstatus=="search") {
$condns="formNumber='$searchQuery' or vlSampleID='$searchQuery' or concat(lrCategory,lrEnvelopeNumber,'/',lrNumericID) like '$searchQuery%'";
} elseif($approvedstatus=="reverse") {
$condns="verified=1 and formNumber='$searchQuery' or vlSampleID='$searchQuery' or concat(lrCategory,lrEnvelopeNumber,'/',lrNumericID) like '$searchQuery%'";
}
} elseif($searchQueryFrom && $searchQueryTo) {
$condns="concat(lrCategory,lrEnvelopeNumber)>='$searchQueryFrom' and concat(lrCategory,lrEnvelopeNumber)<='$searchQueryTo'";
} else {
if(!$approvedstatus || $approvedstatus=="pending") {
$condns="verified=0";
} elseif($approvedstatus=="processed" || $approvedstatus=="reverse") {
$condns="verified=1";
}
}
//number pages
$numberPages=0;
$query=myQuery($condns,$offset,$rowsToDisplay);
$the_count=mysqlquery("SELECT count(id) AS num FROM vl_samples WHERE $condns LIMIT 1");
$num_res=mysqlfetcharray($the_count);
$num_rows=$num_res['num'];
$numberPages=ceil($num_rows/$rowsToDisplay);
if(mysqlnumrows($query)) {
//how many pages are there?
if($numberPages>1) {
echo "<tr><td style=\"padding:0px 0px 10px 0px\" class=\"vls_grey\"><strong>Pages:</strong> ".displayPagesLinks("/verify/".($approvedstatus=="search"?"search/$encryptedSample":$approvedstatus)."/pg/",1,$numberPages,($pg?$pg:1),$default_radius)."</td></tr>";
}
$numberOfRelevantSamples=0;
$numberOfRelevantSamples=getDetailedTableInfo3("vl_samples","verified=0","count(id)","num");
$resultsPending=0;
$resultsPending=$numberOfRelevantSamples;
$resultsProcessed=0;
$resultsProcessed=getDetailedTableInfo3("vl_samples"," verified=1","count(id)","num");
$resultsSearch=0;
$resultsSearch=mysqlnumrows($query);
?>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<? if($approvedstatus=="pending") { ?>
<td class="bluetab_active"><?="Pending (".number_format((float)$resultsPending).")"?></td>
<? } else { ?>
<td class="bluetab_inactive"><a href="/verify/pending/">
<?="Pending (".number_format((float)$resultsPending).")"?>
</a></td>
<? } ?>
<td bgcolor="#C4CCCC"><img src="/images/spacer.gif" width="1" height="1" /></td>
<? if($approvedstatus=="processed") { ?>
<td class="bluetab_active"><?="Accepted/Rejected (".number_format((float)$resultsProcessed).")"?></td>
<? } else { ?>
<td class="bluetab_inactive"><a href="/verify/processed/">
<?="Accepted/Rejected (".number_format((float)$resultsProcessed).")"?>
</a></td>
<? } ?>
<td bgcolor="#C4CCCC"><img src="/images/spacer.gif" width="1" height="1" /></td>
<? if($approvedstatus=="search") { ?>
<td class="bluetab_active"><?="Search Results (".number_format((float)$num_rows).")"?></td>
<td bgcolor="#C4CCCC"><img src="/images/spacer.gif" width="1" height="1" /></td>
<? } ?>
<?
if(getDetailedTableInfo2("vl_users_permissions","userID='".getUserID($trailSessionUser)."' and permission='unVerifySamples' limit 1","id")) {
if($approvedstatus=="reverse") {
?>
<td class="bluetab_active"><?="Reverse Approval of Samples (".number_format((float)$resultsProcessed).")"?></td>
<? } else { ?>
<td class="bluetab_inactive"><a href="/verify/reverse/">
<?="Reverse Approval of Samples ".number_format((float)$resultsProcessed).")"?>
</a></td>
<? } ?>
<? } ?>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div style="height: 250px; width: 100%; overflow: auto; padding:5px; border: 1px solid #d5e6cf">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
if($approvedstatus=="reverse") {
echo "<td class=\"vl_tdsub\" width=\"1%\"><input type=\"checkbox\" name=\"checkall\" onclick=\"checkUncheckAll(this);\"></td>";
} else {
echo "<td class=\"vl_tdsub\" width=\"1%\"><strong>#</strong></td>";
}
?>
<td class="vl_tdsub" width="5%"><strong>Form #</strong></td>
<td class="vl_tdsub" width="5%"><strong>Location ID</strong></td>
<!--<td class="vl_tdsub" width="5%"><strong>Sample Reference #</strong></td>-->
<td class="vl_tdsub" width="2%"><strong>Sample Type</strong></td>
<td class="vl_tdsub" width="1%"><strong>Date of Collection</strong></td>
<td class="vl_tdsub" width="1%"><strong>Initiation Date</strong></td>
<td class="vl_tdsub" width="1%"><strong>Reception Date</strong></td>
<td class="vl_tdsub" width="5%"><strong>Patient ART #</strong></td>
<td class="vl_tdsub" width="5%"><strong>Patient Other ID</strong></td>
<td class="vl_tdsub" width="5%"><strong>District</strong></td>
<td class="vl_tdsub" width="60%"><strong>Facility..</strong></td>
<td class="vl_tdsub" width="5%"><strong>Status</strong></td>
<td class="vl_tdsub" width="4%"><strong>Options</strong></td>
</tr>
<?
$count=0;
$count=$offset;
$q=array();
while($q=mysqlfetcharray($query)) {
$count+=1;
$status=0;
$status=getDetailedTableInfo2("vl_samples_verify","sampleID='$q[id]'","outcome");
?>
<tr onMouseover="this.bgColor='#f0e6dd'" onMouseout="this.bgColor='#FFFFFF'">
<?
if($approvedstatus=="reverse") {
echo "<td class=\"".($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")."\"><input name=\"sampleVerifyCheckbox[]\" type=\"checkbox\" id=\"sampleVerifyCheckbox[]\" value=\"$q[id]\"></td>";
} else {
echo "<td class=\"".($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")."\">$count</td>";
}
?>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><a href="#" onclick="iDisplayMessage('/verify/preview/<?=$q["id"]?>/<?=$pg?>/<?=($status?"noedit/":($approvedstatus=="search"?"search/$encryptedSample/":""))?>')"><?=$q["formNumber"]?></a></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=($q["lrNumericID"]?$q["lrCategory"].$q["lrEnvelopeNumber"]."/".$q["lrNumericID"]:" ")?></td>
<!--<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=$q["vlSampleID"]?></td>-->
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=getDetailedTableInfo2("vl_appendix_sampletype","id='$q[sampleTypeID]'","appendix")?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=getFormattedDateLessDay($q["collectionDate"])?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=getFormattedDateLessDay($q["treatmentInitiationDate"])?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=getFormattedDateLessDay($q["receiptDate"])?></td>
<!-- <td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=preg_replace("/\s/s"," ",getDetailedTableInfo2("vl_patients","id='$q[patientID]'","artNumber"))?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=preg_replace("/\s/s"," ",getDetailedTableInfo2("vl_patients","id='$q[patientID]'","otherID"))?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=preg_replace("/\s/s"," ",getDetailedTableInfo2("vl_districts","id='$q[districtID]'","district"))?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=preg_replace("/\s/s"," ",getDetailedTableInfo2("vl_facilities","id='$q[facilityID]'","facility"))?></td> -->
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?= $q['artNumber'] ?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?= $q['otherID'] ?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?= $q['district'] ?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?= $q['facility'] ?></td>
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><?=($status?"<a href=\"#\" onclick=\"iDisplayMessage('/verify/status/$q[id]/$status/')\">$status</a>":"Pending")?></td>
<!--<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><div class="vls_grey" style="padding:3px 0px 0px 0px"><a href="#" onclick="iDisplayMessage('/verify/preview/<?=$q["id"]?>/<?=$pg?>/<?=($status?"noedit/":($approvedstatus=="search"?"search/$encryptedSample/":""))?>')">Approve</a></div></td>-->
<td class="<?=($count<$num_rows?"vl_tdstandard":"vl_tdnoborder")?>"><div class="vls_grey" style="padding:3px 0px 0px 0px"><a <?=(!getDetailedTableInfo2("vl_samples_verify","sampleID='$q[id]'","outcome")?"href=\"/verify/approve.reject/$q[id]/$pg/".($encryptedSample?"search/$encryptedSample/":($envelopeNumberFrom && $envelopeNumberTo?"search/$envelopeNumberFrom/$envelopeNumberTo/":""))."\"":"href=\"#\" onclick=\"iDisplayMessage('/verify/preview/$q[id]/$pg/".($status?"noedit/":($approvedstatus=="search"?"search/$encryptedSample/":""))."')\"")?>>Approve</a></div></td>
</tr>
<? } ?>
</table>
</div>
</td>
</tr>
<? if($approvedstatus=="reverse") { ?>
<tr>
<td style="padding:10px 0px 10px 0px">
<input type="submit" name="reverseApprovalRejection" id="reverseApprovalRejection" class="button" value=" Reverse Approval/Rejection " onclick="document.pressed=this.value" />
</td>
</tr>
<? } ?>
<tr>
<td style="padding:20px 0px 0px 0px"><a href="/verify/">Return to Verify</a> :: <a href="/dashboard/">Return to Dashboard</a></td>
</tr>
<? } else { ?>
<tr>
<td class="vl_error">There are No Samples matching the Search Criteria <strong><?=$searchQuery?></strong>!</td>
</tr>
<tr>
<td> </td>
</tr>
<? } ?>
</table>
<? if($approvedstatus=="reverse") { ?>
</form>
<? } ?>
</td>
</tr>
</table>
<?php
function myQuery($condns,$offset,$rowsToDisplay){
$query="
SELECT s.*,artNumber,otherID,facility,district FROM vl_samples AS s
LEFT JOIN vl_patients AS p ON s.patientID=p.id
LEFT JOIN vl_facilities AS f ON s.facilityID=f.id
LEFT JOIN vl_districts AS d ON f.districtID=d.id
WHERE $condns
order by if(lrCategory='',1,0),lrCategory, if(lrEnvelopeNumber='',1,0),lrEnvelopeNumber, if(lrNumericID='',1,0),lrNumericID,s.created desc limit $offset, $rowsToDisplay
";
//var_dump($query);
return mysqlquery($query);
}
?>