function writeHonMemGiftsTable($lGiftID, $clsRpt, $honMemTable) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $gbAdmin; echoT($clsRpt->openReport()); foreach ($honMemTable as $clsHM) { echoT($clsRpt->openRow()); $bHon = $clsHM->ghm_bHon; $strCell = strLinkView_PeopleRecord($clsHM->ghm_lFID, 'View people record', true) . ' ' . strLinkRem_HonMemLink($clsHM->lHMLinkID, $lGiftID, $bHon, 'Remove ' . ($bHon ? 'honorarium' : 'memorial'), true, true) . ' ' . $clsHM->honorMem->strSafeNameFL; if ($bHon) { echoT($clsRpt->writeLabel('Honorarium:')); echoT($clsRpt->writeCell($strCell)); } else { $lMCID = $clsHM->ghm_lMailContactID; if (is_null($lMCID)) { $strCell .= ' <font color="red"><i>(Mail contact not set!'; if ($gbAdmin) { $strCell .= ' Click ' . strLinkView_ListHonMem(false, 'here', false) . ' to work with memorials.'; } $strCell .= ')</i></font>'; } else { $strCell .= ' (mail contact: ' . $clsHM->mailContact->strSafeNameFL . strLinkView_PeopleRecord($lMCID, 'View people record for the mail contact', true) . ' ' . ')'; } echoT($clsRpt->writeLabel('Memorial:')); echoT($clsRpt->writeCell($strCell, '', 'vertical-align: text-top;')); } echoT($clsRpt->closeRow()); } echoT($clsRpt->closeReport('<br>')); }
<?php if (bAllowAccess('adminOnly')) { $strLinkWorkWith = ' <i>Click ' . strLinkView_ListHonMem($bHon, 'here', false) . ' to work with your ' . ($bHon ? 'honorariums' : 'memorials') . '.</i>'; } else { $strLinkWorkWith = '<i>To add names to the honorarium/memorial list, please contact your system administrator.</i>'; } if ($lNumHonMem == 0) { echoT('<i>There are no ' . $strButton . 's defined for your organization. <br>' . $strLinkWorkWith . '<br><br>'); } else { echoT(form_open('donations/hon_mem/addNew/' . $lGiftID . '/' . $strHonMem)); echoT(' <table> <tr> <td valign="top"> <input type="submit" name="cmdSubmit" value="Add ' . $strButton . '" onclick="this.disabled=1; this.form.submit();" class="btn" onmouseover="this.className=\'btn btnhov\'" onmouseout="this.className=\'btn\'"> </td> <td> <select multiple name="ddlHM[]" ID="hmDDL" size="4">'); echoT($ddlHonMem); echoT(' </select>' . form_error('ddlHM[]') . '<br> <i>Ctrl-click to select more than one name</i> </td> </tr> </table>' . form_close('<br><br>')); echoT($strLinkWorkWith . '<br>');