foreach ($sponProg as $clsSingleCat) { $lSPID = $clsSingleCat->lSPID; // don't remove basic sponsorship if ($lSPID == 1) { $strRem = strCantDelete('Basic sponsorship can\'t be removed.'); } else { $strRem = strLinkRem_SponProg($lSPID, 'Retire sponsorship program', true, true); } echoT(' <tr> <td class="enpRpt" style="text-align: center;">' . strLinkEdit_SponProg($lSPID, 'Edit sponsorship program', true) . ' ' . str_pad($lSPID, 5, '0', STR_PAD_LEFT) . ' </td> <td class="enpRpt" style="text-align: center;">' . $strRem . ' </td> <td class="enpRpt">' . htmlspecialchars($clsSingleCat->strProg) . ' </td> <td class="enpRpt" style="text-align: right;">' . $clsSingleCat->strCurrencySymbol . ' ' . number_format($clsSingleCat->curDefMonthlyCommit, 2) . ' </td> <td class="enpRpt" style="text-align: center;">' . $clsSingleCat->strFlagImg . ' </td> <td class="enpRpt" style="text-align: center;">' . $clsSingleCat->lNumSponsors . ' ' . strLinkView_SponsorsViaSponProg($lSPID, 'View sponsors', true) . ' </td> </tr>'); } echoT('</table>'); } else { echoT('<i>There are currently no sponsorship programs defined</i>'); } ?>
<?php echoT(' <font color="red">You have requested to remove sponsorship program <b>' . htmlspecialchars($clsProgram->strProg) . '</b>, but this sponsorship program<br>is associated with other records.<br><br>Please correct these associations before removing this sponsorship program</font><br><br>'); if ($lNumSponsors > 0) { echoT('* Number of <b>Sponsors</b> associated with this program: ' . number_format($lNumSponsors) . ' ' . strLinkView_SponsorsViaSponProg($lProgID, 'View sponsors', true) . ' ' . strLinkView_SponsorsViaSponProg($lProgID, 'View sponsors', false) . '<br><br>'); } if ($lNumClients > 0) { echoT('* Number of <b>Clients</b> associated with this program: ' . number_format($lNumClients) . ' ' . strLinkView_ClientsViaSponProg($lProgID, 'View clients', true) . ' ' . strLinkView_ClientsViaSponProg($lProgID, 'View clients', false) . '<br><br>'); }