public function volHTMLSummary($idx) { //----------------------------------------------------------------------- // assumes user has called $clsVol->loadVolRecs(... //----------------------------------------------------------------------- global $gdteNow, $genumDateFormat; $strOut = ''; $params = array('enumStyle' => 'terse'); $clsRpt = new generic_rpt($params); $clsRpt->setEntrySummary(); $lVolID = $this->volRecs[$idx]->lKeyID; $volRec =& $this->volRecs[$idx]; $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($volRec->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer ID:') . $clsRpt->writeCell(str_pad($lVolID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_VolRecord($lVolID, 'View Volunteer Record', true)) . $clsRpt->closeRow(); if ($volRec->bInactive) { $strVol = '<i>Inactive since ' . date($genumDateFormat, $volRec->dteInactive); } else { $strVol = 'Active'; } $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer Status:') . $clsRpt->writeCell($strVol) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell(htmlspecialchars($volRec->strChapterName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($volRec->strAddress) . $clsRpt->closeRow() . $clsRpt->closeReport(''); return $strOut; }
function showGeneralPVisitInfo($attributes, $clsRpt, $pVisit) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $gbVolMgr; $attributes->bCloseDiv = false; $attributes->divID = 'pVGen'; $attributes->divImageID = 'pVGenDivImg'; openBlock('Visit', '', $attributes); echoT($clsRpt->openReport()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Visit ID:') . $clsRpt->writeCell(str_pad($pVisit->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Organization:') . $clsRpt->writeCell(htmlspecialchars($pVisit->strChapterName)) . $clsRpt->closeRow()); if ($gbVolMgr) { $strViewPRec = strLinkView_PatientRecord($pVisit->lPatientID, 'View patient record', true); $strViewVRec = strLinkView_VolRecord($pVisit->lVolID, 'View volunteer record', true); } else { $strViewVRec = $strViewPRec = ''; } echoT($clsRpt->openRow() . $clsRpt->writeLabel('Patient:') . $clsRpt->writeCell(htmlspecialchars($pVisit->strPatientLName . ', ' . $pVisit->strPatientFName) . ' ' . $strViewPRec) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Volunteer:') . $clsRpt->writeCell(htmlspecialchars($pVisit->strVolLName . ', ' . $pVisit->strVolFName) . ' ' . $strViewVRec) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date of Visit:') . $clsRpt->writeCell(date('l, F jS, Y', $pVisit->dteVisit)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Time/Duration:') . $clsRpt->writeCell(date('g:i A', $pVisit->lStartTime) . ' / ' . pvisit\strMinutesToHoursMin($pVisit->lDuration)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Medical Record #:') . $clsRpt->writeCell(htmlspecialchars($pVisit->strMedRec)) . $clsRpt->closeRow()); echoT($clsRpt->closeReport()); $attributes->bCloseDiv = true; closeBlock($attributes); }
$lAcctID = $vol->lAcctID; if ($bInactive) { $strColor = ' color: #888;'; } else { $strColor = ''; } if ($bInactive) { $strLinkResetPW = $strLinkAddMiscAct = $strLinkAddNewAssoc = $strLinkTraining = ''; } else { $strLinkResetPW = strLinkEdit_ResetPWord($lAcctID, true, 'Password') . ' ' . strLinkEdit_ResetPWord($lAcctID, false, 'Password') . '<br>'; $strLinkAddMiscAct = strLinkAdd_VolMgrAddMiscVolActivity($lVolID, 'Vol. activity', true, ' id="otherVAct_' . $lVolID . '" ') . ' ' . strLinkAdd_VolMgrAddMiscVolActivity($lVolID, 'Vol. activity', false) . '<br>'; $strLinkAddNewAssoc = strLinkAdd_PatientAssociation($lVolID, 'Add association', true, ' id="pvAssoc_' . $lVolID . '" ') . ' ' . strLinkAdd_PatientAssociation($lVolID, 'Add association', false) . '<br>'; $strLinkTraining = strLinkView_VMgrViewVolTraining($lVolID, 'Training Log', true, ' id="vTrain_' . $lVolID . '" ') . ' ' . strLinkView_VMgrViewVolTraining($lVolID, 'Training Log', false); } echoT($clsRpt->openRow(true)); echoT($clsRpt->writeCell(strLinkView_VolRecord($lVolID, 'View record', true, ' id="vvolRec_' . $lVolID . '" ') . ' ' . str_pad($lVolID, 5, '0', STR_PAD_LEFT), 60, 'text-align: center;' . $strColor)); echoT($clsRpt->writeCell(($vol->bInactive ? 'No' : 'Yes') . ' ' . strLink_VolActiveInactive($lVolID, $bInactive, 'Set to ' . ($bInactive ? 'active' : 'inactive'), true), 60, 'text-align: center;' . $strColor)); //--------------------------- // name //--------------------------- echoT($clsRpt->writeCell($vol->strSafeNameLF . '<br><br>' . strLinkView_VMgrViewVolLog($lVolID, 'Volunteer Log', true) . ' ' . strLinkView_VMgrViewVolLog($lVolID, 'Volunteer Log', false) . '<br>', 220, $strColor)); //--------------------------- // address //--------------------------- $strPC = trim(strPhoneCell($vol->strPhone, $vol->strCell, true, true)); if ($strPC != '') { $strPC .= '<br>'; } echoT($clsRpt->writeCell($vol->strAddress, 160, $strColor)); echoT($clsRpt->writeCell($strPC . $vol->strEmailFormatted, 100, $strColor)); //---------------------------
function showPatientVisits($attributes, $clsRpt, $patient, $lPatientID, $lNumPVRecs, $pVisits) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $attributes->bCloseDiv = false; $attributes->divID = 'pVisits'; $attributes->divImageID = 'pVisitsDivImg'; openBlock('Patient Visits', '', $attributes); if ($lNumPVRecs == 0) { echoT('<i>No visits have been recorded for this patient.</i>'); } else { echoT(' <table class="enpRpt"> <tr> <td class="enpRptLabel"> visit ID </td> <td class="enpRptLabel"> Date of Visit </td> <td class="enpRptLabel"> Volunteer </td> <td class="enpRptLabel"> Location </td> <td class="enpRptLabel"> Activity </td> </tr>'); foreach ($pVisits as $pV) { $lVisitID = $pV->lKeyID; $lVolID = $pV->lVolID; echoT(' <tr class="makeStripe"> <td class="enpRpt" style="text-align: center;">' . str_pad($lVisitID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_PVisit($lVisitID, 'View visit record', true) . ' </td> <td class="enpRpt" style="text-align: center;">' . date('D m/d/Y', $pV->dteVisit) . ' </td> <td class="enpRpt">' . strLinkView_VolRecord($lVolID, 'View volunteer record', true) . ' ' . htmlspecialchars($pV->strVolLName . ', ' . $pV->strVolFName) . ' </td> <td class="enpRpt">' . htmlspecialchars($pV->strLocation) . ' </td> <td class="enpRpt">' . htmlspecialchars($pV->strActivity) . ' </td> </tr>'); } echoT(' </table>'); } $attributes->bCloseDiv = true; closeBlock($attributes); }