Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- <link href="../nav/welcomepop.css" rel="stylesheet" type="text/css"></link>
- <link href="../nav/css/custom-theme/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css"></link>
- <?php include '../script.php'; ?>
- <?php include 'functions.php'; ?>
- <?php include '../Check.php';?>
- <script type="text/javascript" src="../src/lib/jquery-ui-1.8.10.custom.min.js"></script>
- <script>
- $(function() {
- $( "#hisint" ).buttonset();
- $( "#HEA_Insect" ).buttonset();
- $( "#HEA_Food" ).buttonset();
- $( "#HEA_OtherAll" ).buttonset();
- $( "#HEA_Driver" ).buttonset();
- $("#accordion").accordion({ header: "h2", autoHeight: false,
- navigation: true
- });
- $( "input:submit, input:button, a.edit" ).button();
- });
- </script>
- </head>
- <body>
- <?php
- $RES_ID = $_GET['rid'];
- $HEA_ID = $_GET['heaid'];
- $pro = $_GET['pro'];
- include '../cCustomConnect.php';
- if ($HEA_ID > 0)
- {
- $Health = mssql_query("Select
- *
- from
- Health
- where
- HEA_ID = '$HEA_ID'
- ");
- $HEA_LivingWill = mssql_result($Health,0,'HEA_LivingWill');
- $HEA_Medical_Power_Attorney = mssql_result($Health,0,'HEA_Medical_Power_Attorney');
- $HEA_POLST = mssql_result($Health,0,'HEA_POLST');
- $HEA_MOST = mssql_result($Health,0,'HEA_MOST');
- $HEA_DNR = mssql_result($Health,0,'HEA_DNR');
- $HEA_LastUser = mssql_result($Health,0,'HEA_LastUser');
- $HEA_DateStamp = mssql_result($Health,0,'HEA_DateStamp');
- $HEA_Vision = mssql_result($Health,0,'HEA_Vision');
- $HEA_Hearing = mssql_result($Health,0,'HEA_Hearing');
- $HEA_Mobility = mssql_result($Health,0,'HEA_Mobility');
- $HEA_Falls = mssql_result($Health,0,'HEA_Falls');
- $HEA_Food = mssql_result($Health,0,'HEA_Food');
- $HEA_FoodPref = mssql_result($Health,0,'HEA_FoodPref');
- $HEA_FoodDetails = mssql_result($Health,0,'HEA_FoodDetails');
- $HEA_Insect = mssql_result($Health,0,'HEA_Insect');
- $HEA_InsectDetails = mssql_result($Health,0,'HEA_InsectDetails');
- $HEA_Driver = mssql_result($Health,0,'HEA_Driver');
- $HEA_Make = mssql_result($Health,0,'HEA_Make');
- $HEA_Model = mssql_result($Health,0,'HEA_Model');
- $HEA_Year = mssql_result($Health,0,'HEA_Year');
- $HEA_Color = mssql_result($Health,0,'HEA_Color');
- $HEA_Plate = mssql_result($Health,0,'HEA_Plate');
- $HEA_ParkArea = mssql_result($Health,0,'HEA_ParkArea');
- $HEA_Care = mssql_result($Health,0,'HEA_Care');
- $HEA_Pendant = mssql_result($Health,0,'HEA_Pendant');
- $HEA_Storage = mssql_result($Health,0,'HEA_Storage');
- $HEA_History1 = mssql_result($Health,0,'HEA_History1');
- $HEA_History2 = mssql_result($Health,0,'HEA_History2');
- $HEA_History3 = mssql_result($Health,0,'HEA_History3');
- $HEA_History4 = mssql_result($Health,0,'HEA_History4');
- $HEA_History5 = mssql_result($Health,0,'HEA_History5');
- $HEA_History6 = mssql_result($Health,0,'HEA_History6');
- $HEA_History7 = mssql_result($Health,0,'HEA_History7');
- $HEA_History8 = mssql_result($Health,0,'HEA_History8');
- $HEA_History9 = mssql_result($Health,0,'HEA_History9');
- $HEA_History10 = mssql_result($Health,0,'HEA_History10');
- $HEA_History11 = mssql_result($Health,0,'HEA_History11');
- $HEA_History12 = mssql_result($Health,0,'HEA_History12');
- $HEA_History13 = mssql_result($Health,0,'HEA_History13');
- $HEA_History14 = mssql_result($Health,0,'HEA_History14');
- $HEA_History15 = mssql_result($Health,0,'HEA_History15');
- $HEA_History16 = mssql_result($Health,0,'HEA_History16');
- $HEA_Height = mssql_result($Health,0,'HEA_Height');
- $HEA_Weight = mssql_result($Health,0,'HEA_Weight');
- $HEA_OtherIll = mssql_result($Health,0,'HEA_OtherIll');
- $HEA_HistoryDetails = mssql_result($Health,0,'HEA_HistoryDetails');
- $HEA_HospName = mssql_result($Health,0,'HEA_HospName');
- $HEA_HospPhone = mssql_result($Health,0,'HEA_HospPhone');
- $HEA_PhyName1 = mssql_result($Health,0,'HEA_PhyName1');
- $HEA_PhyAddress1 = mssql_result($Health,0,'HEA_PhyAddress1');
- $HEA_PhyPhone1 = mssql_result($Health,0,'HEA_PhyPhone1');
- $HEA_PhyFax1 = mssql_result($Health,0,'HEA_PhyFax1');
- $HEA_PhyEmail1 = mssql_result($Health,0,'HEA_PhyEmail1');
- $HEA_PhySpecialty1 = mssql_result($Health,0,'HEA_PhySpecialty1');
- $HEA_PhyName2 = mssql_result($Health,0,'HEA_PhyName2');
- $HEA_PhyAddress2 = mssql_result($Health,0,'HEA_PhyAddress2');
- $HEA_PhyPhone2 = mssql_result($Health,0,'HEA_PhyPhone2');
- $HEA_PhyFax2 = mssql_result($Health,0,'HEA_PhyFax2');
- $HEA_PhyEmail2 = mssql_result($Health,0,'HEA_PhyEmail2');
- $HEA_PhySpecialty2 = mssql_result($Health,0,'HEA_PhySpecialty2');
- $HEA_OtherAll = mssql_result($Health,0,'HEA_OtherAll');
- $HEA_OtherDetails = mssql_result($Health,0,'HEA_OtherDetails');
- }
- $resinfo = mssql_query("Select
- *
- from
- Residents
- where
- RES_ID = '$RES_ID'
- ");
- $PeopleIDY = mssql_result($resinfo,0,'RES_PeopleIDY');
- ?>
- <!--Force IE6 into quirks mode with this comment tag-->
- <div id="maincontentform">
- <form action="LifeHealthScriptcopy.php" method="post" />
- <input name="RES_ID" type="hidden" value="<?php echo $RES_ID ?>" />
- <input name="USR_ID" type="hidden" value="<?php echo $USR_ID ?>" />
- <table width="650" border="0" id="maintable">
- <tr class="odd">
- <td>Current Care Type:</td>
- <td colspan="4"><strong><span style="line-height:28px">
- <select name="HEA_Care" id="HEA_Care">
- <option value="" <?php if($HEA_Care == ' '){echo 'selected="selected"' ;}?>>Select</option>
- <option value="1" <?php if($HEA_Care == '1'){echo 'selected="selected"' ;}?>>IL</option>
- <option value="2" <?php if($HEA_Care == '2'){echo 'selected="selected"' ;}?>>AL</option>
- <option value="3" <?php if($HEA_Care == '3'){echo 'selected="selected"' ;}?>>ALZ</option>
- </select>
- </span></strong></td>
- </tr>
- <tr>
- <td>Fall Risks:</td>
- <td colspan="4"><span style="line-height:28px">
- <select name="HEA_Vision" id="select2">
- <option value="" <?php if($HEA_Vision == ' '){echo 'selected="selected"' ;}?>>Select Vision</option>
- <option value="1" <?php if($HEA_Vision == '1'){echo 'selected="selected"' ;}?>>Good</option>
- <option value="2" <?php if($HEA_Vision == '2'){echo 'selected="selected"' ;}?>>Impaired</option>
- <option value="3" <?php if($HEA_Vision == '3'){echo 'selected="selected"' ;}?>>Legally Blind</option>
- </select>
- <select name="HEA_Hearing" id="select3">
- <option value="" <?php if($HEA_Hearing == ' '){echo 'selected="selected"' ;}?>>Select Hearing</option>
- <option value="1" <?php if($HEA_Hearing == '1'){echo 'selected="selected"' ;}?>>Good</option>
- <option value="2" <?php if($HEA_Hearing == '2'){echo 'selected="selected"' ;}?>>Impaired</option>
- <option value="3" <?php if($HEA_Hearing == '3'){echo 'selected="selected"' ;}?>>Deaf</option>
- <option value="4" <?php if($HEA_Hearing == '4'){echo 'selected="selected"' ;}?>>Hearing Aids</option>
- </select>
- <select name="HEA_Mobility" id="select4">
- <option value="" <?php if($HEA_Mobility == ' '){echo 'selected="selected"' ;}?>>Select Mobility</option>
- <option value="1" <?php if($HEA_Mobility == '1'){echo 'selected="selected"' ;}?>>Good</option>
- <option value="2" <?php if($HEA_Mobility == '2'){echo 'selected="selected"' ;}?>>Cane</option>
- <option value="3" <?php if($HEA_Mobility == '3'){echo 'selected="selected"' ;}?>>Walker</option>
- <option value="4" <?php if($HEA_Mobility == '4'){echo 'selected="selected"' ;}?>>Scooter</option>
- <option value="5" <?php if($HEA_Mobility == '5'){echo 'selected="selected"' ;}?>>Wheel Chair Manual</option>
- <option value="6" <?php if($HEA_Mobility == '6'){echo 'selected="selected"' ;}?>>Wheel Chair Power</option>
- </select>
- <br />
- Recent Falls in last 6 Months:
- <select name="HEA_Falls" id="select5">
- <option value="" <?php if($HEA_Falls == ' '){echo 'selected="selected"' ;}?>>Select</option>
- <option value="0" <?php if($HEA_Falls == '0'){echo 'selected="selected"' ;}?>>0</option>
- <option value="1" <?php if($HEA_Falls == '1'){echo 'selected="selected"' ;}?>>1</option>
- <option value="2" <?php if($HEA_Falls == '2'){echo 'selected="selected"' ;}?>>2</option>
- <option value="3" <?php if($HEA_Falls == '3'){echo 'selected="selected"' ;}?>>3</option>
- <option value="4" <?php if($HEA_Falls == '4'){echo 'selected="selected"' ;}?>>4+</option>
- </select>
- </span></td>
- </tr>
- <tr class="odd">
- <td rowspan="3">Allergies:</td>
- <td colspan="4">Food :<span style="line-height:28px">
- <span id="HEA_Food">
- <input type="radio" name="HEA_Food" id="f1" value="yes" <?php if($HEA_Food == 'yes'){echo 'checked="checked"' ;}?> />
- <label for="f1">Yes</label>
- <input name="HEA_Food" type="radio" id="f2" value="no" <?php if($HEA_Food == 'no'){echo 'checked="checked"' ;}?> />
- <label for="f2">No</label>
- </span>
- <textarea name="HEA_FoodDetails" id="fooddetails" cols="60" rows="1" class="text1"><?php if($HEA_FoodDetails != ' '){echo $HEA_FoodDetails ;}?></textarea>
- <br />
- Preference:
- <label>
- <select name="HEA_FoodPref" id="HEA_FoodPref">
- <option value="" <?php if($HEA_FoodPref == ' '){echo 'selected="selected"' ;}?>>Select Preference</option>
- <option value="1" <?php if($HEA_FoodPref == '1'){echo 'selected="selected"' ;}?>>No Preference</option>
- <option value="2" <?php if($HEA_FoodPref == '2'){echo 'selected="selected"' ;}?>>Diabetes</option>
- <option value="3" <?php if($HEA_FoodPref == '3'){echo 'selected="selected"' ;}?>>Vegetarian</option>
- <option value="4" <?php if($HEA_FoodPref == '4'){echo 'selected="selected"' ;}?>>Vegan</option>
- </select>
- </label>
- </span></td>
- </tr>
- <tr class="odd">
- <td colspan="4">Insect:<span style="line-height:28px">
- <span id="HEA_Insect">
- <input type="radio" name="HEA_Insect" id="i1" value="yes" <?php if($HEA_Insect == 'yes'){echo 'checked="checked"' ;}?> />
- <label for="i1">Yes</label>
- <input name="HEA_Insect" type="radio" id="i2" value="no" <?php if($HEA_Insect == 'no'){echo 'checked="checked"' ;}?> />
- <label for="i2">No</label>
- </span>
- <textarea name="HEA_InsectDetails" id="fooddetails2" cols="60" rows="1" class="text1"><?php if($HEA_InsectDetails != ' '){echo $HEA_InsectDetails ;}?></textarea>
- </span></td>
- </tr>
- <tr class="odd">
- <td colspan="4">Other/Meds:<span style="line-height:28px">
- <span id="HEA_OtherAll">
- <input type="radio" name="HEA_OtherAll" id="o1" value="yes" <?php if($HEA_OtherAll == 'yes'){echo 'checked="checked"' ;}?> />
- <label for="o1">Yes</label>
- <input name="HEA_OtherAll" type="radio" id="o2" value="no" <?php if($HEA_OtherAll == 'no'){echo 'checked="checked"' ;}?> />
- <label for="o2">No</label>
- </span>
- (For Emergency Fact Sheet)<br />
- <textarea name="HEA_OtherDetails" id="HEA_OtherDetails" cols="60" rows="2" class="text1"><?php if($HEA_OtherDetails != ' '){echo $HEA_OtherDetails ;}?></textarea>
- </span></td>
- </tr>
- <tr>
- <td>Stats:</td>
- <td colspan="4">Height(ft.):
- <input type="text" name="HEA_Height" id="HEA_Height" <?php if($HEA_Height != ' '){echo 'value="' . $HEA_Height . '"' ;}?> />
- Weight(lbs):
- <input type="text" name="HEA_Weight" id="HEA_Weight" <?php if($HEA_Weight != ' '){echo 'value="' . $HEA_Weight . '"' ;}?> /></td>
- </tr>
- <tr class="odd">
- <td rowspan="2">History of:</td>
- <td colspan="4">
- <span id="hisint">
- <input name="HEA_History1" type="checkbox" id="h1" value="on" <?php if($HEA_History1 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h1">Diabetes</label>
- <input name="HEA_History2" type="checkbox" id="h2" value="on" <?php if($HEA_History2 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h2">Depression</label>
- <input name="HEA_History3" type="checkbox" id="h3" value="on" <?php if($HEA_History3 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h3">High Blood Pressure</label>
- <input name="HEA_History4" type="checkbox" id="h4" value="on" <?php if($HEA_History4 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h4">Asthma</label>
- <input name="HEA_History5" type="checkbox" id="h5" value="on" <?php if($HEA_History5 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h5">Hearing Loss</label>
- <input name="HEA_History6" type="checkbox" id="h6" value="on" <?php if($HEA_History6 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h6">Respiratory</label>
- <input name="HEA_History7" type="checkbox" id="h7" value="on" <?php if($HEA_History7 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h7">Heart Disease</label>
- <input name="HEA_History8" type="checkbox" id="h8" value="on" <?php if($HEA_History8 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h8">Pacemaker </label>
- <input name="HEA_History9" type="checkbox" id="h9" value="on" <?php if($HEA_History9 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h9">Stroke</label>
- <input name="HEA_History10" type="checkbox" id="h10" value="on" <?php if($HEA_History10 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h10">Cancer</label>
- <input name="HEA_History11" type="checkbox" id="h11" value="on" <?php if($HEA_History11 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h11">Confusion or Memory Loss</label>
- <input name="HEA_History12" type="checkbox" id="h12" value="on" <?php if($HEA_History12 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h12">Dementia/Alzheimer</label>
- <input name="HEA_History13" type="checkbox" id="h13" value="on" <?php if($HEA_History13 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h13">Parkinson Disease</label>
- <input name="HEA_History14" type="checkbox" id="h14" value="on" <?php if($HEA_History14 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h14">Eye Disease</label>
- <input name="HEA_History15" type="checkbox" id="h15" value="on" <?php if($HEA_History15 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h15">Arthritis</label>
- <input name="HEA_History16" type="checkbox" id="h16" value="on" <?php if($HEA_History16 == 'on'){echo 'checked="checked"' ;}?> />
- <label for="h16">Neurological Disease</label>
- </span>
- </td>
- </tr>
- <tr class="odd">
- <td colspan="4">Other Illness:
- <input name="HEA_OtherIll" type="text" id="HEA_OtherIll" size="50" <?php if($HEA_OtherIll != ' '){echo 'value="' . $HEA_OtherIll . '"' ;}?> />
- <br />
- History Explanation for all checked:<br />
- <span style="line-height:28px">
- <textarea name="HEA_HistoryDetails" id="HEA_HistoryDetails" cols="60" rows="2" class="text1"><?php if($HEA_HistoryDetails != ' '){echo $HEA_HistoryDetails ;}?></textarea>
- </span></td>
- </tr>
- <tr>
- <td>Hospital Preference:</td>
- <td colspan="4">Name:
- <input name="HEA_HospName" type="text" id="HEA_HospName" size="40" <?php if($HEA_HospName != ' '){echo 'value="' . $HEA_HospName . '"' ;}?> />
- Phone:
- <input name="HEA_HospPhone" type="text" id="HEA_HospPhone" size="12" <?php if($HEA_HospPhone != ' '){echo 'value="' . $HEA_HospPhone . '"' ;}?> /></td>
- </tr>
- <tr class="odd">
- <td rowspan="6">Physician(s):</td>
- <td> Name: <br /></td>
- <td><input name="HEA_PhyName1" type="text" id="HEA_PhyName1" size="25" <?php if($HEA_PhyName1 != ' '){echo 'value="' . $HEA_PhyName1 . '"' ;}?> /></td>
- <td>Name:</td>
- <td><input name="HEA_PhyName2" type="text" id="HEA_PhyName2" size="25" <?php if($HEA_PhyName2 != ' '){echo 'value="' . $HEA_PhyName2 . '"' ;}?> /></td>
- </tr>
- <tr class="odd">
- <td>Address: </td>
- <td><span style="line-height:28px">
- <textarea name="HEA_PhyAddress1" id="HEA_PhyAddress1" cols="25" rows="2" class="text1"><?php if($HEA_PhyAddress1 != ' '){echo $HEA_PhyAddress1 ;}?></textarea>
- </span></td>
- <td>Address: </td>
- <td><span style="line-height:28px">
- <textarea name="HEA_PhyAddress2" id="HEA_PhyAddress2" cols="25" rows="2" class="text1"><?php if($HEA_PhyAddress2 != ' '){echo $HEA_PhyAddress2 ;}?></textarea>
- </span></td>
- </tr>
- <tr class="odd">
- <td>Phone:</td>
- <td><input name="HEA_PhyPhone1" type="text" id="HEA_PhyPhone1" size="25" <?php if($HEA_PhyPhone1 != ' '){echo 'value="' . $HEA_PhyPhone1 . '"' ;}?> /></td>
- <td>Phone:</td>
- <td><input name="HEA_PhyPhone2" type="text" id="HEA_PhyPhone2" size="25" <?php if($HEA_PhyPhone2 != ' '){echo 'value="' . $HEA_PhyPhone2 . '"' ;}?> /></td>
- </tr>
- <tr class="odd">
- <td>Fax:</td>
- <td><input name="HEA_PhyFax1" type="text" id="HEA_PhyFax1" size="25" <?php if($HEA_PhyFax1 != ' '){echo 'value="' . $HEA_PhyFax1 . '"' ;}?> /></td>
- <td>Fax:</td>
- <td><input name="HEA_PhyFax2" type="text" id="HEA_PhyFax2" size="25" <?php if($HEA_PhyFax2 != ' '){echo 'value="' . $HEA_PhyFax2 . '"' ;}?> /></td>
- </tr>
- <tr class="odd">
- <td>Email: </td>
- <td><input name="HEA_PhyEmail1" type="text" id="HEA_PhyEmail1" size="25" <?php if($HEA_PhyEmail1 != ' '){echo 'value="' . $HEA_PhyEmail1 . '"' ;}?> /></td>
- <td>Email: </td>
- <td><input name="HEA_PhyEmail2" type="text" id="HEA_PhyEmail2" size="25" <?php if($HEA_PhyEmail2 != ' '){echo 'value="' . $HEA_PhyEmail2 . '"' ;}?> /></td>
- </tr>
- <tr class="odd">
- <td>Specialty:</td>
- <td><input name="HEA_PhySpecialty1" type="text" id="HEA_PhySpecialty1" size="25" <?php if($HEA_PhySpecialty1 != ' '){echo 'value="' . $HEA_PhySpecialty1 . '"' ;}?> /></td>
- <td>Specialty:</td>
- <td><input name="HEA_PhySpecialty2" type="text" id="HEA_PhySpecialty2" size="25" <?php if($HEA_PhySpecialty2 != ' '){echo 'value="' . $HEA_PhySpecialty2 . '"' ;}?> /></td>
- </tr>
- <tr >
- <td rowspan="4">Auto Info:</td>
- <td>Driver:</td>
- <td colspan="3">
- <span id="HEA_Driver">
- <input type="radio" name="HEA_Driver" id="d1" value="yes" <?php if($HEA_Driver == 'yes'){echo 'checked="checked"' ;}?> />
- <label for="d1">Yes</label>
- <input name="HEA_Driver" type="radio" id="d2" value="no" <?php if($HEA_Driver == 'no'){echo 'checked="checked"' ;}?> />
- <label for="d2">No</label>
- </span>
- </td>
- </tr>
- <tr>
- <td>Make:</td>
- <td><input type="text" name="HEA_Make" id="Car" <?php if($HEA_Make != ' '){echo 'value="' . $HEA_Make . '"' ;}?> /></td>
- <td>Model:</td>
- <td><input type="text" name="HEA_Model" id="Car2" <?php if($HEA_Model != ' '){echo 'value="' . $HEA_Model . '"' ;}?> /></td>
- </tr>
- <tr>
- <td>Year:</td>
- <td><input type="text" name="HEA_Year" id="Car4" <?php if($HEA_Year != ' '){echo 'value="' . $HEA_Year . '"' ;}?> /></td>
- <td>Color:</td>
- <td><input type="text" name="HEA_Color" id="Car5" <?php if($HEA_Color != ' '){echo 'value="' . $HEA_Color . '"' ;}?> /></td>
- </tr>
- <tr>
- <td>Plate:</td>
- <td><input type="text" name="HEA_Plate" id="Car3" <?php if($HEA_Plate != ' '){echo 'value="' . $HEA_Plate . '"' ;}?> /></td>
- <td>Parking:</td>
- <td><input type="text" name="HEA_ParkArea" id="Car6" <?php if($HEA_ParkArea != ' '){echo 'value="' . $HEA_ParkArea . '"' ;}?> /></td>
- </tr>
- <tr>
- <td>Other Info:</td>
- <td>Pendant:</td>
- <td><input type="text" name="HEA_Pendant" id="Car6" <?php if($HEA_Pendant != ' '){echo 'value="' . $HEA_Pendant . '"' ;}?> /></td>
- <td>Storage:</td>
- <td><input type="text" name="HEA_Storage" id="Car6" <?php if($HEA_Storage != ' '){echo 'value="' . $HEA_Storage . '"' ;}?> /></td>
- </tr>
- <tr>
- <td colspan="1">Previous Address in REPS:</td>
- <td colspan="4">
- <?php
- include '../ConnectREPS13.php';
- $repscon = @mssql_query("Select
- a.Address1,
- a.Address2,
- a.City,
- a.State,
- a.ZipCode
- from
- People p
- LEFT JOIN
- PeopleAddress pa
- ON pa.PeopleIDY = p.PeopleIDY
- Left Join
- Address a
- ON pa.AddressIDY = a.AddressIDY
- where
- p.PeopleIDY = '$PeopleIDY'");
- $Address1 = mssql_result($repscon,0,'Address1');
- $Address2 = mssql_result($repscon,0,'Address2');
- $City = mssql_result($repscon,0,'City');
- $State = mssql_result($repscon,0,'State');
- $ZipCode = mssql_result($repscon,0,'ZipCode');
- echo $Address1 . ' ' . $Address2 . ' ' . $City . ', ' . $State . ' ' . $ZipCode . ' ';
- ?></td>
- </tr>
- <tr>
- <td colspan="1">Resident Has:</td>
- <td colspan="4">
- | Living Will
- <input type="checkbox" name="HEA_LivingWill" id="HEA_LivingWill" <?php if($HEA_LivingWill) { echo 'checked="checked"' ; }?> />
- | Medical Power of Attorney
- <input type="checkbox" name="HEA_Medical_Power_Attorney" id="HEA_Medical_Power_Attorney" <?php if($HEA_Medical_Power_Attorney) { echo 'checked="checked"' ; }?> />
- | POLST
- <input type="checkbox" name="HEA_POLST" id="HEA_POLST" <?php if($HEA_POLST) { echo 'checked="checked"' ; }?> />
- | MOST
- <input type="checkbox" name="HEA_MOST" id="HEA_MOST" <?php if($HEA_MOST) { echo 'checked="checked"' ; }?> />
- | DNR
- <input type="checkbox" name="HEA_DNR" id="HEA_DNR" <?php if($HEA_DNR) { echo 'checked="checked"' ; }?> />
- |
- <td>
- </tr>
- </table>
- <br />
- <?php
- if ($pro == 1)
- {
- echo '<input type="submit" name="back" class="formbutton" id="Submit" value="Save and Back to Profile" />';
- }
- else
- {
- echo '<input type="submit" name="save" class="formbutton" id="Submit" value="Save" />';
- }
- ?>
-
- <input type="submit" name="next" class="formbutton" id="Submit2" value="Save and Next to Life" />
-
- <?php
- if ($pro == 1)
- {
- echo '<input type="button" name="back" class="formbutton" id="Submit" value="Back" onCLick="history.back()" />';
- }
- else
- {
- echo '<input type="button" name="Cancel" class="formbutton" id="Cancel" value="Cancel" onclick="javascript:parent.Shadowbox.close();" />
- ';
- }
- ?>
- <br />
- </p>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment