Fixed php short tags
[openemr.git] / contrib / forms / cardiology_set / Forms3_Cardiology / view.php
blob05f091e6947c0b027771337d34f20572cb68bf7c
1 <!-- view.php -->
2 <?php
3 include_once("../../globals.php");
4 include_once("$srcdir/api.inc");
5 formHeader("Form: Forms3_Cardiology");
6 $obj = formFetch("form_Forms3_Cardiology", $_GET["id"]); //#Use the formFetch function from api.inc to get values for existing form.
8 function chkdata_Txt(&$obj, $var) {
9 return htmlentities($obj{"$var"});
11 function chkdata_Date(&$obj, $var) {
12 return htmlentities($obj{"$var"});
14 function chkdata_CB(&$obj, $nam, $var) {
15 if (preg_match("/$var/",$obj{$nam})) {return "checked";} else {return "";}
17 function chkdata_Radio(&$obj, $nam, $var) {
18 if (strpos($obj{$nam},$var) !== false) {return "checked";}
20 function chkdata_PopOrScroll(&$obj, $nam, $var) {
21 if (preg_match("/$var/",$obj{$nam})) {return "selected";} else {return "";}
24 ?>
25 <html><head>
26 <link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
27 </head>
28 <body <?php echo $top_bg_line;?> topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
29 <form method=post action="<?php echo $rootdir?>/forms/Forms3_Cardiology/save.php?mode=update&id=<?php echo $_GET["id"];?>" name="my_form" onSubmit="return top.restoreSession()">
30 <h1> Forms3_Cardiology </h1>
31 <hr>
32 <input type="submit" name="submit form" value="submit form" />
34 <table width="100%" cellpadding="0" cellspacing="0">
36 <tr>
38 <td class='text' valign="top">
40 <table width="100%" cellpadding="0" cellspacing="0">
42 <tr>
44 <td class='text' style="border: 1px #000000 solid;">
46 <table>
48 <tr><td class='text' > date</td> <td class='text' ><input type="text" name="_date" value="<?php $result = chkdata_Txt($obj,"_date"); echo $result;?>"></td></tr>
50 </table>
51 </td>
53 <td class='text' style="border: 1px #000000 solid;">
55 <table>
57 <tr><td class='text' > name</td> <td class='text' ><input type="text" name="_name" value="<?php $result = chkdata_Txt($obj,"_name"); echo $result;?>"></td></tr>
59 </table>
60 </td>
63 </tr>
65 <tr>
67 <td class='text' colspan='2' style="border: 1px #000000 solid;">
69 <table>
71 <tr><td class='text' > chief complaint</td> <td class='text' ><input type="text" name="_chief_complaint" value="<?php $result = chkdata_Txt($obj,"_chief_complaint"); echo $result;?>"></td></tr>
73 </table>
74 </td></tr>
76 </table>
77 </td>
78 </tr>
80 <tr>
82 <td class='text' valign="top" style="border: 1px #000000 solid; height: 15px;">
84 <table width="100%" cellpadding="0" cellspacing="0">
86 <tr>
90 <td class='text' colspan="2" style="border: 1px #000000 solid;">
92 <table>
94 <tr><td class='text' > wt</td> <td class='text' ><input type="text" name="_wt" value="<?php $result = chkdata_Txt($obj,"_wt"); echo $result;?>"></td></tr>
96 </table>
97 </td>
99 <td class='text' style="border: 1px #000000 solid;">
101 <table>
103 <tr><td class='text' > bp</td> <td class='text' ><input type="text" name="_bp" value="<?php $result = chkdata_Txt($obj,"_bp"); echo $result;?>"></td></tr>
105 </table>
106 </td>
108 <td class='text' style="border: 1px #000000 solid;">
110 <table>
112 <tr><td class='text' > p</td> <td class='text' ><input type="text" name="_p" value="<?php $result = chkdata_Txt($obj,"_p"); echo $result;?>"></td></tr>
114 </table>
115 </td>
117 <td class='text' style="border: 1px #000000 solid;">
119 <table>
121 <tr><td class='text' > t</td> <td class='text' ><input type="text" name="_t" value="<?php $result = chkdata_Txt($obj,"_t"); echo $result;?>"></td></tr>
123 </table>
124 </td>
126 <td class='text' style="border: 1px #000000 solid;">
128 <table>
130 <tr><td class='text' > r</td> <td class='text' ><input type="text" name="_r" value="<?php $result = chkdata_Txt($obj,"_r"); echo $result;?>"></td></tr>
132 </table>
133 </td>
135 <td class='text' style="border: 1px #000000 solid;">
137 <table>
139 <tr><td class='text' > ht</td> <td class='text' ><input type="text" name="_ht" value="<?php $result = chkdata_Txt($obj,"_ht"); echo $result;?>"></td></tr>
141 </table>
142 </td>
143 </tr>
147 </table>
148 </td>
149 </tr>
159 <tr>
161 <td class='text' valign="top" style="border: 1px #000000 solid; height: 15px;">
163 <table width="100%" cellpadding="0" cellspacing="0">
165 <tr>
167 <td class='text' colspan="5" align="center" style="border: 1px #000000 solid; height: 15px;">
169 <h3>
171 HPI
173 </h3>
174 </td>
175 </tr>
177 <tr>
181 <td class='text' style="border: 1px #000000 solid;">
183 <table>
185 <tr><td class='text' > location</td> <td class='text' ><input type="text" name="_location" value="<?php $result = chkdata_Txt($obj,"_location"); echo $result;?>"></td></tr>
187 </table>
188 </td>
190 <td class='text' style="border: 1px #000000 solid;">
192 <table>
194 <tr><td class='text' > quality</td> <td class='text' ><input type="text" name="_quality" value="<?php $result = chkdata_Txt($obj,"_quality"); echo $result;?>"></td></tr>
196 </table>
197 </td>
199 <td class='text' style="border: 1px #000000 solid;">
201 <table>
203 <tr><td class='text' > severity</td> <td class='text' ><input type="text" name="_severity" value="<?php $result = chkdata_Txt($obj,"_severity"); echo $result;?>"></td></tr>
205 </table>
206 </td>
208 <td class='text' style="border: 1px #000000 solid;">
210 <table>
212 <tr><td class='text' > duration</td> <td class='text' ><input type="text" name="_duration" value="<?php $result = chkdata_Txt($obj,"_duration"); echo $result;?>"></td></tr>
214 </table>
215 </td>
217 <td class='text' style="border: 1px #000000 solid;">&nbsp;
220 </td>
221 </tr>
223 <tr>
225 <td class='text' style="border: 1px #000000 solid;">
227 <table>
229 <tr><td class='text' > timing</td> <td class='text' ><input type="text" name="_timing" value="<?php $result = chkdata_Txt($obj,"_timing"); echo $result;?>"></td></tr>
231 </table>
232 </td>
234 <td class='text' style="border: 1px #000000 solid;">
236 <table>
238 <tr><td class='text' > context</td> <td class='text' ><input type="text" name="_context" value="<?php $result = chkdata_Txt($obj,"_context"); echo $result;?>"></td></tr>
240 </table>
241 </td>
243 <td class='text' style="border: 1px #000000 solid;">
245 <table>
247 <tr><td class='text' > modifying factors</td> <td class='text' ><input type="text" name="_modifying_factors" value="<?php $result = chkdata_Txt($obj,"_modifying_factors"); echo $result;?>"></td></tr>
249 </table>
250 </td>
252 <td class='text' style="border: 1px #000000 solid;">
254 <table>
256 <tr><td class='text' > signs symptoms</td> <td class='text' ><input type="text" name="_signs_symptoms" value="<?php $result = chkdata_Txt($obj,"_signs_symptoms"); echo $result;?>"></td></tr>
258 </table>
259 </td>
261 <td class='text' style="border: 1px #000000 solid;">
263 <table>
265 <tr><td class='text' > status of chronic illness</td> <td class='text' ><input type="text" name="_status_of_chronic_illness" value="<?php $result = chkdata_Txt($obj,"_status_of_chronic_illness"); echo $result;?>"></td></tr>
267 </table>
268 </td></tr>
274 </table>
275 </td>
276 </tr>
280 <tr>
282 <td class='text' valign="top" style="border: 1px #000000 solid; height: 15px;">
284 <table width="100%" cellpadding="0" cellspacing="0">
286 <tr>
288 <td class='text' align="center" style="border: 1px #000000 solid; height: 15px;">
290 ROS
293 </td>
295 <td class='text' align="center" style="border: 1px #000000 solid; height: 15px;">
302 </td>
304 <td class='text' align="center" style="border: 1px #000000 solid; height: 15px;">
311 </td>
312 </tr>
314 <tr>
316 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
318 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
319 Systemic</td>
321 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
323 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
325 <table>
327 <tr><td class='text' > systemic positive</td> <td class='text' ><input type="text" name="_systemic_positive" value="<?php $result = chkdata_Txt($obj,"_systemic_positive"); echo $result;?>"></td></tr>
329 </table>
330 </td>
332 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
334 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
336 <table>
338 <tr><td class='text' > systemic negative</td> <td class='text' ><input type="text" name="_systemic_negative" value="<?php $result = chkdata_Txt($obj,"_systemic_negative"); echo $result;?>"></td></tr>
340 </table>
341 </td>
342 </tr>
344 <tr>
346 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
348 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
349 ENT</td>
351 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
353 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
355 <table>
357 <tr><td class='text' > ent positive</td> <td class='text' ><input type="text" name="_ent_positive" value="<?php $result = chkdata_Txt($obj,"_ent_positive"); echo $result;?>"></td></tr>
359 </table>
360 </td>
362 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
364 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
366 <table>
368 <tr><td class='text' > ent negative</td> <td class='text' ><input type="text" name="_ent_negative" value="<?php $result = chkdata_Txt($obj,"_ent_negative"); echo $result;?>"></td></tr>
370 </table>
371 </td>
372 </tr>
374 <tr>
376 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
378 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
379 Eyes</td>
381 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
383 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
385 <table>
387 <tr><td class='text' > eyes positive</td> <td class='text' ><input type="text" name="_eyes_positive" value="<?php $result = chkdata_Txt($obj,"_eyes_positive"); echo $result;?>"></td></tr>
389 </table>
390 </td>
392 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
394 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
396 <table>
398 <tr><td class='text' > eyes negative</td> <td class='text' ><input type="text" name="_eyes_negative" value="<?php $result = chkdata_Txt($obj,"_eyes_negative"); echo $result;?>"></td></tr>
400 </table>
401 </td>
402 </tr>
404 <tr>
406 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
408 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
409 Lymph</td>
411 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
413 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
415 <table>
417 <tr><td class='text' > lymph positive</td> <td class='text' ><input type="text" name="_lymph_positive" value="<?php $result = chkdata_Txt($obj,"_lymph_positive"); echo $result;?>"></td></tr>
419 </table>
420 </td>
422 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
424 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
426 <table>
428 <tr><td class='text' > lymph negative</td> <td class='text' ><input type="text" name="_lymph_negative" value="<?php $result = chkdata_Txt($obj,"_lymph_negative"); echo $result;?>"></td></tr>
430 </table>
431 </td>
432 </tr>
434 <tr>
436 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
438 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
439 Resp</td>
441 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
443 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
445 <table>
447 <tr><td class='text' > resp positive</td> <td class='text' ><input type="text" name="_resp_positive" value="<?php $result = chkdata_Txt($obj,"_resp_positive"); echo $result;?>"></td></tr>
449 </table>
450 </td>
452 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
454 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
456 <table>
458 <tr><td class='text' > resp negative</td> <td class='text' ><input type="text" name="_resp_negative" value="<?php $result = chkdata_Txt($obj,"_resp_negative"); echo $result;?>"></td></tr>
460 </table>
461 </td>
462 </tr>
464 <tr>
466 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
468 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
469 CV</td>
471 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
473 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
475 <table>
477 <tr><td class='text' > cv positive</td> <td class='text' ><input type="text" name="_cv_positive" value="<?php $result = chkdata_Txt($obj,"_cv_positive"); echo $result;?>"></td></tr>
479 </table>
480 </td>
482 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
484 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
486 <table>
488 <tr><td class='text' > cv negative</td> <td class='text' ><input type="text" name="_cv_negative" value="<?php $result = chkdata_Txt($obj,"_cv_negative"); echo $result;?>"></td></tr>
490 </table>
491 </td>
492 </tr>
494 <tr>
496 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
498 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
499 GI</td>
501 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
503 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
505 <table>
507 <tr><td class='text' > gi positive</td> <td class='text' ><input type="text" name="_gi_positive" value="<?php $result = chkdata_Txt($obj,"_gi_positive"); echo $result;?>"></td></tr>
509 </table>
510 </td>
512 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
514 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
516 <table>
518 <tr><td class='text' > gi negative</td> <td class='text' ><input type="text" name="_gi_negative" value="<?php $result = chkdata_Txt($obj,"_gi_negative"); echo $result;?>"></td></tr>
520 </table>
521 </td>
522 </tr>
524 <tr>
526 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
528 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
529 GU</td>
531 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
533 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
535 <table>
537 <tr><td class='text' > gu positive</td> <td class='text' ><input type="text" name="_gu_positive" value="<?php $result = chkdata_Txt($obj,"_gu_positive"); echo $result;?>"></td></tr>
539 </table>
540 </td>
542 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
544 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
546 <table>
548 <tr><td class='text' > gu negative</td> <td class='text' ><input type="text" name="_gu_negative" value="<?php $result = chkdata_Txt($obj,"_gu_negative"); echo $result;?>"></td></tr>
550 </table>
551 </td>
552 </tr>
554 <tr>
556 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
558 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
559 Skin</td>
561 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
563 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
565 <table>
567 <tr><td class='text' > skin positive</td> <td class='text' ><input type="text" name="_skin_positive" value="<?php $result = chkdata_Txt($obj,"_skin_positive"); echo $result;?>"></td></tr>
569 </table>
570 </td>
572 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
574 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
576 <table>
578 <tr><td class='text' > skin negative</td> <td class='text' ><input type="text" name="_skin_negative" value="<?php $result = chkdata_Txt($obj,"_skin_negative"); echo $result;?>"></td></tr>
580 </table>
581 </td>
582 </tr>
584 <tr>
586 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
588 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
589 MS</td>
591 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
593 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
595 <table>
597 <tr><td class='text' > ms positive</td> <td class='text' ><input type="text" name="_ms_positive" value="<?php $result = chkdata_Txt($obj,"_ms_positive"); echo $result;?>"></td></tr>
599 </table>
600 </td>
602 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
604 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
606 <table>
608 <tr><td class='text' > ms negative</td> <td class='text' ><input type="text" name="_ms_negative" value="<?php $result = chkdata_Txt($obj,"_ms_negative"); echo $result;?>"></td></tr>
610 </table>
611 </td>
612 </tr>
614 <tr>
616 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
618 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
619 Psych</td>
621 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
623 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
625 <table>
627 <tr><td class='text' > psych positive</td> <td class='text' ><input type="text" name="_psych_positive" value="<?php $result = chkdata_Txt($obj,"_psych_positive"); echo $result;?>"></td></tr>
629 </table>
630 </td>
632 <td class='text' align="center" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
634 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
636 <table>
638 <tr><td class='text' > psych negative</td> <td class='text' ><input type="text" name="_psych_negative" value="<?php $result = chkdata_Txt($obj,"_psych_negative"); echo $result;?>"></td></tr>
640 </table>
641 </td>
642 </tr>
644 <tr>
646 <td class='text' align="left" colspan="3" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
648 border-left: #000000 1px solid; border-bottom: #000000 1px solid; height: 15px">
650 <table>
652 <tr><td class='text' > all other ros negative </td> <td class='text' ><textarea name="_all_other_ros_negative_" rows="4" cols="40"><?php $result = chkdata_Txt($obj,"_all_other_ros_negative_"); echo $result;?></textarea></td></tr>
654 </table>
655 </td>
656 </tr>
664 </table>
665 </td>
666 </tr>
672 <tr>
674 <td class='text' valign="top" style="border: 1px #000000 solid; height: 15px;">
676 <table width="100%" cellpadding="0" cellspacing="0">
678 <tr>
680 <td class='text' colspan="3" align="center" style="border: 1px #000000 solid; height: 15px;">
682 <table>
684 <tr><td class='text' > past famiy social history</td> <td class='text' ><textarea name="_past_famiy_social_history" rows="4" cols="40"><?php $result = chkdata_Txt($obj,"_past_famiy_social_history"); echo $result;?></textarea></td></tr>
686 </table>
687 </td>
688 </tr>
692 <tr>
696 <td class='text' style="border: 1px #000000 solid; height: 27px;">
698 <table>
700 <tr><td class='text' > ph no change since</td> <td class='text' ><input type="text" name="_ph_no_change_since" value="<?php $result = chkdata_Txt($obj,"_ph_no_change_since"); echo $result;?>"></td></tr>
702 </table>
703 </td>
705 <td class='text' style="border: 1px #000000 solid; height: 27px;">
707 <table>
709 <tr><td class='text' > fh no change since</td> <td class='text' ><input type="text" name="_fh_no_change_since" value="<?php $result = chkdata_Txt($obj,"_fh_no_change_since"); echo $result;?>"></td></tr>
711 </table>
712 </td>
714 <td class='text' style="border: 1px #000000 solid; height: 27px;">
716 <table>
718 <tr><td class='text' > sh no change since</td> <td class='text' ><input type="text" name="_sh_no_change_since" value="<?php $result = chkdata_Txt($obj,"_sh_no_change_since"); echo $result;?>"></td></tr>
720 </table>
721 </td>
722 </tr>
724 <tr><td class='text' colspan='3'>
726 <table>
728 <tr><td class='text' > <?php xl("Examination",'e') ?> </td> <td class='text' ><textarea name="examination" rows="4" cols="40"><?php $result = chkdata_Txt($obj,"examination"); echo $result;?></textarea></td></tr>
730 </table>
731 </td></tr>
735 </table>
736 </td>
737 </tr>
739 </table>
740 <table></table><input type="submit" name="submit form" value="submit form" />
742 </form>
743 <?php
744 formFooter();