Ejemplo n.º 1
0
 if ($institutions) {
     foreach ($institutions as $institution) {
         echo "<option value=\"" . (int) $institution["lsite_id"] . "\"" . ($entry->getInstitutionID() == $institution["lsite_id"] || !$entry->getInstitutionID() && isset($_SESSION[APPLICATION_IDENTIFIER]["tmp"]["chosen_institution"]) && $_SESSION[APPLICATION_IDENTIFIER]["tmp"]["chosen_institution"] == $institution["lsite_id"] ? " selected=\"selected\"" : "") . ">" . $institution["site_name"] . "</option>\n";
     }
 }
 ?>
             </select>
         </span>
     </div>
     <div class="control-group row-fluid">
         <label for="llocation_id" class="form-required span3">Setting</label>
         <span class="controls span8">
             <select id="llocation_id" name="llocation_id" style="width: 100%">
             <option value="0">-- Select Setting --</option>
             <?php 
 $locations = $logbook->getLocations();
 if ($locations) {
     foreach ($locations as $location) {
         echo "<option value=\"" . (int) $location["llocation_id"] . "\"" . ($entry->getLocationID() == (int) $location["llocation_id"] ? " selected=\"selected\"" : "") . ">" . $location["location"] . "</option>\n";
     }
 }
 ?>
             </select>
         </span>
     </div>
     <br />
     <div class="control-group row-fluid">
         <label for="agerange" class="form-required span3">Patient Age Range</label>
         <span class="controls span8">
             <select id="agerange" name="agerange" style="width: 257px">
             <?php