<?php

global $genumDateFormat, $gbAdmin;
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
$lNumCols = 8;
$lPatientWidth = 240;
echoT('<br>' . $clsRpt->openReport());
echoT($clsRpt->writeTitle($strRptTitle, '', '', $lNumCols));
echoT($clsRpt->openRow(true));
echoT($clsRpt->writeLabel('Vol. ID', 60));
echoT($clsRpt->writeLabel('Active?', 60));
echoT($clsRpt->writeLabel('Volunteer Name', 220));
echoT($clsRpt->writeLabel('Address', 60));
echoT($clsRpt->writeLabel('Phone/Email', 60));
echoT($clsRpt->writeLabel('Vol. Tools', 100));
echoT($clsRpt->writeLabel('Associated Patients', $lPatientWidth));
echoT($clsRpt->closeRow());
if ($lNumVols == 0) {
    echoT($clsRpt->openRow(true));
    echoT($clsRpt->writeCell('<i>No volunteers match your search criteria</i>', '', '', $lNumCols));
    echoT($clsRpt->closeReport());
} else {
    foreach ($vols as $vol) {
        $bInactive = $vol->bInactive;
        $lVolID = $vol->lKeyID;
        $lAcctID = $vol->lAcctID;
        if ($bInactive) {
            $strColor = ' color: #888;';
        } else {
            $strColor = '';
<?php

if ($lNumDisplayRows == 0) {
    echoT('<i>There are no business contacts that meet your search criteria.<br><br></i>');
    return;
}
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
echoT('<br>' . $clsRpt->openReport());
echoT($clsRpt->writeTitle($strRptTitle, '', '', 6));
echoT($clsRpt->openRow(true));
echoT($clsRpt->writeLabel('PeopleID', 60));
//   echoT($clsRpt->writeLabel('&nbsp;',     20));
echoT($clsRpt->writeLabel('Name', 150));
echoT($clsRpt->writeLabel('Address'));
echoT($clsRpt->writeLabel('Phone/Email'));
echoT($clsRpt->writeLabel('Business Relationships'));
echoT($clsRpt->closeRow());
foreach ($bizRecs as $bz) {
    $lPID = $bz->lPeopleID;
    echoT($clsRpt->openRow(true));
    echoT($clsRpt->writeCell(strLinkView_PeopleRecord($lPID, 'View people record', true) . '&nbsp;' . str_pad($lPID, 5, '0', STR_PAD_LEFT), 60));
    echoT($clsRpt->writeCell($bz->strSafeNameLF, 210));
    echoT($clsRpt->writeCell($bz->strAddress, 160));
    echoT($clsRpt->writeCell(strPhoneCell($bz->strPhone, $bz->strCell, true, true) . '<br>' . $bz->strEmailFormatted));
    if ($bz->lNumBiz == 0) {
        echoT($clsRpt->writeCell('<i>none</i>', 260));
    } else {
        $strOut = '<table width="100%">' . "\n";
        foreach ($bz->biz as $biz) {
            if ($biz->bSoftCash) {
Esempio n. 3
0
 public function strLocationHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->loadLocationInfo();
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $chapter =& $this->locRec;
     $lLocationID = $chapter->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Organization:') . $clsRpt->writeCell($chapter->strSafeLocationName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Organization ID:') . $clsRpt->writeCell(str_pad($lLocationID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_OrganizationRecord($lLocationID, 'View organization record', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($chapter->strAddress) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
<?php

$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
echoT('<br>' . $clsRpt->openReport());
echoT($clsRpt->writeTitle($strRptTitle, '', '', 4));
echoT($clsRpt->openRow(true));
echoT($clsRpt->writeLabel('PeopleID', 60));
echoT($clsRpt->writeLabel('Name', 150));
echoT($clsRpt->writeLabel('Address'));
echoT($clsRpt->writeLabel('Relationships'));
echoT($clsRpt->closeRow());
if ($lNumPeople == 0) {
    echoT($clsRpt->openRow(true));
    echoT($clsRpt->writeCell('<i>No ' . $strPeopleType . ' match your search criteria</i>', '', '', 5));
    echoT($clsRpt->closeRow(''));
} else {
    foreach ($people as $person) {
        $lPID = $person->lKeyID;
        echoT($clsRpt->openRow(true));
        //--------------------
        // People ID
        //--------------------
        echoT($clsRpt->writeCell(strLinkView_PeopleRecord($lPID, 'View people record', true) . '&nbsp;' . str_pad($lPID, 5, '0', STR_PAD_LEFT), 60));
        //--------------------
        // Name
        //--------------------
        echoT($clsRpt->writeCell($person->strSafeNameLF . '<br>' . strLinkView_Household($person->lHouseholdID, $lPID, 'View household', true) . '<i>' . htmlspecialchars($person->strHouseholdName) . '</i>', 240));
        //--------------------
        // Address
        //--------------------
Esempio n. 5
0
 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];
     $lPID = $volRec->lPeopleID;
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($volRec->strSafeName . '&nbsp;&nbsp;&nbsp;(people ID ' . str_pad($lPID, 5, '0', STR_PAD_LEFT) . strLinkView_PeopleRecord($lPID, 'View People Record', true) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer ID:') . $clsRpt->writeCell(str_pad($lVolID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_Volunteer($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('Address:') . $clsRpt->writeCell($volRec->strAddress) . $clsRpt->closeRow() . $clsRpt->closeReport('');
     return $strOut;
 }
Esempio n. 6
0
 public function providerHTMLSummary($provider)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $lProviderID = $provider->lKeyID;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Funder/Provider Name:') . $clsRpt->writeCell(htmlspecialchars($provider->strGrantOrg)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Provider ID:') . $clsRpt->writeCell(strLinkView_GrantProvider($lProviderID, 'View Funder/Provider Record', true) . '&nbsp;' . str_pad($lProviderID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
<?php

global $genumDateFormat;
$strImportType = $logEntry->enumImportType;
if ($strImportType == CENUM_CONTEXT_SPONSORPAY) {
    $strImportType = 'Sponsor Payment';
}
$strImportType = strtoupper(substr($strImportType, 0, 1)) . substr($strImportType, 1);
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '100pt';
openBlock('Import Log', '');
echoT($clsRpt->openReport());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Import ID:') . $clsRpt->writeCell(str_pad($logEntry->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Import Type:') . $clsRpt->writeCell($strImportType) . $clsRpt->closeRow());
if ($bPTable) {
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Table:') . $clsRpt->writeCell('[' . strXlateContext($logEntry->enumAttachType, true, false) . '] ' . htmlspecialchars($logEntry->strUserTableName)) . $clsRpt->closeRow());
}
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date of Import:') . $clsRpt->writeCell(date($genumDateFormat . ' H:i:s', $logEntry->dteOrigin)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Imported By:') . $clsRpt->writeCell($logEntry->strUserCSafeName) . $clsRpt->closeRow());
echoT($clsRpt->closeReport());
closeBlock();
Esempio n. 8
0
 public function strPatientHTMLSummary($idx)
 {
     /*-----------------------------------------------------------------------
           assumes user has called $clsClient->loadClientsVia...()
     
           caller must include
                 $this->load->helper ('img_docs/image_doc');
        -----------------------------------------------------------------------*/
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $clsC = $this->patients[$idx];
     $lCID = $clsC->lKeyID;
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Patient Name:') . $clsRpt->writeCell(strLinkView_PatientRecord($lCID, 'View Client Record', true) . '&nbsp;' . $clsC->strSafeName . '&nbsp;&nbsp;(client ID: ' . str_pad($lCID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Date of Birth:') . $clsRpt->writeCell($clsC->dteBirth) . $clsRpt->closeRow();
     /*
           $strOut .=
                $clsRpt->openRow   (false)
               .$clsRpt->writeLabel('Gender:')
               .$clsRpt->writeCell ($clsC->enumGender)
               .$clsRpt->closeRow  ();
     */
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
 function viewViaObject($enumRemType, $lFID)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     global $gbDateFormatUS, $gdteNow, $glUserID, $genumDateFormat;
     if (!bTestForURLHack('notVolunteer')) {
         return;
     }
     $this->load->helper('dl_util/verify_id');
     verifyIDsViaType($this, $enumRemType, $lFID, false);
     $displayData = array();
     $displayData['enumRemType'] = $enumRemType;
     $displayData['lFID'] = $lFID = (int) $lFID;
     //--------------------------
     // models & helpers
     //--------------------------
     $this->load->model('admin/madmin_aco', 'clsACO');
     $this->load->model('admin/muser_accts');
     $this->load->model('clients/mclients');
     $this->load->model('people/mpeople');
     $this->load->model('donations/mdonations');
     $this->load->library('util/dl_date_time', '', 'clsDateTime');
     $this->load->model('sponsorship/msponsorship', 'clsSpon');
     $this->load->model('biz/mbiz', 'clsBiz');
     //      $this->load->helper('dl_util/email_web');
     $this->load->helper('dl_util/web_layout');
     $this->load->helper('dl_util/time_date');
     $this->load->helper('dl_util/page_title');
     $this->load->helper('dl_util/reminder');
     $params = array('enumStyle' => 'enpRptC');
     $this->load->library('generic_rpt', $params);
     $clsRpt = new generic_rpt($params);
     $this->load->model('reminders/mreminders', 'clsRem');
     $this->clsRem->enumSort = 'currentFirst';
     configRemRecViewViaType($enumRemType, $lFID, $displayData);
     $bUserReminder = $enumRemType == CENUM_CONTEXT_USER;
     if ($bUserReminder) {
         $this->clsRem->enumLookupType = 'CurrentViaEnumRemTypeUserID';
     } else {
         $this->clsRem->enumLookupType = 'ViaEnumRemTypeFID';
     }
     $this->clsRem->loadEnumTypeList($enumRemType);
     $strRemRpt = '';
     $lTotRems = 0;
     $this->clsRem->lFID = $lFID;
     foreach ($this->clsRem->enumRemTypeList as $enumRT) {
         $this->clsRem->enumRemType = $enumRT;
         $strRT = strtoupper(substr($enumRT, 0, 1)) . substr($enumRT, 1);
         $this->clsRem->loadReminders();
         $lTotRems += $this->clsRem->lNumReminders;
         if ($this->clsRem->lNumReminders > 0) {
             $strRemRpt .= $clsRpt->openReport(550);
             if ($bUserReminder) {
                 $strRemRpt .= $clsRpt->openRow(false);
                 $strRemRpt .= $clsRpt->writeTitle($strRT . ' Reminders', '', '', 8);
                 $strRemRpt .= $clsRpt->closeRow();
             }
             $strRemRpt .= $clsRpt->openRow(false);
             $strRemRpt .= $clsRpt->writeLabel('Reminder Dates', '160pt');
             $strRemRpt .= $clsRpt->writeLabel('Reminder', '');
             //            $strRemRpt .= $clsRpt->writeLabel('&nbsp;', '');
             $strRemRpt .= $clsRpt->closeRow();
             foreach ($this->clsRem->reminders as $clsSingleRem) {
                 if ($this->clsRem->bOKToView($clsSingleRem, $glUserID)) {
                     $lRemID = $clsSingleRem->lKeyID;
                     $strRemRpt .= $clsRpt->openRow(true);
                     $strRemLogLabel = '';
                     $lNumPast = $this->clsRem->lNumPast($clsSingleRem, $gdteNow, $lIdxLastPast);
                     $lNumFuture = $this->clsRem->lNumFuture($clsSingleRem, $gdteNow, $lIdxFirstFuture);
                     $lCurDateIdx = $this->clsRem->lCurrentRemIdx($clsSingleRem, $gdteNow);
                     //-------------------------------------------------------
                     // it's the little things that make a house a home....
                     //-------------------------------------------------------
                     if ($lNumPast > 0) {
                         $strRemLogLabel .= ' / ' . $lNumPast . ' past reminder' . ($lNumPast == 1 ? '' : 's');
                     }
                     if ($lNumFuture > 0) {
                         $strRemLogLabel .= ' / ' . $lNumFuture . ' future reminder' . ($lNumFuture == 1 ? '' : 's');
                     }
                     if ($strRemLogLabel != '') {
                         $strRemLogLabel = '<br><small>' . substr($strRemLogLabel, 3) . '</small>';
                     }
                     if ($bUserReminder) {
                         $strRemLink = '<br><i>' . $this->clsRem->strHTMLOneLineLink($clsSingleRem) . '</i>';
                     } else {
                         $strRemLink = '';
                     }
                     //---------------------------------------------------------------------------
                     // if reminder is not current, indicate next reminder; if no next reminder,
                     // indicate most recent reminder
                     //---------------------------------------------------------------------------
                     $bCurrent = !is_null($lCurDateIdx);
                     if (!$bCurrent) {
                         $strRemStyle = 'color: #999999;';
                         if ($lNumFuture > 0) {
                             $strRemDate = '<i>next reminder: ' . date($genumDateFormat, $clsSingleRem->dates[$lIdxFirstFuture]->dteDisplayStart) . '</i>';
                         } else {
                             $strRemDate = '<i>reminded on: ' . date($genumDateFormat, $clsSingleRem->dates[$lIdxLastPast]->dteDisplayStart) . '</i>';
                         }
                     } else {
                         $strRemStyle = '';
                         $strRemDate = date($genumDateFormat, $clsSingleRem->dates[$lCurDateIdx]->dteDisplayStart);
                     }
                     //--------------------------
                     // reminder title/note
                     //--------------------------
                     $strReminder = '<b>' . htmlspecialchars($clsSingleRem->strTitle) . '</b>' . $strRemLink;
                     if ($clsSingleRem->strTitle != '') {
                         $strReminder .= '<br>' . nl2br(htmlspecialchars($clsSingleRem->strReminderNote));
                     }
                     //--------------------------
                     // follow-up notes
                     //--------------------------
                     if ($clsSingleRem->lNumFollowUps > 0) {
                         $strReminder .= '<small><br><br><b>Follow-up notes:</b><br>';
                         foreach ($clsSingleRem->followUpNotes as $clsFollow) {
                             $strReminder .= '<i>' . date($genumDateFormat, $clsFollow->dteOfNote) . ' by ' . $clsFollow->strSafeName . '</i><br>' . nl2br(htmlspecialchars($clsFollow->strFollowUpNote)) . '<br><br>';
                         }
                         $strReminder .= '</small>';
                     }
                     //--------------------------
                     // follow-up note form
                     //--------------------------
                     $clsNav = new stdClass();
                     $clsNav->strKey02 = 'RID';
                     $clsNav->lKey02 = $lRemID;
                     $attributes = array('name' => 'frmFollowUp' . $lRemID);
                     $strReminder .= form_open('reminders/rem_add_edit/addReminderFollup/' . $enumRemType . '/' . $lFID . '/' . $lRemID, $attributes) . '<br>
                   <i>add follow-up note:</i>
                     <input type="submit" name="cmdSubmit" value="Save"
                          style="font-size: 7pt; height: 13pt; vertical-align: center;"
                          onclick="this.disabled=1; this.form.submit();"
                          class="btn"
                             onmouseover="this.className=\'btn btnhov\'"
                             onmouseout="this.className=\'btn\'"><br>
                     <textarea name="txtFollowUp" rows="1" cols="45"></textarea><br>
                     </form>';
                     $strRemRpt .= $clsRpt->writeCell($strRemDate . $strRemLogLabel . '<br><br>' . strLinkRem_Reminder($lRemID, $lFID, $enumRemType, 'Remove reminder', true, true));
                     $strRemRpt .= $clsRpt->writeCell($strReminder, '', $strRemStyle);
                     /*
                                    $strRemRpt .= $clsRpt->writeCell(strLinkRem_Reminder($lRemID, $lFID, $enumRemType,
                                                        'Remove reminder', true, true), '', $strRemStyle);
                     */
                     $strRemRpt .= $clsRpt->closeRow();
                 }
             }
             $strRemRpt .= $clsRpt->closeReport('<br>');
         }
     }
     if ($lTotRems == 0) {
         $strRemRpt = '<br><i>There are no reminders for this user.</i><br><br>';
     }
     $displayData['strRemRpt'] = $strRemRpt;
     //--------------------------
     // breadcrumbs
     //--------------------------
     $displayData['title'] = CS_PROGNAME . ' | People';
     $displayData['nav'] = $this->mnav_brain_jar->navData();
     $displayData['mainTemplate'] = 'reminders/view_reminder_record_view';
     $this->load->vars($displayData);
     $this->load->view('template');
 }
 public function volEventHTMLSummary($idx)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsEvent->loadEventsViaEID($lEventID);
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $clsVE = $this->events[$idx];
     $lEventID = $clsVE->lKeyID;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     return $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Event ID:') . $clsRpt->writeCell(strLinkView_VolEvent($lEventID, 'View event', true) . '&nbsp;' . str_pad($lEventID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer Event:') . $clsRpt->writeCell($clsVE->strEventName) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Start Date:') . $clsRpt->writeCell(date($genumDateFormat . ' (D)', $clsVE->dteEventStart)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('End Date:') . $clsRpt->writeCell(date($genumDateFormat . ' (D)', $clsVE->dteEventEnd)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
 }
<?php

global $genumDateFormat;
if ($lNumCProgs == 0) {
    echoT('<br/><i>There are no client programs available for review.</i><br/>');
    return;
}
$params = array('enumStyle' => 'terse', 'crpt');
$crpt = new generic_rpt($params);
$crpt->strWidthLabel = '130pt';
$attributes = new stdClass();
foreach ($cprogs as $cprog) {
    /* -------------------------------------
    echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
       .': '.__LINE__.'<br>$cprog   <pre>');
    echo(htmlspecialchars( print_r($cprog, true))); echo('</pre></font><br>');
    die;
    // ------------------------------------- */
    if ($cprog->bShowCProgLink) {
        $lCProgID = $cprog->lKeyID;
        $attributes->divID = 'cprog' . $lCProgID . 'Div';
        $attributes->divImageID = 'cprog' . $lCProgID . 'DivImg';
        $attributes->bCloseDiv = false;
        $attributes->bStartOpen = false;
        openBlock(htmlspecialchars($cprog->strProgramName), '', $attributes);
        if ($cprog->lNumEnrolledCurrent > 0) {
            $strLinkViewCurrentEnrolled = '&nbsp;' . strLinkView_CProgEnrollDir($lCProgID, true, 'View currently active', true);
        } else {
            $strLinkViewCurrentEnrolled = '';
        }
        if ($cprog->lNumEnrolledTot > 0) {
<?php

global $genumDateFormat, $gbAdmin;
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
$lNumCols = 0;
if ($showFields->bPeopleID) {
    ++$lNumCols;
}
if ($showFields->bRemPeople) {
    ++$lNumCols;
}
if ($showFields->bImportID) {
    ++$lNumCols;
}
if ($showFields->bName) {
    ++$lNumCols;
}
if ($showFields->bAddress) {
    ++$lNumCols;
}
if ($showFields->bPhoneEmail) {
    ++$lNumCols;
}
if ($showFields->bGiftSummary) {
    $lNumCols += 2;
}
if ($showFields->bSponsor) {
    ++$lNumCols;
    $clsSpon = new msponsorship();
}
 function strHTMLPPTestSummaryDisplay()
 {
     //---------------------------------------------------------------------
     //  caller must first load the test
     //---------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $strOut = '';
     $pptest =& $this->pptests[0];
     $lPPTestID = $pptest->lKeyID;
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Pre/Post Test:', '115pt') . $clsRpt->writeCell(htmlspecialchars($pptest->strTestName) . '&nbsp;' . strLinkView_CPPTestView($lPPTestID, 'View pre/post test', true)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Category:') . $clsRpt->writeCell(htmlspecialchars($pptest->strPPTestCat), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Pre/Post Test ID:', '115pt') . $clsRpt->writeCell(str_pad($lPPTestID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($pptest->strDescription)), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Questions:') . $clsRpt->writeCell($pptest->lNumQuest . '&nbsp;' . strLinkView_CPPQuestions($lPPTestID, 'View questions', true), '') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Status:') . $clsRpt->writeCell(($pptest->bHidden ? 'Hidden' : 'Visible') . ' / ' . ($pptest->bPublished ? 'Published' : 'Not published'), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport();
     return $strOut;
 }
<?php

$clsDateTime = new dl_date_time();
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '130pt';
$clsRpt->openReport();
openBlock('Good ' . $strLabel . ' Record', '');
echoT('<table class="enpView" border="0">');
// the good ID
switch ($enumContext) {
    case CENUM_CONTEXT_CLIENT:
        showClientInfo($clsDateTime, $clsRpt, $goodClient[0]);
        break;
    case CENUM_CONTEXT_PEOPLE:
        showPeopleInfo($clsDateTime, $clsRpt, $goodPeople[0]);
        break;
    case CENUM_CONTEXT_BIZ:
        showBizInfo($clsDateTime, $clsRpt, $goodBiz[0]);
        break;
    default:
        screamForHelp($enumContext . ': invalid context for duplicate record consolidation<br>error on line  <b> -- ' . __LINE__ . ' --</b>,<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__);
        break;
}
echoT('</table>');
closeBlock();
openBlock('Duplicate ' . $strLabel . ' Records', '');
switch ($enumContext) {
    case CENUM_CONTEXT_CLIENT:
        reportDupClientInfo($clsDateTime, $clsRpt, $dupClients);
        break;
Esempio n. 15
0
 function strHTMLProgramSummaryDisplay($enumTType)
 {
     //---------------------------------------------------------------------
     //  caller must first load the client program record
     //---------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $strOut = '';
     $cprog =& $this->cprogs[0];
     $lCProgID = $cprog->lKeyID;
     $bEnrollment = $enumTType == CENUM_CONTEXT_CPROGENROLL;
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Client Program:', '115pt') . $clsRpt->writeCell(htmlspecialchars($cprog->strProgramName) . '&nbsp;' . strLinkView_CProgram($lCProgID, 'View program record', true)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Table Type:', '115pt') . $clsRpt->writeCell($bEnrollment ? $cprog->strSafeEnrollLabel : $cprog->strSafeAttendLabel) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Client Program ID:', '115pt') . $clsRpt->writeCell(str_pad($lCProgID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($cprog->strDescription)), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport();
     return $strOut;
 }
<?php

global $genumDateFormat;
echoT($strHTMLSummary);
$params = array('enumStyle' => 'terse');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '180pt';
$attributes = new stdClass();
$attributes->width = null;
$bReadOnly = $utable->bReadOnly;
if ($bMultiEntry && !$bReadOnly) {
    $strLinkRem = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRID, 'Remove', true, true) . '&nbsp;' . strLinkRem_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRID, 'Remove', false, true);
} else {
    $strLinkRem = '';
}
if ($bReadOnly) {
    $strLinkEdit = '';
} else {
    $strLinkEdit = strLinkEdit_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRID, true, 'Edit record', ' id="editURec_' . $lTableID . '_' . $lRID . '" ', $lEnrollRecID) . '&nbsp;' . strLinkEdit_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRID, false, 'Edit record', ' id="editURec1_' . $lTableID . '_' . $lRID . '" ', $lEnrollRecID);
}
if ($bCProg && !$bEnrollment) {
    $strCloneAttendance = '&nbsp;&nbsp;&nbsp;' . strLinkClone_CPAttendance($cprog->lKeyID, $lRID, 'Clone ' . $cprog->strSafeAttendLabel, true) . '&nbsp;' . strLinkClone_CPAttendance($cprog->lKeyID, $lRID, 'Clone ' . $cprog->strSafeAttendLabel, false) . '&nbsp';
} else {
    $strCloneAttendance = '';
}
openBlock($strTableLabel, $strLinkEdit . $strCloneAttendance . $strLinkRem);
echoT($clsRpt->openReport(800));
if ($utable->lNumFields == 0 && !$bCProg) {
    echoT('<i>There is no data associated with this record!</i><br>');
} else {
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('tableID:') . $clsRpt->writeCell(str_pad($lTableID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
Esempio n. 17
0
 public function strClientHTMLSummary($idx)
 {
     /*-----------------------------------------------------------------------
           assumes user has called $clsClient->loadClientsVia...()
     
           caller must include
                 $this->load->model  ('img_docs/mimage_doc',   'clsImgDoc');
                 $this->load->helper ('img_docs/image_doc');
        -----------------------------------------------------------------------*/
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $clsC = $this->clients[$idx];
     $lCID = $clsC->lKeyID;
     $cImg = new mimage_doc();
     $cImg->bLoadContext = false;
     $cImg->loadProfileImage(CENUM_CONTEXT_CLIENT, $lCID);
     $bProfileImgAvail = $cImg->lNumImageDocs > 0;
     if ($bProfileImgAvail) {
         $imgDoc =& $cImg->imageDocs[0];
         $strTNImg = strLinkHTMLTag(CENUM_CONTEXT_CLIENT, CENUM_IMGDOC_ENTRY_IMAGE, $lCID, $imgDoc->strSystemFN, 'View in new window', true, '') . strImageHTMLTag(CENUM_CONTEXT_CLIENT, CENUM_IMGDOC_ENTRY_IMAGE, $lCID, $imgDoc->strSystemThumbFN, '', false, ' style="border: 1px solid black; height: 80px;" ') . '</a>';
         $strOut .= '<table border="0"><tr><td style="vertical-align: top;">';
     } else {
     }
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel($clsC->cv_strVocClientS . ' Name:') . $clsRpt->writeCell(strLinkView_ClientRecord($lCID, 'View Client Record', true) . '&nbsp;' . $clsC->strSafeName . '&nbsp;&nbsp;(client ID: ' . str_pad($lCID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Birthday/Age:') . $clsRpt->writeCell($clsC->strClientAgeBDay) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Gender:') . $clsRpt->writeCell($clsC->enumGender) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel($clsC->cv_strVocLocS . ':') . $clsRpt->writeCell(htmlspecialchars($clsC->strLocation)) . $clsRpt->closeRow();
     $strStatus = htmlspecialchars($clsC->strStatusCatName);
     if (isset($clsC->strFlagsTable)) {
         $strStatus .= '&nbsp;' . $clsC->strFlagsTable;
     }
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Status Category:') . $clsRpt->writeCell($strStatus) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     if ($bProfileImgAvail) {
         $strOut .= '</td><td style="vertical-align: top;">' . $strTNImg . '</td></tr></table>';
     }
     return $strOut;
 }
 public function strClientLocationHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->loadLocationRec($id)
     //-----------------------------------------------------------------------
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lLocID = $this->lKeyID;
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Location ID:') . $clsRpt->writeCell(strLinkView_ClientLocation($lLocID, 'View Client Location Record', true) . ' ' . str_pad($lLocID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell(htmlspecialchars($this->strLocation)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Country:') . $clsRpt->writeCell(htmlspecialchars($this->strCountry)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Allow Medical Recs:') . $clsRpt->writeCell($this->bEnableEMR ? 'Yes' : 'No') . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
Esempio n. 19
0
 public function userHTMLSummary($idx)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->loadSingleUserRecord($lUserID)
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat, $gbAdmin;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $userRec =& $this->userRec[$idx];
     $lUID = $userRec->us_lKeyID;
     $strAcctType = '';
     if ($userRec->us_bAdmin) {
         $strAcctType = 'Admin';
     } elseif ($userRec->bVolAccount) {
         $strAcctType = 'Volunteer';
     } else {
         $strAcctType = 'User';
     }
     if ($userRec->us_bDebugger) {
         $strAcctType .= ' / Debugger';
     }
     if ($gbAdmin) {
         $strAcctLink = strLinkView_User($lUID, 'View User Record', true) . '&nbsp;';
     } else {
         $strAcctLink = '';
     }
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('user ID:') . $clsRpt->writeCell($strAcctLink . str_pad($lUID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($userRec->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('User Name:') . $clsRpt->writeCell($userRec->us_strUserName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Account Type:') . $clsRpt->writeCell($strAcctType) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
 public function volEventDateShiftHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsShifts->loadShiftsViaEventShiftID($lEventShiftID)
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $strOut = '';
     $clsS = $this->shifts[0];
     $lEventID = $clsS->lVolEventID;
     $lShiftID = $clsS->lKeyID;
     $lDateID = $clsS->lEventDateID;
     $clsEvent = new mvol_events();
     $clsRpt = new generic_rpt(array('enumStyle' => 'terse'));
     $clsRpt->setEntrySummary();
     $clsEvent->loadEventsViaEID($lEventID);
     $clsVE = $clsEvent->events[0];
     $lEventID = $clsVE->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Event ID:') . $clsRpt->writeCell(strLinkView_VolEvent($lEventID, 'View event', true) . '&nbsp;' . str_pad($lEventID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Date:') . $clsRpt->writeCell(strLinkView_VolEventDate($lDateID, 'View event date', true) . '&nbsp;' . date($genumDateFormat . ' (D)', $clsS->dteEvent)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer Event:') . $clsRpt->writeCell(htmlspecialchars($clsVE->strEventName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Shift:') . $clsRpt->writeCell(htmlspecialchars($clsS->strShiftName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Start/Duration:') . $clsRpt->writeCell(date('g:i a', $clsS->dteEventStartTime) . ' / ' . $clsS->enumDuration) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('# Vols Needed:') . $clsRpt->writeCell($clsS->lNumVolsNeeded) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Esempio n. 21
0
 public function strBizHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsBiz->loadBizRecsViaBID($lBID)
     //-----------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lBID = $this->lBID;
     $biz =& $this->bizRecs[0];
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Business Name:') . $clsRpt->writeCell(strLinkView_BizRecord($lBID, 'View business record', true) . '&nbsp;' . $biz->strSafeName . '&nbsp;&nbsp;(business ID: ' . str_pad($lBID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($biz->strAddress) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Industry:') . $clsRpt->writeCell(htmlspecialchars($biz->strIndustry)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Esempio n. 22
0
 public function strCReportHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->clsCReports->loadReportViaID($lReportID, ...
     //-----------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $report =& $this->reports[0];
     $lReportID = $report->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Report Name:') . $clsRpt->writeCell(strLinkView_CReportRec($lReportID, 'View report record', true) . '&nbsp;' . $report->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Report ID:') . $clsRpt->writeCell(str_pad($lReportID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Type:') . $clsRpt->writeCell($report->strXlatedRptType) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Owner:') . $clsRpt->writeCell($report->strSafeRptOwner) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
<?php

echoT(strLinkAdd_GiftAcct('Add new donation account', true) . ' ' . strLinkAdd_GiftAcct('Add new account', false) . '<br><br>');
if ($lNumAccts == 0) {
    echoT('<i>There are currently no accounts defined in your database!</i><br><br>');
} else {
    $params = array('enumStyle' => 'enpRptC');
    $clsRpt = new generic_rpt($params);
    echoT($clsRpt->openReport(400) . $clsRpt->writeTitle('Donation Accounts', 500, '', 4) . $clsRpt->openRow(false) . $clsRpt->writeLabel('Acct ID', '65', 'text-align: center; vertical-align: bottom;') . $clsRpt->writeLabel('Account Name', '', 'text-align: center; vertical-align: bottom;') . $clsRpt->writeLabel('# Campaigns', '30', 'text-align: center; vertical-align: bottom;') . $clsRpt->writeLabel('Total Donations', '130', 'text-align: center; vertical-align: bottom;') . $clsRpt->closeRow());
    $idx = 0;
    foreach ($accts as $clsAcct) {
        $lAID = $clsAcct->lKeyID;
        $clsRpt->openRow(true);
        if ($clsAcct->bProtected) {
            $strLinkEdit = '&nbsp;&nbsp;';
        } else {
            $strLinkEdit = strLinkEdit_GiftAcct($lAID, 'Edit account', true);
        }
        echoT($clsRpt->writeCell($strLinkEdit . ' ' . str_pad($lAID, 5, '0', STR_PAD_LEFT), '', $strStyleExtra = 'text-align: center;') . $clsRpt->writeCell(htmlspecialchars($clsAcct->strAccount)) . $clsRpt->writeCell($clsAC->lNumCampsViaAcctID($lAID, false) . ' ' . strLinkView_GiftCampaigns($lAID, 'View campaigns', true) . '&nbsp;&nbsp;', '', 'text-align: right;') . $clsRpt->writeCell($strCumGiftsNonSoft[$idx] . $strLinkGifts[$idx], '', 'text-align: left;') . $clsRpt->closeRow());
        ++$idx;
    }
    echoT($clsRpt->closeReport());
}
 public function sponsorshipHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsSpon->sponsorInfoViaID($lSID);
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $sponRec = $this->sponInfo[0];
     $bBiz = $sponRec->bSponBiz;
     if ($bBiz) {
         $strLinkPeopleBiz = strLinkView_BizRecord($sponRec->lForeignID, 'View business record', true);
         $strLabel = '(business ID: ';
     } else {
         $strLinkPeopleBiz = strLinkView_PeopleRecord($sponRec->lForeignID, 'View people record', true);
         $strLabel = '(people ID: ';
     }
     $lSponID = $sponRec->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel(' Sponsor:') . $clsRpt->writeCell($strLinkPeopleBiz . '&nbsp;' . $sponRec->strSponSafeNameFL . '&nbsp;&nbsp;' . $strLabel . str_pad($sponRec->lForeignID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Sponsorship:') . $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship', true) . '&nbsp;' . htmlspecialchars($sponRec->strSponProgram) . '&nbsp;&nbsp;(sponsor ID: ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     if (is_null($sponRec->lClientID)) {
         $strClient = '<i>not set</i>';
     } else {
         $strClient = strLinkView_ClientRecord($sponRec->lClientID, 'View client record', true) . '&nbsp;' . $sponRec->strClientSafeNameFL . '&nbsp;(client ID: ' . str_pad($sponRec->lClientID, 5, '0', STR_PAD_LEFT) . ')';
     }
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Client:') . $clsRpt->writeCell($strClient) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Status:') . $clsRpt->writeCell($sponRec->bInactive ? 'Inactive since ' . date($genumDateFormat, $sponRec->dteInactive) : 'Active') . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Esempio n. 25
0
 public function strAuctionHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $cAuction->loadAuctionByAucID($lAuctionID);
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $auction =& $this->auctions[0];
     $lAuctionID = $auction->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell($auction->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_AuctionRecord($lAuctionID, 'View auction record', true)) . $clsRpt->closeRow() . $clsRpt->writeLabel('Overview:') . $clsRpt->writeCell(strLinkView_AuctionOverview($lAuctionID, 'Overview', true)) . $clsRpt->closeRow() . $clsRpt->writeLabel('Packages:') . $clsRpt->writeCell(strLinkView_AuctionPackages($lAuctionID, 'View packages for this auction', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Date:') . $clsRpt->writeCell(date($genumDateFormat, $auction->dteAuction)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
 public function sponsorChargeHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsSCP->loadChargeRecord()
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setBreadCrumbs();
     $cRec = $this->chargeRec;
     $bBiz = $cRec->bBiz;
     if ($bBiz) {
         $strLinkPeopleBiz = strLinkView_Biz($cRec->lForeignID, 'View business record', true);
     } else {
         $strLinkPeopleBiz = strLinkView_People($cRec->lForeignID, 'View people record', true);
     }
     $lSponID = $cRec->lSponsorshipID;
     $clsRpt->openReport('', '');
     $clsRpt->openRow(false);
     $clsRpt->writeLabel(' Sponsor:');
     $clsRpt->writeCell($strLinkPeopleBiz . ' ' . str_pad($cRec->lForeignID, 5, '0', STR_PAD_LEFT) . ' ' . $cRec->strSponSafeNameFL);
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Sponsor ID:');
     $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship', true) . ' ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT));
     $clsRpt->closeRow();
     if (is_null($cRec->lClientID)) {
         $strClient = '<i>not set</i>';
     } else {
         $strClient = strLinkView_Client($cRec->lClientID, 'View client record', true) . ' ' . str_pad($cRec->lClientID, 5, '0', STR_PAD_LEFT) . ' ' . $cRec->strClientSafeNameFL;
     }
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Client:');
     $clsRpt->writeCell($strClient);
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Status:');
     $clsRpt->writeCell($cRec->bInactive ? 'Inactive' : 'Active');
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Charge ID:');
     $clsRpt->writeCell(str_pad($cRec->lKeyID, 5, '0', STR_PAD_LEFT));
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Amount:');
     $clsRpt->writeCell($cRec->strCurSymbol . ' ' . number_format($cRec->curChargeAmnt, 2) . ' ' . $cRec->strFlagImage);
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Date of Charge:');
     $clsRpt->writeCell(date($genumDateFormat, $cRec->dteCharge));
     $clsRpt->closeRow();
     $clsRpt->closeReport(true);
 }
<?php

global $genumDateFormat;
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
$lNumCols = 0;
if ($showFields->bSponsorID) {
    ++$lNumCols;
}
if ($showFields->bName) {
    ++$lNumCols;
}
if ($showFields->bSponsorInfo) {
    ++$lNumCols;
}
if ($showFields->bClient) {
    ++$lNumCols;
}
if ($lNumCols == 0) {
    echoT('There are no sponsorship fields to report.');
} else {
    echoT('<br>' . $clsRpt->openReport(800));
    echoT($clsRpt->writeTitle($strRptTitle, '', '', $lNumCols));
    echoT($clsRpt->openRow(true));
    if ($showFields->bSponsorID) {
        echoT($clsRpt->writeLabel('SponsorID', 40));
    }
    if ($showFields->bName) {
        echoT($clsRpt->writeLabel('Name'));
    }
    if ($showFields->bSponsorInfo) {
Esempio n. 28
0
 public function strIItemHTMLSummary($item)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lIItemID = $item->lKeyID;
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Item Name:') . $clsRpt->writeCell(strLinkView_InventoryItem($lIItemID, 'View item', true) . htmlspecialchars($item->strItemName) . '&nbsp;&nbsp;(item ID: ' . str_pad($lIItemID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Category:') . $clsRpt->writeCell(htmlspecialchars($item->strCatBreadCrumb)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Responsible Party:') . $clsRpt->writeCell(htmlspecialchars($item->strRParty)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
Esempio n. 29
0
    echoT('<br><br><i>No patients match your search criteria</i><br>');
    return;
}
echoT('<br>
      <table class="enpRptC">
         <tr>
            <td class="enpRptLabel">&nbsp;</td>
            <td class="enpRptLabel">Patient ID</td>
            <td class="enpRptLabel">&nbsp;</td>
            <td class="enpRptLabel">Name</td>
            <td class="enpRptLabel">Contact Info</td>
            <td class="enpRptLabel">Assigned Vols.</td>
            <td class="enpRptLabel">Patient Contacts</td>
         </tr>');
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
$lRowIDX = 1;
$lVolWidth = 170;
foreach ($patientInfo as $patient) {
    $bActive = $patient->bActive;
    if ($bActive) {
        $strStyleActive = '';
    } else {
        $strStyleActive = 'color: #999;';
    }
    $lPatientID = $patient->lKeyID;
    echoT($clsRpt->openRow(true));
    echoT($clsRpt->writeCell($lRowIDX, '', 'text-align: center;'));
    echoT($clsRpt->writeCell(strLinkView_PatientRecord($lPatientID, 'View patient record', true, ' id="prec_' . $lPatientID . '" ') . '&nbsp;' . str_pad($lPatientID, 5, '0', STR_PAD_LEFT), 60, $strStyleActive . 'text-align: center;'));
    echoT($clsRpt->writeCell(strLink_PatientActiveInactive($lPatientID, !$bActive, $bActive ? 'Set Inactive' : 'Activate', true), 30, $strStyleActive . 'text-align: center;'));
    echoT($clsRpt->writeCell('<b>' . $patient->strSafeNameLF . '</b><br>DOB: ' . $patient->dteBirth, 170, $strStyleActive));
<?php

global $genumDateFormat, $gbAdmin;
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
$lNumCols = 0;
if ($showFields->bVolID) {
    ++$lNumCols;
}
if ($showFields->bPeopleID) {
    ++$lNumCols;
}
if ($showFields->bActiveInactive) {
    ++$lNumCols;
}
if ($showFields->bName) {
    ++$lNumCols;
}
if ($showFields->bAddress) {
    ++$lNumCols;
}
if ($showFields->bPhoneEmail) {
    ++$lNumCols;
}
if ($showFields->bSchedule) {
    ++$lNumCols;
}
if ($showFields->bSkills) {
    ++$lNumCols;
}
if ($lNumCols == 0) {