A couple of new experimental features. Type perl formscript.pl for documentation.
[openemr.git] / contrib / forms / obstetrical / view.php
blobd41858c4abc7406344a369a9c4fa223af97b8863
1 <!-- Forms generated from formsWiz -->
2 <?php
3 include_once("../../globals.php");
4 ?>
5 <html><head>
6 <?php html_header_show();?>
7 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
8 </head>
9 <body class="body_top">
10 <?php
11 include_once("$srcdir/api.inc");
12 $obj = formFetch("form_obstetrical", $_GET["id"]);
14 <form method=post action="<?php echo $rootdir?>/forms/obstetrical/save.php?mode=update&id=<?php echo $_GET["id"];?>" name="my_form">
15 <span class="title">Obstetrical Form</span><Br><br>
16 <table>
17 <tr>
18 <td><span class=text>Name: </span></td><td><input type=entry name="name" value="<?php echo $obj{"name"};?>" ></td>
19 <td><span class=text>Birthdate: </span></td><td><input type=entry size=10 name=birthdate value="<?php if ($obj{"birthdate"} != "0000-00-00 00:00:00") {echo date("Y-m-d",strtotime($obj{"birthdate"}));} else {echo "YYYY-MM-DD";}?>"></td>
20 <td><span class=text>Birth Status: </span></td><td><input type=entry name="birth_status" value="<?php echo $obj{"birth_status"};?>" ></td>
21 <td><span class=text>Gender: </span></td><td><input type=entry name="gender" value="<?php echo $obj{"gender"};?>" ></td>
22 <td><input type=checkbox name="circumcised" <?php if ($obj{"circumcised"} == "on") {echo "checked";};?>></td><td><span class=text>Circumcised</span></td>
23 </tr>
24 </table>
26 <table>
27 <tr>
28 <td><span class=text>Pediatrician: </span></td><td><input type=entry name="pediatrician" value="<?php echo $obj{"pediatrician"};?>" ></td>
29 <td><span class=text>Birth Weight: </span></td><td><input type=entry name="birth_weight" value="<?php echo $obj{"birth_weight"};?>" ></td>
30 </tr><tr>
31 <td><span class=text>Length (Inches): </span></td><td><input type=entry name="length_inches" value="<?php echo $obj{"length_inches"};?>" ></td>
32 <td><span class=text>Head Circumference (Inches): </span></td><td><input type=entry name="head_circumference_inches" value="<?php echo $obj{"head_circumference_inches"};?>" ></td>
33 </tr><tr>
34 <td><span class=text>Feeding: </span></td><td><input type=entry name="feeding" value="<?php echo $obj{"feeding"};?>" ></td>
35 <td><span class=text>Delivery Method: </span></td><td><input type=entry name="delivery_method" value="<?php echo $obj{"delivery_method"};?>" ></td>
36 </tr><tr>
37 <td><span class=text>Labor Hours: </span></td><td><input type=entry name="labor_hours" value="<?php echo $obj{"labor_hours"};?>" ></td>
38 <td><span class=text>Pregnancy (Weeks): </span></td><td><input type=entry name="pregnancy_weeks" value="<?php echo $obj{"pregnancy_weeks"};?>" ></td>
39 </tr><tr>
40 <td><span class=text>Anesthesia: </span></td><td colspan=3><input type=entry name="anesthesia" value="<?php echo $obj{"anesthesia"};?>" ></td>
41 </tr>
42 </table>
44 <table>
45 <tr>
46 <td><span class=text>Reactions to Medications and Immunizations: </span><br><textarea cols=40 rows=4 wrap=virtual name="reactions_to_medications_and_immunizations" ><?php echo $obj{"reactions_to_medications_and_immunizations"};?></textarea></td>
47 <td><span class=text>Birth Complications: </span><br><textarea cols=40 rows=4 wrap=virtual name="birth_complications" ><?php echo $obj{"birth_complications"};?></textarea></td>
48 </tr><tr>
49 <td><span class=text>Developmental Problems: </span><br><textarea cols=40 rows=4 wrap=virtual name="developmental_problems" ><?php echo $obj{"developmental_problems"};?></textarea></td>
50 <td><span class=text>Chronic Illness: </span><br><textarea cols=40 rows=4 wrap=virtual name="chronic_illness" ><?php echo $obj{"chronic_illness"};?></textarea></td>
51 </tr><tr>
52 <td><span class=text>Chronic Medication: </span><br><textarea cols=40 rows=4 wrap=virtual name="chronic_medication" ><?php echo $obj{"chronic_medication"};?></textarea></td>
53 <td><span class=text>Hospitalization: </span><br><textarea cols=40 rows=4 wrap=virtual name="hospitalization" ><?php echo $obj{"hospitalization"};?></textarea></td>
54 </tr><tr>
55 <td><span class=text>Surgery: </span><br><textarea cols=40 rows=4 wrap=virtual name="surgery" ><?php echo $obj{"surgery"};?></textarea></td>
56 <td><span class=text>Injury: </span><br><textarea cols=40 rows=4 wrap=virtual name="injury" ><?php echo $obj{"injury"};?></textarea></td>
57 </tr><tr>
58 <td><span class=text>Day Care: </span><br><textarea cols=40 rows=4 wrap=virtual name="day_care" ><?php echo $obj{"day_care"};?></textarea></td>
59 <td><span class=text>Additional Notes: </span><br><textarea cols=40 rows=4 wrap=virtual name="additional_notes" ><?php echo $obj{"additional_notes"};?></textarea></td>
60 </tr>
61 </table>
62 <br>
63 <a href="javascript:top.restoreSession();document.my_form.submit();" class="link_submit">[Save]</a>
64 <br>
65 <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link"
66 onclick="top.restoreSession()">[Don't Save Changes]</a>
67 </form>
68 <?php
69 formFooter();