echo selectControlledVocabulary("TimeStartBreast", $row['TimeStartBreast']);
echo "</select></td></tr>";
echo "<tr><td>" . _("Frequency of breast milk expression") . ":</td><td><select name='FreqBreastExpr' class='standardselect'>";
echo selectControlledVocabulary("FreqBreastExpr", $row['FreqBreastExpr']);
echo "</select></td></tr>";
echo "<tr><td>" . _("First primary care provider visit") . ":</td><td><select name='FirstPrimCare' class='standardselect'>";
echo selectControlledVocabulary("FirstPrimCare", $row['FirstPrimCare']);
echo "</select></td></tr>";
echo "<tr><td>" . _("Need for extra primary care provider") . ":</td><td><select name='NeedExtraCare' class='standardselect'>";
echo selectControlledVocabulary("NeedExtraCare", $row['NeedExtraCare']);
echo "</select></td></tr>";
echo "<tr><td>" . _("Times of extra primary care on first month") . ":</td><td><select name='TimesExtraCare' class='standardselect'>";
echo selectControlledVocabulary("TimesExtraCare", $row['TimesExtraCare']);
echo "</select></td></tr>";
echo "<tr><td>" . _("Hospitalization during the first month") . ":</td><td><select name='HospFirstMonth' class='standardselect'>";
echo selectControlledVocabulary("HospFirstMonth", $row['HospFirstMonth']);
echo "</select></td></tr>";
echo "</tbody></table>";
if ($row != NULL) {
    $value = "  Update  ";
    $name = "cupdate";
} else {
    $value = "  Insert  ";
    $name = "cinsert";
}
printf("<pre>                                 <input type='submit' name='%s' value='%s' /><input type='submit' name='childDownload' value='" . _("Download") . "' /></pre>", $name, _($value));
?>
    <br />
    <br />
    </form>
    <ul>
Beispiel #2
0
:  </td><td><?php 
echo checkControlledVocabulary("MHDP", "MHDP", 2);
?>
 <br /></td></tr>
<tr><td><?php 
echo _("Latest Method Of Delivery");
?>
:           </td><td><select name="MODel" id="standardselect"><?php 
echo selectControlledVocabulary("MODel", $_SESSION["InfoInput"][22]);
?>
</select> * </td></tr>
<tr><td><?php 
echo _("Cumulative Breastfeeding Experience");
?>
: </td><td><select name="PBE" id="standardselect"><?php 
echo selectControlledVocabulary("PBE", $_SESSION["InfoInput"][23]);
?>
</select> * </td></tr>
</tbody></table>
</div>
</div>   
</div>

<br />

<input type="submit" id="mothersubmit" value="<?php 
echo _("Finish Registering");
?>
"/>

<br />
Beispiel #3
0
:        <select name="NeedExtraCare"><?php 
selectControlledVocabulary('NeedExtraCare');
?>
</select></pre>
<pre><?php 
echo _("Times of extra primary care on first month");
?>
:  <select name="TimesExtraCare"><?php 
selectControlledVocabulary('TimesExtraCare');
?>
</select></pre>
<pre><?php 
echo _("Hospitalization during the first month");
?>
:      <select name="HospFirstMonth"><?php 
selectControlledVocabulary('HospFirstMonth');
?>
</select></pre>
<br />
<pre>                                                  <input type="submit" /></pre>
</form>
<ul>
</div>


<script type="text/javascript" src="js/tabs.js"></script>

<input type="hidden" id="mothersubmit" value="Add Entry" name="breast" tabindex="12"  accesskey="u" />

</div>
</div>
Beispiel #4
0
<!-- =================================== HEALTH FORM ================================================ -->
<div id="health" class="content health">
  <h1><img src="image/morbidity.gif" width=48 height=48 alt=""/>
    <span data-translate='true'><?php 
echo _("Health Issue Entry");
?>
</span>
  </h1>
  <form action='' name='healthForm'>
    <table border='0'><tbody>
      <tr><td><?php 
echo _("Type");
?>
:</td><td><select id="morb-type" name="morb_type">
      <?php 
echo selectControlledVocabulary("morb-type", @$_POST['morb_type']);
?>
      </select></td></tr>
    </tbody></table>

    <p>
      <input type='hidden' name='morb' value='1' />
      <button type="submit" id="mothersubmit" data-translate='true'><?php 
echo _("Add Entry");
?>
</button>
    </p>
  </form>
</div>

</div>
        echo "<input name='direction' value='add' type='hidden' />";
    }
    echo "<input type='submit' id='submit' value='" . _("Modify Entry") . "' name='out' />";
    echo "<input type='submit' id='submit' value='" . _("Cancel") . "' name='cancel3' />";
}
if (isset($_POST['morb'])) {
    $query = "SELECT * FROM Diary d, MorbidityEntry m WHERE \n            EntryType=" . ENTRYTYPE_HEALTH . " AND d.EntryId = m.EntryId AND \n            m.EntryId=" . $_POST['entryid'];
    $result = mysql_query($query);
    if (!$result) {
        error_log(mysql_error());
    }
    $row = mysql_fetch_array($result);
    echo "<h1><img src='image/morbidity.gif' alt=''/>" . _("Health Issue Entry") . "</h1>";
    echo "<ul>";
    echo "<pre>" . _("Type") . ":         <select id='standardselect' name='morb-type'>";
    echo selectControlledVocabulary("morb-type", $row['Type']);
    echo "</select></pre>";
    echo "<input name='entryid' value='" . $_POST['entryid'] . "' type='hidden' />";
    if ($_SESSION['direction'] == 'view') {
        echo "<input name='direction' value='view' type='hidden' />";
    } else {
        echo "<input name='direction' value='add' type='hidden' />";
    }
    echo "<input type='submit' id='submit' value='" . _("Modify Entry") . "' name='morb'/>";
    echo "<input type='submit' id='submit' value='" . _("Cancel") . "' name='cancel4' />";
}
?>



</div>