<?php // $attributes = array('name' => 'frmEditClient', 'id' => 'frmAddEdit'); $strLinkBase = 'hospice/patient_visit/addEditPVSelected/'; echoT('<br><span style="font-size: 11pt;">Please select the patient you visited:</span><br>'); openWrapperTable(); foreach ($volClient as $vc) { $lPatientID = $vc->lPatientID; echoT('<tr><td>' . "\n"); echoT(strLinkSpecial_SearchSelect($strLinkBase . $lPatientID, 'Select', true, 'id="sel' . $lPatientID . '"') . ' ' . htmlspecialchars($vc->patient->strLName . ', ' . $vc->patient->strFName) . '<br><br>'); echoT('</td></tr>' . "\n"); } closeWrapperTable();
public function strHTML_SearchResults() { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $gstrSeed; $strOut = ''; if ($this->lNumSearchResults == 0) { $strOut .= '<font color="red">There are no ' . $this->strSearchLabel . ' records that match your search criteria <b><i>"' . htmlspecialchars($this->strSearchTerm) . '"</b></i></font><br><br>' . strLinkSpecial_SearchAgain($this->strPathSearchAgain, $this->strTitleSearchAgain, true) . ' ' . strLinkSpecial_SearchAgain($this->strPathSearchAgain, $this->strTitleSearchAgain, false); } else { $strOut .= $this->strDisplayTitle . '<br>' . strLinkSpecial_SearchAgain($this->strPathSearchAgain, $this->strTitleSearchAgain, true) . ' ' . strLinkSpecial_SearchAgain($this->strPathSearchAgain, $this->strTitleSearchAgain, false) . '<br><br> <table class="enpRpt">'; $this->clsNavigation = new stdClass(); foreach ($this->searchResults as $clsFound) { $lKeyID = $this->clsNavigation->lKey01 = $clsFound->lKeyID; if ($this->bShowKeyID) { if ($this->bShowLink) { $strRecLink = $this->strIDLabel . strLinkView_ViaRecType($this->enumSearchType, $lKeyID) . ' ' . str_pad($lKeyID, 5, '0', STR_PAD_LEFT) . '<br>'; } else { $strRecLink = $this->strIDLabel . ' ' . str_pad($lKeyID, 5, '0', STR_PAD_LEFT) . '<br>'; } } else { $strRecLink = ''; } $strOut .= '<tr>'; if ($this->bShowSelect) { $strLinkSel = strLinkSpecial_SearchSelect($this->strPathSelection . $lKeyID, $this->strTitleSelection, true, ' id="sID_' . $lKeyID . '" '); $strOut .= ' <td class="enpRpt" style="text-align: center;">' . $strLinkSel . ' </td>'; } if ($this->bShowEnumSearchType) { $strOut .= ' <td class="enpRpt">' . $this->enumSearchType . ' </td>'; } $strOut .= ' <td class="enpRpt">' . $strRecLink . $clsFound->strResult . ' </td> </tr>'; } $strOut .= '</table>'; } return $strOut; }